/* Fonts are served from this site (no requests to Google). Both are SIL OFL 1.1, see fonts/README.md. */
@font-face {
    font-family: 'Uncial Antiqua';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/uncial-antiqua-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700; /* variable font */
    font-display: swap;
    src: url('fonts/roboto-latin.woff2') format('woff2');
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1c1c1c; /* Darker shade of gray */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* min-height, not height: long results must grow the page instead of being cut off */
    margin: 0;
    padding: 16px;
    color: #e4d6ba;
}

#quiz-container {
    background: #2e2e2e;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 2px solid #d4af37;
    border-radius: 12px;
    scroll-margin-top: 16px;
}

h1 {
    margin: 0 0 8px;
    font-family: 'Uncial Antiqua', cursive;
    font-size: 24px;
    color: #d4af37;
}

h2 {
    font-family: 'Uncial Antiqua', cursive;
    color: #d4af37;
}

.progress {
    margin: 0 0 16px;
    font-size: 14px;
    opacity: 0.75;
}

#question-container {
    margin-bottom: 12px;
}

.question {
    margin-bottom: 10px;
}

.question-image, .result-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
    border: 3px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.answers label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.answers label:hover {
    background: rgba(212, 175, 55, 0.12);
}

.answers input {
    accent-color: #d4af37;
    margin-top: 3px;
    flex-shrink: 0;
}

.hint {
    color: #e4c76f;
    font-size: 14px;
}

button {
    background-color: #d4af37;
    color: #2e2e2e;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: #e4c76f;
}

button[hidden], p[hidden] {
    display: none;
}

.quote {
    font-style: italic;
    margin: 10px 0;
    font-family: 'Uncial Antiqua', cursive;
}

p {
    margin-bottom: 10px;
}
