@keyframes slideInFromLeft {
  0% {
    opacity: 100;
    transform: translateX(0%);
  }
  99% {
    opacity: 0;
    transform: translateX(0%);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}


h1 {
  color: black;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 4.6rem;
  word-wrap: break-word; /* Ensure long words wrap to the next line */
  overflow-wrap: break-word;
  margin: 0.5rem;
  letter-spacing: -1px;
  cursor: default;
}

h2 {
  color: rgb(255, 255, 255);
  text-shadow: rgb(0, 0, 0) 3px 0px 0px, rgb(0, 0, 0) 2.83487px 0.981584px 0px, rgb(0, 0, 0) 2.35766px 1.85511px 0px, rgb(0, 0, 0) 1.62091px 2.52441px 0px, rgb(0, 0, 0) 0.705713px 2.91581px 0px, rgb(0, 0, 0) -0.287171px 2.98622px 0px, rgb(0, 0, 0) -1.24844px 2.72789px 0px, rgb(0, 0, 0) -2.07227px 2.16926px 0px, rgb(0, 0, 0) -2.66798px 1.37182px 0px, rgb(0, 0, 0) -2.96998px 0.42336px 0px, rgb(0, 0, 0) -2.94502px -0.571704px 0px, rgb(0, 0, 0) -2.59586px -1.50383px 0px, rgb(0, 0, 0) -1.96093px -2.27041px 0px, rgb(0, 0, 0) -1.11013px -2.78704px 0px, rgb(0, 0, 0) -0.137119px -2.99686px 0px, rgb(0, 0, 0) 0.850987px -2.87677px 0px, rgb(0, 0, 0) 1.74541px -2.43999px 0px, rgb(0, 0, 0) 2.44769px -1.73459px 0px, rgb(0, 0, 0) 2.88051px -0.838247px 0px;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2rem;
  word-wrap: break-word; /* Ensure long words wrap to the next line */
  overflow-wrap: break-word;
  margin: 0.5rem;
  margin-bottom: 3.5rem;
  letter-spacing: -0.5px;
  transform: rotate(2.5deg);
}

a {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 25px;
}

html {
  height: 100%;
  width: 100%;
  background: #FCB505;
  z-index: -9;
}

body {
  /* background-color: #FCB505; */
  position: absolute;
  z-index: -8;
  margin: 0px;
  text-align: center;
  width: 100%;
  background: rgb(252,181,5);;
  background: -moz-radial-gradient(circle, rgba(252,181,5,1) 48%, rgba(252,166,5,1) 100%);
  background: -webkit-radial-gradient(circle, rgba(252,181,5,1) 48%, rgba(252,166,5,1) 100%);
  background: radial-gradient(circle, rgba(252,181,5,1) 48%, rgba(252,166,5,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fcb505",endColorstr="#fca605",GradientType=1); 
  overflow: auto;
  -webkit-overflow-scrolling: touch; /* enables “momentum” (smooth) scrolling */
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  background: rgb(252,166,5);
  background: -moz-linear-gradient(178deg, rgba(252,166,5,1) 21%, rgba(252,181,5,0) 84%);
  background: -webkit-linear-gradient(178deg, rgba(252,166,5,1) 21%, rgba(252,181,5,0) 84%);
  background: linear-gradient(178deg, rgba(252,166,5,1) 21%, rgba(252,181,5,0) 84%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fca605",endColorstr="#fcb505",GradientType=1); 
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  padding-left: 0px;
  padding-right: 2rem;
  padding-bottom: 16px;
  padding-top: 16px;
  margin: 0px;
  font-family: "Outfit", sans-serif;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  /* display: inline; */
  padding: 10px;
  margin: 10px;
  line-height: 280%;
}

nav li a {
  margin-left: 5rem;
  text-decoration: none;
  color: black;
  transition: color 0.5s;
} 

nav li a:hover{
  color: #03626d
} 

.hidden {
  display: none;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1), 0 0px 0px rgba(0, 0, 0, 0.08) !important; /* Box shadow */
}

.logo {
  max-height: 7rem;
  width: 13rem;
}

.block-container{
  padding: 3rem;
  display: grid;
  grid-template-columns: 27.27% 27.27% 27.27%;
  grid-auto-rows: 20rem;
  grid-column-gap: 9.09%;
  grid-row-gap:3rem
}

.content {
  padding: 0px;
  text-align: center;
  color: white;
  z-index: 1; /* Ensure content is above the pseudo-element */
  position: relative; /* Required to keep content above the overlay */
}

/* Create the dotted pattern overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.1) 2px, transparent 1px);
  background-size: 26px 26px; /* Adjust the size of the dots */
  pointer-events: none; /* Allow clicks to pass through the overlay */
  z-index: -1; /* Place the overlay behind the content */
}

.div-link{
  text-decoration: none; /* Remove underline from links */
  display: block;
}

.red {
  background-color: #D20034;
}

.red:hover{
  background-color: #1a255f;
}

.orange {
  background-color: #DE4604;
}

.orange:hover {
  background-color: #05708a;
}

.green {
  background-color: #4D9D46;
}

.green:hover {
  background-color: #721472;
}

.blue {
  background-color: #0499AB;
}

.blue:hover {
  background-color: #834308;
}
.block{
  display: grid;
  padding: 1rem;
  color: white;
  text-align: right;
  justify-content: flex-end;
  align-items: center;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.3), -2px 2px 9px rgba(0, 0, 0, 0.3) , -2px -2px 9px rgba(0, 0, 0, 0.3), 2px -2px 9px rgba(0, 0, 0, 0.3);/* Box shadow */
  font-size: 1rem;
  transition: background-color 0.5s;
  letter-spacing: -0.2px;
  cursor: pointer;
}

.subtitle{
  font-size: 1rem;
  color: rgb(238, 238, 238);
  letter-spacing: 0.5px;
}
.custom-button {
  position: relative;
  background-color: white;
  color: black;
  border: none;
  padding: 10px 20px;
  font-size: 1.5rem;
  border-radius: 40px; /* Adjust for desired roundness */
  width: 90%;
  max-width: 30rem;
  cursor: pointer;
  outline: none;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  font-style: normal;
  transition: all 0.3s;
  letter-spacing: 0.20rem;
}

.custom-button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 50%;
  border-bottom: 3.5px solid black;
  border-radius: 0 0 40px 40px; /* Same as button border-radius */
  pointer-events: none; /* Ensure pseudo-element doesn't affect button interaction */
  z-index: 1;
}

.custom-button:hover {
  transform: translateY(0.2rem);
  background-color: #DE4604;
  color: white;
}

.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:#FCB505;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s ease-out;
  z-index: 9999;
  pointer-events: none; 
  animation: 0.7s ease-out 0s 1 slideInFromLeft;
}

.transition-overlay.active {
  transform: scaleY(1);
} 


.bottom-bar{
  background-color: #0499AB;
  min-height: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 1rem 3rem;
}

.bottom-bar a {
  cursor: default;
}

.bottom-bar li a {
  margin-left: 5rem;
  text-decoration: none;
  color: rgb(0, 0, 0);
  transition: color 0.5s;
  cursor: pointer;
} 

.bottom-bar li a:hover {
  color: rgb(98, 71, 2);
} 

.bottom-bar div{
  display: flex;
  align-items: center;
  color:rgb(0, 0, 0)
}

@media (max-width: 45rem) {
  header {
    flex-direction: column; /* Stack logo and nav vertically */
    align-items: center; /* Align items to the start */
    background: rgb(252,166,5);
    background: -moz-linear-gradient(180deg, rgba(252,166,5,1) 27%, rgba(252,181,5,0) 100%);
    background: -webkit-linear-gradient(180deg, rgba(252,166,5,1) 27%, rgba(252,181,5,0) 100%);
    background: linear-gradient(180deg, rgba(252,166,5,1) 27%, rgba(252,181,5,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#fca605",endColorstr="#fcb505",GradientType=1); 
  }

  .logo {
    width: 5rem;
    align-items: center;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav {
    width: 100%; /* Take full width */
    justify-content: center; /* Center the nav items */
    padding: 0;
  }

  ul {
    flex-direction: column; /* Stack links vertically */
    width: 100%; /* Ensure links take full width */
    align-items: center; /* Center align the links */
    margin: 0;
  }

  nav li {
    margin: 0 0; /* Adjust margins for better spacing */
    width: 100%; /* Ensure each link takes full width */
    text-align: center; /* Center text */
    padding: 0;
  }

  nav li a {
    margin: 1rem;
    text-decoration: none;
    color: black;
  } 

  a {
    font-size: 1rem;
  }

  .block-container{
    padding: 4%;
    display: grid;
    grid-template-columns: 48% 48% ;
    grid-auto-rows: 20rem;
    grid-column-gap: 4%;
    grid-row-gap:3rem
  }

  .subtitle{
    font-size: 0.9rem;
    color: rgb(238, 238, 238);
  }

  .hidden {
    position: absolute;
    transform: scaleY(0%);
  }

}

@media (max-width: 25rem) {
  h1 {
    font-size: 3rem;
  }

  .block-container{
    padding: 7%;
    display: grid;
    grid-template-columns: 100%;
    grid-auto-rows: 20rem;
    grid-column-gap: 0%;
    grid-row-gap:3rem
  }

  .bottom-bar {
    flex-direction: column; /* Stack links vertically */
    width: 100%; /* Ensure links take full width */
    align-items: center; /* Center align the links */
    margin: 0;
    padding: 0;
    padding-bottom: 1rem;
  }

  .bottom-bar li a {
    margin-left: 0rem;
    padding: 1rem 1rem 0 1rem;
    text-decoration: none;
    color: rgb(0, 0, 0);
  } 
}