* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;
    line-height: 1.8;
    color: #111;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5em;
    background: white;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 2em 0;
    border-bottom: 2px solid #0073aa;
    margin-bottom: 2em;
}

h1 {
    color: #111;
    font-size: 2.827rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h2 {
    color: #767676;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
}

h3 {
    color: #111;
    margin-bottom: 1.5rem;
    font-size: 1.999rem;
    font-weight: 700;
    line-height: 1.2;
}

.age-selection {
    text-align: center;
    margin-bottom: 40px;
}

.age-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.age-btn {
    background: #0073aa;
    color: white;
    border: 2px solid #0073aa;
    padding: 0.76em 1em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.88889em;
    font-weight: 700;
    letter-spacing: 0.0333em;
    text-transform: uppercase;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.age-btn:hover,
.age-btn:focus {
    background: #005177;
    border-color: #005177;
    color: white;
}

.questionnaire {
    background: #fff;
    padding: 2em;
    border: 1px solid #e2e4e7;
    margin-bottom: 2em;
}

.question {
    background: #f8f9fa;
    padding: 1.5em;
    margin-bottom: 1.5em;
    border-left: 3px solid #0073aa;
}

.question p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.radio-option label {
    font-size: 1rem;
    cursor: pointer;
}

.submit-btn, .restart-btn {
    background: #0073aa;
    color: white;
    border: 2px solid #0073aa;
    padding: 0.76em 1em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.88889em;
    font-weight: 700;
    letter-spacing: 0.0333em;
    text-transform: uppercase;
    transition: all 0.15s ease-in-out;
    width: 100%;
    max-width: 300px;
    margin: 1.5em auto;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.submit-btn:hover, 
.submit-btn:focus,
.restart-btn:hover,
.restart-btn:focus {
    background: #005177;
    border-color: #005177;
    color: white;
}

.results {
    background: #fff;
    padding: 2em;
    border: 1px solid #e2e4e7;
    text-align: center;
}

.result-level {
    font-size: 3.998rem;
    font-weight: 700;
    color: #0073aa;
    margin: 1.5em 0;
    padding: 1em;
    background: #f8f9fa;
    border: 2px solid #0073aa;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5em auto;
}

.result-description {
    background: #f8f9fa;
    padding: 2em;
    margin: 1.5em 0;
    text-align: left;
    line-height: 1.8;
    border-left: 3px solid #0073aa;
}

.result-age-group {
    color: #767676;
    font-style: italic;
    margin-bottom: 1em;
    font-size: 1.2em;
}

footer {
    text-align: center;
    padding: 2em 0;
    border-top: 1px solid #e2e4e7;
    margin-top: 3em;
    color: #767676;
    font-size: 0.88889em;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .age-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .age-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Illustrations */
.result-illustration {
    text-align: center;
    margin: 2em 0;
}

.result-illustration img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e4e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.illustration-caption {
    font-size: 0.88889em;
    color: #767676;
    margin-top: 0.5em;
    font-style: italic;
}

/* Typography improvements */
p {
    margin-bottom: 1em;
}

h4 {
    color: #111;
    font-size: 1.414rem;
    font-weight: 700;
    margin-bottom: 1em;
    line-height: 1.2;
}