/* Base styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container setup */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden; /* Prevents the page from stretching */
}

/* Map section (Fixed 50% height) */
.map-area {
  /*flex: 0 0 50vh; /* Fixed to 50% of viewport height */
  position: relative;
}

.text-area {
    position: absolute;
    top: 50vh; /* Start immediately below the map */
    left: 0;
    width: 100%;
    height: 50vh; /* Occupies the lower half */
    overflow-y: auto; /* Enable scrolling inside NOTAM list */
    overflow-x: hidden; /* Prevent unwanted horizontal scrolling */
    background-color: #f8f8f8;
    padding: 10px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch; /* Improve iOS scrolling smoothness */
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) and (orientation: portrait) {
  .container {
    flex-direction: column;
  }

  .map-area {
   /* flex: 0 0 50vh;*/
    position: fixed;
  }

  .text-area {
    flex: 1;
    overflow-y: auto;
  }

}

/* Default: Desktop & Larger Screens */
#map {
  width: 100%;
  height: 100%; /* Fill the `.map-area` */
}

/* Mobile View: Adjust Map Height */
@media only screen and (max-width: 768px) {
  #map {
    height: 50vh; /* Set map height to 50% of viewport height on mobile */
  }
}
/* NOTAM details styling */
#notamDetails {
  max-height: 100%;
  overflow-y: auto;
  padding: 10px;
  background: #f4f4f4;
  border-top: 2px solid #ccc;
}

/* Individual NOTAM block */
.notam-block {
  padding: 10px;
  background: #e6f2ff;
  border-radius: 15px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background 0.3s;
}

.notam-block:hover {
  background: #e0e0e0;
}

/* Blinking effect for selected NOTAM */
.blinking {
  animation: blink-animation 0.5s infinite alternate;
}

@keyframes blink-animation {
  0% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Simple legend styling */
#legend {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  padding: 10px;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
  font-size: 12px;
  z-index: 1000;
  line-height: 1.4em;
}

#legend .legend-item {
  margin-bottom: 5px;
}

#legend .color-box {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: middle;
}

/* Fixed Top Section (50% height) */
.top-section {
    height: 50vh;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

/* Scrollable Bottom Section (50% height) */
.bottom-section {
    height: 50vh; /* Fixed height */
    overflow-y: auto; /* Enable scrolling only for this section */
    background-color: #f8f8f8;
    padding: 20px;
    box-sizing: border-box;
}
 /*** Accessibilty ***/
#accessibility-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

#accessibility-menu {
    position: fixed;
    border-radius: 15px;
    bottom: 60px;
    left: 20px;
    background: #1a8cff;
    border: 1px solid #ccc;
    padding: 10px;
    display: none;
    z-index: 1000;
}

.header {
    display: flex;
    align-items: center;  /* Aligns items vertically */
    justify-content: space-between;  /* Distributes elements */
    height: 60px;  /* Adjust height as needed */
    padding: 0 15 15px;  /* Add spacing */
    background-color: white;  /* Ensure visibility */
    position: relative; /* Helps with absolute positioning */
}

/* Make sure the logo is on the right */
.logo {
    max-width: 100px;  /* Adjust as needed */
    height: auto;  /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the entire logo is visible */
    padding-bottom: 10px;
}

/* Center the span within the header */
.update-span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
}


.high-contrast {
    filter: contrast(2);
}

.grayscale {
    filter: grayscale(100%);
}

.large-text {
    font-size: 1.5em;
}
