/*Custom Properties*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ff-primary: "Instrument Sans", serif;
    --ff-secondary: ;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semi-bold: 600;
    --fw-bold: 700;

    --fs-900: 5rem;
    --fs-800: 4.5rem;
    --fs-700: 4rem;
    --fs-600: 3.5rem;
    --fs-500: 3rem;
    --fs-400: 2.5rem;
    --fs-300: 1.75rem;
    --fs-250: 1.25rem;
    --fs-200: 1rem;

    --clr-text-primary: #000000;
    --clr-text-secondary: #ffffff;
    --clr-text-dark: #555555;
    --clr-text-light: #A4A4A4;
    --clr-text-link: #7566e3;

    --clr-white: #ffffff;

    --fs-h1: 3rem;
    --fs-h2: 1.5rem;
    --fs-body: 1.5rem;
    --fs-nav: 1.2rem;

    --gap: 5rem;
}

@media (min-width: 20rem){
}

@media (min-width: 800px){

}

@media (min-width: 35em) {

}

@media (min-width: 45em) {
}

/* utility classes */

.fs-900 { font-size: var(--fs-900); }
.fs-800 { font-size: var(--fs-800); }
.fs-700 { font-size: var(--fs-700); }
.fs-600 { font-size: var(--fs-600); }
.fs-500 { font-size: var(--fs-500); }
.fs-400 { font-size: var(--fs-400); }
.fs-300 { font-size: var(--fs-300); }
.fs-200 { font-size: var(--fs-200); }

.fs-900,
.fs-800,
.fs-700,
.fs-600 {
    line-height: 1.1;
}


/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}
  

/*General Styles*/

body {
    background-image: url(/imgs/Misc/backgrounds/flowery\ cut.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: 1rem;
    font-family: var(--ff-primary);
    font-weight: var(--fw-semi-bold);
    font-size: var(--fs-body);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    display: grid;
    grid-template-rows: min-content 1fr;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0;
}

h1 { font-size:var(--fs-h1) }
h2 { font-size: var(--fs-h2);}
h3 { font-size: var(--fs-body);}

@media (prefers-reduced-motion: reduce) {  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



.flex {
    display: flex;
    gap: var(--gap, 1rem);
}

.grid {
    display: grid;
    gap: var(--gap, 1rem);
}

.container {
    padding-inline: 2em;
    margin-inline: auto;
    max-width: 80rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}

/*nav*/

.navbar {
    display: flex;
    background-color: #ffffff;
    width: 100%;
}

.logo-seccion {
    display: flex;
    margin: auto;
    align-items: center;
    height: 100px;
}

.navbar-logo {
    width: 7.5rem;
    margin-inline: 0 2rem;
}

.navbar-heading > img{
    width: 664px;
    margin: auto;
}

.mobile-nav-toggle {
    display: none;
}

.nav {
    height: 70px;
    background-color: hsla(0,0%,100%, 0.75);
    display: grid;
}

.nav-borders {
    border-top: 10px solid;
    border-bottom: 10px solid;
    border-left: none;
    border-right: none;
    border-image: repeating-linear-gradient(to right, 
        #fca311 0%, #fca311 42px, 
        #2a9d8f 42px, #2a9d8f 84px, 
        #e63946 84px, #e63946 128px);
    border-image-slice: 1;
}

.primary-navigation {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    align-items: center;
}

.primary-navigation a {
    text-decoration: none;
    font-weight: var(--fw-bold);
    font-size: var(--fs-nav);
    color: #A4A4A4;
}

li > a.active {
    color: #555555;
}

.primary-navigation a:hover {
    color: var(--clr-text-link);
}

/*MOBILE LAYOUT*/

@media (max-width: 70rem) {

    header {
        height: 110px;
    }

    .navbar-heading {
        display: none;
    }

    .nav {
        background: none;
    }

    .nav-borders{
        border-bottom: none;
        height: 1px;
    }

    .primary-navigation {
        list-style: none;
        margin: 0;
        height: 100%;
        border: none;
        padding: min(20rem, 10vh) 6rem;
        padding-top: 7rem;
        display:flex;
        align-items: center;
        flex-direction: column;
        background: hsla(0, 0%, 100%, 1);
        position: fixed;
        inset: 0 0 0 10%;
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 100ms ease-in-out;

    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 3000;
        left: 50rem;
        top: 1rem;
        background: transparent;
        background-image: url(/imgs/Misc/buttons/icon-hamburger.svg);
        background-repeat: no-repeat;
        background-position: center;
        width: 5rem;
        aspect-ratio: 1;
        border: 0;
    }

    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: url(/imgs/Misc/buttons/icon-close.svg);
    }

    .mobile-nav-toggle:focus-visible {
        outline: 5px solid rgb(150, 151, 255);
        outline-offset: 5px;
    }


    .primary-navigation a {
        text-decoration: none;
        font-weight: var(--fw-bold);
        font-size: 3rem;
        color: #555555;
    }

    li > a.active {
        color: #000000;
    }

    @supports (backdrop-filter: blur(1rem)) {
        .primary-navigation {
            background: hsla(0, 0%, 100%, 0.7);
            backdrop-filter: blur(1rem);     
        }
        
    }
}



/* HEADINGS */


/* COUNTDOWN */

.countdown {
    width: 40rem;
    margin: auto;
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 10px 10px .8px hsla(0, 0%, 30%, 0.25);
}



#headline{
    color: rgb(54, 54, 54);
    font-size: 4rem;
}

.countdown-list {
    list-style: none;
    padding: 0;
}
.countdown-list > li {
    display: inline-block;
    font-size: 1.5rem;
    list-style-type: none;
    padding: 1rem;
    text-transform: uppercase;
}

.countdown-list-red {
    color: #E63946;
}

.countdown-list-orange {
    color: #FCA311;
}

.countdown-list-blue {
    color: #2A9D8F;
}

.countdown-list-pink {
    color: #FF99C8;
}

.countdown-list > li span {
    display: block;
    font-size: 4.5rem;
  }

/* > ANNOUNCEMENT */

.announcement {
    margin:auto;
    text-align: center;
    margin-top: 3rem;
}

.announcement-text > h1 {  
    line-height: 3rem;
    margin-bottom: 2rem;
    color: rgb(31, 31, 31);
}


.ewf-heading {
    margin-top: 3rem;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 10px 10px .8px hsla(0, 0%, 30%, 0.25);
}

.ewf-heading > h1 {
    line-height: 4rem;
}

/* BOOK SECTION */

.book-background {
    display: grid;
    width: 65rem;
    height: 41.375rem;
    grid-template-columns: 31rem 3.25rem 31rem;
    background-color: #E63946;
    border-radius: 2.875rem;
    margin: auto;
    margin-top: 3rem;
    box-shadow: 4px 4px 8px hsla(0, 0%, 30%, .4);
}

.front-cover {
    grid-column: 1;
    margin:0 auto;
}

.front-cover > img {
    width: 23.509rem;
    border-radius: 1.5rem;
    margin-top: 3.75rem;

    box-shadow: 0px -25px 20px -20px rgba(0,0,0,0.45),
    25px 0px 20px -20px rgba(0,0,0,0.45),
    0px 25px 20px -20px rgba(0,0,0,0.45),
    -25px 0px 20px -20px rgba(0,0,0,0.45);
}

.buy-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 2.5rem;
    color: white;
}

.buy-container > h2 {
    margin-bottom: 0.2rem;
}

.amazon-button > img {
    width: 9.638rem;
}

.amazon-button {
    margin: auto;
    margin-top: 0.75rem;
    background-color: #DAF9FF;
    border-radius: 3.125rem;
    padding: 1rem 4.5rem;
}

.amazon-button:hover,
.amazon-button:focus {
    box-shadow: 0 8px 8px -4px hsla(0, 0%, 30%, 1);
    transform: translateY(-0.25em);
}


.book-gap {
    grid-column: 2;
    width: 3.25rem;
    height: 45.313rem;
    background-color: #FF818A;

    margin:0 auto;
}

.back-cover {
    grid-column: 3;
    justify-content: center;
}

.back-text {
    width: 25.625rem;
    margin: auto;
    margin-top: 4.75rem;
}

.back-text > p {
    font-weight: var(--fw-semi-bold);
    font-size: 2rem;
    line-height: 34.528px;
    letter-spacing: -0.24px;
    color: white;
}

@media (min-width: 20rem) and (max-width: 50rem) {
    .book-background {
        display: grid;
        width: 32rem;
        height: 41.375rem;
        grid-template-columns: 30rem;
        background-color: #E63946;
        border-radius: 2.875rem;
        margin: auto;
        margin-top: 3rem;
        box-shadow: 4px 4px 8px hsla(0, 0%, 30%, .4);

        border: 1rem solid white;
    }

    .front-cover {
        grid-column: 1;
    }

    .back-cover {
        grid-column: 3;
        justify-content: center;
        display: none;
    }

    .book-gap {
        display: none;
    }
}

/* COLOURING SECTION */

.colouring-heading {
    margin: auto;
    margin-top: 7rem;
    padding: 1rem 3rem;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 10px 10px .8px hsla(0, 0%, 30%, 0.25);
}

.colouring-background {
    display: grid;
    height: 35.313rem;
    grid-template-columns: 2.625rem 26.875rem;
    margin: auto;
    margin-top: 2rem;
    border-radius: 0 29px 29px 0;
    box-shadow: 4px 4px 8px hsla(0, 0%, 30%, .4);
}

.book-spine {
    grid-column: 1;
    width: 2.625rem;
    height: 35.313rem;
    background-color: #FFB133;
}

.color-front-cover {
    grid-column: 2;
    background-color: #FBD059;
    border-radius: 0 29px 29px 0;
}

.color-front-cover > img {
    width: 20.5rem;
    margin: auto;
    border-radius: 1.5rem;
    margin-top: 3.125rem;

    box-shadow: 0px -25px 20px -20px rgba(0,0,0,0.45),
    25px 0px 20px -20px rgba(0,0,0,0.45),
    0px 25px 20px -20px rgba(0,0,0,0.45),
    -25px 0px 20px -20px rgba(0,0,0,0.45);
}

.color-buy > h2 {
    color: #292929;
    font-weight: var(--fw-bold);
}

.color-button {
    margin-top: 0.5rem;
    background-color: #DAF9FF;
    border-radius: 3.125rem;
    padding: 0.8rem 3.5rem;
}
.color-button img {
    width: 8rem;
}

.color-button:hover,
.color-button:focus {
    box-shadow: 0 8px 8px -4px hsla(0, 0%, 30%, 1);
    transform: translateY(-0.25em);
}

/* FOOTER SECTION*/

.footer-container {
    background-color: hsla(0, 0%, 0%, 0.34);
    color: white;
    display: flex;
    flex-direction: column;
    margin-top: 7rem;
    height: 12rem;
    min-height: 38vh;
    width: 100vw;
    width: 100%;
    bottom: 0;
    box-shadow: 0px 0px 10px 40px  hsla(0, 0%, 0%, 0.34);
}

.footer-wrap {
    width: 60rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-social-icons{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.copyright-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.copyright-text {
    font-size: 20px;
    bottom: 0;
}

.easter-egg-footer {
    z-index: 1000;
    position: absolute;
    width: 60rem;
}

.easter-egg-footer > img {
    width: 118.064px;
    height: 88.439px;
    margin: auto;
    margin-right: 12rem;
    margin-top: -5rem;
    transform: rotate(-8.456deg);
}