@font-face {
    font-family: "Adabelle";
    src: url("./assets/fonts/Adabelle.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    color: #ebdec7;
    /* background-color: #755609; */
    background-image: url('./assets/woodbg.png');
    background-size:cover;
    background-position: center;

    text-align: CENTER;
    font-family: "Adabelle", cursive;

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

    overflow-x: hidden;
}


.intro-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    width: 100vw;

    padding: clamp(16px, 4vw, 40px);
}

.t {
    display: flex;
    
    align-items: center;
    justify-content: center;
    flex-basis: clamp(60px, 10vh, 100px);

    letter-spacing: 0.02em;
}

.title {
    background-color: #898989;
    border-radius: 18px;
    /* box-width: 400px;
    height: 80px; */

    padding: clamp(10px, 2vw, 20px);
    font-size: clamp(36px, 8vw, 64px);
}
.title:hover {
    scale: 110%;
    rotate: -10deg;
    transition: ease 0.3s;
}
.title:not(:hover) {
    scale: 100%;
    rotate: 0deg;
    transition: ease 0.3s;
}

.description {
    font-size: clamp(24px, 3vw, 30px);
}

.numOfPlayTxt {
    font-size: clamp(30px, 5vw, 40px);
}


#btn {
    width: clamp(80px, 15vw, 100px);
    font-family: "Adabelle", cursive;;
    font-size: clamp(24px, 3vw, 30px);

    border-radius: 20px;
    border-width: 1.5px;
    border-color:#000000;
    border-style: solid;

    padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 10px);
    margin-left: 1px;

    cursor: pointer;

    color: #ebdec7;
    background-color: #898989;
    border-color: black;

    text-align: center;
}
#btn:hover {
    color: #898989;
    background-color: #ebdec7;
    border-color: #898989 !important;
}

.player-choice {
    margin: clamp(10px, 1vw, 30px);
}

.player-btn {
    border-radius: 20px;
    border-width: 3px;
    border-style: solid;

    background-color: #898989;
    color: #ebdec7;
    border-color: #898989;

    padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 10px);
    margin-left: 1px;
    margin-bottom: 5px;
    
    font-family: "Adabelle", cursive;;
    font-size: clamp(24px, 3vw, 30px);
    /* font-weight: bold; */
    
    width: clamp(80px, 30vw, 130px);

    cursor: pointer;
}
.player-btn:hover {
    color: #898989;
    background-color: #ebdec7;
    border-color: #898989 !important;
}

#Pone {
    border-color: #d57475;
}
#Ptwo{
    border-color: #00ccffff;
}
#Pthree {
    border-color: #28c900ff;
}
#Pfour {
    border-color: #ffde59;
}


.start-game-btn {
    border-radius:20px;
    border-width: 3px;

    background-color: #898989;
    color: #ebdec7;
    border-color: #000000;

    padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 10px);
    margin-left: 1px;
    margin-bottom: 5px;

    font-size: clamp(24px, 3vw, 30px);

    cursor: pointer;
}
.start-game-btn:hover {
    color: #898989;
    background-color: #ebdec7;
}


.help-btn {
    width: clamp(90px, 15vw, 115px) !important;

    border-radius: 20px;
    border-width: 3px;

    background-color: #898989;
    color: #ebdec7;
    border-color: #898989;

    padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 10px);
    margin-left: 1px;
    margin-bottom: 5px;

    font-size: clamp(24px, 3vw, 30px);

    cursor: pointer;
    width: 150px !important;
}
.help-btn:hover {
    color: #898989;
    background-color: #ebdec7;
}


.how-to-play {
    position: fixed;
    top: clamp(8px, 2vw, 15px);
    right: clamp(8px, 2vw, 15px);
    z-index: 50;
}

.instructions {
    display: none; 
    position: fixed;

    top: clamp(40px, 8vw, 50px);
    left: clamp(40px, 3vw, 50px);
    z-index: 100;

    width: clamp(220px, 45vw, 500px);
    padding: 10px;

    border-radius: 15px;
    border: 3px solid #898989;
    
    background-color: #ebdec7;
    color: #333;

    text-align: left;

    font-size: clamp(22px, 2.8vw, 25px);

    cursor: grab;
    user-select: none;

}


.dice-cont {
    display: flex;
    justify-content: center;

    position: fixed;
    top: 5%;
    left: 50%;

    margin-top: 1.5%;

    transform: translateX(-50%);
    z-index: 10;
}

.dice {
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    position: relative;
    margin: clamp(3px, 0.5vw, 5px);

    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(0, 0, 0, .25);
}

.dice-dot {
    --top: 0%; 
    --left: 0%; 

    background-color:rgb(0, 0, 0);
    width: clamp(9px, 1.5vw, 15px);
    height: clamp(9px, 1.5vw, 15px);
    border-radius: 50%;

    position: absolute;
    top: var(--top);
    left: var(--left);
    transform: translateX(calc(var(--left) * -1)) translateY(calc(var(--top) * -1)) /*centers the dot*/

}

.roll-dice-button {
    position: fixed;

    z-index: 1000;

    top: 22%;
    /* left: calc(50% - clamp(45px, 1px, 70px)); */
    left: calc(50%);
    transform: translateX(-50%);

    border-radius: 5px;

    background-color: #898989;
    color: #ebdec7;
    border-color: #898989;

    padding: 3px 10px;
    margin-left: 1px;
    margin-bottom: 5px;

    width: clamp(130px, 5vw, 200px) !important;

    font-size: clamp(24px, 3vw, 30px);

    cursor:pointer;
}
.roll-dice-button:hover {
    color: #898989;
    background-color: #ebdec7;
}

/* 
.move-player-button {
    position: fixed;
    top: clamp(100px, 17vh, 125px);
    left: calc(50% + clamp(5px, 1vw, 10px));

    /* margin-left: 100px; 

    border-radius: 5px;

    background-color: #898989;
    color: #ebdec7;
    border-color: #898989;

    padding: 3px 10px;
    margin-left: 1px;
    margin-bottom: 5px;
    
    font-size: clamp(12px, 1.5vw, 15px);

    cursor:pointer;
}
.move-player-button:hover {
    color: #898989;
    background-color: #ebdec7;
} 
*/

.card-piles {
    /* image-rendering: crisp-edges;  */
    /* image-rendering: pixelated; */
    position: fixed;

    top: 50%;
    left: clamp(5px, 8vw, 15%);

    transform: translateY(-25%);
    
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: clamp(4px, 1vw, 10px); */
    
    z-index: 3;

    scale: 140%;
}

.red-card {
    width: clamp(60px, 10vw, 100px);
    height: clamp(90px, 15vw, 150px);
    background-image: url('./assets/back-of-card/red-back-card.png');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-color: #d57475; 
    border-radius: 10px;
    margin: clamp(4px, 1vw, 10px);

    border-style: solid;

    cursor: pointer;

    transition: scale 0.15s ease;
}
.red-card:hover {
    scale: 110%;
}

.blue-card {
    width: clamp(60px, 10vw, 100px);
    height: clamp(90px, 15vw, 150px);
    background-image: url('./assets/back-of-card/blue-back-card.png');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-color: #00ccffff; 
    border-radius: 10px;
    margin: clamp(4px, 1vw, 10px);

    border-style: solid;

    cursor: pointer;

    transition: scale 0.15s ease;
}
.blue-card:hover {
    scale: 110%;
}

.green-card {
width: clamp(60px, 10vw, 100px);
    height: clamp(90px, 15vw, 150px);
    background-image: url('./assets/back-of-card/green-back-card.png');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-color: #28c900ff; 
    border-radius: 10px;
    margin: clamp(4px, 1vw, 10px);

    border-style: solid;

    cursor: pointer;

    transition: scale 0.15s ease;
    
}
.green-card:hover {
    scale: 110%;
}

.yellow-card {
    border-style: solid;
    width: clamp(60px, 10vw, 100px);
    height: clamp(90px, 15vw, 150px);
    background-image: url('./assets/back-of-card/yellow-back-card.png');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-color: #ffde59; 
    border-radius: 10px;
    margin: clamp(4px, 1vw, 10px);

    border-style: solid;

    cursor: pointer;

    transition: scale 0.15s ease;
}
.yellow-card:hover {
    scale: 110%;
}

.big-red-card {
    width:  clamp(120px, 20vw, 200px);
    height: clamp(180px, 30vw, 300px);
    
    transform: translateY(10%);

    display: flex;
    
    background-color: #d57475;
    border-radius: 10px;
    margin: 10px;
}

.big-blue-card {
    width:  clamp(120px, 20vw, 200px);
    height: clamp(180px, 30vw, 300px);
    
    transform: translateY(10%);
    
    background-color: #00ccffff;
    border-radius: 10px;
    margin: 10px;
}

.big-green-card {
    width:  clamp(120px, 20vw, 200px);
    height: clamp(180px, 30vw, 300px);
    
    transform: translateY(10%);
    
    background-color: #28c900ff;
    border-radius: 10px;
    margin: 10px;
}

.big-yellow-card {
    width:  clamp(120px, 20vw, 200px);
    height: clamp(180px, 30vw, 300px);
    
    transform: translateY(10%);
    
    background-color: #ffde59;
    border-radius: 10px;
    margin: 10px;
}

.exercise-card {
    display: flex;
    flex-direction: column;
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 11;

    align-items: center;
    justify-content: center;
}

.close-card {
    margin: 10px;
    display: none;
    /* display: flex; */

    border-radius: 5px;

    background-color: #898989;
    color: #ebdec7;
    border-color: #898989;

    padding: 3px 10px;
    margin-left: 1px;
    margin-bottom: 5px;

    font-size: clamp(24px, 3vw, 30px);

    transform: translateY(50%);

    cursor: pointer;
}
.close-card:hover {
    color: #898989;
    background-color: #ebdec7;
}


.restart-button {
    border-radius: 5px;

    width: clamp(130px, 20vw, 180px) !important;

    background-color: #898989;
    color: #ebdec7;
    border-color: #898989;

    padding: 3px 10px;
    margin: 0;

    font-size: clamp(24px, 3vw, 30px);
    white-space: nowrap;

    cursor: pointer;
}
.restart-button:hover {
    color: #898989;
    background-color: #ebdec7;
}

.restart {
    position: fixed;
    top: clamp(8px, 2vh, 15px);
    left: calc(clamp(8px, 2vw, 15px) + clamp(80px, 14vw, 110px));

    display:flex;
    align-items: center;
}

.back-to-home {
    position: fixed;
    top: clamp(8px, 2vh, 15px);
    left: clamp(8px, 2vw, 15px);

    display:flex;
    align-items: center;

    gap: 8px;
    
    z-index: 10000;
}

.turn-display {
    font-size: clamp(24px, 3vw, 30px);
}


.game-screen {
    display: none;
    width: 100vw;
    height: 100vh;

    position: relative;
}

.win-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100vh;

    position: fixed;

    z-index: 5;
}

.congrats {
    font-size: clamp(30px, 5vw, 40px);
}

.text {
    font-size: clamp(24px, 3vw, 30px);
}

.cont-play-btn {
    width: clamp(100px, 20vw, 130px) !important;
}

.p5Canvas {
    display: flex;

    display: none;

    position: absolute;

    top: 10%;
    right: 5%;

}

.spotify {
    position: fixed;
    bottom: clamp(8px, 2vw, 15px);
    right: clamp(8px, 2vw, 15px);
    z-index: 100000;
}
.music-player {
    display: none;

    cursor: grab;
    user-select: none;

    padding-top: 8px;
}

.slide-out-up {
    animation: slideOutUp 0.5s ease;
}
@keyframes slideOutUp {
    from {
        transform: translateY(0);
    } to {
        transform: translateY(-100vh);
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease;
}
@keyframes slideInUp {
    from {
        transform: translateY(100vh);
    } to {
        transform: translateY(0);
    }
}

.slide-out-down {
    animation: slideOutDown 0.5s ease;
}
@keyframes slideOutDown {
    from {
        transform: translateY(0);
    } to {
        transform: translateY(100vh);
    }
}

.slide-in-down {
    animation: slideInDown 0.5s ease;
}
@keyframes slideInDown {
    from {
        transform: translateY(-100vh);
    } to {
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.5s ease;
}
@keyframes fadeOut {
    from {
        opacity: 1;
    } to {
        opacity: 0;
    }
}



/*tablet*/
@media (max-width: 768px) {

}

/* Mobile*/
@media (max-width: 480px) {

}

/*anything smaller than mobile?!*/
@media (max-width: 320px) {

}