html, body {
    height: 100%;
}
/* Add styles here */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column; /* Set as column flex container */
    min-height: 100vh; /* Ensure it takes full viewport height */
    /* justify-content and align-items are handled by container's margin:auto */
}

.container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    color: #34495e;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-bottom: 25px;
}

.screen {
    transition: opacity 0.5s ease-in-out;
}

.hidden {
    display: none;
}

/* Start Screen */
#start-screen button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#start-screen button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Question Screen */
#question-text {
    font-size: 1.3em;
    margin-bottom: 0px; /* Reduced from 30px */
    color: #34495e;
    font-weight: 600;
    /* min-height: 80px; Removed fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    display: flex;
    align-items: center;
    background-color: #ecf0f1;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.option:hover {
    background-color: #e0e6e7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.option input[type="radio"] {
    display: none; /* Hide default radio button */
}

.option label {
    flex-grow: 1;
    cursor: pointer;
    font-size: 1.1em;
    color: #555;
    position: relative;
    padding-left: 35px; /* Space for custom radio */
}

.option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
}

.option input[type="radio"]:checked + label::before {
    background-color: #3498db;
    border-color: #3498db;
}

.option input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
}


.navigation-buttons button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 10px;
}

.navigation-buttons button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

#submit-button {
    background-color: #e67e22;
}

#submit-button:hover {
    background-color: #d35400;
}

/* Result Screen */
#result-screen {
    text-align: center; /* Keeps text centered */
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
}
.result-detail {
    text-align: center; /* Ensure text within result details is centered */
}

.result-detail ul {
    padding: 0; /* Remove default padding from lists */
    list-style-position: inside; /* Adjust list item marker position if needed */
    margin: 0 auto; /* Center the ul itself if it has a width */
    max-width: 100%; /* Ensure ul doesn't exceed its parent's width */
}

.result-detail li {
    text-align: center; /* Explicitly center text within list items */
    list-style-type: none; /* Remove bullet points if they interfere with centering */
}
#result-screen #result-type {
    font-size: 1.8em;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 15px;
}

#result-screen #result-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

#restart-button {
    margin-top: 30px; /* Add space above the button */
    background-color: rebeccapurple; /* Changed from #7f8c8d */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#restart-button:hover {
    background-color: #5a4bb2; /* Darker shade for hover */
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 30px 20px;
    }

    #question-text {
        font-size: 1.1em;
    }

    .option label {
        font-size: 1em;
    }

    .navigation-buttons button {
        padding: 8px 15px;
        font-size: 0.9em;
        margin: 0 5px;
    }
}

.question-instruction {
    font-size: 0.9em;
    color: #7f8c8d; /* A subtle grey */
    margin-top: 0px; /* Adjusted to 0px */
    margin-bottom: 10px; /* Adjusted to 10px */
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    background-color: #ecf0f1;
    color: #7f8c8d;
    font-size: 0.9em;
    border-top: 1px solid #e0e6e7;
    width: 100%; /* Ensure footer spans full width */
    box-sizing: border-box; /* Include padding in width */
}

.site-footer p {
    margin: 10px 0 0;
    font-size: 0.8em;
    color: #95a5a6;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-link {
    color: #7f8c8d;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #34495e;
}

.separator {
    color: #bdc3c7;
    font-size: 0.9em;
}

/* Ensure body occupies full height to push footer down */
html, body {
    height: 100%;
}
.container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
    margin: auto; /* This will center it horizontally and vertically within the flex column */
}