/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: sans-serif;
  overflow: hidden;
  position: relative;
}

/* Background Layer */
.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('background.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-color: black;
  z-index: 1;
  transition: filter 5s ease;
}

/* Content Layer */
.content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
}

#showVideoButton {
  padding: 15px 30px;
  font-size: 24px;
  background-color: tan;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.9s;
}

#showVideoButton:hover {
  background-color: darkgray;
}

.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

video {
  width: 90%;
  max-width: 800px;
  aspect-ratio: 4/3;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

#video_controls_bar {
  background: black;
  padding: 10px;
  width: 90%;
  max-width: 800px;
  text-align: center;
  position: relative;
}

#playPauseButton {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #17b0cf;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#playPauseButton:hover {
  background-color: #d69158;
}

#seekSlider {
  width: 100%;
  margin-top: 10px;
}

/* Progress Wheel Spinner */
.progress-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid #17b0cf;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none; /* Hidden by default */
  transform: translate(-50%, -50%);
}

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

.blur-background {
  filter: blur(8px) brightness(50%);
}
