body {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.videocontainer {
  position: relative;
  /* width: 100%; */
  width: fit-content;
}
.sourcevideo {
  width: 100%;
  height: 100vh;
  object-fit: contain;
}
p {
  margin: 0px;
}
/* Blinking/flickering animation */
@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

.box {
  position: absolute;
  border: 2px solid #FFEB3B;
  background-color: #1b9b67;
  opacity: 0.3;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  animation: blink 1s ease-in-out infinite;
}

.box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 5px;
  color: #1b9b67;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 100;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  animation: blink 1s ease-in-out infinite;
}

/* Show text when box is visible */
.box.box-visible::after {
  opacity: 1;
}
.transfer {
  top: 7.9%;
  left: 1%;
  width: 19%;
  height: 4%;
}

.quickpay {
  top: 7.9%;
  left: 22%;
  width: 22%;
  height: 4%;
}
.mit {
  top: 7.9%;
  left: 47%;
  width: 47%;
  height: 4%;
}

.owntransfer {
  top: 13.9%;
  left: 1%;
  width: 36%;
  height: 4.7%;
}
.withintransfer {
  top: 13.9%;
  left: 41%;
  width: 26%;
  height: 4.7%;
}
.otherbanktransfer {
  top: 13.9%;
  left: 71%;
  width: 28%;
  height: 4.7%;
}
.internalquikpay {
  top: 13.4%;
  left: 1%;
  width: 47%;
  height: 4.9%;
}

.domasticquikpay {
  top: 13.4%;
  left: 52%;
  width: 47%;
  height: 4.9%;
}

.dia {
  top: 24.4%;
  left: 3.5%;
  width: 52%;
  height: 3.9%;
}
.dma {
  top: 28.4%;
  left: 3.5%;
  width: 52%;
  height: 3.9%;
}

/* Home button container */
.home-button {
  position: absolute;
  top: 2%;
  right: 6%;
  width: 10%;
  display: none;
  cursor: pointer;
  z-index: 10;
}
.replay-button {
  position: absolute;
  top: 50%;
  right: 38%;
  width: 20%;
  display: none;
  cursor: pointer;
  z-index: 10;
}

.home {
  width: 100%;
  height: auto;
  display: block;
}

/* Custom play/pause button */
.custom-play-pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #1b9b67;
  border: 2px solid #1b9b67;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.custom-play-pause:hover {
  background-color: #158a5a;
  border-color: #158a5a;
  transform: translate(-50%, -50%) scale(1.1);
}

.custom-play-pause:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.custom-play-pause .play-icon,
.custom-play-pause .pause-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Loading indicator */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(27, 155, 103, 0.2);
  border-top: 4px solid #1b9b67;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  margin-top: 15px;
  color: #1b9b67;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
