@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
}

html, body{
    width: 100%;
    scroll-behavior: smooth;
}

.slide{
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;

    font-family: "Montserrat", sans-serif;
    color: #0C2E29;
}

.history{
    background-image: url(images/KitchenBackground.svg);
    background-position: center bottom;
    background-repeat: none;
    background-size: cover;

    border-bottom: 10px solid black;

    display: flex;
}

.hidden{
    display: none;
}

.history .hand img{
    height: 98vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;

    animation: moveHand 0.8s cubic-bezier(.64,0,.38,.99) 0s 1 normal forwards;
}

@keyframes moveHand{
    0%{
        height: 0vh;
    }
    40%{
        height: 150vh;
    }
    50%{
        height: 150vh;
    }
    60%{
        height: 150vh;
    }
    100%{
        height: 0vh;
    }
}

.history .perso{
    width: 50%;
}

.hiddenPerso{
    display: none;
    height: 0vh;

    .hidden{
        display: none;
    }
}

.history .perso img{
    height: 95vh;
    position: relative;
    top: 10vh;
    left: 60%;
    transform: translateX(-50%);
    transform-origin: bottom;

    animation: iddle 0.06s ease-in-out 1s infinite alternate-reverse forwards;

    transition: height 0.2s ease-in;
}

@keyframes iddle{
    from {transform: rotate(0.1deg) translateX(-50%);}
    to {transform: rotate(-0.1deg) translateX(-50%);}
}

.history .explanation{
    width: 50%;
    margin-right: 5%;
    padding: 15px 0px 30px 0px;
    max-height: 40vh;
    background-color: rgb(255, 255, 255, 0.8);
    border-radius: 20px;
    position: relative;
    top: 40vh;
    transform: translateY(-50%) scale(0);

    display: flex;
    justify-content: center;
    align-items: center;

    transition: transform 0.3s ease-in;
}

.show {
    transform: translateY(-50%) scale(1)!important;
}

.history .explanation .text{
    width: 90%;
}

.history .explanation .text h3{
    margin-bottom: 15px;
}

.history .explanation .scroll{
    width: 75%;
    height: 40px;
    background-color: #DFCE54;
    border-radius: 20px;
    text-align: center;
    line-height: 40px;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translate(-50%, -50%);

    cursor: pointer;
}

.history .explanation .scroll p{
    font-weight: 600;
}

.history .explanation .scroll div{
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #DFCE54;

    margin: 0 auto;
}

.game{
    background-image: url(images/KitchenFloor.svg);
    background-position: right top;
    background-repeat: none;
    background-size: cover;
    font-weight: 700;
    z-index: 15;
}

.game .score{
    width: 170px;
    height: 50px;
    background-color: #8DDCD6;
    text-align: end;
    padding-right: 15px;
    line-height: 50px;
    border-radius: 30px;
    margin-top: 20px;

    position: relative;
    left: -50px;
    z-index: 3;
}

.game .time{
    width: 130px;
    height: 50px;
    background-color: #8DDCD6;
    text-align: end;
    padding-right: 15px;
    line-height: 50px;
    border-radius: 30px;
    margin-top: 20px;

    position: relative;
    left: -50px;
    z-index: 3;
}

.game .stateOfGame{
    width: 300px;
    height: 250px;
    background-color: #DFCE54;
    border-radius: 100% 100% 20px 20px;
    text-align: center;

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

    display: flex;
    flex-direction: column;

    cursor: pointer;
    z-index: 3;

    transition: all 0.2s ease-in;
}

.pause{
    width: 50px!important;
    height: 50px!important;
    background-color: #8DDCD6!important;
    border-radius: 100%!important;
    line-height: 50px;
    text-align: center;

    left: 40px!important;
    top: 30vh!important;
}

.pauseTheGame{
    width: 50px;
    height: 50px;
    background-color: #8DDCD6;
    border-radius: 100%;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    color: rgb(12, 46, 41, 0);

    position: absolute;
    left: 40px;
    top: 30vh;
    transform: translate(-50%, -50%) scale(0);

    transition: all 0.2s ease-in;
}

.gamePaused{
    transform: translate(-50%, -50%) scale(1);
    color: rgb(12, 46, 41, 1);
}

.arrowPaused{
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 20px solid #0C2E29;
    margin: 15px 12px 0 auto;
}

.game .stateOfGame .arrow{
    width: 0; 
    height: 0; 
    border-top: 60px solid transparent;
    border-bottom: 60px solid transparent;
    border-left: 70px solid #0C2E29;
    margin: 40px auto;
    margin-left: 50%;
    transform: translateX(-30%);
}

.game .container{
    width: 100%;
    height: 100vh;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    cursor: crosshair;
}

#roach{
    height: 200px;
    width: 150px;
    position: absolute;
    bottom: -30vh;
}

#youpee{
    width: 50%;
    height: 50vh;
    display: flex;
    flex-direction: column;
    padding: 10px;

    position: absolute;
    z-index: 15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #DFCE54;
    border-radius: 20px;
}

#youpee h3, #youpee p{
    margin-bottom: 25px;
    text-align: center;
}

#youpee button{
    background-color: #8DDCD6;
    border-radius: 20px;
    padding: 10px;
    border: none;
    min-width: 250px;
    font-family: "Montserrat", sans-serif;
    color: #0C2E29;
    line-height: 36px;
    font-weight: 700;
    cursor: pointer;
}



@media screen and (max-width: 900px) {
    .history .explanation{
        max-height: 45vh;
    }
}

@media screen and (max-width: 720px) {

    .history .explanation{
        max-height: 50vh;
    }

    .history .perso img{
        left: 50%;
    }

    .game .stateOfGame{
        width: 200px;
        height: 150px;
    }

    .game .stateOfGame .arrow{
        border-top: 30px solid transparent;
        border-bottom: 30px solid transparent;
        border-left: 40px solid #0C2E29;
        margin: 30px auto;
        margin-left: 50%;
        transform: translateX(-30%);
    }

    #youpee{
        width: 80%;
    }
}

@media screen and (max-width: 560px) {

    .history .explanation{
        width: 90%;
        max-height: 70vh;
        margin-right: 0;

        position: absolute;
        top: 68vh;
        left: 5%;
        transform: translate(-50%, -50%) scale(0);
    }

    .history .perso{
        width: 100%;
    }
}