@font-face {
  font-family: "PB96TTP-Roman"; /* set name */
  src: url(/fonts/PB96TTP-Roman.ttf); /* url of the font */
}

@font-face {
  font-family: "AllAges"; /* set name */
  src: url(https://subrosacomic.neocities.org/fonts/Flyerfonts-AllAges.otf); /* url of the font */
}

.paper p.allan {
    font-family: "PB96TTP-Roman";
    color: #02182B;
    font-size: 1.3em;
    line-height: 1.2em;
}

.paper p.benny {
    font-family: "AllAges";
    color: #5FAB7E;
    font-size: 1.3em;
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  font-family: Courier, sans-serif;
  text-align: justify;
  padding: 10px;
}

.manilla-folder {
  position: relative;
  background: #f5deb3;
  width: 90vw;
  height: 80vh;
  max-width: 800px;
  max-height: 600px;
  border: 4px solid #d2b48c;
  border-radius: 12px 12px 10px 10px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.manilla-folder::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 15px;
  width: 120px;
  height: 35px;
  background: #f5deb3;
  border: 4px solid #d2b48c;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 10px rgba(0,0,0,0.05);
}

.paper {
  background: white;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
  padding: 20px;
  overflow-y: auto;
}

.paper h1 {
  margin-top: 0;
  margin-bottom: 0.15em;
  color: #5a3e1b;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.paper p.form-sub {
  margin: 0.15em 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: #6b5b45;
}

.paper p.form-sub-title {
  margin-top: 0.5em;
  margin-bottom: 0.9em;
  font-weight: bold;
  color: #333;
}

.paper hr {
  border: none;
  border-top: 1px solid #d2b48c;
  margin: 1.1em 0 1.4em;
}

.paper h2 {
  margin-top: 2.1em;
  margin-bottom: 0.9em;
  padding-top: 0.9em;
  border-top: 2px solid #b89b6e;
  color: #4a3418;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.paper h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.paper h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: #5a3e1b;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 700;
  padding-left: 0.1em;
}

.paper p {
  color: #333;
  line-height: 1.55;
  font-size: 1rem;
  margin: 0.85em 0;
}

/* introductory / certification boilerplate reads smaller and softer */
.paper p.instructions {
  font-size: 0.85rem;
  font-style: italic;
  color: #6b6b6b;
  line-height: 1.45;
  margin-bottom: 1.4em;
}

/* Label: answer — hanging indent so wrapped lines align under the answer */
.paper p.field {
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.paper p.field strong {
  color: #3d2c14;
  margin-right: 0.35em;
}

/* indented sub-answers, e.g. "Formerly / Presently" under Current Residence */
.paper p.sub-field {
  margin: 0.4em 0 0.4em 2.2em;
  padding-left: 1.2em;
  text-indent: -1.2em;
  font-size: 0.95rem;
}

/* Yes/No prompts: bold question, checkboxes trail on the same line */
.paper p.yesno {
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.paper p.yesno strong {
  color: #3d2c14;
}

/* checkbox option lists, indented as a block under their prompt */
.paper p.checkbox-line {
  margin: 0.35em 0 0.35em 2em;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* margin commentary from Allan/Benny/the officer, set off from the form body */
.paper p.aside,
.paper p.officer-aside {
  margin: 0.6em 0 1em 1.8em;
  padding-left: 0.9em;
  border-left: 2px solid #d8c7a1;
  white-space: pre-line;
}

.paper p.officer-aside {
  color: #555;
  font-size: 0.9rem;
  font-style: italic;
}

/* signature block */
.paper p.sig-line {
  margin: 1.1em 0;
  padding-bottom: 0.6em;
  border-bottom: 1px solid #cbb890;
}

.paper p.sig-line strong {
  color: #3d2c14;
}

.paper p.sig-line .sig-note {
  font-size: 0.85rem;
  font-style: italic;
  color: #6b6b6b;
}

.paper p.sig-line .sig-fill {
  margin-left: 0.3em;
}

.photo-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.photo-container img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 768px) {
  body, html {
    padding: 5px;
  }

  .manilla-folder {
    width: 95vw;
    height: 85vh;
    padding: 10px;
  }

  .manilla-folder::before {
    top: -25px;
    left: 10px;
    width: 100px;
    height: 30px;
  }

  .paper {
    padding: 15px;
  }

  .paper h1 {
    font-size: 1.3rem;
  }

  .paper p {
    font-size: 0.85rem;
  }

  .photo-container {
    flex-direction: column;
    gap: 10px;
  }

  .photo-container img {
    width: 200px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .manilla-folder {
    width: 98vw;
    height: 90vh;
    padding: 8px;
  }

  .manilla-folder::before {
    top: -20px;
    left: 8px;
    width: 80px;
    height: 25px;
  }

  .paper {
    padding: 12px;
  }

  .paper h1 {
    font-size: 1.1rem;
  }

  .paper p {
    font-size: 0.8rem;
  }

  .photo-container img {
    width: 150px;
    height: 200px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .manilla-folder {
    height: 95vh;
  }

  .photo-container {
    flex-direction: row;
  }

  .photo-container img {
    width: 180px;
    height: 220px;
  }
}

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #d2b48c;
  padding-top: 2rem;
  margin-top: 4rem;
}

.page-footer a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a7860;
  text-decoration: none;
  transition: color 0.2s;
}

.page-footer a:hover {
  color: #a13a2c;
}