* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

  color: white;

  min-height: 100vh;

  padding: 40px 20px;
}
.back-button {
  position: fixed;

  top: 20px;
  left: 20px;

  z-index: 9999;

  padding: 10px 18px;

  background-color: rgba(0, 0, 0, 0.7);

  color: white;

  text-decoration: none;

  font-family: "Georgia", serif;

  letter-spacing: 1px;

  border-radius: 8px;

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

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

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

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

  transform: translateY(-2px);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* TOP CHARACTER SELECT */

.character-select {
  display: flex;
  justify-content: center;
  gap: 25px;

  margin-bottom: 40px;
}

.character-card {
  width: 220px;
  height: 220px;

  border-radius: 14px;

  overflow: hidden;

  cursor: pointer;

  position: relative;

  border: 2px solid rgba(255, 255, 255, 0.1);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.character-card:hover {
  transform: translateY(-5px);

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

.character-card.active {
  border-color: rgba(255, 255, 255, 0.4);

  box-shadow: 0 0 20px rgba(100, 0, 20, 0.4);
}

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

  object-fit: cover;

  filter: brightness(0.85);
}

.character-name {
  position: absolute;
  bottom: 0;

  width: 100%;

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

  padding: 20px 10px 10px;

  text-align: center;

  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;

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

/* GALLERY */

.gallery-title {
  text-align: center;

  font-size: 2rem;

  margin-bottom: 30px;

  letter-spacing: 3px;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;
}

.gallery-item {
  height: 260px;

  border-radius: 12px;

  overflow: hidden;

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

  transition:
    transform 0.3s ease,
    border-color 0.3s ease;

  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);

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

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}
/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;

  background-color: rgba(0, 0, 0, 0.92);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;

  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;

  border-radius: 12px;

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

  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.close-lightbox {
  position: absolute;

  top: 25px;
  right: 40px;

  font-size: 3rem;

  cursor: pointer;

  color: rgba(255, 255, 255, 0.7);

  transition: 0.3s;
}

.close-lightbox:hover {
  color: white;
}
