
:root {
  --primary-color: darkred;
  --background-color: #1e1e1e;
  /* ... (rest of your root variables) ... */


body {
  font-family: 'Nosifer', cursive;
}

h1, h2, h3, h4, h5, h6,
.header, .title, .audio-header,
.navbar-brand, .case-title {
  font-family: 'Nosifer', cursive !important;
}

/* ⬅️ NEW: Use a second pseudo-element for the color overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(120, 0, 0, 0.5); /* The red overlay */
    z-index: -1; 
}
.back-to-top {
  text-align: center;
  margin: 60px auto 40px;
}

.back-to-top a {
  font-size: 1.2em;
  font-weight: bold;
  color: #ff4d4d;
  background-color: #1a1a1a;
  padding: 10px 20px;
  border: 2px solid #ff4d4d;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px #ff4d4d;
  transition: all 0.3s ease-in-out;
}

.back-to-top a:hover {
  background-color: #330000;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff1a1a;
}
.audio-link {
  display: block;
  font-size: 2em;
  font-weight: bold;
  color: #ff1a1a;
  background-color: #1a1a1a;
  padding: 15px 25px;
  margin: 40px auto;
  text-align: center;
  text-decoration: none;
  border: 2px solid #ff4d4d;
  border-radius: 10px;
  box-shadow: 0 0 15px #ff4d4d;
  text-shadow: 1px 1px 3px black;
  transition: all 0.3s ease-in-out;
}

.audio-link:hover {
  background-color: #330000;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 25px #ff1a1a;
}
@keyframes flicker {
  0%   { opacity: 1; }
  5%   { opacity: 0.4; }
  10%  { opacity: 0.9; }
  15%  { opacity: 0.2; }
  20%  { opacity: 1; }
  25%  { opacity: 0.6; }
  30%  { opacity: 0.8; }
  35%  { opacity: 0.3; }
  40%  { opacity: 1; }
  45%  { opacity: 0.5; }
  50%  { opacity: 0.7; }
  55%  { opacity: 0.1; }
  60%  { opacity: 1; }
  65%  { opacity: 0.4; }
  70%  { opacity: 0.9; }
  75%  { opacity: 0.2; }
  80%  { opacity: 1; }
  85%  { opacity: 0.6; }
  90%  { opacity: 0.8; }
  95%  { opacity: 0.3; }
  100% { opacity: 1; }
}

.audio-header {
  font-family: 'Nosifer', cursive !important;
  color: #8B0000;
  text-align: center;
  text-shadow: 2px 2px 4px black;
  letter-spacing: 1px;
  margin-bottom: 30px;
  font-size: clamp(2rem, 5vw, 4rem);
  animation: flicker 2.5s infinite ease-in-out;
}

.audio-block {
  background-color: #1a1a1a;
  padding: 20px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 0 15px #ff4d4d;
  max-width: 700px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-block:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px #ff1a1a;
}

p {
  color: white;
}
a.return {
    display: inline-block; /* Use inline-block for proper centering and button shape */
    margin: 20px auto; /* Centering and spacing */
    padding: 12px 24px;
    
    /* ⬅️ FIX: Solid Red Button Appearance */
    background-color: #8B0000; /* Dark red background */
    color: #fff; /* White text */
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    
    /* Glowing Border Effect */
    border: 2px solid #B22222;
    box-shadow: 0 0 10px #ff0000;
    transition: background 0.3s ease;
    
    /* Ensure link can be centered within its parent */
    width: fit-content;
}

a.return:hover {
    /* ⬅️ FIX: Hover effect */
    background-color: #B22222;
    box-shadow: 0 0 15px #ff0000;
    text-decoration: none;
}


.death-row-background {
    /* ⬅️ FIX: Use a solid color that matches the border/background of your new image */
    background-color: #2A1A1A; 
    padding-bottom: 0;
}



/* ========== Header ========== */
/* ========== Header ========== */
/* ========== Header ========== */
header {
  /* FIX: Set to transparent so it doesn't block the background color */
  background: transparent; 
  
  color: #ff0000;
  padding: 1em;
  text-align: center;
  /* ... rest of header styles ... */
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0; }
}


/* ========== Featured Case Section ========== */
.featured-case {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px 5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.skip-button {
  display: inline-block;
  margin: 20px 0;
  padding: 12px 24px;
  background-color: #8B0000; /* Dark red */
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid #B22222;
  box-shadow: 0 0 10px #ff0000;
  transition: background 0.3s ease;
}

.skip-button:hover {
  background-color: #B22222;
  box-shadow: 0 0 15px #ff0000;
}

.featured-overlay {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
}
.image-wrapper {
  flex: 1 1 200px;
  text-align: center;
}

.featured-poster {
  max-width: 250px;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 0 10px red;
}

.featured-text {
  flex: 2 1 400px;
}

.blood-title {
  font-size: clamp(3.5em, 8vw, 5em); /* ⬅️ INCREASED FONT SIZE: Adjust values as needed */
  color: red;
  text-shadow: 3px 3px 6px black;
  font-family: 'Creepster', cursive;
  margin: 0; /* Ensures it sits tightly in the header */
  
  /* ⬅️ ADD THIS FOR FLICKER EFFECT */
  animation: flicker 2s infinite; /* Applies your existing flicker animation */
}

.featured-description {
  font-style: italic;
  color: #ccc;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.read-more-button,
.close-btn {
  background-color: var(--accent-dark);
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.read-more-button:hover,
.close-btn:hover {
  background: #ff0000;
}

/* ========== Grid Layout ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  align-items: stretch;
}

/* ========== Card Styling ========== */
.card {
  background: #111;
  border: 1px solid #333;
  padding: 15px;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 10px red;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.3s ease;
}

.card img,
.card iframe {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid crimson;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

.card img:hover,
.card iframe:hover {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  background: #f00;
  padding: 5px 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: #900;
}

/* ========== Modal ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 2em;
}

.modal-content {
  max-width: 800px;
  margin: auto;
  background: #111;
  padding: 2em;
  border-radius: 8px;
}

.modal h2 {
  font-family: 'Creepster', cursive;
  color: #ff0000;
  margin-top: 0;
}

.modal p {
  font-family: Arial, sans-serif;
  color: #ddd;
}

.modal iframe {
  width: 100%;
  height: 300px;
  margin-top: 1em;
  border: none;
}
.return-link {
  text-align: center;
  margin: 60px auto 40px;
}

.return-link a {
  font-size: 1.4em;
  font-weight: bold;
  color: #ff4d4d;
  background-color: #1a1a1a;
  padding: 12px 24px;
  border: 2px solid #ff4d4d;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 12px #ff4d4d;
  transition: all 0.3s ease-in-out;
}

.return-link a:hover {
  background-color: #330000;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff1a1a;
}

/* ========== Pagination ========== */
.pagination {
  text-align: center;
  padding: 1em;
}

.pagination button {
  margin: 0 5px;
  padding: 0.5em 1em;
  font-size: 1em;
  font-family: 'Butcherman', cursive;
}

/* ========== Admin Controls ========== */
.admin-controls {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #777;
}

.admin-controls button {
  margin-right: 0.5em;
  padding: 0.3em 0.6em;
  font-size: 0.8em;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}

.admin-controls button:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ========== Video Container ========== */
.video-container {
  text-align: center;
  margin-top: 20px;
}

.video-container iframe {
  width: 100%;
  max-width: 720px;
  height: 405px;
  box-shadow: 0 0 20px #000;
  border: none;
}

/* ========== Responsive Scaling ========== */
@media (max-width: 768px) {
  .featured-overlay {
    flex-direction: column;
    text-align: center;
  }

  .featured-poster {
    max-width: 100%;
  }

  .blood-title {
    font-size: 2em;
  }

  .card img,
  .card iframe {
    height: 150px;
  }
}