/* Reset and basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Layout: Three sections (left, center, right) */
.container {
    display: flex;
    justify-content: space-between;

    width: 100%;
    max-width: 1200px;
    padding: 10px;
}

/* Word containers: vertical stacking of letters */
.word-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    align-items: center;
}


/* Each letter will be a grid of pixels (5 columns x 7 rows) */
.letter {
    display: grid;
    grid-template-columns: repeat(5, 10px);
    grid-auto-rows: 10px;
    gap: 0px;
}

/* Style for each pixel */
.pixel {
    width: 10px;
    height: 10px;
    background-color: #f0f0f0;
    border: 0.1px solid #f0f0f0;
}

/* When a pixel is “on” (part of the letter) */
.pixel.on {
    background-color: #000;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .letter {
        grid-template-columns: repeat(5, 10px);
        grid-auto-rows: 10px;
        gap: 0px;
    }

    .pixel {
        width: 10px;
        height: 10px;
    }
}

/* Main section for the quiz */
.main-section {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: top;
}

/* Quiz Container */
#quiz-container {
    text-align: center;
    width: 100%;
}

#quiz-container h1 {
    margin-bottom: 10px;
}

/* Title image placeholder */
#title-image {
    margin-bottom: 20px;
}

#title-image img {
    max-width: 100%;
    height: auto;
}

/* Quiz Card styling */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#question-text {
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Answer Buttons container */
#answer-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Answer Button styling */
.answer-button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #ddd;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.answer-button.correct {
    background: green;
    color: #fff;
}

.answer-button.wrong {
    background: red;
    color: #fff;
}

/* Mobile First Adjustments */
@media (max-width: 600px) {
    .container {
        /* flex-direction: column;
        align-items: center; */
    }
}

#final-images img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    /* centers the image and gives some spacing */
}