html, body {
  background: black;
  margin: 0;
  padding: 0;
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

.main-container {
  background: black;

  max-width: 900px;
  min-width: 320px;
  margin: 0px auto 0 auto;
  padding: 5px 20px 40px 20px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sgw-logo-row {
  display: flex;
  align-items: center;
  margin-right: 1.5em;
  height: 60px;
}

.sgw-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}



.header-green-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 96%;
  color: chartreuse;
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1.1em, 2.5vw, 1.5em);
  font-weight: bold;
  letter-spacing: 2.3px;
  white-space: nowrap;
  gap: 10px;
}

.sgw-logo-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.sgw-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sgw-logo-text {
  color: slategray;
  font-size: 0.8em;
  font-weight: 400;
  margin-left: 0.55em;
  white-space: nowrap;


  font-family: Tahoma, Geneva, Verdana, sans-serif;

  letter-spacing: 1.1px;
  margin-left: 0.6em;
  white-space: nowrap;
  transform:translateY(-2px);
  transition: opacity 0.2s;
}



.header-center {
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  text-align: center;
  width: fit-content;
  pointer-events: none; /* So it doesn't block the right span */
}

.header-right {
  margin-left: auto;
  text-align: right;
  min-width: 5.5em;
  padding-left: 1em;
}

.header-white-row {
  width: 100%;
  color: white;
  text-align: center;
  font-size: clamp(1em, 2vw, 1.25em);
  font-weight: 600;
  letter-spacing: 1.75px;
  margin: 0.5em;
  white-space: nowrap;
}

.slideshow-container {
  width: 400px;
  max-width: 90vw;
  aspect-ratio: 16/9;
  margin: 1vw auto;
  position: relative;
  background: #111;
  border-radius: 4px;
  box-shadow: 0 0 10px #000b;
  overflow: hidden;
  border: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) {
  .slideshow-container {
    width: 500px;
  }
}

.slide-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}


.slide-img.active {
  opacity: 1;
  z-index: 2;
  transition: opacity 1s ease;
}

.banner {
    margin:1em;
    width: 100%;
    display: flex;
    justify-content: center;
  }


.banner-border-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid white;
  border-radius: 11px;
  padding: 3px;                /* Thin, even black margin */
  background: #111111;
  box-sizing: border-box;
  margin: 0 auto 1.5em auto;
  width: fit-content;          /* Only as wide as content */
  max-width: 95vw;             /* Prevent overflow on small screens */
}


.banner-text {
  color: red;
  font-size: clamp(1.7em, 5vw, 2.8em);
  font-weight: bold;
  letter-spacing: 2.5px;
  
  border: 2px solid white;
  border-radius: 7px;
  padding: 16px 48px;          /* More padding for nice breathing room */
  background: #111;
  box-shadow: 0 0 12px #000a;
  text-align: center;

  box-sizing: border-box;
  display: block;
  /* No width set! */
}



.newsletter-pitch {
  color: white;
  text-align: left;
  font-size: clamp(1em, 2vw, 1.25em);
  margin: 0.5em;
  line-height: 1.5;
  max-width: 35em;
  padding: 0.5em;
  font-weight: 500;
  word-break: break-word;
  hyphens: auto;
  letter-spacing: 0.02em;
}

/* Responsive text sizing for all main elements */
.header-green-row {
  font-size: clamp(1em, 2.5vw, 1.3em);
  letter-spacing: clamp(1px, 0.5vw, 2px);
}

.header-white-row {
  font-size: clamp(0.9em, 2vw, 1.1em);
  letter-spacing: clamp(1px, 0.4vw, 1.75px);
}

.banner-text {
  font-size: clamp(1.5em, 4vw, 2.8em);
  letter-spacing: clamp(1.5px, 0.6vw, 2.5px);
  padding: clamp(15px, 3vw, 48px) clamp(20px, 5vw, 48px);
}

.links-row {
  font-size: clamp(1em, 2.5vw, 1.5em);
  gap: clamp(0.8em, 2vw, 1.5em);
}

.divider {
  font-size: clamp(0.9em, 2vw, 1.1em);
}

/* Ensure links stay readable at all sizes */
.gecko-link {
  font-size: clamp(0.9em, 2.5vw, 1.5em);
  letter-spacing: clamp(0.5px, 0.3vw, 1px);
}


.subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
    margin: 0.5em;
    width: 100%;
  }
  
  .subscribe-form input[type="email"] {
    padding: 0.7em 1em;
    border-radius: 4px;
    border: 1px solid #999;
    font-size: 1.2em;
    background: #111111;
    color: white;
    outline: none;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
  }
  
  .subscribe-form input[type="text"] {
    padding: 0.7em 1em;
    border-radius: 4px;
    border: 1px solid #CCC;
    font-size: 1.2em;
    background: #111111;
    color: white;
    outline: none;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    margin-bottom: 0.5em;
  }
  
  .subscribe-form button {
    padding: 0.7em;
    border-radius: 4px;
    border: 2px solid chartreuse;
    background: #111;
    color: chartreuse;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
  }
  
  .subscribe-form button:hover {
    background: chartreuse;
    color: #111;
  }
  

  #subscribe-message {
    text-align: center;
    color: chartreuse;
    min-height: 1.5em;
    font-size: 1em;
    margin-bottom: 1em;
  }



    #preview-btn {
    margin:1em;
    padding: 0.7em;
    border-radius: 4px;
    border: 2px solid #CCC;
    background: #111;
    color: #CCC;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
  }
  
  #preview-btn:hover {
    background: white;
    border: 2px solid white;
    color: #111;
  }


  .links-row {
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
  }


  .gecko-link {

    font-weight: bold;
    text-decoration: none;

    letter-spacing: 1px;
    transition: color 0.2s;
  }


  #library_link {
    color: gold;
    text-decoration: none;
  }
  #faq_link {
    color: chartreuse;
    text-decoration: none;
  }
  #papers_link {
    color:red;
    text-decoration: none;
  }
  .gecko-link:hover {
    color: white;
    text-decoration: underline;
  }
  .divider {
    color: chartreuse;
    font-weight: bold;
    font-size: 1.1em;
  }
  


  .faq-section {
    border: 2px solid chartreuse;
    border-radius: 12px;
    width: 75%;
    color: white;
    padding: 20px;
    background: rgba(20,20,20,0.7);
    box-shadow: 0 0 10px #000a;
    margin: 0 auto 2em auto;
  }
  
  .faq-section a {
    color: chartreuse;
    text-decoration: none;
    transition: color 0.2s;
  }

  .faq-section h2 {
    color: chartreuse;
    font-size: 1.5em;
    letter-spacing: 1px;
    text-align: center;
  }
  
  .faq-item {
    margin-bottom: 2.1em;
  }
  
  .faq-question {
    font-weight: bold;
    color: white;
    font-size: 1.12em;
    margin-bottom: 0.4em;
    letter-spacing: 1.3px;
  }
  
  .faq-answer {
    color: #e0e0e0;
    font-size: 1.05em;
    padding-left: 10px;
    letter-spacing: 1px;
  }


  .fair-use-disclaimer {
    width: 90%;
    margin: 20px auto;

    text-align: left;
    color: #494949;
    background: transparent;
    font-size: 0.95em;

    user-select: none;
  }

  .gecko-form-container {
  width: min(90%, 500px);
  margin: 2em auto;
  padding: clamp(1em, 4vw, 2em);
  background: rgba(20,20,20,0.7);
  border: 2px solid chartreuse;
  border-radius: 12px;
  box-shadow: 0 0 10px #000a;
}

.gecko-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
}

.gecko-form label {
  color: white;
  font-size: clamp(0.9em, 2.5vw, 1.1em);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 0.2em;
}

.gecko-form input {
  width: 100%;
  padding: clamp(0.5em, 2vw, 0.7em) clamp(0.7em, 2vw, 1em);
  border-radius: 4px;
  border: 1px solid #888;
  font-size: clamp(0.9em, 2.5vw, 1.1em);
  background: #1a1a1a;
  color: white;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gecko-form input:focus {
  border-color: chartreuse;
  box-shadow: 0 0 5px rgba(127, 255, 0, 0.3);
}

.gecko-btn {
  width: 100%;
  padding: 1.5vw;
  border-radius: 4px;
  border: 2px solid chartreuse;
  background: #111;
  color: chartreuse;
  font-size: clamp(1em, 2.5vw, 1.2em);
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gecko-btn:hover {
  background: chartreuse;
  color: #111;
}

@media (max-width: 599px) {

    .main-container {
      padding: 5px 2vw 10vw 2vw;
    }
    .header-green-row, .header-white-row {
      font-size: 1em;
    }
    .slideshow-container {
      width: 98vw;
      min-width: 0;
    }
  
    .links-row {
      width: 100%;
      margin: 0 auto;
      font-size: 1.1em;
      gap: 0.8em; /* Reduced gap for mobile */
      padding: 0 1em; /* Add horizontal padding to prevent edge collision */
      box-sizing: border-box;
      flex-wrap: wrap; /* Allow wrapping if needed */
    }

    .gecko-link {
      font-size: 0.9em; /* Smaller links on mobile */
      letter-spacing: 0.5px; /* Reduced letter spacing */
    }

    .divider {
      font-size: 0.9em; /* Smaller dividers on mobile */
    }
  
  
    .banner {
      margin:0.5em;
      padding-top: 20px;
  
    }
  

    .banner-text {
      padding: 12px 5vw !important; /* More vertical, responsive horizontal */
      font-size: clamp(1.1em, 6vw, 1.6em); /* Slightly smaller for mobile */
    }
    .banner-border-outer {
      padding: 2px !important; /* Keep a thin, but visible, border gap */
      max-width: 98vw;
    }

    .newsletter-pitch {
      font-size: 1em;
      padding: 0.5em;
      line-height: 1.3;
      max-width: 98vw;
    }


    .sgw-logo-text {
      display: none;
    }
  }

  
  
  @media (min-width: 600px) {
    .subscribe-form {
      flex-direction: row;
      justify-content: center;
      align-items: center;
      gap: 1em;
    }
    .subscribe-form input[type="email"] {
      width: auto;
      min-width: 250px;
      max-width: 350px;
    }
    
    .subscribe-form button {
      width: auto;
      min-width:200px;
      max-width: 350px;
    }
    .subscribe-form button {
      margin-left: 1em;
    }

    /* Reduce top/bottom padding of banner text by half for wide screens */
    .banner-text {
      padding: clamp(7.5px, 1.5vw, 24px) clamp(20px, 5vw, 48px);
    }

    .banner {
      margin-bottom: 18px !important; /* reduce as needed */
    }
    .banner-border-outer {
      margin-bottom: 0 !important;
    }
  }

  @media (min-width: 500px) {
    .links-row {
      font-size: 1.2em; /* Smaller than the default 1.5em */
    }
    
    .gecko-link {
      font-size: 0.95em; /* Slightly smaller links */
    }
    
    .divider {
      font-size: 1em; /* Smaller dividers too */
    }
  }
