@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

body {
  font-family: 'Special Elite', 'Courier New', monospace;
  background: linear-gradient(180deg, #050608b8 0%, #050608d9 48%, #000f 100%), url('horror-background.jpg') center top / cover fixed, #050608;
  color: #c0c0c0;
  padding: 20px;
  min-height: 100vh;
  perspective: 1400px;
}
h1 {
  font-family: 'Special Elite', 'Courier New', monospace;
  text-align: center;
  color: #ff0000;
  font-size: 3em;
  letter-spacing: 0.12em;
  margin-bottom: 30px;
  text-shadow: 0 4px 20px #a0000066;
}
.story-container,
.exercise-container {
  perspective: 1200px;
}
.story-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.story,
.exercise-story {
  border: 1px solid #4a3839;
  border-radius: 5px;
  background: linear-gradient(145deg, #1d191a, #0b0a0b 72%);
  box-shadow: 0 18px 35px #000b, 0 3px 0 #413031, inset 0 1px #ffffff12;
  transform-style: preserve-3d;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.story {
  width: 30%;
  margin-bottom: 20px;
  padding: 10px;
  transform: rotateX(1deg) rotateY(-1deg);
}
.story-part {
  margin-bottom: 10px;
  border: 1px dashed #444;
  padding: 5px;
  transform: translateZ(5px);
}
.story-img,
.exercise-img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 3px;
  box-shadow: 0 10px 20px #000c;
  transform: translateZ(18px);
}
.story-img {
  height: 150px;
}
.exercise-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.exercise-story {
  width: 45%;
  margin-bottom: 20px;
  padding: 10px;
  transform: rotateX(1deg) rotateY(1deg);
}
.exercise-img {
  height: 200px;
}
.exercise-part {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  transform: translateZ(5px);
}
textarea {
  width: 100%;
  background-color: #222;
  color: #c0c0c0;
  border: 1px solid #444;
  padding: 5px;
  font-family: 'Special Elite', 'Courier New', monospace;
}
button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 10px;
}
h2 {
  font-family: 'Special Elite', 'Courier New', monospace;
  text-align: center;
  color: #ff6600;
  font-size: 2.5em;
  letter-spacing: 0.08em;
  margin-top: 40px;
  margin-bottom: 20px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story:hover {
    transform: perspective(900px) rotateX(0deg) rotateY(2deg) translateZ(14px);
    box-shadow: 0 28px 48px #000e, 0 4px 0 #5a393a, inset 0 1px #ffffff18;
  }
  .exercise-story:hover {
    transform: perspective(900px) rotateX(0deg) rotateY(-2deg) translateZ(14px);
    box-shadow: 0 28px 48px #000e, 0 4px 0 #5a393a, inset 0 1px #ffffff18;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media (max-width: 760px) {
  body { padding: 12px; }
  .story, .exercise-story { width: min(100% - 24px, 520px); }
  h1 { font-size: 2.3em; }
  h2 { font-size: 2em; }
}