/**
 * BREAKER OF CHAINS - Cutscene Styles
 */

.cutscene-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.cutscene-container.active {
  opacity: 1;
  pointer-events: all;
}

.video-player {
  max-width: 90%;
  max-height: 70%;
  box-shadow: 0 0 30px rgba(255, 100, 0, 0.5);
}

.comic-container {
  position: relative;
  width: 90%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.comic-slide {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.5s ease-in-out;
  padding: 20px;
}

.comic-slide.active {
  display: flex;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.comic-image {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 5px;
  border: 3px solid #D4AF37;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.comic-caption {
  font-family: 'Bangers', 'Impact', cursive;
  color: #ffcc99;
  font-size: 28px;
  text-shadow: 2px 2px 2px #000, -2px 2px 2px #000, 2px -2px 2px #000, -2px -2px 2px #000;
  margin-top: 10px;
  max-width: 80%;
  line-height: 1.4;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
  user-select: none;
}

.nav-arrow:hover {
  background-color: rgba(212, 175, 55, 0.7);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

.skip-button, .continue-button {
  background-color: #991100;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 0 15px rgba(153, 17, 0, 0.5);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skip-button:hover, .continue-button:hover {
  background-color: #cc3300;
  transform: scale(1.05);
}

.skip-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.continue-button {
  position: absolute;
  bottom: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.continue-button.visible {
  opacity: 1;
  visibility: visible;
}

/* Comic book panel grid */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 90%;
  margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .comic-caption {
    font-size: 22px;
  }
  
  .nav-arrow {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  
  .skip-button, .continue-button {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

/* Touch swipe indicator for mobile */
.swipe-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  display: none;
}

@media (max-width: 768px) {
  .swipe-indicator {
    display: block;
  }
}