/*-------------------------------------------------->
<-----              CORE STYLES                ----->
<--------------------------------------------------*/

:root {
  --clr-white: #fff;
  --clr-black: #000;
  --clr-yellow: #F5BE49;
  --clr-drk-blue: #0F3F5C;  /*  dark blue for links */
  --clr-ltr-blue: #2E5984; /*  lighter blue for links on hover */
  --clr-med-gray: #828282;
  --br: 4px;

  --font-calluna: 'Calluna Sans', Verdana, sans-serif;
  --font-eb-garamond: 'EB Garamond', 'Georgia', serif;

}

/*-------------------------------------------------->
<-----                 FIXES                   ----->
<--------------------------------------------------*/

/* prevents ID linked from being hidden by sticky header */
#what-is-to-be-done,
#ecrire-au-temps,
#deux-solitudes,
#u-braku-s-madarskom,
#epouser-la-hongrie,
#un-amour-de-salome,
#irish-journey, 
#telling-differences {
  scroll-margin-top: 100px;
}

/* prevents transitions for firing on page load */
.preload * {
  transition: none !important;
}

/*-------------------------------------------------->
<-----                 MOBILE                  ----->
<--------------------------------------------------*/

@media only screen and (min-width: 0rem) {

  /*------------------------------->
  <---  FONTS & SITEWIDE STYLES --->
  <-------------------------------*/

  @font-face {
    font-family: 'EB Garamond';
    font-style: regular;
    font-weight: 100;
    src: url('/assets/fonts/eb-garamond-v32-latin-regular.woff2');
    font-display: swap;
  }

  @font-face {
    font-family: 'Calluna Sans';
    font-style: italic;
    font-weight: 400;
    src: url('/assets/fonts/call-sans_italic.woff2');
    font-display: swap;
  }

  @font-face {
    font-family: 'Calluna Sans';
    font-style: light;
    font-weight: 100;
    src: url('/assets/fonts/call-sans_light.woff2');
    font-display: swap;
  }

  @font-face {
    font-family: 'Calluna Sans';
    font-style: regular;
    font-weight: 400;
    src: url('/assets/fonts/call-sans_regular.woff2');
    font-display: swap;
  }

  @font-face {
    font-family: 'Calluna Sans';
    font-style: bold;
    font-weight: 700;
    src: url('/assets/fonts/call-sans_bold.woff2');
    font-display: swap;
  }

  body {
    overflow-x: hidden; /* prevents horizontal scroll */
    touch-action: pan-y; /* hide horizontal scroll */
  }

  html {
    overflow-x: visible; /* keep scroll calculations normal */
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-calluna);
    font-style: 'Regular';
  }

  a {
    text-decoration: none;
    color: var(--clr-black);
  }

  i {
    font-family: var(--font-calluna);
    font-style: italic;
  }

  button {
    all: unset;
    cursor: pointer;
  }

  h1 {
    font-family: var(--font-eb-garamond);
    text-align: center;
    font-weight: 100;
  }

  h2, h4, h5, p {
    font-family: var(--font-calluna);
  }

  .page-title > h2 {
    color: var(--clr-white);
    font-weight: 700;
  }

  p {
    font-size: 18px;
    line-height: 1.5;
  }

  hr {
    box-shadow: none;
    border: none;
    height: 1px;
    background-color: var(--clr-black);
  }

  .quotation-mark {
    position: relative;
    top: 2rem;
    color: var(--clr-med-gray);
    font-family: var(--font-eb-garamond);
    font-size: 5rem;
    line-height: 1.25rem;
    margin-left: 1rem;
  }

  /*------------------------------->
  <---          HEADER          --->
  <-------------------------------*/

  .header__container {
    position: sticky;
    top: 0px;
    height: 110px;
    background-color: var(--clr-white);
    z-index: 1;
    transition: 0.2s;
  }

  .header__container.active {
    height: 88px;
    background-color: var(--clr-yellow);
    transition: 0.2s;
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.7);
  }

  .header__line-wrapper {
    display: none;
  }

  .header__inner-container {
    text-align: center;
    height: 100%;
  }

  .header__logo-wrapper {
    margin: -10px auto;
  }

  .header__logo {
    position: relative;
    top: -2px;
    font-size: 4rem;
    transition: 0.2s;
  }

  .header__logo.active {
    font-size: 3rem;
    margin: 0.25rem auto 0.1rem auto;
    transition: 0.2s;
  }

  .header__hamburger {
    margin-top: 5px;
    width: 18px;
    height: 18px;
  }

  .header__hamburger.active :nth-child(1) {
    transform: rotate(45deg); 
    translate: 0px 5px;
  }

  .header__hamburger.active :nth-child(2) {
    visibility: hidden;
  }

  .header__hamburger.active :nth-child(3) {
    transform: rotate(-45deg);
    translate: 0px -5px;
  }

  .header__hamburger-lines { 
    display: block;
    background-color: var(--clr-black);
    width: 18px; 
    height: 2px; 
    border-radius: 3px;
    margin: 3px 0; 
  }

  /*------------------------------->
  <---           NAV           --->
  <-------------------------------*/

  .nav-menu__container {
    position: relative;
    visibility: hidden; 
    left: 50%;
    translate: -50%;
    width: 320px;
    transform: scaleY(0);
    transform-origin: top;
    background-color: var(--clr-white);
    margin-top: 0rem;
  }

  .nav-menu__container.active {
    visibility: visible;
    border: 1px solid var(--clr-med-gray);
    transform: scaleY(1);
    box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.5);
    transition: 0.3s; 
  }

  .nav-menu__container a {
    display: block;
    padding: 20px;
  }

  .nav__link {
    margin: 0px;
    padding: 0px;
  }

  .nav__link a:hover {
    background-color: var(--clr-med-gray);
    color: var(--clr-white);
  }

  .current-page a {
    color: var(--clr-white);
  }

  .current-page {
    background-color: var(--clr-med-gray);
    color: var(--clr-white);
  }

  .books-button {
    position: relative;
  }

  .nav-submenu {
    position: absolute;
    transform: scaleY(0);
    transform-origin: top;
  }

  .nav-submenu.active {
    position: relative;
    top: 7px;
    left: 10px;
    width: 320px;
    background-color: var(--clr-white);
    border: 1px solid var(--clr-med-gray);
    transform: scaleY(1);
    transition: 0.2s;
    box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.5);
  }

  /*------------------------------->
  <---          HERO           --->
  <-------------------------------*/

  .hero-home {
    position: relative;
    width: 100%;
    height: 670px;
    min-height: 600px;
    max-height: 750px;
    overflow: hidden;
  }

  .hero-home__bg {
    position: absolute;
    top: 0;
    width: auto;
    height: 100%;
    left: -725px;
    object-fit: cover;
    z-index: -1;
  }

  .hero {
    position: relative;
    width: 100%;
    height: 230px;
    min-height: 200px;
    max-height: 300px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero__bg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0px;
    object-fit: cover;
    z-index: -1;
  }

  .hero-books {
    width: 100%;
    aspect-ratio: 12 / 16;
    background-repeat: repeat;
    background-size: cover;
    max-height: 315px;
    overflow: auto;
    display: flex;
    align-items: center;
  }

  .hero-home__top-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 40px auto 0 auto;
    height: 570px;
    width: 98%;
  }

  .page-title {
    margin: 0 auto;
    width: 320px;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-title > h2 {
    font-size: 35px;
    text-transform: uppercase;
    text-align: center;
  }

  .book-cover {   /* Home page hero content */
    position: relative;
    width: 10rem;
    aspect-ratio: 200 / 300;
    margin: 0px auto 20px auto;
    box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }

  .book-cover-img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .book-details {
    height: 30%;
    width: 311px;
    margin: 0 auto;
    padding: 0px;
    margin-top: 25px;
  }

  .book-details > p {
    text-align: center;
    font-size: 24px;
    color: var(--clr-white);
    font-weight: 100;
    padding: 10px;
  }

  .book-details > h2 {
    font-family: var(--font-calluna);
    text-align: center;
    color: var(--clr-white);
    font-size: 39px;
    font-weight: 700;
    padding: 10px;
  }

  .books__top-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .books__top-image-wrapper {
    position: relative;
    width: auto;
    height: 11rem;
    margin: 0px auto 1rem auto;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  }

  .books__top-image {
    display: block;
    width: auto; 
    height: 100%;
    object-fit: cover;
  }

  .books__title {
    margin: 0px auto;
    width: 317px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .books__title > h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 2.15rem;
    text-transform: none;
    text-align: center;
  }

  .books__title, .long > h2 {
    font-size: 27px;
  }

  /*------------------------------->
  <---          FOOTER          --->
  <-------------------------------*/

  .footer__container {
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 0;
  }

  .footer__back-img {
    width: 100%;
    background-image: url('/../assets/images/FrontCoverBottom.jpg');
    aspect-ratio: 12 / 16;
    background-repeat: repeat;
    background-size: cover;
    background-position: 0px;
    max-height: 320px;
    min-height: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer__quote-container {
    padding: 10px 20px;
    max-width: 425px;
    color: var(--clr-white);
  }

  .footer__quote {
    font-size: 1.05rem;
    font-weight: 100;
  }

  .footer__quote-author {
    text-align: right;
    font-size: 1.05rem;
    font-weight: 100;
  }

  .social-media__container {
    margin: 30px auto;
    width: 275px;
    display: flex;
    justify-content: space-around;
    height: 45px;
  }

  .social-media {
    width: 45px;
  }

  .sm-icon {
    width: 45px;
    height: auto;
  }

  .footer__credits {
    margin: 30px auto 20px auto;
    text-align: center;
    background-color: var(--clr-white);
    height: 40px;
  }

  .footer__credits > p {
    font-size: 1rem;
  }

}

/*-------------------------------------------------->
<-----        MOBILE LANDSCAPE > 480px         ----->
<--------------------------------------------------*/

@media only screen and (min-width: 30rem) {

  .header__container {
    height: 115px;
    background-color: var(--clr-white);
  }

  .header__logo {
    font-size: 4.25rem;
  }

  .book-cover {
    width: 12rem;
  }

  .page-title {
  width: 450px;
  }

  .books__title {
    width: 400px;
  }

  .books__title, .long > h2 {
    font-size: 32px;
  }

  .footer__back-img {
    max-height: 350px;
  }

  .footer__quote {
    font-size: 1.25rem;
  }

  .footer__quote-author {
    font-size: 1.25rem;
  }

}

/*-------------------------------------------------->
<-----              TABLET > 768px             ----->
<--------------------------------------------------*/


@media only screen and (min-width: 48rem) {  

  .header__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .header__line-wrapper {
    display: flex;
    align-items: center;
    width: 15%;
  }

  .header__line {
    width: 100%;
    color: var(--clr-black);
  }

  .right-line {
    margin-right: auto;
  }

  .left-line {
    margin-left: auto;
  }

  .header__inner-container {
    padding-top: 10px;
  }

  .header__logo.active {
    font-size: 3rem;
    margin: 0rem auto 0.1rem auto;
  }

  .nav__link.active {
    padding: 15px 20px 2px 20px;
  }

  .hero-home {
    max-height: 475px;
    min-height: 475px;
  }

  .hero-home__bg {
    width: auto;
    min-height: 475px;
    top: auto;
    left: 0px;
    bottom: 50%;
    translate: 0px 50%;
  }

  .hero {
    height: 380px;
    max-height: 380px;
  }

  .hero-home__top-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: start;
    width: 600px;
    height: 400px;
  }

  .book-cover {
    width: 38%;
    height: 76%;
    margin: 40px 45px 40px 15px;
    background-size: cover;
  }

  .book-details {
    margin: 85px 20px 0px 0px;
    width: 400px;
  }

  .book-details > p {
    text-align: right;
    font-size: 24px;
    color: var(--clr-white);
    font-weight: 100;
    padding: 10px;
  }

  .book-details > h2 {
    font-family: var(--font-calluna);
    text-align: right;
    color: var(--clr-white);
    font-size: 39px;
    font-weight: 700;
    padding: 10px;
  }

  .hero-books {
    max-height: 460px;
  }

  .books__top-image-wrapper {
    position: relative;
    width: auto;
    height: 16rem;
  }


  .page-title {
  width: 500px;
  }

  .page-title > h2 {
    font-size: 39px;
  }

  .books__title {
    margin: 10px auto;
    width: 600px;
    height: auto;
  }

  .books__title > h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 2.75rem;
  }

  .footer__back-img {
    max-height: 300px;
    }

  .footer__quote-container {
    max-width: 550px;
  }

  .social-media__container {
    width: 380px;
    height: 50px;
  }

  .social-media {
    width: 55px;
  }

  .footer__credits > p {
    font-size: 1rem;
  }

}

/*-------------------------------------------------->
<-----         SMALL DESKTOP > 1024px          ----->
<--------------------------------------------------*/

@media only screen and (min-width: 64rem) {


  .header__container {
    height: 125px;
  }
  
  .header__hamburger {
    display: none;
  }

  .hero-home__bg {
    width: 100%;
    height: auto;
  }

  .nav-menu__container {
    position: static;
    translate: 0%;
    margin: -10px auto 0 auto;
    width: 40rem;
    background-color: transparent;
    visibility: visible;
    transform: scaleY(1);
  }

  .nav-menu {
    display: flex;
    justify-content: space-around;
  }

  .nav-menu__container a {
    display: block;
    color: black;
    padding: 10px 10px 5px 10px;
  }

  .nav-menu > li {
    padding-bottom: 10px;
    width: fit-content;
  }

  .nav__link a:hover {
    background-color: transparent;
    color: black;
    border-bottom: 3px solid var(--clr-black);
  }

  .books-button a:hover {
    background-color: transparent;
    color: black;
    border-bottom: 3px solid var(--clr-black);
  }

  .nav-link__books a {
    display: inline;
    padding: 0px 5px 5px 5px;
  }

  .nav-link__books {
    margin: 20px 0px;
  }

  .current-page a {
    color: var(--clr-black);
  }

  .current-page {
    background-color: transparent;
  }

  .nav-submenu.active {
    position: absolute;
    top: 2.5rem;
    left: 40px;
    display: block;
    width: 225px;
  }

  .nav-submenu a {
    color: black;
  }

  .nav-link__books a:hover {
    border-bottom: 3px solid var(--clr-black);
  }

  .nav-menu a.active {
    margin: 0px;
    padding: 4px;
  }

  .header__line {
    width: 280px;
  }

}

/*-------------------------------------------------->
<-----            DESKTOP > 1280px             ----->
<--------------------------------------------------*/


@media only screen and (min-width: 80rem) {

  .header__container {
    justify-content: space-around;
  }

  .header__line-wrapper {
    display: flex;
    align-items: center;
    width: 20%;
  }

  .header__line {
    width: 75%;
    color: var(--clr-black);
  }

}

/*-------------------------------------------------->
<-----         LARGE DESKTOP > 1441px          ----->
<--------------------------------------------------*/

@media only screen and (min-width: 90rem) { 
    
  .header__line-wrapper {
    width: 25%;
  }

  .header__line {
    width: 50%;
    color: var(--clr-black);
  }

}

