/* BODY */
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* Stack child elements vertically */
  min-height: 100vh;
  background-color: #f8f9fa;
}

header, footer {
  flex-shrink: 0; /* Don't allow the header and footer to shrink */
}

/* BUTTONS */
.button-section{
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.button-section h2 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  font-family: sans-serif;
}

.ResourcePortalText{
  background-image: linear-gradient(0deg, rgb(0, 0, 0) 0.00%, rgba(26, 129, 189, 0.92) 100.00%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: none;
}

.ResourcePortalImage{
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(0deg, rgb(0, 0, 0) 0.00%, rgba(26, 129, 189, 0.92) 100.00%);
  border-radius: 0.75rem;
}

.ResourcePortalImageIcon{
  width: 80%;
  object-fit: cover;
}

.button-bar {
  display: flex;
  border-radius: 5px;
  background-color: transparent;
  min-height: 50px;
  /* Remove gaps between buttons */
  gap: 0;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  flex-direction: row;
  justify-content: center;
}

.expand-button {
  padding-top: 1rem;
  width: 180px;
  height: 140px;
  background-color: #fff;
  border: none; /* Remove individual button borders */
  border-radius: 0; /* Remove individual button rounded corners */
  overflow: hidden;
  transition: width 0.3s ease-in-out;
  position: relative;
  cursor: pointer;
  display: flex; /* Enable vertical stacking */
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center items vertically */
  align-items: center; /* Center items horizontally */
  padding-bottom: 1rem;
}

.expand-button img {
  width: 50px;
  object-fit: cover;
  margin-bottom: 2rem;
}

.expand-button:hover {
  width: 400px;
}

.expand-button .hidden-text {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  opacity: 0; /* Initially hidden */
  margin-top: 2.5rem;
  transition: opacity 1s ease-in-out; /* Add transition */
  font-size: 18px;
}

.expand-button:hover .hidden-text {
  display: block;
  opacity: 1; /* Fade in on hover */
}

/* Specifrgb(196, 177, 177)tyles for first and last buttons */
.first {
  border-top-left-radius: 6rem;
  border-bottom-left-radius: 6rem;
  background-color: #1a81bdff;
}

.second {
  background-color: #266e8e;
}

.third{
  background-color: #325c73;
}

.fourth{
  background-color: #2d343b;
}

.last {
  border-top-right-radius: 6rem;
  border-bottom-right-radius: 6rem;
  background-color: #000000;
}



/* MAP */
.home-map-container {
  flex-grow: 1; /* Allow the home map container to grow and take the available space */
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-map {
  width: 80%;
  max-width: 1920px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}


/* NEW MAP */
.welcome {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  height: 500px; /* adjust to your desired height */
  transition: 0.3s;
  /* background-color:  rgba(26, 129, 189, 0.92); */
  background-color: #2d343b;
  font-family: sans-serif;
}

.welcome-image-container {
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.welcome-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  transform: translateY(-50%); /* initial parallax position */
  transition: 0.3s;
}

.welcome-content {
  width: 50%;
  padding: 20px;
  /* text-align: center; */
}

.welcome h2 {
  font-size: 48px; /* larger text for welcome section */
  margin-bottom: 10px;
  color: #fff; /* use different color for emphasis */
}

.welcome p {
  line-height: 1.5;
  color: #fff; /* lighter text for better contrast */
}

/* Animation on scroll */  
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.welcome-content {
  animation: fade-in 1s ease-in-out;
}

/* Parallax scrolling animation */

.welcome:hover .welcome-image {
  transform: translateY(0%);
  transition: 0.3s;
}

.welcome:active .welcome-image {
  transform: translateY(5%);
  transition: 0.3s;
}


@media only screen and (max-width: 768px) {
  .home-map {
    width: 100%; /* Adjust as needed for smaller screens */
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .expand-button {
    width: 48vh; /* Add a maximum width if necessary */
    margin-bottom: 1rem;
  }

  .expand-button .hidden-text {
    display: block;
    opacity: 1; /* Fade in on hover */
  }
}


@media (max-width: 992px) {
.welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}

.welcome-content {
    width: 100%;
    padding: 20px;
    /* text-align: center; */
}
  
.welcome h2 {
    font-size: 18px; /* larger text for welcome section */
    margin-bottom: 10px;
    color: #fff; /* use different color for emphasis */
}
  
.welcome p {
    line-height: 1.5;
    color: #fff; /* lighter text for better contrast */
}

.welcome-image {
    display: none;
}
}


@media (max-width: 1300px) {
  .welcome h2 {
      font-size: 36px; /* larger text for welcome section */
      margin-bottom: 10px;
      color: #fff; /* use different color for emphasis */
  }
    
  .welcome p {
      line-height: 1.5;
      color: #fff; /* lighter text for better contrast */
  }
}



@media only screen and (max-width: 1200px) {
  .welcome h2 {
    font-size: 24px; /* larger text for welcome section */
    margin-bottom: 10px;
    color: #fff; /* use different color for emphasis */
}
  
.welcome p {
    line-height: 1.5;
    color: #fff; /* lighter text for better contrast */
}

  .button-bar {
    flex-direction: column;
    align-items: center;
  }

  .expand-button {
    margin-bottom: 1rem;
  }

   .first {
    border-top-left-radius: 6rem;
    border-bottom-left-radius: 6rem;
    border-top-right-radius: 6rem;
    border-bottom-right-radius: 6rem;
  }
  
  .second {
    border-top-left-radius: 6rem;
    border-bottom-left-radius: 6rem;
    border-top-right-radius: 6rem;
    border-bottom-right-radius: 6rem;
  }
  
  .third{
    border-top-left-radius: 6rem;
    border-bottom-left-radius: 6rem;
    border-top-right-radius: 6rem;
    border-bottom-right-radius: 6rem;
  }
  
  .fourth{
    border-top-left-radius: 6rem;
    border-bottom-left-radius: 6rem;
    border-top-right-radius: 6rem;
    border-bottom-right-radius: 6rem;
  }
  
  .last {
    border-top-left-radius: 6rem;
    border-bottom-left-radius: 6rem;
    border-top-right-radius: 6rem;
    border-bottom-right-radius: 6rem;
  }
}