
@font-face {
    font-family: "Cooper Sans";
    src: url("../assets/fonts/cooper/COOPBL.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 100 600;
    color: #C0BF6A;
    src: url("../assets/fonts/Oswald/Oswald-VariableFont_wght.ttf") format('truetype');
}
*:not(script, input) {
    font-family: 'Oswald';
    touch-action: manipulation;
    box-sizing: content-box;
    scrollbar-width: none;
    font-weight: 500;
    -ms-overflow-style: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* IE10+ */

    overscroll-behavior: none;
  -webkit-overflow-scrolling: auto; /* disables rubber-band scroll */
}

.header-img{
	  filter:
    drop-shadow(0 0.3px 0.8px black)
    drop-shadow(0 0.3px 0.8px gold)
}
body,
button,
div,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;

}

.pre,
.informatic {
    opacity: 0;
z-index:-10;
    visibility: hidden;
    background-color: #123F00;

}

button {
    cursor: pointer;
}

*::-webkit-scrollbar {
    display: none;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color: #123F00;
    background-image: url('../assets/graphics/backgrounds/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    overscroll-behavior: none;
    overflow: hidden;

}

html {
    position:fixed;
    top:0;
    left:0;
    display: flex;
    align-items: center;
	
    overflow: hidden;
    width: 100%;
    height:100%;
    max-width: 100vw;
    
}

body {
    position: fixed;
    top: 3vh;
    height: calc(100% - 6vh);
	max-height:100%;
    max-width: 95%;
    margin: auto;
}

html.tableActive,
body.tableActive {

    background-color: #123F00;
    background-image: url('../assets/graphics/backgrounds/background.png');
}

.overlay-window#alert {
pointer-events:none;
z-index:-5;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    box-sizing:content-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100vw;

    height: 100%;
    min-height: fit-content;
    backdrop-filter: blur(10px);
    background-image: url('../assets/graphics/backgrounds/background.png');
    opacity: 0;
    visibility: hidden;
    z-index: -5;
    transition: all 0.4s ease-in-out;
    margin:auto;
    padding:2%;
}

.overlay-window#alert.active {
    opacity: 1;
    visibility: visible;
    height: 100%;
    min-height: fit-content;
    padding: 2%;
    overflow: visible;
    color: orangered;
    font-weight: 800;
    font-size: 8vh;
    text-align: center;
    transition: all 0.4s ease-in-out;
    z-index:1000;
}

.overlay-window#alert.active,
.overlay-window#alert.active.tally {
    visibility: visible;
    opacity: 1;
}


.overlay-window#alert.active.tally {
    position: absolute;
    font-size: 16px;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    margin:auto;
}

#alert-text,
.active.tally>#alert-text {
    margin: auto;
    width: 90%;
	max-width:90vw;
    display: inline-block;
    overflow: visible;
    padding: 1%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    text-overflow: break-word;
    backdrop-filter: blur(10px);
	color: rgb(255, 198, 118);
	 font-family: "Cooper Sans";
}

#alert-text {
 font-family: "Cooper Sans";
    color: rgb(255, 149, 0);
    font-weight: 900;
    font-size: 4.5vh;
    -webkit-text-stroke: 0.3px black;
}

.active.tally>#alert-text {
    font-size: 16px;
    -webkit-text-stroke: unset;
    transform: scaleX(1);
    background-color: rgba(0, 0, 0, 0);
display:flex;
flex-direction:column;
justify-content:space-between;
}

button.overlay-window-button#close-alert,
button.informatic-window-button#close-window {
    cursor: pointer;
    color: white;
    background-color: red;
    padding: auto;
    font-size: large;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
}

button.overlay-window-button#close-alert:hover,
button.informatic-window-button#close-window:hover {
    transform: translate(-50%, -50%) scale(1.1);
    -webkit-transform: translate(-50%, -50%) scale(1.1);
}

.informatic > .menu-items{
	display:none;
}

.menu-items {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    max-width: calc(5 * 5.9vh);
    min-width: 30vw;
    max-width: 95vw;
    width: 100%;
    height: 6.5vh;
    display: flex;
    gap: 1px;
    justify-content: center;
    align-content: center;
    align-items: center;
    z-index: 100;

}


.menu-item {
    font-size: large;
    margin: auto;
    display: block;
    max-height: 5vh;
    max-width: 5vh;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    padding: 0.3rem;
    cursor: pointer;
}

.menu-item:hover {
    transform: scale(1.1)
}

div#table {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    margin: auto;
    height: 90vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    object-fit: cover;
    max-height: 100vh;
    max-width: 100vw;
    width: 100%;

}

#table-img {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    max-height: 100vh;
    height: 100%;
    max-width: 100vw;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
    z-index: -2;
    overflow: hidden;
}

#options {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 0px;
    width: 0px;
    max-height: 35vh;
    max-width: 80vw;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    align-content: center;
    align-items: center;
    opacity: 0;
}

#options.active {
    display: flex;
    gap: 3px;
    height: fit-content;
    max-height: 60vh;
    width: fit-content;
    width: 105px;
    max-height: 30vh;
    padding: 1%;
    overflow-y: scroll;
    overflow-x: hidden;
    object-fit: cover;
    opacity: 1;
}

.option {
    color: black;
    height: 0;
    width: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    border-radius: 5px;
    border: none;
    padding: 0;
    transition: all 0.1s ease-in-out;
}

.option.active {
    cursor: pointer;
    display: inline;
    text-align: center;
    margin: auto;
    height: 35px;
    width: 100px;
    opacity: 1;
    visibility: visible;
    font-size: medium;
    margin-top: 1vh;
    overflow-y: scroll;
    transform: unset;

}

.option.active:hover {
    transition: all unset;
    transform: scale(1);
    background-color: #f37e10;
    color: black;
}

.option.active:focus {
    transform: scale(calc(1 - 2px)) translateY(-2px);
    background-color: #ff6f00;
    color: black;
}

.option.active:active {
    transform: scale(calc(1 - 4px)) translateY(-2px);
    color: black;
}

.option#deal {
    background-color: #ff7d6c;
}

.option#hit {
    background-color: #c1ff6a;
}

.option#stand {
    background-color: #ffff60;
}

.option#surrender {
    background-color: #ff6363;
}

.option#split {
    background-color: rgb(248, 117, 255);
}
.option#split {
    background-color: #84bfff;
}

.option.active {
    margin: auto;
}


#chips {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);

    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0px;

    min-width: 420px;
    max-height: 70px;
    height: 70px;
    z-index: 1;
    overflow: visible;
}

.chips {
    display: block;
    width: 70px;
    height: 70px;
    cursor: pointer;
    object-fit: scale-down;
}



.betChip {
    position: absolute;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    z-index: 1;
}

#pot {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    height: 70px;
    width: 70px;
    max-height: 7vh;
    position: absolute;
    bottom: calc(85px + 70px + 7vh);
    left: 50%;
    transition: all 0.25s ease-out;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    border-radius: 10px;
    z-index: 1;

}

.chip-cont {
    position: absolute;
    top: 0;
}

.hidden {
    display: none;
}


.hand.active {
    position: fixed;
    display: flex;
    flex-direction: row;
    gap: 2px;
    height: 20vh;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    min-width: calc(4px+(19vh * 0.7794849579) * 2);
    width: calc(4px+(19vh * 0.7794849579) * 2);
    max-width: calc((19vh * 0.7794849579)* 2.5);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    overflow-x: scroll;
    overflow-y: visible;
    scroll-behavior: smooth;
}

.hand {
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

@media (orientation: landscape){
	.hand.active{

	    position: fixed;
	    display: flex;

	justify-content:space-between;
	
	    flex-direction: row;
	    gap: 2px;
	    height: 20vh;
	    left: 50%;
	    transform: translateX(-50%);
	    -webkit-transform: translateX(-50%);
		 transition: width 0.4s ease;
min-width: calc(4px+(19vh * 0.7794849579) * 2);

		width:fit-content;
max-width:max-content;

	}
	.hand.active > .card {
		margin:auto;	

	}
}

.hand.active#player-hand {
    bottom: 10vh;
    overflow: visible;
}

.hand.active#dealer-hand {
    top: 7vh;
    overflow: visible;
}

.scores {
    border: black solid 1px;
    border-radius: 50%;
    height: 55px;
    width: 55px;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: larger;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.scores#dealer-scores {
    position: absolute;
    top: calc(10vh + 7vh - 22.5px);
    right: 5%;
    margin-top: 0;
}

.scores#player-scores {
    position: absolute;
    bottom: calc(10vh + 7vh - 22.5px);
    right: 5%;
    margin-top: 0;
}

.card,
.smallCard {
    position: relative;
    display: flex;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    border-radius: 10px;
    background-color: rgb(242, 209, 186);
}

.card {
    flex-direction: column;
    flex: 0 0 auto;
    height: 19vh;
    width: calc(19vh * 0.7794849579);
}

.smallCard {
    flex-direction: row;
}

.card >.suit,
.card >.smallSuit {
    margin: auto;
    padding: 5%;
    font-weight: bold;
    text-align: center;
    font-weight: normal;
    font-style: normal;

}



.card>.smallSuit {
    font-size: 2vh;
    border: unset;
    border-radius: unset;
    flex-direction: row;

}

.card>.suit {
    font-size: 3.75vh;
    border: solid 3px;
    border-radius: 5px;
    flex-direction: column;
}


#player-hand>.card {
    animation: playerDeal 0.7s ease-out forwards;
}

#dealer-hand>.card {
    animation: playerDeal 1s ease-in-out forwards;
}

@keyframes playerDeal {
    0% {
        transform: translate(50vw, -100vh);
        overflow-x: visible;
        overflow-y: visible;
    }

    100% {
        transform: translate(0, 0);
        overflow-x: hidden;
        overflow-y: hidden;
    }
}

#splitHandCardCont {
    display: grid;
    max-width: 14vw;
    gap: 5px;
    position: absolute;
    bottom: calc(9.5vh + 5vh - 22.5px);
    left: 5%;
    margin-top: 0;
    margin: auto;
}

#splitHandCardCont>.smallCard {
    padding: 5%;
    width: 10vw;
    width: 5vw;
    min-width: fit-content;
}

.informatic.active {
    top: 0;
    left: 0;
    width: 100%;;
    min-height: 100vh;
    position: absolute;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
    visibility: visible;
    z-index: 999;
    overflow: hidden;
}


@media (max-width: 222.5px),
(max-height: 555px) {
    .pre {
        top: 0;
        left: 0;
        min-width: 100vw;
        width: 99vw;
        min-height: 100vh;
        position: absolute;
        display: flex;
        justify-content: center;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 1;
        visibility: visible;
        z-index: 999;
        transition: all 0.2s ease-in-out;
        -webkit-transition: all 0.2s ease-in-out;
        overflow: hidden;
        background-color: #123F00;
        cursor: not-allowed;
    }

    .pre>h1 {
        color: white;
        -webkit-text-stroke: 1px black;
    }
}


@media (orientation: landscape) {
    table>* {
        border: unset;
    }

    table {
        margin: 20px auto;
        font-family: Arial, sans-serif;
        width: 30vw;
        background-color: rgba(0, 0, 0, 0);

    }

    th {

        text-align: left;
        padding: 3px 10px;
        width: 40%;
        width: 10vw;
        background-color: rgba(0, 0, 0, 0);
    }

    tr {
        width: 10vw;
        padding: 8px 10px;

        background-color: rgba(0, 0, 0, 0);
    }

    td {
        text-align: right;
        width: 20vw;
        background-color: rgba(0, 0, 0, 0);
    }

    #finances.active {
        position: unset;
        position: absolute;
        top: 2vh;
        left: 2vw;
        width: 30vw;
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: left;
        justify-content: space-between;
        color: white;
        opacity: 1;
        visibility: visible;
        transform: all 0.4s ease-in-out;
        -webkit-transform: all 0.4s ease-in-out;
        background-color: #123F00;
        z-index: 100;
    }

    #finances {
        opacity: 0;
        visibility: hidden;
        height: 20px;
        background-color: #123F00;
    }

    .finances#split-hands {
        flex-direction: row;
        background-color: #123F00;
    }

    .split-hands {
        display: flex;
        gap: 5px;
        justify-content: space-between;
        flex-direction: row;
    }

    .finances>div {
        margin: auto;
        display: flex;
        flex-direction: row;
        height: 10vh;
        width: 30vw;
        background-color: #123F00;
    }

    .finances {
        display: flex;
        justify-content: space-between;
        padding: 0;
        width: 30vw;
        background-color: #123F00;
    }

    .finances>h5 {
        margin: auto;
        margin: 0;
        background-color: #123F00;
    }
}

@media (orientation: portrait) {

    table {
        color: white;

        margin: 20px auto;
        font-family: Arial, sans-serif;
        background-color: #123F00;
        backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, 0);
        z-index: 1;
    }


    th {
        /* border:solid white 1px; */
        color: white;
        background-color: #123F00;
        text-align: left;
        padding: 3px 10px;
        width: 40%;
        backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, 0);

    }

    tr {
        color: white;
        padding: 8px 10px;
        backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, 0);
        /* border:solid white 1px; */
    }

    td {
        /* border:solid white 1px; */
    }
#finances{
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
}
    #finances.active {

        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transition: all 0.4s ease-in-out;
        -webkit-transition: all 0.4s ease-in-out;
        width: 80vw;
        height: 10vh;
        min-height: fit-content;
        max-height: 50vh;

        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: left;
        justify-content: space-between;
        color: white;
        opacity: 1;
        visibility: visible;

        background-color: #123F00;
        z-index: 5;
        border: solid white 2px;
        border-radius: 10px;
        padding: 1%;

    }

    #finances {
        opacity: 0;
        visibility: hidden;
    }

    .finances#split-hands {

        flex-direction: row;
    }

    .split-hands {
        display: flex;
        gap: 5px;
        justify-content: space-between;
        flex-direction: row;
        border: unset;
    }

    .finances>div {
        margin: auto;
        height: 10vh;
        border: unset;
    }

    .finances {
        display: flex;
        justify-content: space-between;
        padding: 0;
        border: unset;
    }

    .finances>h5 {
        margin: auto;
        margin: 0;
    }

}


button {
    background-color: #DAC287;
    color: #111;
    border: none;
    padding: 10px 16px;
    margin: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #f0d89b;
}

button:active {
    transform: scale(0.98);
}

/* ===== Sections ===== */
section {
    opacity: 1;
    visibility: visible;
    padding: 20px;
    border-radius: 8px;
    max-height: 55vh;
    max-width: 80vw;
    width: 350px;
    height: 350px;

    backdrop-filter: blur(10px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-content: baseline;

    color: white;

    background-image: url('../assets/graphics/backgrounds/background.png');
    overflow-y: scroll;
}

section>h2 {
    font-size: 2.3em;
    height: 50px;
    max-height: 5vh;
    color: #DAC287;
    display: block;
    overflow: visible;
    -webkit-text-stroke: 1px white;
}

section>hr {
    margin: auto;
    width: 60px;
}

section>* {
    width: 320px;
    max-width: 80vw;
}

section>p {
    display: block;
    max-height: 45vh;
    margin: auto;
}

section[hidden] {
    opacity: 0;
    border: 1px solid white;
    z-index: -5;
    visibility: hidden;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    font-size: 0.9em;
    color: #ccc;
    margin-top: 30px;
}

footer a {
    color: #DAC287;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

main {
    width: 450px;
    height: 450px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    margin: auto;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: center;
    align-content: center;
    border-radius: 10px;
    overflow-y: scroll;
    overflow-x: hidden;
    background: none;
}

label {
    width: 150px;
    padding: 0.8rem;
    font-size: 1.2rem;
    margin: 0;
    text-align: left;
    color: white;
}

form {
    margin: auto;
    padding: 1%;
    text-align: center;
    width: 400px;
    max-width: 65vw;
    height: 250px;
    min-height: fit-content;
    max-height: 50vh;
    display: flex;
    gap: 2px;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-x: hidden;
    overflow-y: scroll;
    background: none;
}

.button-cont {
    margin: auto;
    text-align: center;
    align-items: center;
    margin-top: 15px;
    color: white;
    max-width: 80vw;
}

input,
a,
button {
    margin: auto;
    padding: 0.8rem;
    width: 150px;
    max-width: 80vw;
    margin-top: 2px;
    max-height: 20vh;
    border-radius: 10px;
    font-size: large;
}
a:hover {
    cursor: pointer;
    color: unset;
    color: #e99b53;
}


input:not(input[type="submit"]) {
	-webkit-user-select:unset;

	-webkit-user-select:auto;

    border: none;
    background-color: transparent;
    backface-visibility: hidden;
    -webkit-text-fill-color: inherit;
    background-color: rgb(240, 218, 174);
    color: #642b0f;
}



input[type="submit"] {
    font-family: 'Oswald';
    cursor: pointer;
    margin: auto;
    padding: 0rem;
    
    width: 150px;
    max-width: 80vw;

    height: 25px;
    max-height: 20vh;

    margin-top: 2px;
    
    border-radius: 10px;
    font-size: 20px;
    background-color: #e99b53;
    color: #3d2300;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
}

input[type='submit']:hover {
    transform: scale(1.1);
    background-color: #f37e10;
}

input[type='submit']:focus {
    transform: scale(1.1);
    background-color: #ff6f00d5;
}

input[type='submit']:active {
    transform: scale(1.1);
    background-color: rgb(240, 218, 174);
}

input::-webkit-input-placeholder {
    position: relative;
    font-size: large;
    top: 0;
}

input {
}
