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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #d5d8ee;
    font-family: Arial, sans-serif;
    position: relative;
}

body:not(.dashboard-body) {
    overflow: hidden;
}

body.dashboard-body {
    height: auto;
    min-height: 100%;
    overflow: auto;
    padding: 20px; 
    font-family: sans-serif; 
    background-color: #f5f5f5;
}

body.dashboard-body {
    padding: 20px; 
    font-family: sans-serif; 
    background-color: #f5f5f5;
}


#page-content {
    transition: filter 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.modal-open #page-content {
    filter: blur(8px);
    pointer-events: none;
}

.hero-intro {
    margin-left: 70px; 
    margin-top: 25px; 
    padding-right: 70px;
}

.hero-description {
    float: left; 
    width: 100%; 
    height: fit-content; 
    padding: 10px 70px 30px 70px;
}

.footer-wrapper {
    position: relative; 
    min-height: 100px; 
    width: 100%; 
    margin: 0; 
    padding: 0;
}

.navbar {
    background-color: #1e295d;
    padding: 15px 30px;
    display: flex;
    align-items: center;
}

.navbar-logo {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    flex-shrink: 0; 
}

.navbar-links {
    margin-left: 40px;
}

.navbar-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 25px; 
    font-size: 1rem;
    cursor: pointer;
}

.navbar-links a:hover {
    text-decoration: underline;
}

.image-container {
    width: 100%;
    padding: 10px 70px 15px 70px;
    flex: 1; 
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex; 
    min-height: 0;
}

#random-earth-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.image-container img {
    width: 100%;
    display: block;
}

.scrolling-banner {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: black;
    overflow: hidden;
    white-space: nowrap;
    height: 80px;
    display: flex;
    align-items: center;
}

.scrolling-banner span {
    display: inline-block;
    color: white;
    font-size: 22px;
    padding-left: 100%;
    animation: scroll-left 45s linear infinite;
}

@keyframes scroll-left { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-100%); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 93, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.modal-open .modal-overlay {
    opacity: 1;
    pointer-events: auto;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #1e295d;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.login-container button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #1e295d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-container button[type="submit"]:hover {
    background-color: #2e3d85;
}

#message {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
}


.main-container {
  display: flex; 
  gap: 20px;
  width: 100%;
}

.map-container {
    width: 80%;
    max-width: 2000px;
    height: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#map { 
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0; 
}

#loader {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    text-align: center;
}


:root {
    --menu-container-bg: #ffffff; 
    --menu-item-bg: #f8f9fa;
    --menu-item-hover-bg: #f1f3f5;
    --menu-outside-gap: 12px;
    --menu-inner-padding: 15px;
}

.filter-menu {
    width: 400px;
    background-color: var(--menu-container-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-menu h3 {
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
    color: #1e295d;
}

.menu-item {
    background-color: var(--menu-item-bg);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--menu-outside-gap); 
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-item summary {
    padding: var(--menu-inner-padding);
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.menu-item summary:hover {
    background-color: var(--menu-item-hover-bg);
}

.menu-content {
    padding: var(--menu-inner-padding);
    padding-top: 0;
    border-top: 1px solid #e9ecef;
    font-size: 0.95rem;
    color: #495057;
    background-color: #ffffff;
}

.dashboard-banner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid #444;
    border-radius: 6px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    color: #ccc;
    font-family: Arial, sans-serif;
    font-size: 0.75em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    pointer-events: none;
}
.banner-section {
    flex: 1;
    padding: 0 10px;
    border-right: 1px solid #555;
}
.banner-section:last-child {
    border-right: none;
    padding-right: 0;
}
.banner-section:first-child {
    padding-left: 0;
}
.banner-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 1.1em;
    border-bottom: 1px solid #555;
    padding-bottom: 3px;
}
.banner-item {
    margin-bottom: 3px;
    white-space: nowrap;
}
.banner-val {
    font-weight: bold;
    color: #fff;
}

.floating-clear-btn {
    position: absolute;
    top: 110px;
    right: 10px;
    z-index: 10;
    background: rgba(170, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid #ff4444;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.header-clear-btn {
    background: #aa0000;
    color: #fff;
    border: 1px solid #ff4444;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.header-clear-btn:hover {
    background: #cc0000;
}

.map-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}
.bottom-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border-top: 1px solid #444;
    padding: 10px 15px;
    color: #aaa;
    font-size: 0.85em;
}
.bottom-options {
    display: flex;
    align-items: center;
    gap: 20px;
}
.bottom-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #ccc;
}
.bottom-slider-group {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid #444;
    padding-left: 20px;
}
.bottom-info-container {
    display: flex;
    gap: 15px;
}
.info-item {
    white-space: nowrap;
}
.info-item span {
    color: #fff;
    font-weight: bold;
}

      .spinner {
          border: 4px solid rgba(255, 255, 255, 0.1);
          border-left-color: #00cccc;
          border-radius: 50%;
          width: 40px;
          height: 40px;
          animation: spin 1s linear infinite;
          margin: 0 auto 15px auto;
      }

      @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(360deg); }
      }

      #loader {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          background: rgba(20, 20, 20, 0.9);
          padding: 25px 40px;
          border: 1px solid #444;
          border-radius: 8px;
          text-align: center;
          color: #fff;
          z-index: 9999;
          box-shadow: 0 4px 15px rgba(0,0,0,0.5);
      }

      .image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid black;
  padding: 30px;
  z-index: 1000;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#popup:target {
  display: block;
}


.navbar, .hero-intro, footer {
    flex-shrink: 0;
}
