/* General Styling */

html, body {
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center; /* Center horizontally */
  background-color: #1E5631;
}

body {
  align-items: center; /* Center vertically by default */
}

@font-face {
  font-family: bgo;
  src: url(assets/British-Green/British-Green-Oblique.ttf);
}

@font-face {
  font-family: bgs;
  src: url(assets/British-Green/British-Green-Script.ttf);
}

@font-face {
  font-family: bg;
  src: url(assets/British-Green/British-Green.ttf);
}

.bgo {
  font-family: bgo;
}

.bgs {
  font-family: bgs;
}

.bg {
  font-family: bg;
}


.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: #FFD600;
}

.navbar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 99;
  top: 0;
  right: 0;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

div.navbar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 99;
  top: 0;
  right: 0;
  background-color: #1E5631; /* Change to your desired background color */
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.navbar a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 22px;
  color: #FFD600;
  display: block;
  transition: 0.3s;
}

.navbar a:hover {
  color: #f1f1f1;
}

.dropdown {
  display: block;
}

.dropbtn {
  background-color: #1E5631; /* Match the navbar background color */
  color: #FFD600;
  padding: 10px;
  border: none;
  text-align: left;
  width: 100%;
  font-size: 22px; /* Match the font size of other navbar links */
  cursor: pointer;
  font-family: bgo;
}

.dropdown-content {
  display: none;
  position: static; /* Aligns dropdown content with other navbar items */
  background-color: #1E5631; /* Match the navbar background color */
  font-family: bgo;
}

.dropdown-content a {
  color: #FFD600;
  padding: 10px;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#navTitle {
  position: fixed;
  top: 20px;
  left: 60px; /* Adjust as needed to align with the hamburger menu */
  font-size: 24px; /* Adjust size as needed */
  color: #FFD600;
  margin: 0;
  z-index: 101; /* Ensure it's above other elements */
}


#mainDiv {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto; /* Set height to auto */
}

#mainTitle {
  font-size: 8vw; /* Responsive font size */
  color: #FFD600;
  margin: 0; /* Remove default margin */
}

/* Additional media query for smaller screens */
@media (max-width: 600px) {
  #mainTitle {
    font-size: 12vw;
  }
}

.text-container {
  text-align: center;
  margin-bottom: 30px;
}

#animatedText {
  font-size: 24px;
  color: #FFD600;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* Keyframes for fading in and out */
@keyframes textFadeInOut {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.button-container {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  font-family: bg;
  font-size: 2vw; /* Default font size */
  text-decoration: none;
  color: #FFD600; /* Default text color */
  background-color: #1E5631; /* Default background color */
  border: 3px solid #FFD600; /* Default border color */
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap; /* Prevent text from wrapping */
  min-width: 150px; /* Minimum width to fit the longest word */
  text-align: center; /* Center text in buttons */
}

.button:hover {
  background-color: #FFD600; /* Change as needed */
  color: #1E5631; /* Change as needed */
}

/* Position the title at the top center, but below the navbar */
#title {
  text-align: center; /* Center aligned */
  width: 100%; /* Full width for center alignment */
  margin-top: 60px; /* Adjust this value to position below the navbar */
  position: relative; /* Relative to its normal position */
}

/* Position the smallerTitle below the title and left aligned */
#smallerTitle, .smallerTitle {
  text-align: left; /* Left aligned */
  margin-left: 20px; /* Adjust left margin */
  position: relative; /* Relative to its normal position */
  margin-top: 20px; /* Space below the title */
}

/* Media query for smaller screens */
@media (max-width: 600px) {
  body {
    align-items: flex-start; /* Align to the top for mobile */
    height: auto; /* Adjust height for mobile */
  }

  #mainDiv {
    margin-top: 120px; /* Increased top margin for more space */
    height: auto; /* Ensure the div takes up only the necessary space */
  }

  #mainTitle {
    font-size: 12vw;
  }

  #animatedText {
    font-size: 22px; /* Smaller font size for mobile */
  }

  .button {
    font-size: 25px; /* Larger font size for buttons on mobile */
  }
  #navTitle {
    left: 25px; /* Adjust for mobile if needed */
    font-size: 18px; /* Adjust size for mobile */
  }
}

/* Media query for larger screens */
@media (min-width: 600px) {
  .button-container {
    flex-direction: row; /* Inline buttons on larger screens */
    justify-content: center;
  }
}
