/* Global */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #b3e5fc, #e8f5e9);
}

/* Header */
header {
    background-color: #4caf50;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
}

/* Description */
#description {
    text-align: center;
    margin-top: 5px;
    font-size: 1.1em;
    color: #2e7d32;
}

/* Update note */
#updateNote {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #d32f2f;
    margin-top: 5px;
}

/* Top Row: Map + Right Column */
#topRow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin: 20px;
}

/* Map */
#map {
    flex: 2;
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/* Right Column */
#rightColumn {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Search Bar */
#searchContainer {
    text-align: center;
}
#districtSearch {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* District Display */
#districtDisplay {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.districtBox {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    position: relative;
}
.districtBox:hover .hoverNote {
    display: block;
}
.hoverNote {
    display: none;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 1em;
    white-space: nowrap;
    z-index: 10;
}

/* Legend */
#legend {
    background: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.95em;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Questionnaire + Alert */
#questionRow {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    margin: 0 20px 20px 20px;
}
#questionnaire {
    font-size: 1.15em;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    display: flex;               /* added */
    flex-wrap: wrap;             /* allow wrapping if too many items */
    align-items: center;         /* vertical alignment */
    gap: 15px;                   /* spacing between items */
}

#questionnaire h3 {
    flex-basis: 100%;            /* make the question header take full row */
    margin-top: 0;
    color: #2e7d32;
}

#questionnaire label {
    display: flex;               /* label + checkbox in a row */
    align-items: center;
    gap: 5px;                    /* small gap between checkbox and text */
    margin: 0;                   /* remove default padding/margin */
}

#checkHealthBtn {
    background-color: #4caf50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1.1em;
}
#checkHealthBtn:hover {
    background-color: #45a049;
}

/* Alert Box */
#alertBox {
    display: none;
    background: #fffbcc;
    border-left: 5px solid #ff9800;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2em;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 300px;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    color: #2e7d32;
    font-size: 0.9em;
    margin-bottom: 20px;
}
