/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    
}

/* Layout Setup */
body {
    display: flex;
    flex-direction: row; /* Header on the left, main content on the right */
    height: 100vh; /* Full height of the viewport */
    background-image: url(imgs/ville-futuriste.jpg);
    background-size: cover;
    background-position: center;
}

/* Header Styling */
header {
    width: 25%; /* Takes up 25% of the viewport width */
    background-color: #ffffffad; /* Light background */
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1); /* Shadow on the right edge */
    position: fixed;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

header p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    text-align: center;
    padding: 0 20px;
    margin-top: 10em;
}

/* Main Content Area */
main {
    margin-left: 25%; /* Reserve space for the header */
    width: 75%;
    padding: 40px;
    background: #f0f0f0c7; /* Light grey background for the page */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

main h1 {
    font-size: 28px;
    color: #2E8B57; /* Sea green color */
    margin-bottom: 20px;
    text-align: center;
    padding: 2em;
}

/* Search Section */
#search-section {
    background: rgba(255, 255, 255, 0.9); /* White with some transparency */
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#search-section input[type="text"],
#search-section select,
#search-section button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#search-section button {
    background-color: #2E8B57; /* Sea green for button background */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-section button:hover {
    background-color: #3CB371; /* Lighter sea green on hover */
}

/* Results Section */
#results-section {
    margin-top: 20px;
}

#results-section h2 {
    font-size: 22px;
    color: #2E8B57; /* Sea green for headings */
    margin-bottom: 15px;
}

#educational-content {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#educational-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2E8B57;
}

#educational-content p {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
}

/* Charts Container */
#charts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px auto; /* Center horizontally by setting margins to auto */
    align-items: center; /* Center the charts within the container */
    width: 80%; /* Reduce the width slightly to give it some space on the sides */
}

#charts-container canvas {
    width: 100%;
    max-width: 45%;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Map Container */
#map-container {
    margin-top: 30px;
}

#map {
    height: 400px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
