/* Logo positioning - Multiple selectors to ensure it works and override Quarto defaults */
.reveal .slide-logo,
.reveal-header .logo,
.reveal .logo,
.slide-logo,
.reveal .slide-header .logo {
  /* Position logo at top left, opposite to theme toggle - override Quarto's footer.css */
  position: fixed !important;
  left: 12px !important;
  right: auto !important;
  top: 12px !important;
  bottom: auto !important;
  z-index: 1000 !important;
  max-height: 40px !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
}

/* Extra specific override for Quarto's RevealJS footer.css */
.reveal.has-logo .slide-logo,
.reveal .slide-logo {
  position: fixed !important;
  left: 12px !important;
  right: auto !important;
  top: 12px !important;
  bottom: auto !important;
  max-height: 40px !important;
  height: auto !important;
  width: auto !important;
  z-index: 1000 !important;
}

@media screen and (max-width: 800px) {
  .reveal .slide-logo,
  .reveal-header .logo,
  .reveal .logo,
  .slide-logo,
  .reveal .slide-header .logo {
    left: 12px !important;
    right: auto !important;
    top: 12px !important;
    bottom: auto !important;
    max-height: 35px !important;
  }
  
  /* Extra specific override for mobile */
  .reveal.has-logo .slide-logo,
  .reveal .slide-logo {
    left: 12px !important;
    right: auto !important;
    top: 12px !important;
    bottom: auto !important;
    max-height: 35px !important;
  }
}

/* Enhanced Audio Player Styling */
.reveal audio {
  width: 100%;
  max-width: 500px;
  margin: 15px auto;
  display: block;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px;
  outline: none;
}

.reveal audio::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
}

.reveal audio::-webkit-media-controls-play-button,
.reveal audio::-webkit-media-controls-pause-button {
  background-color: #007bff;
  border-radius: 50%;
}

.reveal audio::-webkit-media-controls-timeline {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.reveal audio::-webkit-media-controls-current-time-display,
.reveal audio::-webkit-media-controls-time-remaining-display {
  color: white;
  text-shadow: none;
}

/* Audio container styling */
.audio-container {
  text-align: center;
  margin: 20px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

/* Caption container improvements */
#caption-container {
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

/* Auto-play notification */
.autoplay-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1001;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Title slide CSUN Matadors logo background */
.reveal .slides section:first-child::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  width: 800px;
  height: 800px;
  background-image: url("../../assets/images/csun_matadors.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
}

/* Responsive sizing for smaller screens */
@media screen and (max-width: 800px) {
  .reveal .slides section:first-child::before {
    width: 800px;
    height: 800px;
    left: 3%;
  }
}

@media screen and (max-width: 600px) {
  .reveal .slides section:first-child::before {
    width: 600px;
    height: 600px;
    left: 2%;
  }
}
