body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #719ac5, #8e7ca7);

}



body.fade-in {
  animation: fadeIn 1.5s ease-in-out forwards; /* Add 'forwards' to persist the final state */
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}






@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


nav .nav-link {
    font-size: 34px;
    color: white !important;
  }
  
  nav .nav-link:hover {
    text-decoration: line-through;
  }

  .navbar-toggler {
    transform: translateY(4px);  /* Move it up (negative = up, positive = down) */
 height: 80px;
      width: 70px;
      color: white;
      
  }


.navbar-nav .nav-link {
  line-height: 20px; /* Match header height */
    padding: 8px;
    font-size: 24px;
          color: white;

}

.navbar img {
    padding-left: 10px;
    height: 55px;
    width: auto;
}









/* Grid Layout */


.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr); /* Adjust for 2x3 layout */
  gap: 30px;
  padding: 30px;
  height: calc(100vh - 40px); /* Adjust for header height */
  padding-bottom: 950px; /* Add space at the bottom */
  padding-top: 140px; 

  margin-bottom: 800px;



  
  
}













.grid-item  {
  background-color: #e7f0f7;
  padding: 10px;
  border-radius: 8px;

  opacity: 0; /* Start hidden */
  transform: translateY(20px); /* Start slightly offset */
  transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth fade-in */

}

.grid-item.visible {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Move to original position */
}






.grid-link:link,
.grid-link:visited {
  color: white;
  text-decoration: none;
}

.grid-link:hover {
  color: white;
}

.grid-link:active {
  color: blue;
}










.fill {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;  /* Ensure the parent container spans full width */
  height: 100%; /* Match the height of the grid item */
  overflow: hidden; /* Prevent any overflow */

}

.fill a {
display: inline-block;
}


.fill img { 
flex-shrink: 0;
min-width: 100%;
min-height: 100%;
transition: opacity 0.3s ease;

}




.fill img:hover {
opacity: 0.7; /* Decrease opacity to dim the image */
}

.fill a h1{
align-content: center;
margin-left: 340px;
margin-top: -2%;
}

.fill h1 {
color: white;
position: absolute;
text-align:center;
z-index: 5;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
background-color:  rgb(112, 112, 206)  /* #04AA6D    */;
color: white;
border-radius: 12px;
font-size: 24px;
box-shadow:5px 5px 10px rgba(0, 0, 0, 0.3), /* Main shadow */  
;
padding: 30px 60px;
transition: font-size 0.3s ease, color 0.3s ease; /* Smooth transition effect for font size and color */

}

.fill h1:hover {
color: #616060; /* Change text color on hover */
cursor: pointer; /* Change cursor to pointer */


}


@media screen and (min-width: 360px) and (max-width: 740px) {
 body {
     margin-bottom: 1550px;
   }
   
   .fill {
   width: auto;
     height: 280px;
     
   }
   .fill h1{
   font-size: 20px;
 }
 
   .grid-container {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
       gap: 20px;
       padding: 20px;
       padding-top: 150px;
       margin: 0 auto; /* Center the grid */
       max-width: 600px; /* Optional: keeps grid from stretching too wide */
       box-sizing: border-box;

     }


  
}









@media screen and (min-width: 375px) and (max-width: 667px) {

 body {
    margin-bottom: 1550px;
  }
  
 
  .fill {
  width: auto;
    height: 300px;
    
  }
  .fill h1{
  font-size: 25px;
}

  .grid-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      padding: 20px;
      padding-top: 150px;
      margin: 0 auto; /* Center the grid */
      max-width: 600px; /* Optional: keeps grid from stretching too wide */
      box-sizing: border-box;
  
    }
  }








@media screen and (min-width: 390px) and (max-width: 844px) {
  
  body {
    margin-bottom: 1550px;
  }
  
 

  .fill {
  width: auto;
    height: 300px;
    
  }
  .fill h1{
  font-size: 25px;
}

  .grid-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      padding: 20px;
      padding-top: 150px;
      margin: 0 auto; /* Center the grid */
      max-width: 600px; /* Optional: keeps grid from stretching too wide */
      box-sizing: border-box;
        margin-bottom: 1400px;

    }
  }

  

  
   
  
  

@media screen and (min-width: 430px) and (max-width: 932px) {

  
.fill h1{
  font-size: 27px;
}
  .grid-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      padding: 20px;
      padding-top: 150px;
      margin: 0 auto; /* Center the grid */
      max-width: 600px; /* Optional: keeps grid from stretching too wide */
      box-sizing: border-box;
      margin-bottom: 1400px;

    }
  }



  


@media screen and (min-width: 600px) and (max-width: 1024px) {
header {
    height: auto;
    padding: 10px;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  padding-bottom: 200px;
  overflow-x: hidden; /* Prevents horizontal scrolling */


}


    .grid-container {
      grid-template-columns: 1fr; /* Stack items in one column */
      margin-bottom: 100px;
       width: 100%; /* Ensure container doesn't overflow horizontally */
      box-sizing: border-box; /* Include padding in width calculation */
      padding-top: 160px; /* Move container down slightly */
      margin: 0px auto; 
      
  }


  .grid-item{
    width: 96%;
  }
  .fill h1 {
    font-size: 32px;
    padding: 40px 40px;
}


}







