/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and HTML Setup */
html, body {
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Normal weight */
}


header {
    width: 100%;
    height: 130px; /* Updated header height to account for subtitle */
    display: flex;
    flex-direction: column; /* Stack header and subtitle vertically */
    background-image: url('assets/header.jpg');
    background-size: cover;  
    background-color: #505050; /* Gray background */
    position: fixed; /* Fixed at the top of the screen */
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 25px 30px;
    font-size: 1.2rem;
}

.header-top {
    display: flex;
    justify-content: space-between; /* Space out the header content and links */
    align-items: center; /* Align content vertically in the center */
    width: 100%;
}

.header-text {
    font-size: clamp(30px, 4vw, 50px);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: white;
}

.header-links {
    display: flex;
    gap: 20px; /* Space between links */
}

.header-links a {
    text-decoration: none;
    color: white;
    font-size: clamp(12px, 1.2vw, 30px);
    font-weight: 300; 
}

.header-links a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Subtitle (under the header text) */
.subtitle {
    font-size: clamp(0.5vw, 1.2vw, 1.2vw);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: white;
    font-weight: 300;
    margin-left: 0px; /* Same margin as header text */
}

/* Map Section */
#map {
    width: 100%;
    height: calc((var(--vh, 1vh) * 100) - 130px - 100px);
    margin-top: 130px;
}


.leaflet-popup-content {
    width: 600px !important; /* Set your desired width */
    max-width: 100%; /* Ensure it doesn't exceed the viewport */
    box-sizing: border-box; /* Include padding in width calculation */
}

.popup-content {
    display: flex;
    flex-direction: column; /* Stack h3 and info vertically */
    padding: 10px; /* Add some padding */
    border: 1px solid #ccc; /* Optional: Add a border */
    border-radius: 5px; /* Optional: Round the corners */
    background-color: #fff; /* Optional: Background color */
}

.popup-info-container {
    display: flex; /* Use Flexbox for info and image */
    justify-content: space-between; /* Space between info and image */
    align-items: flex-start; /* Align items to the top */
    margin-top: 10px; /* Space between title and container */
}

.popup-info {
    display: flex; /* Use Flexbox for the info section */
    flex-direction: column; /* Stack info items vertically */
}

.popup-image {
    max-width: 200px;  /* Set a max width for the image */
    max-height: 150px; /* Set a max height to limit the vertical size */
    width: auto;       /* Allow width to scale */
    height: auto;      /* Maintain aspect ratio */
    display: block;    /* Ensure the image is block-level to prevent text wrapping */
    margin: 0 auto;    /* Center the image horizontally */
}

/* Optional: Add some margin to the h3 for spacing */
.popup-content h3 {
    margin-bottom: 5px; /* Space between title and info */
}

/* Style the legend */
.info.legend {
    background: white;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
}

.info.legend div {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

/* Green Dot for Seagrass Presence/Absence */
.green-dot {
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
}

/* Light Blue Square with Dark Blue Border for Drone Surveys */
.blue-square {
    width: 15px;
    height: 15px;
    background-color: lightblue;
    border: 2px solid darkblue;
}

/* Red Line for Underwater Video Tracks */
.red-line {
    width: 15px;
    height: 2px;
    background-color: red;
}

/* Black X for Sampling Stations */
.black-cross {
    width: 15px;
    height: 15px;
    position: relative;
}

.black-cross::before,
.black-cross::after {
    content: '';
    position: absolute;
    background-color: black;
    width: 2px;
    height: 15px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.black-cross::before {
    transform: translateX(-50%) rotate(45deg);  /* Rotate to form one line of the X */
}

.black-cross::after {
    transform: translateX(-50%) rotate(-45deg);  /* Rotate to form the other line of the X */
}


/* Purple X for Sampling Stations */
.purple-cross {
    width: 15px;
    height: 15px;
    position: relative;
}

.purple-cross::before,
.purple-cross::after {
    content: '';
    position: absolute;
    background-color: purple;
    width: 2px;
    height: 15px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.purple-cross::before {
    transform: translateX(-50%) rotate(45deg);  /* Rotate to form one line of the X */
}

.purple-cross::after {
    transform: translateX(-50%) rotate(-45deg);  /* Rotate to form the other line of the X */
}




footer {
    background-image: url('assets/footer.jpg');
    overflow: hidden;
    display: flex;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    height: 100px; 
    width: 100%;
    position: relative;
}


footer .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5vh clamp(1vw, 5vw, 5vw); /* Less vertical space, responsive horizontal gap */
    width: 100%;
    padding:10px 1vw;
    box-sizing: border-box;
}

footer .logo {
    height: clamp(0px, 4vw, 50px);  /* Standardized height */
    width: auto;
    object-fit: contain;
}
