
.legacy-text {
color: #ffffff;
font-family: Georgia, "Times New Roman", serif;
font-size: 18px;   /* change freely */
color: #ffffff;
}


html {
scroll-behavior: smooth;
}
    /* === Modern Header Upgrade === */
img {
max-width: 100%;
height: auto;
}

table {
max-width: 100%;
}

body {
  overflow-x: hidden;
  background-image: url("../images/simulated_dinosaur_skin.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
}

/* Old link colors recreated in CSS */
a:link {
  color: #00FFFF;
}

a:visited {
  color: #1e94a3;
}

#headerBar {
position: sticky;
top: 0;
z-index: 2000;

background: rgba(0, 15, 32, 0.90);
backdrop-filter: blur(6px);
border-bottom: 1px solid #222;
}

.headerInner {
display: flex;
flex-direction: column;   /* stack logo + nav */
align-items: flex-start;

max-width: 1200px;
margin: 0 auto;
padding: 12px 16px;
}


.brand {
display: flex;
align-items: center;
gap: 12px;
}

.brand h1 {
color: white;
font-family: Georgia, serif;
font-size: 24px;
margin: 0;
}

.dinoIcon {
height: 50px;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  align-self: end;
}

/* Mobile */
@media (max-width: 900px) {

  .hamburger {
    display: block;
  }

  .mainNav.show {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mainNav a {
    width: 100%;
  }
}

.mainNav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Mobile default: hidden */
@media (max-width: 900px) {
  .mainNav {
    display: none;
  }
}


.mainNav a {
display: inline-block;
padding: 10px 16px;       /* larger tap area */
font-size: 16px;          /* bigger text */
font-family: Tahoma, sans-serif;
text-decoration: none;
color: white;

background: rgba(255,255,255,0.05);
border-radius: 6px;

transition: all 0.2s ease;
}

.mainNav a:hover {
background: #349DCF;
color: #000;
}

.siteLogo {
height: auto;
max-width: 100%;
}

.section {
max-width: 1200px;
margin: 60px auto;
padding: 30px 20px;
scroll-margin-top: 120px;
background: rgba(0, 0, 0, 0.35);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 8px;

box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* --- Tile Normalization --- */


.tile-frame {
width: 240px;
height: 150px;

display: flex;
align-items: center;
justify-content: center;

margin: 0 auto;

background: rgba(255,255,255,0.03);
border-radius: 6px;
}

.tile-frame img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}

/* ---- Force consistent tile grid across all sections ---- */

.tile {
display: grid !important;
width: 100%;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
justify-items: center;
}

.tile tr {
display: contents;
}

.tile td {
display: flex;
justify-content: center;
align-items: center;
}

/* Mobile stacking */
@media (min-width: 900px) {
.headerInner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.mainNav {
    margin-top: 0;
}
}

.weather-tile {
width: 100%;

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

text-decoration: none;

background: linear-gradient(
    to bottom,
    #1f3246,
    #14202c
);

border: 2px solid #b08d57;
border-radius: 6px;

box-shadow: 0 6px 15px rgba(0,0,0,0.5);

color: #f0e6d2;

padding: 12px;   /* 👈 reduce padding */
}


/* Mobile-specific scaling */
@media (max-width: 600px) {
.siteLogo {
    width: 85%;
    max-width: 350px;
}

.dinoIcon {
    height: 40px;
}
}

@media (max-width: 700px) {

/* Let tables behave more like block layout */
table {
    display: block;
    width: 100% !important;
}

tr {
    display: block;
}

td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
}

}

/* Tablet */
@media (max-width: 1000px) {
.section {
    scroll-margin-top: 140px;
}
.tile {
    grid-template-columns: repeat(2, 1fr);
}
}

/* Mobile */
@media (max-width: 600px) {

  .section {
      scroll-margin-top: 180px;
  }

  .tile {
      grid-template-columns: 1fr;
  }

  .tile-frame {
      width: 90%;
      height: 140px;
  }

  .siteLogo {
      width: 85%;
      max-width: 350px;
  }

  .dinoIcon {
      height: 40px;
  }

  table {
      display: block;
      width: 100% !important;
  }

  tr {
      display: block;
  }

  td {
      display: block;
      width: 100% !important;
      box-sizing: border-box;
  }
}



.weather-icon {
display: inline-flex;
align-items: center;
justify-content: center;

width: 32px;
height: 32px;
}

.weather-icon svg {
width: 100%;
height: 100%;
}

.weather-tile {
background: linear-gradient(
    to bottom,
    #1f3246,
    #14202c
);
border: 3px solid #b08d57;
border-radius: 8px;
box-shadow: 0 12px 25px rgba(0,0,0,0.6);
padding: 20px;
color: #f0e6d2;
text-align: center;
transition: transform 0.2s ease;
}

.weather-tile:hover {
transform: translateY(-4px);
box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.weather-tile-title {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
font-size: 16px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
letter-spacing: 1px;
}

.weather-tile-temp {
font-size: 32px;
font-weight: 600;
font-family: Tahoma, sans-serif;
margin-bottom: 5px;
}

.weather-tile-shortForecast {
  margin-top: 1px;
  font-size: 12px;
  font-family: Tahoma, sans-serif;
  color: #d2b48c; /* tan tone */
}

.weather-tile-location {
font-size: 12px;
font-family: Tahoma, sans-serif;
opacity: 0.8;
margin-top: 6px;
}

.europa-caption {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
}

.europa-frame {
  position: relative;
}

.europa-frame a {
  display: block;
  position: relative;
}

.europa-frame img {
    max-height: 140px;
    object-fit: contain;
}

.europa-caption {
  position: absolute;
  bottom: 12px;
  left: 14px;

  color: #d2b48c; /* tan tone like before */
  background: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  padding: 4px 8px;
  border-radius: 4px;

  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}
.mobileBar {
  display: none;
}
.mobileBar {
  position: relative;
}

/* Mobile layout */
@media (max-width: 900px) {

  .mobileBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    gap: 12px;
  }

  .motd {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #c8e6ff;
    /* line-height: 1.3; */
    white-space: pre-line;
  }
  .motd {
    max-height: calc(1.3em * 4);   /* 4 lines */
    overflow-y: auto;
    overflow-x: hidden;

    line-height: 1.3;
    padding-right: 4px; /* avoids scrollbar overlap */

    scrollbar-width: thin; /* Firefox */
  }
  .motd {
    cursor: pointer;
  }
 
  /* MOTD swipe animation */

  .motd {
    transition: transform 0.25s ease, opacity 0.25s ease;
    overflow-x: hidden;
    touch-action: pan-y; /* allow vertical scroll but capture horizontal swipe */
  }

  
  /* Optional nicer scrollbar (WebKit) */
  .motd::-webkit-scrollbar {
    width: 4px;
  }

  .motd::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
  }
  
  .motd {
    position: relative;
    }

    .motd.has-overflow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 14px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    pointer-events: none;
    }

  .hamburger {
    align-self: center;
  }
}


.nato-title {
  color: #ffffff;
  font-family: Tahoma, sans-serif;
  font-size: 22px;   /* roughly size="4" */
}

.nato-text {
  color: #ffffff;
  font-family: Tahoma, sans-serif;
  font-size: 18px;   /* roughly size="3" */
}

.legacy-note {
  color: #ffffff;
  font-family: Tahoma, sans-serif;
  font-size: 14px;   /* roughly size="2" */
}

/* === Tile Background Utility Classes === */

.bg-white {
  background: #ffffff;
}

.bg-black {
  background: #000000;
}

.bg-nasa-blue {
  background: #6b81af;
}

.bg-dark-blue {
  background: #25436A;
}

.bg-brown {
  background: brown;
}

.bg-beige {
  background: beige;
}
.bg-red {
  background: #9c0000;
}
.bg-med-blue {
  background: #2b5a8e;
}
.bg-dark-grey {
  background: #333333;
}
.bg-light-blue {
  background: #E2E8FE; 
}
.wcvb{
  background: #1f3246;
  border: 2px solid #f1e5d2 ;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  color: #f0e6d2;
  padding: 12px;
  font-family: Tahoma, sans-serif;
  font-weight: bold;
  text-align: center;

}
a.wcvb:visited {
  color: #f0e6d2;
}


.tile-frame > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  box-sizing: border-box;
}

.currentNWSicon img,
.nws-icon {
  height: auto;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

/* Desktop */
.nws-icon {
  width: 60px;
}

/* Mobile */
@media (max-width: 600px) {
  .nws-icon {
    width: 40px;
  }
}



.mainNav a.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .mainNav a.mobile-only {
    display: inline-block;
  }
}
figure {
  text-align: center;
  margin: 0;           /* optional: removes default figure spacing */
}

figcaption {
  text-align: center;
}

.linkText {
  color: blue;
  font-size: 12pt;
}
