/* start loading image */
#loading-background { display: none; position: fixed; z-index: 998; top: 0; left: 0; width: 100%; height: 100%; background-color: black; opacity: 0.4; }
#loading-image { display: none; position: fixed; z-index: 999; top: 50%; left: 50%; width: 100%; height: 100%; }
.smiley { width: 50px; height: 50px; }
.smiley__eye1,
.smiley__eye2,
.smiley__mouth1,
.smiley__mouth2 {
    animation: eye1 3s ease-in-out infinite;
}
.smiley__eye1,
.smiley__eye2 {
    transform-origin: 64px 64px;
}
.smiley__eye2 {
    animation-name: eye2;
}
.smiley__mouth1 {
    animation-name: mouth1;
}
.smiley__mouth2 {
    animation-name: mouth2;
    visibility: hidden;
}

/* Animations */
@keyframes eye1 {
    from {
        transform: rotate(-260deg) translate(0,-56px);
    }
    50%,
    60% {
        animation-timing-function: cubic-bezier(0.17,0,0.58,1);
        transform: rotate(-40deg) translate(0,-56px) scale(1);
    }
    to {
        transform: rotate(225deg) translate(0,-56px) scale(0.35);
    }
}
@keyframes eye2 {
    from {
        transform: rotate(-260deg) translate(0,-56px);
    }
    50% {
        transform: rotate(40deg) translate(0,-56px) rotate(-40deg) scale(1);
    }
    52.5% {
        transform: rotate(40deg) translate(0,-56px) rotate(-40deg) scale(1,0);
    }
    55%,
    70% {
        animation-timing-function: cubic-bezier(0,0,0.28,1);
        transform: rotate(40deg) translate(0,-56px) rotate(-40deg) scale(1);
    }
    to {
        transform: rotate(150deg) translate(0,-56px) scale(0.4);
    }
}
@keyframes eyeBlink {
    from,
    25%,
    75%,
    to {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0);
    }
}
@keyframes mouth1 {
    from {
        animation-timing-function: ease-in;
        stroke-dasharray: 0 351.86;
        stroke-dashoffset: 0;
    }
    25% {
        animation-timing-function: ease-out;
        stroke-dasharray: 175.93 351.86;
        stroke-dashoffset: 0;
    }
    50% {
        animation-timing-function: steps(1,start);
        stroke-dasharray: 175.93 351.86;
        stroke-dashoffset: -175.93;
        visibility: visible;
    }
    75%,
    to {
        visibility: hidden;
    }
}
@keyframes mouth2 {
    from {
        animation-timing-function: steps(1,end);
        visibility: hidden;
    }
    50% {
        animation-timing-function: ease-in-out;
        visibility: visible;
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -351.86;
    }
}
/*end loading image*/

div.container {
    width: 90vmin;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2vw auto;
    height: 100%;
}

div.header {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    align-items: center;
}

div.header div.title {
    font-size: 20pt;
    font-weight: 700;
}

div.row {
    display: flex;
    gap: 5px;
    text-align: center;
    justify-content: center;
    margin: 10px;
}

div.row div.col {
    width: 15%;
    border: 1px solid #C8C8C8;
    border-radius: 3px;
    align-items: center;
    align-content: center;
    font-size: 13pt;
    font-weight: 400;
    aspect-ratio: 1 / 1;
}

div.row div.col.active {
    border-color: #000000;
}

div.row div.col.incorrect {
    border-color: #FF2424;
    color: #FF2424;
}

div.keyboard div.row {
    gap: 3px;
}

div.key {
    width: 8vw;
    height: 5.5vh;
    border: 1px solid #C8C8C8;
    border-radius: 3px;
    align-items: center;
    align-content: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 13pt;
}

div.btn-key {
    width: 10vw;
}

div.separator {
    height: 2vh;
}

.done {
    color: white;
}

.correct {
    background-color: #22C55E;
    border-color: #22C55E;
}

.exists {
    background-color: #EAB308;
    border-color: #EAB308;
}

.none {
    background-color: #94A3B8;
    border-color: #94A3B8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    width: 90vw;
    height: 60vh;
    background-color: #F0F0F0;
}

div.hint-area {
    font-size: 15pt;
    font-weight: 500;
    text-align: left;
    margin-left: 5vw;
    color: #000000;
    height: 3vh;
}

.buttons {
    gap: 2px;
}

.buttons span {
    font-size: 15pt;
}
