@import url('https://fonts.googleapis.com/css2?family=Valley+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* CSS Reset */

*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  color: #e4e3e3;
}


h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* Custom Code */

body {
    background: #000719;
    background: radial-gradient(circle,rgba(0, 32, 62, 1) 0%, rgba(0, 7, 25, 1) 100%);
    color: #e4e3e3;
}

img {
    width: 100%;
    height: auto;
    border: 0;
    outline: none;
}

.container {
    width: 100%;
    height: auto;
}
.wrapper {
    width: 100%;
    max-width: 1080px;
    height: auto;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.container-header {
    background-color: transparent;
}

.wrapper-header {
  display: flex;
  justify-content: space-between;
  background-color: transparent;
  width: 100%;
  height: 60px;
  align-items: center;
}

.logo {
  color: #e4e3e3;
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
}

.wrapper-header nav {
  display: block;
  visibility: visible;
}

.wrapper-header nav a {
  display: inline-block;
  padding: 6px 14px;
  color: rgba(228, 227, 227, 0.4);
  border-bottom: 2px solid transparent;
  transition: border-bottom .2s ease-in-out,
              color .2s ease-in-out;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  font-family: "Valley Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.wrapper-header nav .active {
  color: #e4e3e3;
  border-bottom: 2px solid #e4e3e3;
}
.wrapper-header nav a:hover {
  color: #e4e3e3;
  border-bottom: 2px solid #e4e3e3;
  transition: border-bottom .2s ease-in-out,
              color .2s ease-in-out;
}

.wrapper-header .menu {
  width: 40px;
  height: 40px;
  color: #e4e3e3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 100%;
  display: none;
  visibility: none;
  background: rgb(4, 22, 46);
    transition: 
      background 0.2s ease-in;
}

/* Mobile Menu */

.menu-nav {
  display: none;
  visibility: none;
}

/* Hero */
@keyframes twinkleStar {
  0% {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 10px rgba(249, 251, 255, 0.1);
  }
  100% {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 10px rgba(249, 251, 255, 0.9);
  }
}
.homepage-graphic-hero {
  position: relative;
}
.homepage-graphic {
  width: 80%;
  height: 40px;
  left: 10%;
  z-index: -9;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: end;
}
.homepage-graphic .star {
  background: rgba(255, 255, 255, 0.30);
  border-radius: 100%;
  display: inline-block;
  margin: 0 6px;
}
.homepage-graphic .star.star1 { 
  width: 3px;
  height: 3px;
  transform: translateY(-600%);
  animation-delay: 0.5s; 
  animation: twinkleStar 3s ease infinite alternate;
}
.homepage-graphic .star.star2 { 
  width: 4px;
  height: 4px;
  transform: translateY(-600%);
  animation-delay: 0.3s; 
  animation: twinkleStar 3.5s ease infinite alternate;
}
.homepage-graphic .star.star3 { 
  width: 8px;
  height: 8px;
  transform: translateY(-300%);
  animation-delay: 0.8s; 
  animation: twinkleStar 4s ease infinite alternate;
}
.homepage-graphic .star.star4 { 
  width: 6px;
  height: 6px;
  transform: translateY(-280%);
  animation-delay: 0.8s; 
  animation: twinkleStar 5s ease infinite alternate;
}
.homepage-graphic .star.star5 { 
  width: 4px;
  height: 4px;
  transform: translateY(-500%);
  animation-delay: 0.4s; 
  animation: twinkleStar 3.5s ease infinite alternate;
}
.homepage-graphic .star.star6 { 
  width: 3px;
  height: 3px;
  transform: translateY(-900%);
  animation-delay: 0.6s;
  animation: twinkleStar 3s ease infinite alternate; 
}

.wrapper-hero {
  background-color: transparent;
  padding-bottom: 100px;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 20px;
}

h1 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-size: 50px;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  text-align: center;
}

.divider {
  width: 100%;
  height: 40px;
  background: url(assets/divider.svg)
              no-repeat
              center center;
  margin: 10px 0;
}

h2 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-size: 18px;
  font-weight: 300;
  font-style: normal;
}

/* CTA Strip */
.cta-strip {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-content: center;
  align-items: center;
}
.strip-nav-links {
  display: flex;
  background-color: rgba(2, 31, 66, 0.5);
  border-radius: 8px;
  padding: 10px 30px;
  color: rgba(228, 227, 227, 0.4);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Valley Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 13px;
  transition: background-color 0.2s ease-in,
              color 0.2s ease-in;
  min-width: 102px;
}
.strip-nav-links:hover {
  background-color: rgba(2, 31, 66, 1);
  color: #e4e3e3;
  transition: background-color 0.2s ease-in,
              color 0.2s ease-in;
}

.main-cta {
  display: inline-block;
  background-color: rgba(10, 93, 235, 0.6);
  border-radius: 8px;
  padding: 10px 30px;
  color: #e4e3e3;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Valley Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 13px;
  transition: background-color 0.2s ease-in,
              color 0.2s ease-in;
  box-shadow: 0px 6px 30px rgba(66, 161, 255, 0.2);
  text-align: center;
}
.in-text {
  margin-top: 30px;
}
.main-cta:hover {
  background-color: rgba(10, 93, 235, 1);
  color: #e4e3e3;
  transition: background-color 0.2s ease-in,
              color 0.2s ease-in;
}

/* Books */

.books {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.book {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 420px;
  background-color: pink;
  border-radius: 18px;
}

.book1 {
  background: rgba(13, 68, 150, 0.1);
  border: 2px solid rgb(7, 43, 84);
  box-shadow: 0 0 10px rgba(17, 56, 105, 0.5);
}
.book2 {
  background: rgba(32, 33, 127, 0.1);
  border: 2px solid rgb(16, 40, 84);
  box-shadow: 0 0 10px rgba(39, 36, 131, 0.5);
}
.book3 {
  background: rgba(45, 6, 84, 0.1);
  border: 2px solid rgb(40, 24, 84);
  box-shadow: 0 0 10px rgba(95, 29, 131, 0.5);
}
.book4 {
  background: rgba(16, 82, 62, 0.1);
  border: 2px solid rgb(8, 54, 18);
  box-shadow: 0 0 10px rgba(17, 56, 105, 0.5);
}

.book-cover {
  box-sizing: border-box;
  width: 260px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  transition: width 0.2s ease-in,
              height 0.2s ease-in;
  text-align: center;
}

.book-cover1 {
  position: relative;
  border: 2px solid rgb(39, 84, 144);
}
.book-cover1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 30px rgb(44, 105, 185);
  pointer-events: none;
}

.book-cover2 {
  position: relative;
  border: 2px solid rgb(60, 82, 149);
}
.book-cover2::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 30px rgb(39, 69, 161);
  pointer-events: none;
}

.book-cover3 {
  position: relative;
  border: 2px solid rgb(84, 34, 112);
}
.book-cover3::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 30px rgb(96, 35, 161);
  pointer-events: none;
}

.book-cover4 {
  position: relative;
  border: 2px solid rgb(28, 104, 62);
}
.book-cover4::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 30px rgb(31, 84, 68);
  pointer-events: none;
}

.book:hover .book-cover {
  width: 100%;
  height: 100%;
  transition: width 0.2s ease-in,
              height 0.2s ease-in;
}

.book-copy {
  display: flex;
  justify-content: space-between;
  align-content: stretch;
  gap: 6%;
  flex-wrap: wrap;
  margin-top: 40px;
}

.book-copy .book {
  width: 380px;
  height: 530px;
}

.book-copy .book-cover {
  width: 90%;
  height: 93%;
}

.copy {
  width: 20%;
  flex-grow: 1;
  flex-shrink: 1;
}

.copy h3 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-size: 28px;
  font-weight: 600;
  font-style: normal;
  margin-top: 14px;
}

.copy p {
  font-family: "Valley Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;

  font-size: 14px;
  margin-top: 20px;
}

/* Pages Template */

.page-template {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10%;
}
.page-template-photo {
  position: relative;
  width: 99%;
  height: 460px;
  background: red;
  background: url(assets/about.jpeg)
              center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  border: 2px solid rgb(22, 46, 140);
  box-shadow: 0 0 20px rgba(0, 89, 185, 0.2);
}
.page-template-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 100px rgba(2, 64, 129, 0.9);
  pointer-events: none;
  border-radius: 8px;
}
.page-template-photo-author {
  position: relative;
  width: 99%;
  height: 460px;
  background: red;
  background: url(assets/author.jpeg)
              center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  border: 2px solid rgb(22, 46, 140);
  box-shadow: 0 0 20px rgba(0, 89, 185, 0.2);
}
.page-template-photo-author::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 100px rgba(2, 64, 129, 0.9);
  pointer-events: none;
  border-radius: 8px;
}
.page-template h2 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-size: 36px;
  font-weight: 600;
  font-style: normal;
  margin-bottom: 14px;
}
.page-template-copy {
  width: 80%;
}
.page-template-copy p {
  font-family: "Valley Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 14px;
  margin-top: 20px;
}
.page-template .main-cta {
  margin-top: 30px;
}

/* Footer */

footer {
  width: 100%;
  height: auto;
  padding: 20px 0;
  background-color: rgba(0, 22, 62, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 69, 133, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer p, 
footer a,
footer a h6 {
  font-family: "Valley Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}
footer p {
  font-size: 14px;
}
footer a {
  font-size: 12;
  margin-top: 20px;
  background-color: #011732;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(228, 227, 227, 0.4);
  text-decoration: none;
  transition: background-color 0.2s ease-in,
              color 0.2s ease-in;
  box-shadow: 0px 0px 40px rgba(0, 41, 79, 0.1);
  max-width: 80%;
}
footer a h6 {
  font-weight: 600;
  text-align: center;
}
footer a:hover {
  background-color: rgba(10, 93, 235, 1);
  color: #e4e3e3;
  transition: background-color 0.2s ease-in,
              color 0.2s ease-in;
}

/* Media Queries */

@media (max-width: 760px) {
  
  .book-template {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .book-template .copy {
    width: 54%;
  }

  .page-template-copy {
    width: 90%;
  }

}

@media (max-width: 680px) {

  .title {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .books {
    gap: 20px;
  }

  .cta-strip {
    padding: 40px 0 20px;
  }

  .page-template-copy {
    width: 90%;
  }

  .homepage-graphic {
    display: none;
    visibility: none;
  }

}

@media (max-width: 560px) {

  .wrapper-header nav {
    display: none;
    visibility: none;
  }

  .wrapper-header .menu {
    display: flex;
    visibility: visible;
    flex-shrink: 0;
    cursor: pointer;
  }

  .menu-close {
    width: 40px;
    height: 40px;
    color: white;
    display: inline-block;
    padding: 10px;
    border-radius: 100%;
    background: rgb(10, 39, 69);
      transition: 
        background 0.2s ease-in;
    z-index: 9999999;
    text-align: center;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
  }

  .menu:hover {
    background: rgb(10, 39, 69);
    transition: 
      background 0.2s ease-in;
  }
  .menu-nav {
    width: 100%;
    height: 100vh;
    padding: 60px 20px 0;
    display: inline-block;
    flex-direction: column;
    visibility: visible;
    transform: translateY(-120%);
    opacity: 0;
    visibility: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
  }

  .menu-nav a {
    display: inline-block;
    padding: 30px 4px;
    color: rgba(228, 227, 227, 0.2);
    border-bottom: 2px solid transparent;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    transition: border-bottom .2s ease-in-out,
                color .2s ease-in-out;
    font-family: "Valley Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
  }
  .menu-nav .active {
    border-bottom: 2px solid #e4e3e3;
    color: #e4e3e3;
  }
  .menu-nav a:hover {
    border-bottom: 2px solid #e4e3e3;
    color: #e4e3e3;
    transition: border-bottom .2s ease-in-out,
                color .2s ease-in-out;
  }

  .menu-nav.menu-active {
    background-color: rgb(4, 22, 46);
    transform: translateY(0%);
    opacity: 1;
    visibility: visible;
    transition: 
      transform 0.4s ease-in,
      visibility 0.1s ease-in,
      opacity 0.1s ease-in;
    display: flex;
  }

  .book-template .book {
    width: 100%;
    height: auto;
  }

  .book-template .book-cover {
    width: 100%;
    height: auto;
  }

  .book-template .copy {
    width: 90%;
  }

  .cta-strip {
    padding: 20px 0 20px;
  }

  .strip-nav-links {
    display: none;
    visibility: none;
  }

  .main-cta {
    margin: 0 auto;
    display: inline-block;
    margin-top: 40px;
    margin-bottom: 36px;
  }

  .in-text {
    margin: 0 auto;
    display: inline-block;
    margin-top: 30px;
  }

  .page-template {
    padding: 0 2%;
  }
  .page-template-copy {
    width: 100%;
  }

  .homepage-graphic {
    display: none;
    visibility: none;
  }

}

@media (max-width: 380px) {

  .logo {
    padding-left: 2px;
  }

  h1 {
    font-size: 26px;
  }  
  
  .books {
    margin-top: 20px;
  }

  .book {
    width: 100%;
    height: auto;
  }

  .book-cover {
    width: 100%;
    height: auto;
  }

  .book-template .copy {
    width: 90%;
  }

  .page-template {
    padding: 0 2%;
  }
  .page-template-copy {
    width: 100%;
  }

}