.featured-header {
  position: sticky;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding: 0 40px;
  animation: fade-in 0.5s forwards;
}

h1 {
  color: white;
  padding-top: 20px;
  padding-bottom: 20px;
  white-space: nowrap;
  transition: 0.4s;
}

.featured-projects-container {
  display: flex;
  position: relative;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
  scroll-behavior: smooth;
  transition: 0.3s;
}

.featured-projects {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  background-color: rgba(19, 19, 19, 0.5);
  backdrop-filter: blur(10px);
  height: fit-content;
  width: 95%;
  border-radius: 20px;
  padding: 10px;
  overflow-x:auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  transition: 0.3s;
  animation: fade-in 0.5s forwards;
}

.featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 445px;
  margin: 20px;
  animation: slider 0.5s forwards;
  transition: 0.3s;
  position: relative;
}

.featured-card:hover {
  border-radius: 15px;
  transform: scale(1.01);
  margin-left: 100px;
  z-index: 1;
}

.not-searched {
  transform: scaleX(0);
  max-width: 0;
  margin: 0px;
  transition: 0.3s;
}

.not-searched .featured-card-imgholder {
  opacity: 0;
  transition: 0.3;
}

.not-searched .featured-card-content {
  opacity: 0;
  transition: 0.3s;
}

.highlighted {
  background-color: yellow;
}

.featured-card-imgholder {
  overflow: hidden;
  border-radius: 20px;
  margin: 10px;
  aspect-ratio: 16/9;
  height: 250px;
  transition: 0.3s;
}

.featured-card-imgholder img {
  width: 100%;
  object-fit: cover;
}

.featured-card-content {
  display: flex;
  width: 100%;
  height: 85px;
  padding-left: 10px;
  align-items: start;
  justify-content: start;
  flex-direction: column;
  overflow: hidden;
}

h2 {
  font-size: 20px;
  color: white;
}

.featured-description {
  padding-top: 5px;
  color: #858585;
}

.project-date {
  font-size: 0px;
  color: #555;
  margin-top: 10px;
  display: block;
  transition: 0.2s;
}

.featured-card:hover .project-date {
  font-size: 0px;
}

.no-results-found {
  display: flex;
  transform: scale(0);
  max-width: 0;
  transform: translateX(400px);
  opacity: 0;
  transition: 0.3s;
}

.no-results-found-show {
  transform: scale(1);
  max-width: 445px;
  opacity: 1;
  z-index: 100;
}

.noresult-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 445px;
  margin: 10px;
  transition: 0.3s;
}

.noresult-card-content {
  display: flex;
  width: 100%;
  height: 85px;
  padding-top: 5px;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  overflow: hidden;
}

.flex-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-container a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease-in-out, font-size 0.3s;
}

.flex-container a:hover {
  color: #0069fd;
  font-size: 125%;
}

.featured-projects::-webkit-scrollbar {
  display: none;
}

@media (hover: none) {
  .featured-card:hover {
    transform: none;
    margin-left: 0;
  }
}

@media only screen and (max-width: 475px) {
  .featured-header {
    padding: 0 0;
  }
  h1 {
    padding: 30px 10px;
    text-align: center;
  }

  .featured-header:has(.featured-searchBox:focus) h1 {
    font-size: 0;
    transform: translateX(-100px);
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    opacity: 0;
    transition: 0.3s;
  }

  .featured-header {
    justify-content: center;
  }

  .featured-card {
    width: 80vw;
  }
  
  .featured-card-imgholder {
    aspect-ratio: 16/9;
    width: 80vw;
    height: auto;
  }

  .featured-card-content {
    display: flex;
    width: 100%;
    height: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
  }
  .noresult-card-content {
    width: 100%;
    height: 25px;
  }
  .featured-description {
    font-size: 0px;
  }
}

/*need to be finished*/

.arch {
  height: 0px;
  background-color: rgb(115, 0, 255);
}

.arch {
  display: block;
  visibility: hidden;
}

.flex-container {
  display: none;
  visibility: hidden;
}

/* --------------------- */

@keyframes slider {
  0% {
    margin-left: 200px;
    opacity: 0;
  }
  100% {
    margin-left: 0;
    opacity: 1;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
