#rare-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
  opacity: 1;
}

#rare-overlay.hidden {
  display: none;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#rare-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 1;
}

#rare-text-box {
  position: relative;
  width: 100%;
  padding: 0 10px;
  text-align: center;
  z-index: 10;
}

#rare-title {
  font-size: 60px !important;
  font-weight: bold;
  margin-bottom: 40px !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

#rare-desc {
  font-size: 30px !important;
  color: #fff;
  line-height: 3rem !important;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

.highlight {
  color: #00ffcc;
  font-weight: bold;
}

#rare-title,
#rare-desc {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#rare-overlay.fading-out {
  opacity: 0;
}

#rare-overlay.hidden {
  display: none;
  opacity: 0;
}

.appear-animate {
  animation: fadeInUp 0.8s ease-out forwards;
}

#rare-desc.appear-animate {
  animation-delay: 0.8s;
}

@media (max-width: 768px) {
  #rare-title {
    font-size: 32px !important;
    font-weight: bold;
    margin-bottom: 40px !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
  }

  #rare-desc {
    font-size: 18px !important;
    color: #fff;
    line-height: 2rem !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
  }
}
