/* General reset for margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and container */
body {
    background-color: #f8f9fa; /* Light background */
    color: #333; /* Dark text */
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container to center everything */
.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
}

/* Header Styling */
header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #005b77; /* WHO blue */
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-input {
    width: 300px;
    padding: 8px;
    font-size: 1rem;
    border: none;
    outline: none;
}

/* Question Sections - Flashcard style */
.question-section {
    display: none; /* Hide all questions by default */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.question {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.radio-buttons label {
    display: block;
    margin: 10px 0;
}

/* Navigation Buttons */
.navigation {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #005b77;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
}

button:hover {
    background-color: #0078d4;
}

#back-btn {
    display: none; /* Hide back button initially */
}

/* Malaria Susceptibility Section */
.susceptibility-section {
    margin-top: 40px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.malaria-output {
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Styling for the output field below the input */
.output-field {
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 1.2rem;
    color: #333;
    width: 100%;
    text-align: center;
}

/* Remove arrows from number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* For Firefox */
}

/* Styling for the age input box */
.age-input {
    display: block;
    width: 100%;
    max-width: 1000px;
    padding: 12px;
    font-size: 1.1rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    margin-top: 10px; /* Space between label and input */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Focus effect */
.age-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}
