/* Basic reset and fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --accent: #E3A82B;
    --primary-dark: #294780;
    --primary-light: #F2F2F2;
    --secondary: #7498CE;
}

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

.header {
    padding: 10px;
    background-color:var(--primary-dark);
    border-bottom: solid 2px var(--accent);
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo {
    width:188px;
    object-fit:fill;
}

.title {
    width: 30%;
    height:auto;
    display:flex;
    margin-left: 10px;
    justify-content: left;
    font-size:24px;
    font-weight:bold;
    color:#fff;
}

.navbar {
    display: flex;
    width: 100%;
    justify-content: left;
    color: #fff;
    font-weight:bold;
    margin-left: 20px;
}

.navbar ul {
    display: flex;
    justify-content: left;
    width: 100%;
}

.navbar ul li {
    list-style-type: none;
    display:inline;
    margin-right:10px;
}

@media screen and (max-width: 900px) {
.title {
    width:auto;
    height:auto;
    display:flex;
    margin-left: 10px;
    justify-content: left;
    font-size:24px;
    font-weight:bold;
    color:#fff;
}
}


/* Banner */
.banner {
    position:relative;
    background-color: var(--primary-dark);
    background-image:url(../static/CCRD_BellaCoola.jpg);
    background-size:100%;
    background-repeat: no-repeat;
    background-position: 0% 30%;
    width:100%;
    height:400px;
    text-align: center;
    padding: 50px;
    font-size: 2.5rem;
}

.banner-title {
    position:absolute;
    margin: 0px auto;
    display:block;
    height:150px;
    width:350px;
    bottom:0px;
    left:0px;
    background-color: var(--secondary);
    background-color: rgba(116, 152, 206, 0.8);
    border-radius: 0px 30px 0px 0px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    padding:10px 25px 5px 5px;
    color:#fff;
    font-size:40px;
    font-weight:bold;
    text-align:center;
}

.banner-title p {
    margin: 0;
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
}

/* Header */
.header2 {
    text-align: center;
    background-image: url('../static/CCRD_BellaCoola.jpg');
    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 */
}

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

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

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

.header2 .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;
}
