* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Chiron Hei HK", sans-serif;
    font-optical-sizing: auto;
}

html {
    background-color: white;
}

.game {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.syllable {
    width: 56px;
    height: 56px;
    background-color: rgb(214, 214, 214);
    border-radius: 9px;
    text-align: center;
    font-size: 22px;
    align-content: center;
    font-weight: 800;
}

.syllable.correct {
    background-color: #0cc10c;
    box-shadow: 0px 0px 10px #17e817;
}

.syllable.almost {
    background-color: yellow;
}

.syllable.incorrect {
    background-color: gray;
}

#main-container {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.container-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    justify-content: center;
}

input, button {
    width: 120px;
}

#end-info {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #00000050;
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}


#word-info {
    background-color: #ffffffbb;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 10px;
    position: relative;
}

#word-info #close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: none;
    background-color: #000000;
    opacity: 0.8;
    color: white;
}

#word-info #close-btn:hover {
    cursor: pointer;
    opacity: 1;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: #e9e9ed;
    margin-bottom: 8px;
    padding: 8px;
    border-bottom: 1px solid #d0d0d7;
    font-style: italic;
}

header h1, h2 {
    font-weight: 300;
}

header h2 {
    font-style: italic;
}

audio {
    border-radius: 8px;
}

#keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.keyboard-key {
    width: 43px;
    height: 58px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px;
    box-shadow: 2px 2px 2px #00000029;
    border-radius: 5px;
    transition: 0.1s;
    background-color: #e9e9ed;
    color: black;
}

.keyboard-key:hover {
    cursor: pointer;
    transform: translateY(1px);
    background-color: #d0d0d7;
}

.keyboard-key:active {
    transform: translateY(2px);
    background-color: #b9b9c0;
}

.keyboard-key.big {
    width: 68px;
}

button.keyboard-key:disabled {
    opacity: 0.5;
    background-color: #00000050;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    max-width: 100vw;
    padding: 0 6px;
}

#input-show {
    background-color: #e9e9ed;
    font-size: 24px;
    width: 90%;
    padding: 6px;
    text-align: center;
    border-radius: 5px;
}

@media only screen and (max-width: 600px) {
    .game {
        width: 90%;
    }
}