/* 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 */
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/instructions.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, 4.5vw, 60px);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    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(10px, 1.2vw, 30px);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: white;
    font-weight: 300;
    margin-left: 5px; /* 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 */
}


/* Footer */
footer {
    background-image: url('assets/instructions.jpg');
    overflow: hidden;
    display: flex;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    height: 100px;  /* Set a height */
    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;
}
