:root {
    --md-sys-color-primary: #006A6A;
    --md-sys-color-surface: #FAFDFC;
    --md-sys-color-on-surface: #191C1C;
    --md-sys-color-secondary: #4A6363;
    --md-sys-color-on-secondary: #FFFFFF;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.game-card {
    padding: 24px;
    margin-bottom: 20px;
}

.question-container {
    text-align: center;
    margin-bottom: 24px;
}

.question-container h2 {
    font-size: 2.5rem;
    margin: 0 0 16px 0;
}

.options-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.answer-button {
    min-width: 100px;
    padding: 8px 24px;
    font-size: 1.5rem;
    flex: 1;
    max-width: 160px;
    height: 48px;
    background-color: var(--md-sys-color-secondary);
    color: var(--md-sys-color-on-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.answer-button:hover {
    background-color: #5a7373;  /* Slightly lighter than secondary color */
}

.answer-button:active {
    background-color: #3a5353;  /* Slightly darker than secondary color */
}

.answer-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#playAgain {
    margin-top: 16px;  /* Add some spacing from the score text */
    max-width: 200px;  /* Make it a bit wider than default answer buttons */
    margin-left: auto;  /* Center the button */
    margin-right: auto;
    display: block;    /* Make margin auto work */
}

.result {
    text-align: center;
    padding: 16px;
    margin-top: 16px;
    border-radius: 8px;
    min-height: 24px;  /* Fixed height for the text */
    line-height: 24px; /* Match the min-height */
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.result.correct {
    background-color: #e6f4ea;
    color: #137333;
}

.result.incorrect {
    background-color: #fce8e6;
    color: #c5221f;
}

.result.hidden {
    display: block;
    opacity: 0;
    pointer-events: none;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.game-over md-elevated-card {
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    background-color: var(--md-sys-color-surface);
}

.game-over.hidden {
    display: none;
}

/* Add styles for progress bar */
.progress-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.progress-segment {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;  /* Default grey for unanswered */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.progress-segment.correct {
    background-color: #137333;  /* Same green as result message */
}

.progress-segment.incorrect {
    background-color: #c5221f;  /* Same red as result message */
}

.progress-segment.current {
    background-color: var(--md-sys-color-secondary);
}

/* Add back general hidden class for other elements */
.hidden {
    display: none;
}

.main-title {
    text-align: center;
    color: var(--md-sys-color-primary);
    margin-bottom: 24px;
    font-size: 2.5rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .question-container h2 {
        font-size: 2rem;
    }

    .options-container {
        flex-direction: column;
        align-items: center;
    }

    .answer-button {
        width: 100%;
        max-width: 200px;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
} 