html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Comic Neue', cursive, sans-serif;
    background: #f0f8ff;
    min-height: 100vh;
}
.container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 24px 0 8px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.question {
    width: 100%;
    font-size: 10rem;
    /* font-size: 14vh; */
    /* font-size: 3.5rem; */
    font-weight: bold;
    color: #333;
    text-align: center;
}
.score {
    font-size: 1.5rem;
    color: #4caf50;
}
.answers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-top: 8px;
    width: 100%;
    max-height: calc(2 * 120px + 16px); /* 2 rows of buttons + gap */
}
.answer-btn {
    font-size: 3.5rem;
    /* padding: 10px 10px; */
    padding: 0px 0px;
    margin: 0.2vw;  /* 8 px;*/
    border: none;
    border-radius: 16px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    flex: 0 0 120px; /* Prevent flex-grow/shrink, match width */
    width: 8.5vw; /* Fixed width for all buttons, adjust as needed */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    min-height: 80px;
    max-width: 300px;
    user-select: none;
}
.answer-btn.selected {
    background: #e3f2fd;
    color: #1976d2;
    transform: scale(1.08);
}
.answer-btn.correct {
    background: #c8e6c9;
    color: #388e3c;
}
.answer-btn.wrong {
    background: #ffcdd2;
    color: #d32f2f;
}
.animation {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    pointer-events: none;
    z-index: 100;
}
@media (max-width: 700px) {
    .container {
        width: 100vw;
        max-width: none;
        padding: 8px 0;
    }
    .question {
        font-size: 2rem;
    }
    .answer-btn {
        font-size: 1.2rem;
        min-width: 0;
        min-height: 30px;
        padding: 5px 5px;
        flex-basis: calc((100% - 9 * 8px) / 10); /* 10 per row, 9 gaps of 8px (if you use gap: 8px on mobile) */
    }
}
