


body {
    margin: 0;
    padding: 0;
    position: fixed;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100dvh;
}

.row1 {
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid gray;
}

h1 {
    margin-right: 3%;
    font-family: 'Open Sans', sans-serif;
    font-weight: 900;
    font-size: 2em;
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 2vw;
    position: absolute;
    left: 3%;
}

.big_cont {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.game_container {
    width: fit-content;
    max-width: 90%;
    min-width: 280px;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    align-items: center;
    perspective: 1000px;
    margin: 0.5% 0;
}

.game_row {
    width: auto;
    height: 15%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 0;
}

.square {
    height: 100%;
    max-height: 60px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(200, 200, 200, 0.5);
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 2em;
}

.square.nothing {
    background-color: rgb(120, 124, 126);
    border: none;
    color: white;
}
.square.near {
    background-color: rgb(201, 180, 88);
    border: none;
    color: white;
}
.square.exactly {
    background-color: rgb(106, 170, 100);
    border: none;
    color: white;
}


.keyboard-container {
    width: 30%;
    height: 25vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6%;
    direction: ltr;
    margin-bottom: 0.3%;
}

.keyboard-container .keyboard-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 30%;
}

.keyboard-container .keyboard-row .char, .button {
    width: 9%;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 1.2em;
    background-color: rgba(200, 200, 200, 0.5);
    border-radius: 6px;
    transform: scale(1);
    transition: transform 0.3s ease;
    margin-right: 1%;
}
.keyboard-container .keyboard-row .button.backspace {
    width: 18%;
    aspect-ratio: 4/3;
}
.keyboard-container .keyboard-row .button img {
    height: 60%;
    width: auto;
    opacity: 0.9;
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.keyboard-container .keyboard-row .char:hover, .button:hover {
    cursor: pointer;
}
.keyboard-container .keyboard-row .char:active, .button:active {
    transform: scale(0.8);
}

.keyboard-container .keyboard-row .char.empty {
    background-color: transparent;
}

.note {
    background-color: rgba(11, 13, 15, 0.9);
    position: absolute;
    top: 20%;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1em;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}

.note.enter {
    display: block;
    animation: slideUpFade 0.6s ease-out forwards;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(10vh);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


@media (max-width: 500px) {
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        position: absolute;
        bottom: 1px;
        left: 50%;
        transform: translateX(-50%);
    }

    .game_container {
        height: 60%;
    }

    .keyboard-container {
        height: 30%;
        width: 92%;
        gap: 1%;
    }

    .keyboard-container .keyboard-row .char, .button {
        font-size: 1.5em;
    }
}