.exp-cards {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
}

.exp-card {
  display: none;
  aspect-ratio: 4 / 3;
  width: 65vw;
  padding: 0 20px;
  min-height: 60vh;
  background-color: var(--bg-exp-card);
  background-image:
    linear-gradient(to bottom, var(--exp-line-color) 1px, transparent 1px);
  background-size: 60px 60px;
}

.exp-card.active {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  background-color: var(--bg-card-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.98);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.highlighter {
  width: fit-content;
  height: fit-content;
  position: relative;
  padding: 0px 40px;
  font-family: 'Pacifico', Arial;
  font-size: 4rem;
  color: var(--exp-card-text-color);
  z-index: 2;
  isolation: isolate;
}

.highlighter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0.9em;
  background-color: var(--exp-card-highlight-color);
  transform: translateY(-40%);
  z-index: -1;
}

.exp-card-info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 20px;
  width: 100%;
  height: 70%;
}

.exp-card-info img {
  width: 40%;
  height: auto;
  object-fit: contain;
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: 310px;
  height: 80%;
}

.text p {
  font-family: 'Patrick Hand', cursive;
}

.exp-info-tools {
  font-size: 1.8rem;
  width: 340px;
  color: var(--exp-card-text-color);
}

.exp-info-text {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #f3f3f3;
}

.exp-card-extra-info {
  display: flex;
  justify-content: right;
  align-items: center;
  margin-right: 10px;
  gap: 5px;
}

.exp-card-extra-info img {
  width: 30px;
  height: auto;
  margin-right: 10px;
  transition: filter 0.3s ease;
}

.exp-card-extra-info img:hover {
  animation: float 2s ease-in-out infinite;
  filter: drop-shadow(0 0 3px #EBCA50)
          drop-shadow(0 0 6px #c29cd9);
}

.project-link-2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-link-2 img {
  width: 28px;
}

.last-exp,
.next-exp {
  position: absolute;
  font-size: 50px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.exit {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 25px;
}

.last-exp {
  left: -42px;
}

.next-exp {
  right: 50%;
  right: -40px;
}

.exit:hover,
.last-exp:hover,
.next-exp:hover {
  color: var(--star-outline);
}

@media (min-width: 1024px) {
  .exp-card {
    width: 850px;
  }
}

@media (max-width: 1024px) {
  .highlighter {
    font-size: 2.8rem;
  }

  .exp-card-info video {
    width: 280px;
  }

  .exp-info-tools {
    font-size: 1.4rem;
  }
  .exp-card-info .text .exp-info-text {
    font-size: 1rem;
  }

  .star-menu2 {
    margin-right: 180px;
    align-self: last baseline;
  }
}

@media (max-width: 768px) {
  .highlighter {
    font-size: 2.8rem;
  }

  .exp-cards {
    width: 80%;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 0;
    padding: 100px 0;
  }

  .exp-card {
    width: 100%;
    height: auto;
    padding: 2rem;
    padding-bottom: 200px;
  }

  .exp-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: auto;
  }

  .exp-card-info video {
    width: 250px;
  }

  .exp-card-info .exp-card-img {
    width: 250px;
    height: 250px;
  }

  .exp-info-tools,
  .exp-card-info .text .exp-info-text {
    font-size: 1rem;
  }

  .exit {
    top: 130px;
    right: -10px;
  }

  .star-menu2 {
    transform: scale(0.75);
    margin-right: 270px;
  }
}

@media (max-width: 600px) {
  .highlighter {
    font-size: 1.3rem;
  }

  .exp-cards {
    width: 80%;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 0;
    padding: 100px 0;
  }

  .exp-card {
    width: 100%;
    height: auto;
    padding: 2rem;
    padding-bottom: 100px;
  }

  .exp-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: auto;
  }

  .exp-card-info video {
    width: 250px;
  }

  .exp-card-info .exp-card-img {
    width: 250px;
    height: 250px;
  }

  .exp-info-tools,
  .exp-card-info .text .exp-info-text {
    font-size: 1rem;
  }

  .exit {
    top: 130px;
    right: -10px;
  }

  .star-menu2 {
    transform: scale(0.82);
    margin-right: 450px;
  }
}

@media (max-width: 320px) {
  .star-menu2 {
    transform: scale(0.6);
  }
}

@media (max-height: 1000px) and (min-width: 800px) {
  .exp-card.active {
    min-height: fit-content;
    aspect-ratio: 3/2;
    transform: scale(0.95);
  }
}
