/* 🌑 Загальні налаштування */
body {
  background-color: #0b0b0b;
  color: #e0e0e0;
  font-family: "Courier New", monospace;
  margin: 0;
  padding: 0;
}

/* 🧭 Меню навігації */
nav {
  background-color: #1a1a1a;
  padding: 1em;
  text-align: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 1em;
}

nav a {
  color: #dcdcdc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #ff4d4d;
}

/* 📖 Основна частина */
main {
  max-width: 700px;
  margin: 4em auto;
  padding: 0 1em;
  line-height: 1.7;
  text-align: center;
}

/* 🎬 Заголовки */
h1 {
  font-size: 2.8em;
  margin-bottom: 0.2em;
}

/* 🛑 Glitch-ефект для заголовків */
.glitch {
  color: #ff4d4d;
  text-shadow: 1px 0 red, -1px 0 cyan;
  animation: flicker 1.2s infinite alternate;
}

/* 🆕 Glitch-ефект для тизерів/цитат */
.glitch-teaser {
  display: inline-block;
  color: #ff4d4d;
  font-style: normal;
  text-shadow: 1px 0 red, -1px 0 cyan;
  animation: glitch-pulse 1.5s infinite alternate;
}

@keyframes flicker {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@keyframes glitch-pulse {
  0%   { opacity: 0.6; transform: translateX(0); }
  50%  { opacity: 1; transform: translateX(-0.5px); }
  100% { opacity: 0.75; transform: translateX(0.5px); }
}

/* 💬 Цитати */
blockquote {
  font-style: italic;
  color: #888;
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 2px solid #444;
}

/* 🎭 Підвал */
footer {
  text-align: center;
  padding: 2em;
  font-size: 0.8em;
  color: #555;
}
/* Стилізація заголовку акта */
.act-title {
  font-weight: bold;
  color: #e06666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2em;
}

/* ✨ Блимання заголовків актів */
.act-title {
  font-weight: bold;
  color: #ff5c5c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2em;
  animation: act-blink 1.6s infinite alternate;
  text-shadow: 1px 0 red, -1px 0 cyan;
}

@keyframes act-blink {
  0%   { opacity: 0.1; transform: translateX(0); }
  50%  { opacity: 1;   transform: translateX(-0.5px); }
  100% { opacity: 0.6; transform: translateX(0.5px); }
}
.glitch-hero {
  display: block;
  margin: 0 auto;
  max-width: 400px;
  opacity: 0.25;
  filter: grayscale(100%) contrast(120%);
  mix-blend-mode: lighten;
}
@keyframes flicker {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.3; }
}

.glitch-hero {
  animation: flicker 3s infinite;
}
.mask-scene {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 700px;
}
.mask {
  max-width: 160px;
  height: auto;
}

.flicker-mask {
  clip-path: inset(0 50% 0 0); /* для першої */
  animation: flickerMask 4s infinite;
  opacity: 0.8;
}

.flicker-mask:last-of-type {
  clip-path: inset(0 0 0 50%); /* для другої */
  animation-delay: 0.5s; /* трохи змістити */
}

@keyframes flickerMask {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.05);
  }
}.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}
.hover-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.8);
  color: #f2f2f2;
  padding: 0.8em 1em;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 0;
}

.card {
  flex: 1 1 45%;
  max-width: 500px;
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 6px;
  box-sizing: border-box;
  text-align: center;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }
}
.image-wrapper {
  position: relative;
  display: block;
}

.hover-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.8);
  color: #f2f2f2;
  padding: 0.8em 1em;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-wrapper:hover .hover-caption {
  opacity: 1;
}
