@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Quando&display=swap');
/* General body styling */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header Styling */
header {
    width: 100%;
    background-color: #507862;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-family: 'Quando', serif;
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}

h2 {
  font-family: 'Quando', serif;
  margin: 0;
  font-size: 1.8rem; 
}
  #logo {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 50px;
            border: 2px solid #fff;
        }

        #overview {
            margin: 20px;
            text-align: justify;
            padding: 2%;
          color: rgb(254,253,253);
          background-color: #003153;
          border-radius: 8px;
          font-family: 'Noto Sans', serif;
  font-size: 1rem; 
        }

        #map-legend {
            position: absolute;
            top: 70%;
            left: 10%;
            font-size: 14px;
            background-color: rgba(255, 255, 255, 0.8);
            padding: 10px;
            border-radius: 5px;
            width: 150px;
            text-align: left;
          z-index:2000;
        }

        #map-legend img {
            width: 24px;
            height: 24px;
            margin-right: 5px;
        }
/* Map Container Styling */
#map-container {
    position: relative;
  margin: 2%;
    width: 100%;
    max-width: 1000px;
    height: 800px;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Map Wrapper for Image Placement */
#map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: grab;
    border-radius: 8px;
}

#map-wrapper:active {
    cursor: grabbing;
}

/* Map Image Styling */
#map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

/* Marker Styling */
.marker {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.7));
}

/* Zoom Controls Styling */
#zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

#zoom-controls button {
    background-color: #507862;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#zoom-controls button:hover {
    background-color: #3e5a4e;
    transform: scale(1.1);
}

#zoom-controls button:active {
    transform: scale(0.95);
}

/* Popup Styling */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 15;
    display: none;
    text-align: center;
}

#popup img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#popup-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

#popup-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #507862;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#popup-link:hover {
    background-color: #3e5a4e;
    transform: scale(1.05);
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#popup-close:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

.hidden {
    display: none;
}

/* Footer Styling */
footer {
    background-color: #507862;
    color: #fff;
    text-align: center;
    padding: 10px;
    width: 100%;
    font-size: 0.9em;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    #map-container {
        height: 600px;
    }

    #popup {
        width: 90%;
        max-width: 320px;
    }

    #popup img {
        max-width: 120px;
    }

    #zoom-controls button {
        font-size: 16px;
        padding: 8px;
    }

    header h1 {
        font-size: 2em;
    }
}
