.fourth-slide p span {
  font-weight: bold;
  color: rgb(250, 200, 63);
}

.fifth-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  width: 100%;
  text-align: center;
  opacity: 1;
}

@keyframes flashing-words {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes last-flash {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  20% {
    color: rgb(250, 200, 63);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    color: white;
    opacity: 1;
  }
}

.fifth-slide div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation-name: flashing-words;
  animation-duration: 0.5s;
  text-align: center;
  animation-delay: calc(var(--ad) + 75s);

  font-size: 40px;
  overflow: hidden;
}

.fifth-slide p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fifth-slide img {
  width: 90vw;
  height: 90vh;
  object-fit: cover;
  opacity: 0.2;
  overflow: hidden;

  border-radius: 20px;
}

@keyframes last-flash-hide {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fifth-slide .last-flash {
  font-size: 60px;
  animation: last-flash 3s calc(10s + 75s) forwards,
    last-flash-hide 3s calc(10s + 88s) forwards;
  font-weight: bold;
}

@keyframes appear-last-flash-desc {
  from {
    opacity: 0;
    transform: translateY(50%);
  }
  to {
    opacity: 0.8;
    transform: translateY(0%);
  }
}

.last-flash-desc {
  display: block;
  color: white !important;
  font-size: 1rem !important;
  margin-top: 5px;
  text-align: center;
  opacity: 0;

  overflow-y: hidden;

  animation: appear-last-flash-desc 3s calc(10s + 77s) forwards;
}
