#exercise {
    max-width: 800px;
}

/**************** QUESTION ****************/
#question-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;
    margin-top: 30px;
}

#question-term {
    font-size: 32px;
    margin: 0;
}

#question-image {
    max-height: 200px;
}

#question-image[src=""] {
    display: none;
}

/**************** ANSWER ****************/
#answer-wrapper {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "article answer"
        ". correct";

    font-size: 46px;
    line-height: 1.3;
    text-transform: uppercase;
}

#answer, #correct {
    display: flex;
    padding: 2px;
    box-sizing: border-box;
}

#answer {
    background-color: var(--lightGrayHover);
    border: 2px var(--gray) solid;
    border-radius: 6px;
    grid-area: answer;
}

#correct {
    grid-area: correct;
}

#article {
    grid-area: article;
    margin-right: 1ch;
}

#correct:empty, #article:empty {
    display: none;
}

.letter {
    width: 1em;
    height: 1.3em;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}

#answer .letter {
    background-color: white;
    border: 1px var(--gray) solid;

    user-select: none;
    border-radius: 6px;

    cursor: pointer;
}

.letter.hidden {
    opacity: 0;
}
/**************** CORRECT AND WRONG ****************/
#answer.correct, #answer .letter.correct {
    border-color: var(--greenHover);
}

#answer.correct {
    animation: var(--animation-blink);
}

#answer.wrong, #answer .letter.wrong {
    border-color: var(--redHover);
}

#answer.wrong {
    animation: var(--animation-shake);
}




