/* Basic reset and fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    padding-bottom: 150px;
    border-bottom: 6.5px solid #ffc017;
}

/* Banner */
.banner {
    background-color: #013366;
    color: white;
    text-align: center;
    padding: 50px;
    font-size: 2.5rem;
}

/* Header */
.header {
    text-align: center;
    background-image: url('../static/AI_mountain.png');
    background-size: cover;
    color: #ffffff;
    padding: 50px 20px;
    position: relative;
    border-top: 6.5px solid #ffc017;
    border-bottom: 6.5px solid #ffc017; /* Fixed typo here */
}

.header .logo {
    width: auto;
    height: 600px;
}

.header h1 {
    font-size: 5rem;
    margin: 20px 0;
}

.header p {
    font-size: 2.5rem;
}

.header .btn {
    background-color: #ffc017;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    display: inline-block;
}

/* Discover Section */
.discover {
    padding: 40px 20px;
    text-align: center;
}

.discover h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.services-grid {
    max-width: 1200px; /* Set a max-width for responsiveness */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-item {
    background-color: white;
    padding: 20px;
    width: 500px;
    height: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.service-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.service-item h3 {
    font-size: 1.4rem;
    margin: 15px 0;
}

.service-item p {
    font-size: 1rem;
    color: #555;
}

.service-item a {
    text-decoration: none;
    color: #0b4c7a;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.service-item a:hover {
    text-decoration: underline;
}

/* Maps Section */
.maps {
    padding: 20px 20px;
    text-align: center;
}

#maps-item {
    width: 100%;
    height: 80vh; /* Set to fit most of the viewport */
    padding: 20px;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.maps-box {
    max-width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.leaflet-popup {
    z-index: 9999 !important;
}

/* Data Section */
.data-section {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

/* Table container with scroll bar */
.table-container {
    max-height: 300px; /* Set the max height of the table container */
    overflow-y: auto; /* Add vertical scroll */
    overflow-x: auto; 
    margin: 10px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

/* Ensure table inside the container does not exceed the container height */
table {
    width: 100%; /* Set to full width of the parent container */
    border-collapse: collapse;
    text-align: left;
    max-height: 100%; /* Ensure the table does not overflow */
    overflow-y: auto; /* Add vertical scroll to table if needed */
}

/* Table rows and cells for better visibility */
table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
}

/* Minimize button styling */
.minimize-btn {
    background-color: #ccc;
    border: none;
    color: #333;
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    float: right;
    margin-right: 5px;
    border-radius: 3px;
}

.minimize-btn:hover {
    background-color: #bbb;
}

/* Button styling */
.download-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #45a049;
}
