/* ================= LETTERS ================= */
#letter-container {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem 0.5rem 2rem 2rem;
    background-color: rgba(255, 240, 200, 0.08);
    color: var(--accent-color);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 25px rgba(255, 150, 50, var(--fire));
    transition: box-shadow 0.5s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-3.5rem);
    width: 90%;
}

.word {
    display: flex;
}

.letter {
    min-width: 20px;
    min-height: 50px;
    font-size: 1.75rem;
    text-align: center;
    align-content: center;
    line-height: 1.5;
    color: var(--accent-color);
}

.incorrect {
    background-color: darkred;
}

.current {
    position: relative;
}

.current:after {
    content: "";
    bottom: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

/* ================= HUD ================= */
#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* ================= FIRE DISPLAY ================= */
#fire-container-outer {
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc((40%) / 2);
}

#fire-container {
    transform-origin: bottom center;
    transform: scale(calc(0.5 + 0.5 * var(--fire)));
    filter: brightness(calc(0.6 + 0.7 * var(--fire))) saturate(calc(0.7 + 0.6 * var(--fire)));
    opacity: var(--fire);
    transition: all 0.5s ease;
    bottom: calc(var(--fire) * 20px);
    position: relative;
}

/* container class name left intact from https://codepen.io/dazulu/pen/nPeEeG */
#fire-container .container {
    margin: 0;
}