body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
}

.content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.upper-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lower-content {
  flex: 1;
  display: flex;
  padding-bottom: 5%;
}

.animated-text1,
.animated-text2 {
  margin: 20px 0;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

/* Media query for portrait orientation */
@media (orientation: portrait) {
  #bg-video {
    width: auto;
    height: 100%;
  }
}

/* Media query for landscape orientation */
@media (orientation: landscape) {
  #bg-video {
    width: 100%;
    height: auto;
  }
}

#bg-video {
  filter: sepia(100%) brightness(80%);
}

.animated-text1,
.animated-text2,
.animated-text3 {
  text-align: center;
  color: gold;
  text-shadow: 0 0 10px gold, 0 0 20px gold, 0 0 30px #FFD700, 0 0 40px #FFD700;
}

.animated-text1 {
  font-size: 3rem;
  animation: fadeInOut1 15s ease-in-out infinite;
}

.animated-text2 {
  font-size: 3rem;
  animation: fadeInOut2 15s ease-in-out infinite;
}

.animated-text3 {
  font-size: 2rem;
  animation: fadeInOut3 15s ease-in-out infinite;
}

@keyframes fadeInOut1 {

  0%,
  10% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 1;
  }
}

@keyframes fadeInOut2 {

  0%,
  30% {
    opacity: 0;
  }

  70%,
  100% {
    opacity: 1;
  }
}

@keyframes fadeInOut3 {

  0%,
  70% {
    opacity: 0;
  }

  90%,
  100% {
    opacity: 1;
  }
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid gold;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hidden-text {
  opacity: 0;
  animation: none !important;
}