.nick-input {
    text-align: center;
    margin: 25px;
    font-size: 2em;
    background: 0 0;
    border: none
}

.nick-input:focus {
    outline: 0
}

.font-score {
    font-size: 2em;
}

#score {
    font-size: 3.5em;
}

#score_up {
    padding: 4px 10px;
    border-radius: 0.5rem
}

#score_up span {
    color: white;
}

#timer_moves {
    margin-top: 20px;
    margin-bottom: 40px;
    place-content: center;
    align-items: center;
    flex-direction: row;
    box-sizing: border-box;
    display: flex;
    width: 100%;
}

#game_title_container {
    padding: 1rem 13rem;
    margin-bottom: -5rem;
    align-items: center;
    flex-direction: row;
    box-sizing: border-box;
    display: flex;
    flex: 1 1 0%;
}

#game_title {
    border-bottom: 1px solid var(--main_yellow);
    width: 200px;
}

.play-container {
    margin-top: 20px;
    position: relative;
}

.move_time_container {
    place-content: space-evenly;
    align-items: center;
    flex-direction: row;
    box-sizing: border-box;
    display: flex;
    flex: 1 1 100%;
    max-width: 50%;
}
#moves,#timer{
    color: white;
}
#moves span,#timer span{
    color: #7ebc52;
}
.memory-card {
    margin-top: 10px;
    width: 100%;
}

.play-overlay {
    display: flex;
    border-radius: 15px;
    height: 100%;
    margin: 10px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35%;
    box-shadow: 0 0 10px rgb(0 0 0 / 30%);
    /* background: rgb(253 249 249 / 89%); */
    background-color: rgba(235, 186, 3, 0.92);
    transform: translate(-50%, -50%);
    padding: 100px 0;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

#how_to_play {
    margin-bottom: 6.5rem;
}

#how_to_play > div:first-child {
    font-family: Arvo Bold, serif;
    margin-top: 2rem;
}


.card_animation {
    -webkit-animation: animate_card linear 0.35s;
    animation: animate_card linear 0.35s;
}

.card_deanimated {
    -webkit-animation: deanimate_card linear 0.35s;
    animation: deanimate_card linear 0.35s;
}

.card_hidden {
    -webkit-animation: hide_cards linear 0.3s;
    animation: hide_cards linear 0.3s;
}

.congratulations {
    min-width: 280px;
    min-height: 280px;
    height: 280px;
}

@keyframes animate_card {
    0% {
        -webkit-transform: rotate(0deg) scale(0.5);
        /* -webkit-transform: scale(0.5); */
        transform: rotate(0deg) scale(0.5);
        /* scale: 0.5; */
    }
    50% {
        -webkit-transform: rotate(180deg) scale(0.3);
        /* -webkit-transform: scale(0.3); */
        transform: rotate(180deg) scale(0.3);
        /* scale: 0.3; */
    }
    100% {
        -webkit-transform: rotate(720deg);
        transform: rotate(720deg);
    }
}

@keyframes deanimate_card {
    0% {
        -webkit-transform: rotate(0deg) scale(0.5);
        /* -webkit-transform: scale(0.5); */
        transform: rotate(0deg) scale(0.5);
        /* scale: 0.5; */
    }
    50% {
        -webkit-transform: rotate(-180deg) scale(0.3);
        /* -webkit-transform: scale(0.3); */
        transform: rotate(-180deg) scale(0.3);
        /* scale: 0.3; */
    }
    100% {
        -webkit-transform: rotate(-720deg)  scale(0);
        transform: rotate(-720deg) scale(0);
    }
}

@keyframes hide_cards {
    0% {
        -webkit-transform: rotate(0deg) scale(0.5);
        /* -webkit-transform: scale(0.5); */
        transform: rotate(0deg) scale(0.5);
        /* scale: 0.5; */
    }
    50% {
        -webkit-transform: rotate(-180deg) scale(0.3);
        /* -webkit-transform: scale(0.3); */
        transform: rotate(-180deg) scale(0.3);
        /* scale: 0.3; */
    }
    100% {
        -webkit-transform: rotate(-720deg) scale(0.1);
        /* -webkit-transform: scale(0.1); */
        transform: rotate(-720deg) scale(0.1);
        /* scale: 0.1; */
    }
}

@media screen and (max-width: 1350px) {
    .memory_container {
        max-width: 60%;
    }
    .play-overlay {
        width: 60%;
    }
}

@media screen and (max-width: 1220px) {
    .play-overlay {
        padding: 35px 0;
    }

    #how_to_play {
        margin-bottom: 3.5rem
    }
    .font-size-subtitle,#score {
        /*font-size: 2.5em;*/
    }
}


@media screen and (max-width: 1024px) {
    .memory_container {
        max-width: 65%;
    }

    .play-overlay {
        padding-top: 6rem;

        width: 65%;
        height: 100%;
    }

    #game_title_container {
        padding: 1rem 4rem;
        margin-bottom: 0;
    }

    #game_title {
        width: 110px;
    }
}

@media screen and (max-width: 821px) {
    .play-overlay {
        width: 75%;
        height: 100%;
    }

    .move_time_container {
        max-width: 95%;
    }


}

@media screen and (max-width: 599px) {
    .nick-input {
        font-size: 1.25em;
        width: 200px;
    }

    .bar-button-play-puzzle {
        font-size: 2.25rem;
        padding: 2px 15px;
        border-radius: 10px;
    }
}

@media screen and (max-width: 371px) {
    #how_to_play {
        align-items: start;
    }

    .bar-button-play-puzzle {
        font-size: 1.25rem;
        padding: 2px 15px ;
        border-radius: 10px;
    }
}