body {
    font-family: sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
}

header {
    background-color: #337ab7;
    color: #fff;
    padding: 1rem 0;
    /* Add display flex for easier centering */
    display: flex;
    flex-direction: column; /* Stack logo and nav */
    align-items: center; /* Center items horizontally */
}

/* New style for the logo */
#logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem; /* Space between logo and nav */
    color: #fff;
    text-decoration: none; /* In case it's wrapped in a link */
}

.box {
    flex-grow: 1;
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
/*    text-align: center;*/
}

.ages-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 640px;
}

header nav {
    width: 100%; /* Ensure nav takes full width if needed */
}

header nav ul, footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

header nav ul li, footer nav ul li {
    display: inline-block;
    margin: 0 15px;
}

header nav ul li a, footer nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
header nav ul li a:hover, footer nav ul li a:hover {
    text-decoration: underline;
}

footer {
    background-color: #337ab7;
    color: #fff;
    padding: 1rem 0;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

#age-verification-page h1, #quiz-page h1, #thankyou-page h1 {
    color: #333;
}

#age-gate label {
}

#age-gate input[type="date"] {
}
 


#age-range-buttons {
   display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-direction: column;
    align-content: space-around;
    flex-wrap: wrap;

}

.age-range-button {
    padding: 12px 25px;
    width:200px;
    background-color: #337ab7; 
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.age-range-button:hover {
    background-color: #286090;
}

.message {
    margin-top: 1rem;
    font-weight: bold;
}

#age-message.error {
    color: #d9534f;
}

#age-message.success {
    color: #5cb85c;
}

#countdown-timer h2 {
    color: #337ab7;
}

#quiz-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 640px;
}

#question-counter {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

#question {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
}

#answer-options {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: column;
}

.answer-button {
    padding: 10px 20px;
    background-color: #337ab7; /* Similar to age buttons */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    min-width: 100px; /* Ensure buttons have some minimum width */
    text-align: center;
}

.answer-button:hover {
    background-color: #286090;
}

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

#feedback.correct {
    color: #5cb85c;
}

#feedback.incorrect {
    color: #d9534f;
}

#score-counter {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: auto; 
    font-size: 0.9rem;
}

footer p {
    margin-top: 0.5rem;
    color: #aaa;
}

button {
    padding: 10px 20px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4cae4c;
}