body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: white;
  min-height: 100vh;
  background: linear-gradient(180deg, #0d1b2a, #1b263b);
}

/* -------- MODERN TOP NAV -------- */
.topNav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(180deg, #1a2b40, #203551);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.siteTitle {
  display: inline-block;
    text-align: center;
  font-family: "Script MT Bold", "Segoe Script", cursive;
  font-size: 1.9rem;
  letter-spacing: 0.8px;
  color: #ffffff;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.7),
    0 0 16px rgba(140,200,255,0.6);
}

.siteTitle::after {
  content: "";
  display: block;
  width: 100%;                      /* MATCH TEXT WIDTH */
  height: 2px;
  margin: 4px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    #4cc9f0,
    transparent
  );
  opacity: 0.85;
}

.siteTitleWrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;   /* keeps true center in grid */
}

.headerFlag {
  height: 50px;
  width: auto;
}

.headerFlag.left {
  margin-right: 60px;
}

.headerFlag.right {
  margin-left: 60px;
}

.hamburger {
  width: 26px;
  cursor: pointer;
  position: relative;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navStatus {
  display: flex;
  justify-content: flex-end;
}

.statusDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2dff6a;
  box-shadow: 0 0 10px rgba(45,255,106,0.9);
  animation: greenPulse 2.5s infinite;
}

@keyframes greenPulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  50%  { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1);   opacity: 0.9; }
}

/* --- OVERLAY --- */
.navOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

/* --- SIDE NAV DRAWER --- */
.sideNav {
  position: fixed;
  top: 12px;              /* drops it slightly below top */
  left: 12px;

  width: 260px;


  background: linear-gradient(180deg, #1a2b40, #203551);
  border-radius: 16px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  transform: translateX(-120%);
  transition: transform 0.3s ease;

  z-index: 950;
  padding-bottom: 8px;
}


/* OPEN STATE */
.sideNav.open {
  transform: translateX(0);
}

.navOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* HEADER */
.sideNavHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  color: white;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.closeBtn {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

/* LINKS */
.sideNav a {
  display: block;
  padding: 14px 18px;
  color: #dbe7ff;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s ease;
  margin: 2px 8px;
  border-radius: 10px;
}

.sideNav a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.sideNav a:last-of-type {
  border-bottom: none;
}


/* === STATIC EMERGENCY MESSAGE === */
#emergencyMessage {
  width: 100%;
  background: #b91c1c; /* red */
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  padding: 10px 12px;
  font-size: 1rem;
}

/* CONTENT */
#content {
  padding: 20px;
}

/* WEATHERLINK */
#signature {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

#signature iframe {
  width: 100%;
  max-width: 760px;
  height: 200px;
  border: none;
  border-radius: 12px;
}

/* ALERT LAYOUT */
#alertsRow {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.alertColumn {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.alertBox {
  background: rgba(0,0,0,0.45);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.alertBox h2 {
  text-align: center;
  margin-top: 0;
}

.alertItem {
  cursor: pointer;
  margin-bottom: 12px;
}

.alertDetails {
  display: none;
  margin-top: 8px;
  font-size: 14px;
}

/* EARTHQUAKES */
.eqItem {
  cursor: pointer;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.eqLow  { background: rgba(0,128,255,0.25); border-color: #3399ff; }
.eqMod  { background: rgba(255,255,0,0.25); border-color: yellow; }
.eqHigh { background: rgba(255,0,0,0.25); border-color: red; }

.eqItem a {
  color: #76c7ff;
  text-decoration: none;
}

.eqMeta {
  font-size: 13px;
  opacity: 0.9;
}

/* SPC Convective Outlook */
.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 255, 0.4);
  margin-bottom: 12px;
  width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
  color: #ffffff;
}

/* NO ALERTS PILL */
.no-alerts-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  width: 100%;
  box-sizing: border-box;

  background: rgba(15, 23, 42, 0.95);  /* MATCH SPC/WPC */
  border: 1px solid rgba(148,163,255,0.4);
  color: #ffffff;
  font-weight: 600;
}

.no-alerts-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #6b7280;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.no-alerts-sub {
  font-size: 0.85rem;
  font-weight: normal;
  color: #e5e7eb;
}


.risk-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #6b7280;
  flex-shrink: 0;
}

.risk-label {
  font-weight: 600;
  font-size: 1rem;
}

.risk-desc {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0;
}

.sig-badge {
  font-weight: bold;
  vertical-align: middle;
}

#spc-status.loading,
#spc-status.error {
  font-size: 0.9rem;
  color: #e5e7eb;
}

#spc-status.error {
  color: #fecaca;
}

.risk-desc:not(:empty) {
  text-align: center;
  margin-top: 3px;
  line-height: 1.3;
}

/* === DROUGHT MONITOR PILL === */
.drought-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

/* US Drought Monitor colors */
.drought-none {
  background: rgba(107,114,128,0.15); 
  color: #ffffff;
  border: 1px solid #4b5563; /* darker gray */
}

.drought-d0 {
  background: rgba(255,255,0,0.25);
  border: 1px solid #b3a800; /* darker yellow */
}

.drought-d1 {
  background: rgba(252,211,127,0.30);
  border: 1px solid #b98100; /* darker amber */
}

.drought-d2 {
  background: rgba(255,170,0,0.30);
  border: 1px solid #b35c00; /* darker orange */
}

.drought-d3 {
  background: rgba(230,0,0,0.35);
  border: 1px solid #7a0000; /* darker red */
}

.drought-d4 {
  background: rgba(115,0,0,0.45);
  border: 1px solid #4d0000; /* darker deep red */
}

.drought-clarifier {
  font-size: 0.85rem;
  color: #cbd5e1;      /* light gray */
  margin-top: 6px;
  text-align: center;
}

#spc-md-link {
  display: block !important;   /* full width */
  width: 100%;                 /* fill parent column */
  text-decoration: none;
}
#spc-md-pill {
  width: 100%;                 /* match other pills */
  box-sizing: border-box;
}

.md-inactive {
  background: rgba(15, 23, 42, 0.95) !important; /* dark like SPC/WPC pills */
  border: 1px solid rgba(148, 163, 255, 0.4);
}

.md-inactive .risk-dot {
  background: #6b7280;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.md-inactive .risk-label {
  color: #ffffff;
}

.md-inactive #spc-md-text {
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* TIME ROW BELOW WEATHERLINK */
#timeRow {
  margin-top: 10px;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 15px;
  color: #e5e7eb;
  text-align: center;
  flex-wrap: wrap;
}

#timeRow span {
  white-space: nowrap;
}

    .forecast-container {
        max-width: 800px;
        margin: 30px auto;
        padding: 0 15px;
    }

    .forecast-period {
        background: rgba(30, 41, 59, 0.95);
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }

    .forecast-period h3 {
        margin-top: 0;
        font-size: 18px;
        color: #93c5fd;
    }

    .forecast-period p {
        font-size: 14px;
        line-height: 1.5;
        margin: 5px 0 0 0;
        color: #e5e7eb;
    }
	
    footer {
        text-align: center;
        font-size: 12px;
        padding: 15px;
        color: #9ca3af;
    }

    footer a {
        color: #60a5fa;
        text-decoration: none;
    }

    footer a:hover {
        text-decoration: underline;
    }
	
/* RADAR CONTAINER */
.radar-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.radar-frame {
  width: 100%;
  height: 750px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #000;
}

   h1 {
	  text-align: center;
      margin-top: 10px;
      font-size: 28px;
      margin-bottom: 10px;
    }

    .section {
      background: rgba(255,255,255,0.1);
      padding: 15px;
      border-radius: 10px;
      margin-bottom: 20px;
      max-width: 1100px;
      margin-left: auto;
      margin-right: auto;
    }

    .label {
      font-size: 22px;
      font-weight: bold;
      margin-bottom: 12px;
    }

    .thumb-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 25px;
    }

    .thumb {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 230px;
    }

    .thumb img {
      width: 230px;
      border-radius: 6px;
      cursor: pointer;
      transition: 0.2s;
    }

    .thumb img:hover {
      opacity: 0.85;
    }

	.img-label a {
		color: white;
		text-decoration: none;   /* optional */
	}

	.img-label a:visited {
		color: white;
	}

	.img-label a:hover {
		color: white;            /* or another color if you prefer */
	}

/* Grid layout for camera images */
#cameraContainer {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: start;
}

/* Container for each image + caption */
.imgWrapper {
  text-align: center;
}

/* Thumbnail images */
.imgWrapper img {
  width: 300px; /* increased thumbnail size */
  height: auto;
  border: 2px solid #555;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.imgWrapper img:hover {
  border-color: #76c7ff;
}

/* Caption under each image */
.imageTitle {
  margin-top: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

/* Lightbox overlay */
#lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

#lightboxOverlay img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid #fff;
  border-radius: 8px;
  margin-bottom: 10px;
}

#lightboxOverlay span {
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

  .description {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f5f5f5;
  }

  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    max-width: 1200px;
	margin: 0 auto;
  }

  .photo-card {
    position: relative;
    background: #151a2c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 220px;       /* fixed card width */
    height: 150px;      /* fixed card height */
    display: flex;
    justify-content: center;
    align-items: center; /* centers image vertically and horizontally */
    cursor: pointer;
  }

  .photo-card img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
  }

  /* Hover effects: zoom + darken */
  .photo-card:hover img {
    transform: scale(1.05);
    filter: brightness(70%);
  }

  /* Overlay caption centered */
  .photo-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    background: rgba(11, 16, 32, 0.85);
    color: #f5f5f5;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85em;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    word-wrap: break-word;
  }

  .photo-card:hover .photo-caption {
    opacity: 1;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

/* Container for all content */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* Each tornado event */
.event {
  max-width: 900px;       /* matches paragraph text width */
  margin: 0 auto 30px auto; /* centers on page and spacing below */
}

/* Paragraphs */
.event p {
  line-height: 1.5;
  margin: 0 0 12px 0;
}

/* Highlight dates */
.event-date {
  color: #ffcc00;
  font-weight: normal;
  font-size: 1em;
  display: inline;
  margin-right: 4px;
}

/* Image rows for single or multiple images */
.image-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap; /* stack images on narrow screens */
}

.image-row img {
  max-width: 100%;
  border-radius: 8px;
}

/* PDF Container */
#pdfContainer {
  margin: 20px auto;
  width: 95%;
  max-width: 1200px;
}

canvas {
  display: block;
  margin: 10px auto;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
}

/* Fallback text */
#pdfFallback {
  text-align: center;
  padding: 20px;
  font-size: 16px;
}

/* Form layout */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Inputs */
input, textarea {
  width: 100%;
  max-width: 520px;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  background: #1b263b;
  color: white;
}

input::placeholder,
textarea::placeholder {
  color: #b8c1d1;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button */
button {
  margin-top: 15px;
  width: 100%;
  max-width: 520px;
  background: #1e40af; /* site-matching blue */
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

/* Honeypot */
.hp {
  display: none;
}


