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

body {
  font-family: "Noto Serif", serif;
  background-image: url(media/background.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  perspective: 1200px;
  position: relative;
  padding: 4vh 4vw;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* paper container */
.paper {
  background: #fdfbf7;
  width: clamp(300px, 70vw, 850px);
  padding: clamp(30px, 5vw, 80px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  transform-origin: center center;
  transform: rotate(var(--rotation, 0deg));
  animation: dropIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* rotation for animation per page */
.page-1 .paper { --rotation: -1.5deg; }
.page-2 .paper { --rotation: 1deg; }
.page-3 .paper { --rotation: -0.8deg; }
.page-4 .paper { --rotation: 1.8deg; }
.page-5 .paper { --rotation: -1.2deg; }
.page-6 .paper { --rotation: 0.6deg; }
.page-7 .paper { --rotation: -1deg; }

@keyframes dropIn {
  from {
    transform: scale(1.4) rotate(var(--rotation, 0deg)) rotateX(8deg);
    filter: brightness(0) blur(10px);
  }
  to {
    transform: scale(1) rotate(var(--rotation, 0deg)) rotateX(0deg);
    filter: brightness(1) blur(0px);
  }
}

/* image below the paper */
.background-image {
  position: relative;
  display: block;
  width: clamp(300px, 28vw, 900px);
  height: auto;
  object-fit: contain;
  margin: auto auto;
  pointer-events: none;
  transform: none;
  z-index: 1;
}

/* case header */
.case-header {
  text-align: center;
  margin-bottom: 4vh;
}

.case-header h1 {
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 1px;
}

.case-number {
  font-size: 14px;
  margin-top: 10px;
}

/* section titles */
h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin-bottom: 20px;
  text-transform: uppercase;
}

p, ul {
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: clamp(14px, 1.2vw, 16px);
}

/* nav bar at bottom */
.nav {
  margin-top: 5vh;
  text-align: center;
}

.nav a {
  margin: 0 15px;
  text-decoration: none;
  color: black;
  border-bottom: 1px solid black;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.6;
}

/* stamp effect */
.stamp {
  position: absolute;
  top: 30px;
  right: 30px;
  color: red;
  border: 3px solid red;
  padding: 8px 18px;
  transform: rotate(-15deg);
  font-weight: bold;
  font-size: clamp(14px, 1.5vw, 18px);
  opacity: 0.6;
}

/* two column layout for legal arguments */
.two-column {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}

.column {
  flex: 1 1 300px;
}

/* exhibit layout */
.exhibit {
  border: 2px solid black;
  padding: 20px;
  margin-bottom: 30px;
}

.exhibit img {
  width: 100%;
  height: auto;
}

.caption {
  font-size: 14px;
  font-style: italic;
  margin-top: 10px;
}

/* verdict text centered */
.centered {
  text-align: center;
  font-size: clamp(15px, 1.4vw, 18px);
}

/* mobile adjustments */
@media (max-width: 1600px) {

  body {
    display: block;
    text-align: center;
  }

  .paper {
    margin: 0 auto;
  }

  .background-image {
    width: 70%;
    margin: 40px auto 0 auto;
  }
}