@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,700;1,400&display=swap");

body {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #D1C7B8;
  /* one full-height schematic pinned to each side; the box covers any overlap */
  background-image:
    url("/assets/schematic.svg"),
    url("/assets/schematic.svg"),
    linear-gradient(#c4b9a8 1px, transparent 1px),
    linear-gradient(90deg, #c4b9a8 1px, transparent 1px);
  background-size: auto 100%, auto 100%, 20px 20px, 20px 20px;
  background-position: left center, right center, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  font-family: "Source Serif 4", serif;
}

.box {
  width: 600px;
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
  border: 2px solid black;
  border-top: none;
  background: white;
  filter: drop-shadow(10px 10px 0 rgba(0, 0, 0, 0.2));
}

blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 3px solid black;
}

cite {
  display: block;
  text-align: right;
  font-style: normal;
  color: #777;
}

img {
  max-width: 100%;
}

iframe {
  width: 100%;
  border: 2px solid black;
}

#tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid black;
}

#tabs a {
  padding: 4px 16px;
  border: 2px solid black;
  border-bottom: none;
  background: #eee;
  color: black;
  text-decoration: none;
}

#tabs a.active {
  position: relative;
  background: white;
}

/* covers the row's line under the active tab, exactly its 2px */
#tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: white;
}

@media (max-width: 640px) {
  body {
    display: block;
    height: auto;
    background: white;
  }

  .box {
    width: auto;
    max-height: none;
    border: none;
  }

  #tabs {
    gap: 0;
  }

  #tabs a + a {
    border-left: none;
  }

  #tabs a {
    border-top: none;
  }

  #tabs a:first-child {
    border-left: none;
  }
}
