/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Avoid horizontal scroll */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Base Styles */
body {
  background: #000;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  margin-top: 0px;
  min-height: calc(100vh - 120px);
}

/* Splash Screen Transition */
#splash-screen {
  transition: opacity 0.5s ease;
}

/* preloading animation */
#preloader-logo {
  animation: spin .5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#preloader {
  transition: opacity 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Monoton', sans-serif;
}

h1 span {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
}

/* Sticky Header */
#main-nav {
  align-items: center;
  box-shadow: 0 0 -5px rgba(255,255,255,1);
  display: flex;
  height: 100px;
  padding: 20px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

#main-nav a {
  color: #000;
  font-size: 28px;
  text-decoration: none;
}

#main-nav.bg-white a {
  color: #000;
}

#searchBar {
  top: 80px;
}

/* Hero Section */
#hero {
  align-items: baseline;
  background: center/cover no-repeat;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 60px 60px;
  position: relative;
  width: 100%;
}

#hero.justify-flex-start {
  justify-content: flex-start;
}

/* Hero Overlay */
.hero-overlay {
  /* background-image: linear-gradient(0deg, #000000A8 0%, #70b087 100%); */
  background-image: linear-gradient(180deg, #cbe6d7 100px, #000000A8 100px);
  background-attachment: fixed;
}

/* Different Hero Overlay For the Home Page */
.home .hero-overlay {
  background-image: linear-gradient(0deg, #000000A8 50%, #CDFFC7CF 100%);
  background-attachment: unset;
}

/* Fact Box */
.fact-box {
  background-color: #00000099;
  border: 10px solid #000000E6;
  padding: 40px 30px;
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  z-index: 10;
}

.fact-box h2 {
  color: #5BDB94;
  font-size: 28px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.fact-box p {
  font-size: 16px;
  margin: 8px 0;
}

.fact-box .description {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 15px;
}

.fact-box h3 {
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
}

.fact-box ul {
  list-style: none;
  margin-top: 10px;
  padding: 0;
  text-align: center;
}

.fact-box ul li {
  margin-bottom: 5px;
}

.fact-box ul li a {
  color: #5BDB94;
  text-decoration: none;
}

.fact-box ul li a:hover {
  text-decoration: underline;
}

/* Date Form */
.date-form {
  margin-top: 20px;
  text-align: center;
}

.date-form label {
  font-size: 14px;
}

.date-form input[type="date"] {
  border-radius: 5px;
  color: #000;
  font-size: 14px;
  margin: 10px 0;
  padding: 6px;
  width: 160px;
}

.date-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.date-buttons a {
  background-color: #16a34a;
  border-radius: 5px;
  color: #000;
  font-size: 14px;
  padding: 6px 12px;
  text-decoration: none;
}

.date-buttons a:hover {
  background-color: #15803d;
}

.hero-left {
  width: 55%;
  z-index: 10;
}

.hero-left h1 {
  font-family: 'Monoton', cursive;
  font-size: 64px;
  margin-bottom: 20px;
}

.hero-left p {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-left a {
  background-color: #5BDB94;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  padding: 12px 24px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.hero-left a:hover {
  background-color: #5BDB94;
}

.main-text {
  justify-content: flex-start;
  position: relative;
  width: 100%;
}

/* Custom Green Text and Backgrounds */
.text-custom-green {
  color: #5BDB94;
}

.bg-custom-green {
  background-color: #5BDB94;
}

.bg-custom-green-hover:hover {
  background-color: #5BDB94;
}

.bg-green {
  background-color: #169250;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  #main-nav {
    align-items: flex-start;
    height: 70px;
    padding: 20px 15px 60px;
    position: fixed;
  }

  #hero {
    flex-direction: column;
    justify-content: flex-start;
    padding: 120px 10px 100px;
  }

  .hero-left,
  .fact-box {
    margin-bottom: 20px;
    padding: 0 10px;
    text-align: center;
    width: 100%;
  }

  .hero-left h1 {
    font-size: 40px;
  }

  .hero-left p {
    font-size: 18px;
    margin: 10px 0 20px;
  }

  .hero-overlay {
    background-image: linear-gradient(180deg, #cbe6d7 calc(80px + env(safe-area-inset-top)), #000000A8 calc(80px + env(safe-area-inset-top)));
  }
  
  .home .hero-overlay {
    background-image: linear-gradient(0deg, #000000A8 50%, #CDFFC7CF 100%);
  }

  .fact-box {
    padding: 20px 15px;
  }
}
@media (min-width: 768px){
  nav.fixed.bg-black {
    display:none;
  }
  h1:not(.home) {
    padding-top:2rem;
  }
}

@media only screen 
  and (orientation: portrait) {
    body {
      padding-top: calc(0px + env(safe-area-inset-top));
    }
    #main-nav {
      padding-top: calc(20px + env(safe-area-inset-top));
    }
    #searchBar {
      top: calc(80px + env(safe-area-inset-top));
    }
}
@media only screen 
  and (orientation: landscape) {
    #searchBar {
      top: 80px;
    }
}