* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: white;
}

body {
  font-family: "Georgia", serif;

  background-color: rgb(17, 17, 17);

  color: white;

  min-height: 100vh;

  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.chapter-container {
  width: 100%;
  max-width: 1200px;
}

.chapter-title {
  text-align: center;

  font-size: 2rem;

  margin-bottom: 15px;

  letter-spacing: 2px;
  text-transform: uppercase;

  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
}

/* GRID */
.chapter-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

/* CARD */
.chapter-card {
  position: relative;
  width: 91%;
  max-width: 500px;
  min-width: 200px;
  height: 180px;
  border-radius: 5px;
  margin: 10px;
  overflow: hidden;
  cursor: pointer;

  border: 2px solid rgb(255, 255, 255);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.chapter-card:hover {
  border-color: rgb(255, 20, 71);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(100, 0, 20, 0.25);
}

.chapter-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: brightness(0.75);

  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.chapter-card:hover img {
  filter: brightness(0.9);
}

/* OVERLAY */
.chapter-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 55%);

  display: flex;
  align-items: flex-end;

  padding: 25px;
}

.chapter-info h2 {
  font-size: 1.4rem;

  margin-bottom: 8px;

  letter-spacing: 2px;
  text-transform: uppercase;

  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
}

/* BACK BUTTON */
.back-button {
  position: fixed;

  top: 20px;
  left: 20px;

  z-index: 9999;

  padding: 10px 18px;

  background-color: rgb(0, 0, 0);

  color: white;

  text-decoration: none;

  border-radius: 8px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  transition: 0.3s;
}

.back-button:hover {
  background-color: rgb(70, 10, 25);

  border-color: rgba(140, 0, 30, 0.6);
}

.skip-link {
  display: inline-block;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 5px;
  border-radius: 3px;
  color: white;
  transition: 0.3s;
  border: 1px solid white;
  background-color: black;
}

.skip-link:hover {
  color: rgb(255, 20, 71);

  border: 1px solid rgb(255, 20, 71);
}

footer {
  color: #ffffff;
  text-align: center;
  font-size: 1.1em;
  letter-spacing: 2px;
}
footer a:hover {
  color: rgb(255, 59, 59);
}
