/* 
  Freddie Sanchez
  INFOST 310-210
  10/12/2025
*/

@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

/* GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "VT323", monospace;
  background-color: #000; /* Fallback color while background image loads */
  background-image: url("images/eyes.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  overflow-x: hidden;
  position: relative;
}

/* SUBTLE SCREEN GLOW  */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.9) 80%);
  pointer-events: none; /* Note: This means the subtle glow won't interfere with clicks or buttons */
  mix-blend-mode: overlay; /* Note: This means that this layer blends with whatever is underneath it */
  z-index: 999; /* Note: This ensures that it sits on top of everything */
}

/* NAVIGATION */
#nav_background {
  background-color: #000;
  padding: 1rem;
  border-bottom: 1px solid crimson;
}

nav {
  text-align: right;
}

nav a {
  color: crimson;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 1.3rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff;
  text-shadow: 0 0 6px #ff0000;
}

/* HEADERS */
h1,
h3 {
  font-family: "VT323", monospace;
  color: #ff3b3b;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 6px #ff0000, 0 0 12px #ff0000;
  animation: glitch-flicker 3s infinite;
  font-size: 2rem;
}

@keyframes glitch-flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    opacity: 1;
    text-shadow: 1px 0 #ff0000, -1px 0 #00ffff, 0 0 5px #ff0000;
  }
  20%,
  24%,
  55% {
    opacity: 0.7;
    text-shadow: 2px 0 #00ffff, -2px 0 #ff0000;
  }
}

/* ARTICLE */
article {
  max-width: 850px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #111;
  border-left: 3px solid crimson;
  border-right: 3px solid crimson;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* IMAGE & CAPTION */
figure.poster {
  float: left;
  width: 40%;
  max-width: 320px;
  margin: 0 1.5rem 1rem 0;
  border: 2px solid #440000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
  filter: grayscale(90%) brightness(0.9) contrast(1.1);
  transition: filter 0.4s ease, transform 0.4s ease;
  text-align: center;
}

figure.poster img {
  width: 100%;
  display: block;
}

figure.poster:hover {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.02) rotate(0.5deg);
}

figcaption {
  font-size: 0.9rem;
  color: #b0b0b0;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.75;
}

figure.poster.right {
  float: right;
  margin: 0 0 1rem 1.5rem; /* opposite margin for spacing */
}

/* TEXT */
p {
  margin-bottom: 1.4rem;
}

strong {
  color: #ff4444;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
}

i {
  color: #c0c0c0;
  font-style: italic;
}

blockquote {
  color: #ff4444;
  font-style: italic;
  text-align: center;
  font-size: 1.2rem;
  margin: 1rem 0;
}

/* GO BACK BUTTON */
.back-button-container {
  text-align: center;
  margin: 3rem 0;
}

.back-button {
  display: inline-block;
  background-color: #111;
  border: 2px solid crimson;
  color: crimson;
  font-family: "VT323", monospace;
  font-size: 1.3rem;
  padding: 0.8rem 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.1);
}

.back-button:hover {
  background-color: crimson;
  color: #000;
  text-shadow: 0 0 6px #ff0000;
  box-shadow: 0 0 20px crimson;
  transform: scale(1.05);
}

/* MEDIA QUERY 1: Tablets (400px–800px)  */
@media screen and (max-width: 800px) and (min-width: 400px) {
  body {
    font-size: 1rem;
    line-height: 1.5;
  }

  article {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }

  figure.poster {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.5rem auto;
  }

  figcaption {
    font-size: 0.85rem;
  }

  nav a {
    font-size: 1.1rem;
  }

  h1,
  h3 {
    font-size: 1.6rem;
  }
}

/*  MEDIA QUERY 2: Small Screens (<400px) */
@media screen and (max-width: 400px) {
  body {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  article {
    margin: 1rem 0.5rem;
    padding: 1rem;
  }

  figure.poster {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem auto;
  }

  nav a {
    font-size: 1rem;
    margin-left: 0.5rem;
  }

  h1,
  h3 {
    font-size: 1.3rem;
  }
}
