@viewport {
  width: device-width;
  zoom: 1;
  viewport-fit: cover;
}

:root {
  --gov-blue: #003366;
  --gov-light: #e6efff;
  --gov-border: #aac4e8;
  --gov-accent: #cc6600;
}

html {
  padding-top: env(safe-area-inset-top);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--gov-light);
  color: #111;
  margin: 0;
  padding: 40px;
  line-height: 1.6;
}

header {
  background-color: var(--gov-blue);
  color: white;
  padding: 20px 40px;
  margin: -40px -40px 30px -40px;
}

.logo h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 28px;
  margin: 0;
  color: white;
}

.hero {
  background-color: white;
  border: 2px solid var(--gov-border);
  padding: 20px;
  margin-bottom: 30px;
}

.hero h3 {
  color: var(--gov-accent);
  font-size: 18px;
  margin-top: 0;
}

.classification-buttons a {
  display: inline-block;
  margin: 8px 6px;
  padding: 10px 14px;
  background-color: white;
  color: var(--gov-blue);
  text-decoration: none;
  border: 2px solid var(--gov-blue);
  border-radius: 4px;
  font-weight: bold;
}

.classification-buttons a:hover {
  background-color: var(--gov-blue);
  color: white;
}

section.product-page {
  background-color: #ffffff;
  border: 1px solid var(--gov-border);
  padding: 30px;
  margin: 40px auto;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 51, 102, 0.1);
  max-width: 900px;
}

section.product-page h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--gov-blue);
}

section.product-page img {
  margin: 10px 0;
  border: 1px solid #cccccc;
}
section.product-page button {
  margin-top: 10px;
  background-color: #cc0033 !important;
  color: white !important;
  border: none !important;
  padding: 10px 16px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease-in-out;
}
section.product-page button:hover {
  background-color: #a80028 !important;
}

footer {
  margin-top: 60px;
  font-size: 12px;
  color: #666;
  text-align: center;
  border-top: 1px solid var(--gov-border);
  padding-top: 20px;
}
section.product-page button {
  margin: 5px 4px;
  padding: 8px 12px;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}
#immigrant-color-buttons button {
  margin: 5px 6px 15px 0;
  padding: 6px 12px;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

#immigrant-color-buttons button:hover {
  background-color: #001f44;
}
.product-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
}

.product-info {
  flex: 1;
  min-width: 250px;
}
#report-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#report-button button {
  background-color: #ffffff;
  color: #003366;
  border: 2px solid #003366;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}

#report-button button:hover {
  background-color: #003366;
  color: white;
}

nav.top-nav {
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  background-color: #003366;
  padding: 10px 40px;
  box-sizing: border-box;
  border-bottom: 1px solid #aac4e8;
  position: sticky;
  top: 0;
  z-index: 999;
}

nav.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav.top-nav li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

nav.top-nav li a:hover {
  background-color: #001f44;
}
.full-width-banner {
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  background-color: white;
  padding: 40px;
  box-sizing: border-box;
  border-bottom: 2px solid #aac4e8;
}

footer.gov-links {
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  background-color: #003366;
  color: white;
  padding: 30px 40px;
  font-size: 13px;
  line-height: 1.6;
  box-sizing: border-box;
  border-top: 1px solid #aac4e8;
}

footer.gov-links ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

footer.gov-links li {
  margin-bottom: 5px;
}

footer.gov-links a {
  color: white;
  text-decoration: underline;
}

footer.gov-links a:hover {
  color: #aac4e8;
}
#boot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-text {
  font-size: 20px;
  font-weight: bold;
  color: red;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  text-align: center;
}

@keyframes fadeOutBoot {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
.boot-text-group {
  text-align: center;
}

.boot-bar {
  margin-top: 15px;
  width: 300px;
  height: 6px;
  background-color: #fff;
  border: 1px solid red;
  overflow: hidden;
  position: relative;
}

.boot-bar::before {
  content: "";
  position: absolute;
  height: 100%;
  left: 0;
  background-color: red;
  animation: bootBarLoad 0.75s linear forwards;
}

@keyframes bootBarLoad {
  0% { width: 0%; }
  100% { width: 100%; }
}
.access-granted {
  color: #00ff88;
  font-size: 25px;
  margin-top: 12px;
  opacity: 0;
  animation: showAccess 0.3s ease-in 0.75s forwards;
}

@keyframes showAccess {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.product-display {
  position: relative;
  display: inline-block;
}

.main-shirt-img {
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
}

.shirt-swatches {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 0;
  background: none;
}

.shirt-thumb {
  width: 40px;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: border 0.2s;
}

.shirt-thumb:hover {
  border: 2px solid #cc0033;
}
.banner-slideshow {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banner-slideshow::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: bannerRotate 20s infinite;
  z-index: 0;
}

.banner-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 153, 0.65); /* translucent deep blue */
  z-index: 1;
}

.banner-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding-top: 100px;
  font-size: 10px;
  font-weight: bold;
}

@keyframes bannerRotate {
  0%   { background-image: url('NICE1.png'); }
  20%  { background-image: url('NICE2.png'); }
  40%  { background-image: url('NICE3.png'); }
  60%  { background-image: url('NICE4.png'); }
  80%  { background-image: url('NICE5.png'); }
  100% { background-image: url('NICE1.png'); }
}

.page-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.site-header, .top-nav, .site-footer {
  text-align: center;
  background-color: #002855; /* gov blue */
  color: white;
  padding: 1rem;
}

.top-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.top-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.top-nav a.active {
  border-bottom: 2px solid white;
}

.logo {
  height: 50px;
  margin-bottom: 0.5rem;
}
/* Responsive utility */
@media screen and (max-width: 768px) {
  .page-container {
    padding: 1rem;
  }

  .top-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-card img {
    width: 100%;
    max-width: 300px;
  }

  .dropdown-select {
    width: 100%;
    max-width: 300px;
  }
}
.swatch-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.swatch-container img {
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
}
button {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  width: 100%;
  max-width: 300px;
}
img {
  max-width: 100%;
  height: auto;
  
}
/* ------------------------------
   Default Desktop Banner Text
------------------------------ */
.banner-text {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}
/* ------------------------------
   FINAL RESPONSIVE FIXES FOR HEADER + BANNER (Portrait ≤768px)
------------------------------ */
@media screen and (max-width: 768px) {
  .site-header {
  padding-top: env(safe-area-inset-top, 2.4rem);
  padding-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  box-sizing: border-box;
}

   .site-header::before {
    content: "";
    display: block;
    height: 1.25rem;
  }

  .logo {
    height: 56px;
    margin-bottom: 0.5rem;
  }

.site-header h1 {
  font-size: 1.05rem;
  line-height: 1.3;
  padding: 0.25rem 1rem 0 1rem; /* top padding added */
  margin: 0.4rem 0 0;           /* more top margin */
  word-break: break-word;
}

  .site-header p {
    font-size: 0.85rem;
    padding: 0 1.2rem;
    line-height: 1.35;
    margin: 0.25rem 0 0.75rem;
  }

  .top-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .top-nav a {
    font-size: 1rem;
  }

  .banner-slideshow {
    position: relative;
    height: 420px;
    overflow: hidden;
  }

  .banner-slideshow::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: bannerRotate 20s infinite;
    z-index: 0;
  }

  .banner-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 153, 0.65);
    z-index: 1;
  }

  .banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
    padding: 1.6rem 1rem 1rem;
    color: white;
    z-index: 2;
    box-sizing: border-box;
    word-wrap: break-word;
  }
}  
     @supports (padding: max(0px)) {
  @viewport {
    width: device-width;
    zoom: 1;
    viewport-fit: cover;
  }
}     