.crafty-girls-regular {
  font-family: "Crafty Girls", cursive;
  font-weight: 400;
  font-style: normal;
}

button{
  font-family: "Crafty Girls", cursive;
}

body { margin: 0; font-family: sans-serif; }
#map { height: 100vh; width: 100%; }

#controls {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaflet-control-container{
    display: none;
}

.leaflet-tile-pane {
  filter: hue-rotate(200deg) brightness(2.8) saturate(0.6);
}

.flight-card {
  background: black;
  opacity: 0.7;
  padding: 10px 14px;
  /* box-shadow: 0 0 8px rgba(0,0,0,0.2); */
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
  max-width: 320px;
}

.flight-card.visible {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  color: white;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button-container{
  /* position: fixed; */
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 3vh 0;
}

.button-container button{
  /* width: 300px;
  height: 300px; */
  width: 25vh;
  height: 25vh;
  background-color: #FC0;
  border: none;
  border-radius: 50%;
  margin-bottom: 3vh;
  font-size: 25px;
  animation: rotate 10s linear infinite; /* Add rotation animation */
  transition: box-shadow 0.3s ease; /* Smooth transition for the shadow */
}

.button-container button:hover {
  box-shadow: 0 0 20px 5px gold; /* Gold box shadow on hover */
  cursor: pointer;
  animation-play-state: paused; /* Pause rotation on hover */
}

/* Keyframes for rotation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.flight-card .label {
  font-size: 20px;
  font-weight: bold;
  flex: 1;
  color: white;
  text-shadow: #FC0 1px 0 10px;
}

.card-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  font-size: 15px;
  color: white;
  text-shadow: #FC0 1px 0 10px;
  border-top: 1px solid #eee;
  padding-top: 7px;
}

.card-details .detail-key {
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.card-details .detail-val {
  color: white;
}

.plane-label { display: flex; align-items: center; position: relative; }
.plane-label img { width: 40px; height: 40px; }
.footnote {
  position: relative;
  font-size: 30px;
  font-weight: bold;
  /* color: red; */
  margin-left: 0px;
  /* background: #FC0; */
  /* padding: 10px; */
  margin-top: -70px;
  color: white;
  text-shadow: #FC0 1px 0 10px;
}

#undo-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 2000;
  /* background: #FC0; */
  color: white;
  text-shadow: #FC0 1px 0 10px;
  padding: 10px 20px;
  /* border: solid; */
  /* border-radius: 24px; */
  display: flex!important;
  flex-direction: column!important;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#undo-bar.visible {
  opacity: 1;
  pointer-events: all;
}

#undo-bar button {
  color: black;
  border: none;
  border-radius: 12px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  font-weight: bold;
  width: 25vh;
  height: 25vh;
  background-color: #FC0;
  border: none;
  border-radius: 50%;
  font-size: 25px;
}

#undo-bar button:hover {
  box-shadow: 0 0 20px 5px gold; /* Gold box shadow on hover */
  cursor: pointer;
}

marquee{
    position: fixed;
    bottom: 0;
    background-color: black;
    color: white;
    opacity: 0.7;
    z-index: 5678;

    p{
        margin: 0;
        padding: 10px;
    }
}

/* Info button styles */
.info-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: transparent;
  color: white;
  text-shadow: #FC0 1px 0 10px;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 25px;
  cursor: pointer;
  z-index: 1001; /* Above other elements */
}

.info-btn:hover {
  text-shadow: #FC0 1px 0 40px;
}

/* Overlay styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Blackout effect */
  color: white;
  text-shadow: #FC0 1px 0 10px;
  display: none; /* Hidden by default */
  justify-content: center;
  /* align-items: center; */
  z-index: 1000; /* Below the info button */
}

.overlay.visible {
  display: flex; /* Show overlay when visible */
}

.overlay-content {
  text-align: left;
  font-size: 24px;
  padding: 30px;
  padding-bottom: 5%;
  overflow-y: scroll;
}

.overlay-content span{
  font-family: "Redacted", system-ui;
}

/* Custom scrollbar for overlay-content */
.overlay-content::-webkit-scrollbar {
  width: 10px; /* Width of the scrollbar */
}

.overlay-content::-webkit-scrollbar-track {
  background: black;
  /* border-radius: 10px;  */
}

.overlay-content::-webkit-scrollbar-thumb {
  background: white; /* Thumb (scroll handle) color */
  border-radius: 10px; /* Rounded corners for the thumb */
  border: 2px solid rgba(0, 0, 0, 0.5); /* Optional border for better visibility */
}

.overlay-content::-webkit-scrollbar-thumb:hover {
  background: #FFD700; /* Thumb color on hover */
}

/* For Firefox */
.overlay-content {
  scrollbar-width: thin; /* Thin scrollbar */
  scrollbar-color: white black; /* Thumb and track colors */
}

/* Default styles: Hide the mobile message and show the rest of the content */
#mobile-message {
  display: none;
}

#controls,
#map,
#undo-bar {
  display: block; /* Ensure these are visible by default */
}

/* Mobile-specific styles: Show the mobile message and hide the rest */
@media (max-width: 768px) {
  #mobile-message {
    display: flex; /* Show the mobile message */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    /* width: 100%; */
    height: 100%;
    background-color: black;
    color: white;
    /* justify-content: center; */
    /* align-items: center; */
    font-size: 18px;
    padding: 10px;
    text-align: left;
    z-index: 1000;
  }

  #controls,
  #map,
  #undo-bar,
  .info-btn {
    display: none; /* Hide the rest of the content */
  }
}