:root {
  --black-bg: #0a0a0a;
  --text-light: #ffffff;
  --hover-bg: #4a6bff;
  --dark-gray: #1e1e1e;
  --navbar-bg: #121212;
  --shadow: rgba(0, 0, 0, 0.3);
  --progress-bg: #333;
  --progress-fill: #4a6bff;
  --overlay-bg: rgba(0, 0, 0, 0.8);
}

/* Base Styles */
body {
  margin: 0;
  padding: 0;
  background-color: var(--black-bg);
  color: var(--text-light);
  font-family: 'Quantico', sans-serif;
  min-height: 100vh;
}

.video-main {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.video-instruction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  width: 90%;
  max-width: 800px;
  box-sizing: border-box;
}

.video-instruction h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Video Container Styles */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 2rem 0;
  border-radius: 8px;
  padding-bottom: 56.25%; 
  box-shadow: 0 4px 12px var(--shadow);
  background-color: #000;
  overflow: hidden;
}
#youtubePlayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-container video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 30;
}

.video-controls button {
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-controls button:hover {
  background-color: var(--hover-bg);
  transform: scale(1.1);
}

/* Video Overlay Styles */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10; /* Ensure it's above the video */
}



.video-overlay.hidden {
  display: none;
}

.overlay-content {
  text-align: center;
  padding: 20px;
  z-index: 21;
}

.play-button {
  font-size: 4rem;
  color: var(--hover-bg);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.video-overlay:hover .play-button {
  transform: scale(1.1);
}

.overlay-text {
  font-size: 1.2rem;
  margin: 0;
  color: var(--text-light);
}

/* Progress Bar Styles */
.progress-container {
  width: 100%;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex-grow: 1;
  height: 8px;
  background-color: var(--progress-bg);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--progress-fill);
  width: 0%;
  transition: width 0.1s linear;
}

#progressText {
  font-size: 0.9rem;
  min-width: 100px;
  text-align: right;
}

/* Button Styles */
#continueBtn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  background-color: var(--dark-gray);
  color: var(--text-light);
  font-size: 1rem;
  cursor: not-allowed;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto;
  width: 100%;
  max-width: 400px;
}

#continueBtn.enabled {
  background-color: var(--hover-bg);
  cursor: pointer;
}

#continueBtn .button-icon {
  margin-left: 0.5rem;
}

/* Info Dropdown Styles */
.info-toggle {
  margin: 1.5rem 0;
  text-align: left;
  width: 100%;
}

#toggleInfoBtn {
  background-color: var(--dark-gray);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

#toggleInfoBtn:hover {
  background-color: var(--hover-bg);
}

#infoContent {
  display: none;
  background-color: var(--navbar-bg);
  color: var(--text-light);
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
}

#infoContent p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Timer Styles */
.timer-container {
  background-color: var(--dark-gray);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem auto;
  text-align: center;
  max-width: 400px;
  display: none;
}

.timer-text {
  margin: 0;
  font-size: 1.1rem;
}

#countdown {
  color: var(--hover-bg);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .video-instruction {
    padding: 1.5rem;
    width: 95%;
  }

  .video-instruction h1 {
    font-size: 1.8rem;
  }

  .play-button {
    font-size: 3.5rem;
  }

  .overlay-text {
    font-size: 1.1rem;
  }

  #continueBtn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .video-instruction {
    padding: 1rem;
    width: 100%;
  }

  .video-instruction h1 {
    font-size: 1.5rem;
  }

  .video-container {
    margin: 1rem 0;
  }

  .play-button {
    font-size: 3rem;
  }

  .overlay-text {
    font-size: 1rem;
  }

  #continueBtn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .progress-container {
    flex-direction: column;
    align-items: flex-start;
  }

  #progressText {
    text-align: left;
    margin-top: 0.5rem;
  }
}