body {
  font-family: Arial, sans-serif;
  background: #f0f4f8;
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  background-color: #003366;
  color: white;
  padding: 20px;
  text-align: center;
}

nav.navbar {
  background-color: #002244;
  padding: 10px 20px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  display: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #004488;
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
    border-top: 1px solid #003355;
    background-color: #002244;
  }
}

main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-decoration: underline;
}

h2, h3 {
  color: #003366;
}

.audio-section {
  margin-top: 20px;
}

.audio-player {
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

th {
  background-color: #e0e7ef;
}

.toned-same-table {
  margin-top: 30px;
}

.map-section {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.map-section img {
  max-width: 100%;
  height: auto;
  width: 354px;
  border: 2px solid #003366;
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 800px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-box {
  width: 20px;
  height: 20px;
  border: 1px solid #333;
}

.disclaimer {
  margin-top: 20px;
  font-size: 0.9em;
  color: #555;
  text-align: center;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .map-section {
    flex-direction: column;
    align-items: center;
  }
}

.winter-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.winter-gallery figure {
  margin: 0;
  background-color: #f9f9f9;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.winter-gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.winter-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #333;
}


.grid-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.grid-gallery img,
.grid-gallery figure {
  width: 100%;
  height: auto;
}

.grid-gallery figure {
  margin: 0;
  background: #f9f9f9;
  padding: 0.5rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.grid-gallery figcaption {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.forecast-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 1rem;
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.forecast-table thead {
  background-color: #e0e7ef;
  color: #333;
}

.forecast-table th, .forecast-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ccc;
}

.forecast-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #ccc;
}

.forecast-icon {
  width: 60px;
  height: auto;
}

#alert-banner {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 1000;
  position: relative;
}

.scrolling-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
#alert-banner:hover .scrolling-text {
  animation-play-state: paused;
}

/* EAS TABLE COLORING */
.alerts-container table.ean, .alerts-container table.ean th, .alerts-container table.ean td { background-color: #c62828 !important; color: white !important; }
.alerts-container table.wek, .alerts-container table.wek th, .alerts-container table.wek td { background-color: #616161 !important; color: white !important; }
.alerts-container table.adv, .alerts-container table.adv th, .alerts-container table.adv td { background-color: #2e7d32 !important; color: white !important; }
.alerts-container table.wat, .alerts-container table.wat th, .alerts-container table.wat td { background-color: #f9a825 !important; color: black !important; }
.alerts-container table.war, .alerts-container table.war th, .alerts-container table.war td { background-color: #d32f2f !important; color: white !important; }
.alerts-container table.unk, .alerts-container table.unk th, .alerts-container table.unk td { background-color: #455a64 !important; color: white !important; }

.current-table {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3f3f3;
  padding: 15px;
  border-radius: 8px;
  flex-wrap: wrap;
}

.current-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.current-main img {
  width: 75px;
  height: 75px;
}

.temp {
  font-size: 48px;
  font-weight: bold;
}

.temp-c {
  font-size: 18px;
  color: #555;
}

.condition {
  font-size: 16px;
}

.current-table table {
  border-collapse: collapse;
}

.current-table td {
  padding: 4px 10px;
}

.current-table td:first-child {
  text-align: left;
}

.current-table td:last-child {
  text-align: right;
}

button {
    background-color: #003366;;
    border: none;
    color: white;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #003355;
}

audio {
    display: none;
}

/* Ensure this is at the VERY end and has all its brackets */

@media screen and (max-width: 600px) {
  .forecast-table th, .forecast-table td {
    font-size: 0.9rem;
    padding: 8px;
  }
}