@font-face {
    font-family: 'Libre Franklin';
    src: url('fonts/LibreFranklin-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}
@keyframes pop {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.pop {
    animation: pop 0.3s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-7px); }
    40%       { transform: translateX(7px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease;
}
body {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
}

#game {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0px;
    align-items: center;
}

#game-area {
    position: relative;
    width: calc(3 * 8px + 4 * 150px);
    height: calc(4 * 80px + 3 * 8px);
}

#solved {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.solved_row {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.solved_row h3,
.solved_row p {
    margin: 0;
}
#board {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 80px;
    gap: 8px;
}

.word_button {
    background-color: #efefe6;
    width: 100%;
    height: 80px;
    border: 0px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
}

.selected_button {
    background-color: #5a594e;
    color: #f8f8f8;
}

.solved_button {
    pointer-events: none;
}

.lives {
    display: flex;
    align-items: center;
    margin-top: 2px;
    gap: 10px;
    font-size: 14px;
    color: #5a594e;
}

.mark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #5a594e;
}

@keyframes plop {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

.mark.guessed {
    animation: plop 0.3s ease forwards;
}

.inputs {
    display: flex;
    gap: 10px;
    height: 48px;
    margin-top: 13px;
}

.inputs button {
    background-color: transparent;
    border: 1px solid #121212;
    border-radius: 999px;
    padding: 12px 20px;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.inputs button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.yellow { background-color: #f9df6d; }
.green  { background-color: #a0c35a; }
.blue   { background-color: #b0c4ef; }
.purple { background-color: #ba81c5; }
