/* start of video */
.video-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1; /* Sends video to the background */
}

video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}
@media (max-width: 768px) {
  .video-container {
    height: 80vh;
  }
}
@media (max-width: 768px) {
  .video-container {
    height: 80vh;
  }
}
/* End of video */

.xcircle-container {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 20vw;
  height: 20vw;
  max-width: 300px;
  max-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* xcircle Animation */
@keyframes pulseRotate {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

/* Hide elements initially */
.xcircle,
.xcard {
  opacity: 0;
  transform: scale(0);
}

/* xcircle animation */
.xcircle.show {
  animation: pulseRotate 4s infinite ease-in-out forwards;
}

/*xcard animation*/
@keyframes fadeScale {
  0% {
    opacity: 0;
    scale: 0.5;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

/* Apply the animation */
.xcard.show {
  animation: fadeScale 0.8s ease-out forwards;
}

.xcircle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 10px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

/* xcard styling */
.xcard {
  position: absolute;
  width: 22vw;
  height: 22vw;
  max-width: 120px;
  max-height: 120px;
  min-width: 80px;
  min-height: 80px;
  background: rgba(219, 231, 52, 0.9);
  /* border-radius: 8px; */
  border-radius: 50%;
  padding: 5px;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  font-size: clamp(10px, 1.8vw, 14px);
}

.xcentered {
  padding: 3px;
  background: rgba(141, 194, 219, 0.9);
  font-size: clamp(10px, 2.3vw, 14px);
  text-align: center;
  z-index: 2;
  color: #000;
}
/* Default styles for all screens */
.dtext {
  font-size: 14px; /* Default size for larger screens */
  line-height: 1.1;
  margin: 0;
  transition: font-size 0.3s ease; /* Smooth transition when resizing */
}

/* Final xcard positions */
.xcard:nth-child(1) {
  /* North (12 o'clock) */
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.xcard:nth-child(2) {
  /* East (3 o'clock) */
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(50%);
}
.xcard:nth-child(3) {
  /* South (6 o'clock) */
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
}
.xcard:nth-child(4) {
  /* West (9 o'clock) */
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(-50%);
}

/*Numbered*/
.numbered {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: clamp(10px, 2.5vw, 14px);
  margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .xcircle-container {
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 40vw;
    height: 40vw;
  }

  .xcard {
    padding: 5px;
    width: 15vw;
    height: 15vw;
  }

  .dtext {
    font-size: 9px;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .xcircle-container {
    width: 35vw;
    height: 35vw;
  }

  .xcard {
    width: 16vw;
    height: 16vw;
    min-width: 50px;
    min-height: 50px;
  }

  .numbered {
    width: 14px;
    height: 14px;
    margin-bottom: 3px;
  }

  .dtext {
    font-size: 8px;
    line-height: 1;
  }
}
