/* vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab smarttab autoindent: */
body {
  background-image: url("img/background.webp");
  background-size: cover;
  background-attachment: fixed;
  background-repeat: none;
}

@media (max-width: 1212px) {
  body {
    background-attachment: scroll;
  }
}

.banner {
  display: grid;
  grid-template-areas:
    "header"
    "content";
  grid-template-columns: auto;
  gap: 1rem;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  margin: auto;
  border-radius: 16px;
  padding: 2rem;
}

.banner .header {
  grid-area: header;
}

.banner .header h1
{
  margin: 0;
}

.banner .header .subtitle
{
  font-size: 1.2em;
  padding: 0;
  margin-block-start: 0;
  margin-top: 0;
  margin-bottom: 1rem;
}

.banner .content {
  grid-area: content;
}

@media (min-width: 1212px) {
  .banner {
    grid-template-areas:
      "header content";
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background-color: rgba(0.0, 0.0, 0.0, 0.1);
    background-repeat: none;
    background-size: cover;
    background-image: url("img/book.webp");
    height: 40rem;
    margin: 0;
    border-radius: 18px;
    padding-left: 12rem;
    padding-top: 10rem;
    padding-bottom: 20rem;
    padding-right: 4rem;
  }

  .banner h1 {
    color: #f4f4f0;
  }

  .banner p, .banner h1 {
    text-shadow:
      1px 1px 2px rgba(0, 0, 0, 0.9),
      0 0 15px rgba(0, 0, 0, 0.7);
  }
}

.book
{
  display: grid;
  grid-template-areas:
    "header"
    "cover"
    "content";
  grid-template-columns: auto;
  gap: 0.5rem;
}

@media (min-width: 1212px) {
  .book {
    grid-template-areas:
      "header header"
      "cover content";
    grid-template-columns: auto auto;
  }
}

.book .header {
  grid-area: header;
  margin: 0 1rem;
  padding: 0;
}

.book .header h3 {
  margin: 0;
  padding: 0;
}

.book .cover {
  grid-area: cover;
  margin: 0 1rem;
  padding: 0;
}

.book .cover img {
  max-width: 100%;
  height: auto;
}

.book .content {
  grid-area: content;
  margin: 0;
  padding: 0;
}

.part {
  width: 70%;
  margin: auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 18px;
}

@media (max-width: 1212px) {
  .part {
    width: 100%;
  }
}

.part h2 {
  margin-top: 0;
}

.md-header {
  background-color: rgba(0, 0, 0, 0.2);
}

.footer {
  width: 70%;
  margin: auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 18px;
}
