
@import url("navigation.css");

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Verdana, sans-serif;
  background-image: url("../images/stars 1.gif");
  background-repeat: repeat;
  color: white;
}


.wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px 16px;
  margin-top: 56px;
}


.two-col {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}


.right-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}


.card-preview {
  height: 530px;
  border: 2px solid #b98cff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}


.card-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.45s ease, filter 0.25s ease;
}

.card-preview img:hover,
.card-preview img:focus-visible {
  filter: drop-shadow(0 0 9px rgba(255, 227, 107, 0.75));
}

.card-preview:focus-within {
  outline: 3px solid #ffe36b;
  outline-offset: 4px;
}

.card-preview img.is-reversed {
  transform: rotate(180deg);
}


.right-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}


.info-square {
  border: 1px solid #b98cff;
  border-radius: 8px;
  padding: 6px 6px 8px;
  text-align: center;
  background: rgba(0,0,0,0.35);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.info-label {
  font-size: 11px;
  color: #ffe36b;
  opacity: 0.9;
  margin-bottom: 4px;
}


.info-value {
  font-size: 13px;
  font-weight: bold;
  color: white;
}


.right-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


.right-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.right-list-full {
  grid-column: 1 / -1;
}


.list-divider {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin: 12px 0 6px;
  pointer-events: none;
}

.list-divider img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}


.row {
  border-bottom: 1px solid rgba(185,140,255,0.5);
  padding-bottom: 10px;
}


.row-head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffe36b;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
  padding: 6px 0;
}


.row-head::-webkit-details-marker {
  display: none;
}


.tri {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.row[open] .tri {
  transform: rotate(90deg);
  filter: drop-shadow(0 0 5px rgba(255, 227, 107, 0.8));
}


.row-box {
  margin-left: 26px;
  padding: 10px;
  border: 1px solid #b98cff;
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
  color: white;
  overflow-wrap: anywhere;
}


h1, h2, h3 {
  text-align: center;
  color: #ffe36b;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}


.archive-button,
.resources-button {
  display: block;
  width: max-content;
  max-width: 100%;
}

.archive-button {
  margin: 24px auto 0;
}

.resources-button {
  margin: 14px auto 0;
}


@media (max-width: 750px) {
  .wrap {
    margin-top: 18px;
    padding-top: 14px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .card-preview {
    height: 360px;
  }

  .right-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .right-lists {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tri,
  .card-preview img {
    transition: none;
  }
}


