@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");


/* ========================================
   ED LOST LEGIONS — BOOKS PAGE
======================================== */


/* ========================================
   GLOBAL
======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;

  background: #F3F0E9;
  color: #111111;

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

img {
  display: block;
  max-width: 100%;
}


/* ========================================
   INTERNAL HEADER
======================================== */

.site-header {
  position: relative;

  width: 100%;
  max-width: 1220px;

  margin: 0 auto;

  background: #000000;

  overflow: hidden;
}

.internal-header-image {
  display: block;

  width: 100%;
  height: auto;
}


/* ========================================
   NAVIGATION — DESKTOP
======================================== */

.main-nav {
  position: absolute;

  top: 28px;
  left: 50%;

  transform: translateX(-50%);

  width: 100%;
  max-width: 1220px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 34px;

  padding-right: 60px;

  z-index: 3000;
}

.main-nav a {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: #FFFFFF;

  text-decoration: none;

  font-size: 18px;
  font-weight: 500;

  line-height: 1;

  white-space: nowrap;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.7;

  transform: translateY(-1px);
}

.main-nav a.active {
  opacity: 0.65;
}

/* ========================================
   LANGUAGE SWITCH
======================================== */

.main-nav a.language-switch {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: 6px;
  padding: 0;

  text-decoration: none;
  opacity: 1;
}

.main-nav a.language-switch img {
  display: block;

  width: 25px;
  height: auto;

  opacity: 0.58;

  filter:
    saturate(70%)
    brightness(1.5);

  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

.main-nav a.language-switch:hover {
  opacity: 1;
  transform: none;
}

.main-nav a.language-switch:hover img {
  opacity: 0.95;

  filter:
    saturate(85%)
    brightness(1);

  transform: scale(1.08);
}


/* ========================================
   INTRO
======================================== */

.books-intro {
  width: 100%;
  max-width: 1220px;

  margin: 0 auto;

  padding:
    42px
    52px
    50px;

  background: #F3F0E9;
}

.books-intro h1 {
  margin:
    0
    0
    42px;

  text-align: center;

  font-size: 26px;
  font-weight: 700;
}

.intro-copy {
  max-width: 1120px;

  margin: 0 auto;
}

.intro-copy p {
  margin:
    0
    0
    28px;

  font-size: 21px;

  line-height: 1.48;

  text-align: justify;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}


/* ========================================
   COLLECTIONS
======================================== */

.collections-section {
  width: 100%;

  background:
    rgba(
      0,
      0,
      0,
      0.018
    );
}

.collections-container {
  width: 100%;
  max-width: 1220px;

  margin: 0 auto;

  padding:
    28px
    52px
    55px;
}


/* ========================================
   SINGLE COLLECTION
======================================== */

.collection {
  display: grid;

  grid-template-columns:
    220px
    1fr;

  gap: 55px;

  align-items: center;

  min-height: 270px;

  padding:
    30px
    0;
}

.collection-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 220px;
  height: 220px;
}

.collection-icon img {
  display: block;

  width: auto;
  height: auto;

  max-width: 185px;
  max-height: 200px;

  object-fit: contain;
}

.collection-content h2 {
  margin:
    0
    0
    27px;

  font-size: 23px;

  font-weight: 700;
}

.collection-content p {
  max-width: 760px;

  margin:
    0
    0
    33px;

  font-size: 21px;

  line-height: 1.48;

  text-align: justify;
}


/* ========================================
   COLLECTION BUTTON
======================================== */

.collection-button {
  display: block;

  width: 430px;

  margin-left: auto;

  padding:
    16px
    30px;

  border: 0;

  background: #B3212E;

  color: #FFFFFF;

  text-align: center;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.collection-button:hover {
  opacity: 0.88;

  transform:
    translateY(-1px);
}


/* ========================================
   COLLECTION PANEL
======================================== */

.collection-panel {
  display: none;

  width: 100%;

  margin:
    10px
    0
    42px;
}

.collection-panel.visible {
  display: block;
}

.collection-panel-inner {
  padding:
    48px
    36px
    52px;

  background: #F3F0E9;

  border-top:
    1px solid
    rgba(0, 0, 0, 0.18);

  border-bottom:
    1px solid
    rgba(0, 0, 0, 0.18);
}

.collection-panel-inner > h3 {
  margin:
    0
    0
    48px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 30px;
}


/* ========================================
   BOOK ENTRY
======================================== */

.book-entry {
  display: grid;

  grid-template-columns:
    270px
    1fr;

  gap: 70px;

  align-items: start;
}


/* ========================================
   BOOK COVER
======================================== */

.book-cover {
  width: 270px;
}

.book-cover img {
  display: block;

  width: 100%;
  height: auto;

  background: #FFFFFF;

  box-shadow:
    0 8px 18px
    rgba(0, 0, 0, 0.16);
}


/* ========================================
   BOOK INFORMATION
======================================== */

.book-information {
  padding-top: 4px;
}

.book-information h4 {
  margin:
    0
    0
    6px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 31px;

  font-weight: 700;
}

.book-series {
  margin-bottom: 28px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 14px;

  font-weight: 700;
}

.book-information p {
  max-width: 670px;

  margin:
    0
    0
    25px;

  font-size: 19px;

  line-height: 1.52;

  text-align: justify;
}


/* ========================================
   BOOK ACTIONS
======================================== */

.book-actions {
  display: flex;
  flex-direction: column;

  gap: 14px;

  width: 430px;

  max-width: 100%;

  margin-top: 35px;
}

.book-button {
  display: block;

  width: 100%;

  padding:
    15px
    25px;

  border: 0;

  color: #FFFFFF;

  text-align: center;
  text-decoration: none;

  font-size: 15px;
  font-weight: 700;

  line-height: 1;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.book-button.primary {
  background: #B3212E;
}

.book-button.secondary {
  background: #818181;
}

.book-button:not(.static):hover {
  opacity: 0.88;

  transform:
    translateY(-1px);
}

.book-button.static,
.book-button:disabled {
  cursor: default;

  opacity: 1;
}


/* ========================================
   AMAZON OPTIONS
======================================== */

.amazon-options {
  display: none;

  width: 100%;

  gap: 10px;
}

.amazon-options.visible {
  display: flex;
  flex-direction: column;
}

.amazon-option {
  display: block;

  width: 100%;

  padding:
    14px
    25px;

  background: #B08D57;

  color: #FFFFFF;

  text-align: center;
  text-decoration: none;

  font-size: 14px;
  font-weight: 700;

  line-height: 1;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.amazon-option:hover {
  opacity: 0.88;

  transform:
    translateY(-1px);
}


/* ========================================
   CARRHAE DETAIL PANEL
======================================== */

.book-detail-panel {
  display: none;

  width: 100%;

  margin-top: 46px;

  overflow: hidden;

  background: #F3F0E9;
}

.book-detail-panel.visible {
  display: block;
}

.book-detail-panel img {
  display: block;

  width: 100%;
  height: auto;

  margin: 0;
  padding: 0;
}


/* ========================================
   BOOK DIVIDER
======================================== */

.book-divider {
  width: 100%;
  height: 2px;

  margin:
    52px
    0;

  background: #111111;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

  /* ========================================
   MOBILE NAVIGATION + HEADER
======================================== */

.site-header {
  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: 100%;

  margin: 0;

  background: #000000;

  overflow: hidden;
}

.main-nav {
  position: static;

  order: 1;

  width: 100%;
  max-width: 100%;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 24px;

  padding:
    0
    12px;

  margin: 0;

  background: #000000;

  transform: none;

  z-index: 2000;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;

  line-height: 1;

  white-space: nowrap;
}

.internal-header-image {
  position: static;

  order: 2;

  display: block;

  width: 100%;
  height: auto;

  margin: 0;
}


  /* ========================================
     INTRO
  ======================================== */

  .books-intro {
    padding:
      24px
      22px
      28px;

    border-bottom:
      1px solid
      rgba(0, 0, 0, 0.45);
  }

  .books-intro h1 {
    margin:
      0
      0
      20px;

    font-family: "Cinzel", serif;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.5;

    text-align: left;
  }

  .intro-copy p {
    margin:
      0
      0
      18px;

    font-size: 14px;

    line-height: 1.5;

    text-align: justify;
  }

  .intro-copy p:last-child {
    margin-bottom: 0;
  }


  /* ========================================
     COLLECTIONS
  ======================================== */

  .collections-container {
    padding:
      26px
      22px
      40px;
  }


  /* ========================================
     SINGLE COLLECTION
  ======================================== */

  .collection {
    position: relative;

    display: block;

    min-height: 0;

    padding:
      28px
      0
      38px;
  }

  .collection:not(:first-of-type) {
    border-top:
      1px solid
      rgba(0, 0, 0, 0.55);

    padding-top: 42px;
  }

  .collection-icon {
    width: 120px;
    height: 120px;

    margin:
      0
      auto
      18px;
  }

  .collection-icon img {
    max-width: 110px;
    max-height: 118px;
  }

  .collection-content h2 {
    margin:
      0
      0
      14px;

    font-family: "Cinzel", serif;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.5;
  }

  .collection-content p {
    margin:
      0
      0
      20px;

    font-size: 14px;

    line-height: 1.5;

    text-align: justify;
  }


  /* ========================================
     COLLECTION BUTTON
  ======================================== */

  .collection-button {
    width: 100%;

    margin-left: 0;

    padding:
      12px
      18px;

    font-size: 14px;
    line-height: 1.5;
  }


  /* ========================================
     COLLECTION PANEL
  ======================================== */

  .collection-panel {
    margin:
      4px
      0
      28px;
  }

  .collection-panel-inner {
    padding:
      24px
      18px
      30px;
  }

  .collection-panel-inner > h3 {
    margin:
      0
      0
      24px;

    font-family: "Cinzel", serif;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.5;
  }


  /* ========================================
     BOOK ENTRY
  ======================================== */

  .book-entry {
    display: block;
  }


  /* ========================================
     BOOK COVER
  ======================================== */

  .book-cover {
    width: 185px;

    margin:
      0
      auto
      24px;
  }


  /* ========================================
     BOOK INFORMATION
  ======================================== */

  .book-information {
    padding-top: 0;
  }

  .book-information h4 {
    margin:
      0
      0
      5px;

    font-family: "Cinzel", serif;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.5;
  }

  .book-series {
    margin-bottom: 18px;

    font-family: "Cinzel", serif;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.5;
  }

  .book-information p {
    margin:
      0
      0
      18px;

    font-size: 14px;

    line-height: 1.5;

    text-align: justify;
  }


  /* ========================================
     BOOK ACTIONS
  ======================================== */

  .book-actions {
    width: 100%;
    max-width: 100%;

    gap: 10px;

    margin-top: 22px;
  }

  .book-button {
    padding:
      12px
      18px;

    font-size: 14px;

    line-height: 1.5;
  }


  /* ========================================
     AMAZON OPTIONS
  ======================================== */

  .amazon-option {
    padding:
      12px
      18px;

    font-size: 14px;

    line-height: 1.5;
  }


  /* ========================================
     CARRHAE DETAIL PANEL
  ======================================== */

  .book-detail-panel {
    margin-top: 24px;
  }

  .book-detail-panel img {
    width: 100%;
  }


  /* ========================================
     BOOK DIVIDER
  ======================================== */

  .book-divider {
    margin:
      32px
      0;
  }

}