body {
  background: #6e93af url('paper.png') repeat;
  font-family: 'Courier Prime', Courier, monospace;
  color: #111;
  padding: 2rem;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* all pages */
.pages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1500px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 3rem;
}

/* each page */
.script-page {
  background: #fefcf7 url('paper.png') repeat;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  border: 1px solid #ddd;
  width: 650px;
  min-height: 900px;
  padding: 3rem 4rem;
  position: relative;
  box-sizing: border-box;
  user-select: text;
  overflow-y: auto;
}

/* page number in the top right */
.page-number {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 0.9rem;
  color: #999;
  font-family: 'Courier Prime', monospace;
  user-select: none;
}

h1 {
  text-align: center;
  font-weight: bold;
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: rem;
}

.scene-heading {
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: left;
  display: block;
}

.character {
  text-align: center !important;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-top: 1.8rem;
}

.dialogue {
  font-size: 1.1rem;
  white-space: pre-wrap;
  text-align: left; /* or center if you want, but left is standard */
  max-width: 400px; /* Adjust this width to fit your desired dialogue block width */
  margin: 0.8rem auto 0.2rem auto; /* top, horizontal auto-centering, bottom */
  line-height: 1.5; /* Optional: adds vertical spacing between lines */
}


.parenthetical {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  text-align: center;
  display: block;
}

.top-four {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.movie-poster {
  display: block;
  margin: 1rem auto;
  width: 180px;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.2);
  border: 2px solid #ccc;
  border-radius: 4px;
}

.film {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.film img {
  width: 120px;
  height: auto;
  border: 2px solid #000;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  margin-top: 8%;
}

.film:hover img {
  transform: scale(1.05);
}

.player img {
  width: 500px;   /* Set the width of the image */
  height: auto;  /* Set a fixed height */
  display: block;
  margin-top: 10%;
}

.player:hover img {
  transform: scale(1.05);
}

.caption {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  margin-top: 6px;
  color: #111;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; } /* Adjust this number to match your longest line */
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #111;
  width: 0;
  animation: 
    typewriter 2.5s steps(36) 0.5s forwards,
    blink 0.8s step-end infinite;
}


@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #111; }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #111;
  width: 0;
  animation: 
    typewriter 2.5s steps(30) 0.5s forwards,
    blink 0.8s step-end infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out both;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, transparent 80%, rgba(0,0,0,0.28));
  pointer-events: none;
}

a {
  color: #557C99; /* Default color for all links */
  text-decoration: none; /* Optional: remove underline from links */
}

.postit-note {
  position: absolute;
  top: 12%;   /* adjust */
  left: 78%; /* adjust */
  width: 100px;
  height: 100px;
  background: #FFFF99;
  color: #333;
  padding: 0.8rem;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  font-family: "Gloria Hallelujah", cursive;
  display: flex; /* enables flexbox */
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1;
  text-align: center;
  transform: rotate(-4deg);
  border: 1px solid #d6d6a8;
}

.postit-note::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: rgb(53, 53, 53);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.profilelink {
  text-decoration: underline;
  text-decoration-color: black;
}