* {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100%;
    height: auto;
}

@font-face {
    font-family: Montserrat;
    src: url("../fonts/Montserrat/Montserrat-VariableFont_wght.ttf");
}

@font-face {
    font-family: Refile;
    src: url("../fonts/refile/Refile.otf");
}

@font-face {
    font-family: Merriweather;
    src: url("../fonts/Merriweather/Merriweather/Merriweather-Regular.ttf");
}

header {
    height: 11%;
}


.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: .5em 0;
    height: 6em;
}

.top-nav {
    background: #f7b2cb;
    padding: 15px;
    height: 2.5em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.top-nav a {
   text-decoration: none;
   color: white;
}

.nav-item:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: .75em;
    transition: all 0.2s ease-in-out;
    cursor: pointer;

}

.ul-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    gap: 5em;
}

.nav-item {
    font-size: 1em;
    color: white;
    font-family: Montserrat;
    padding: 10px 20px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.5);
    width: 95%;
    margin: 0 3em;

 
}

main {
    background-image: url("../images/herobg.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.adaptations-main {
    height: 110em;

}

.hero-content {
    padding: 20px;

}

.hero-content h1 {
    font-size: 3.25em;
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
}

.hero-content h3 {
    font-size: 1.75em;
    font-family: Merriweather;
    color: #a37184;
}

.hero-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    width: 300px;
}

.hero-img img {
    width: 340px;
}

.top-button {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-radius: .5em;
    width: 200px;
    margin-top: 20px;
    background-color: #f35891;
    font-family: Montserrat;
    color: white;
    box-shadow: 2px 2px 2px #70213e;
}

.top-button:hover {
    background-color: #f35891;
    box-shadow: 2px 2px 2px #70213e;
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.5);
    width: 95%;
    margin: 0 3em;
    padding: 3em 0;
}

.feature-title, .feature-title-mobile {
    font-size: 3em;
    text-align: center;
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
    padding-bottom: 1em;

}

.gallery-content:hover {
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;

}

.feature-button {
    margin-top: 10px;
    padding: 8px;
    border-radius: .25em;
    width: 85px;
    height: 15px;
    background-color: #fa7aa9;
    font-family: Montserrat;
    color: white;
    box-shadow: 2px 2px 2px #75124c;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;   
}

.feature-button, a {
    text-decoration: none;
    color: white;
}

.feature-button:hover {
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
    background-color:#f55b93;
    box-shadow: 2px 2px 2px #720946;
    cursor: pointer;
}

.holiday-text {
    margin-top: 1em;
    text-align: left;
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
    font-size: 3em;
    margin-left: 1.25em;
}

.slideshow-text {
    position: absolute;
    bottom: 10px; /* Adjust to your desired distance from the bottom */
    right: 10px;  /* Adjust to your desired distance from the right */
    color: white;
    font-family: Montserrat;
    font-size: .75em;
    z-index: 1; /* Ensure the text is on top of the images */
    background-color: #fa7aa9;
    padding: .5em;
    border-radius: .25em;
}

.slideshow-text:hover {
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
    background-color:#f55b93;
    box-shadow: 2px 2px 2px #720946;
    cursor: pointer;
}

.row-container {
    display: flex; 
    justify-content: center; 
    gap: 2em; 
    margin: 3em auto; 
    flex-wrap: wrap; 
  }
  
  .slideshow {
    height: 30em;
    width: 30%; 
    max-width: 600px; 
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-start;
  }
  
  .slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: slideAnimation 20s infinite;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .slide:nth-child(1) {
    animation-delay: 0s;
  }
  .slide:nth-child(2) {
    animation-delay: 6s;
  }
  .slide:nth-child(3) {
    animation-delay: 12s;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: scale-down; 
  }
  
  @keyframes slideAnimation {
    0% { 
        opacity: 0; 
    }
    25% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0; 
    }
    100% { 
        opacity: 0; 
    }
  }
  



/* */

footer {
    padding: 2em;
    position: relative;
    height: auto;
}


.socialmedia-footer {
    display: flex;
    justify-content: center;

}

.copyright-footer {
    text-align: center;
    padding: 0 20px;
}

.copyright-footer p {
    color:#f55b93;
    font-family: Montserrat;
}

.footer-icon {
    font-size: 2em;
    margin-right: 20px;
}

.footer-icon i:hover {
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.fa-brands {
    color: #fa7aa9;
}


.main-container {
    display: flex;
    width: auto;
}


.dropdown-category {
   margin-left: 20em;
   padding-right: 2em;
   padding-left: 2em;
   padding-top: 7.5em;
   background-color: rgba(255, 255, 255, 0.5);
   color: #fa7aa9;
}

.option-select {
    color: rgb(158, 154, 154);
}

.dropdown-category select {
    width: 10em;
    height: 3em;
    text-align: center;
    font-family: Montserrat;
}

.dropdown-category h3 {
    text-align: center;
    margin-bottom: .25em;
    font-size: 1.5em;
    font-family: Montserrat;
}

.book-container {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    width: 1000px;
    padding: 1em;
    background-color: rgba(255, 255, 255, 0.5);
}


.row {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 3em;
    margin-top: 3em;
}


.book-covers {
    display: inline-block;
    text-align: center;
    align-items: center;
}


.book-covers img {
    display: block;
    width: 200px;
    height: 300px;
    object-fit: cover;
    margin: 0;
}

.book-covers:hover img {
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}


.book-text {
    margin-top: .5em;
    text-align: center;
    font-family: Montserrat;
}


.star-rating {
    margin-top: .5em;
}
.fa-star {
color: #fa7aa9;
}


.favorite-books {
    text-align: center;
    font-family: Merriweather;
    font-size: 3em;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
    
}

.image-container {
    position: relative;
    width: 200px; 
    height: 300px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease; 
    border-radius: 5px;
    font-family: Montserrat;
    font-size: .75em;
    text-wrap: wrap;
}

.image-container:hover .overlay {
    opacity: 1; 
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;

}

.more-link {
    position: absolute;
    bottom: 10px; 
    right: 10px; 
    color: #fff;
    text-decoration: underline;
    font-size: 1em;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.more-link:hover {
    background-color: rgba(255, 255, 255, 0.3); 
    cursor: pointer;
}

.main-reviews {
    background-image: url("../images/herobg.svg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.featured-books {
    margin-top: 3em;
}

.adaptation {
    position: relative;  
    background-color: rgba(255, 255, 255, 0.5);
    padding-right: 4em;
    margin: 1em 3em;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 80em;
    height: 15em;
}

.adaptation-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2em;
    justify-content: center;
}

.adaptation-text {
    margin-left: 1em;
    font-family: Montserrat;
}

.adaptation-text h3 {
    font-size: 2.5em;
    color:#f5347b
}

.adaptation-text span {
    font-size: 1em;
    margin-top: 0.25em;
    margin-right: .5em;
    color: black;
}

.adaptation-text article {
    font-size: 1em;
    margin-top: 0.25em;
    color: rgb(75, 74, 74);
    font-family: Montserrat;
    font-weight: lighter;
}

.adaptation-text h4 {
    font-weight: normal;
}

.adaptation-img {
    height: 15em;
}

.adaptation-button {
    position: absolute;  
    bottom: 1em;  
    right: 1em; 
    padding: 5px 10px;  
    background-color: #f35891; 
    color: white; 
    border: none;  
    border-radius: 5px;  
    cursor: pointer;  
    font-size: 1rem;  
    transition: background-color 0.3s; 
    margin-top: 1em;
}


.adaptation-button:hover {
    background-color:#f5347b;
    box-shadow: 2px 2px 2px #720946;
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}

.adaptation-header {
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
    font-size: 3em;
    text-align: center;
    padding-top: 1.5em;
}

.page-bottom-nav {
    text-align: center;
    margin-top: 2.5em;
    font-family: Montserrat;
    font-size: 1.25em;
    color:#f5347b;
}

.page-number {
    margin-right: .5em;
    padding: .5em;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, color 0.2s ease, background-color 0.2s ease;
}

.active {
    color: #b32879;
    border: none;
    background-color: rgba(255, 255, 255, 0.6);

}

.page-number:hover {
    transform: scale(1.1);
    color: #b32879; 
}

.page-bottom-nav :nth-child(2) {
    margin-left: .5em;
}

.prev, .next {
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.prev:hover, .next:hover {
    transform: scale(1.2);
}

.page-number.active:hover {
    transform: scale(1.2); 
    color: #f5347b; 
    background-color: rgba(255, 255, 255, 0.8); 
}

.book-image {
    width: 200px;
    height: 275px;
}

.popular-books-main {
    height: 110em;
}

.popular-books-main h2 {
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
    font-size: 3em;
    text-align: center;
    padding: 1em 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(4, 1fr); 
    gap: 1em; 
    justify-items: center;
    padding: 1em 2em;
    font-family: Montserrat;
  }
  
  .grid-item {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    text-align: left;
    box-shadow: 1px 1px 2px #720946;
    width: 200px;
  }

  .grid-item img {
    width: 200px;
  }

  .grid-item img:hover {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    transform: scale(1.1);
  }

.store-main h2 {
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
    font-size: 3em;
    text-align: center;
    padding: 1em 0;
}

.add-to-cart {
    float: right;
    background-color: rgba(233, 145, 203, 0.6);
    padding: .25em;
    border-radius: .25em;
    font-weight: bolder;
    color: rgb(255, 255, 255);
    width: 1em;
    text-align: center;
}

.add-to-cart:hover {
    background-color: rgba(231, 107, 190, 0.6);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    transform: scale(1.1);
}

.contact {
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
    font-size: 3em;
    text-align: center;
    padding-top: 1em;
}
section {
    padding: 0 2em 1em;
}

label {
	float: left;
    width: 11em;
    text-align: right;
    color: #fa7aa9;
    font-family: Montserrat;
}
input, select, textarea {
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: .5em;
    font-family: Montserrat;
}

fieldset {
    margin-top: 1em;
    margin-bottom: 2em;
    padding-top: .5em;
    padding-bottom: 1em;
}

legend {
    color: #f73b80;
    font-weight: bold;
    font-size: 125%;
    margin-bottom: .5em;
    font-family: Montserrat;
    margin-left: 0.5em;
}

textarea {
    width: 40em;
}

#submit {
    width: 8em;
    padding: .5em;
    color: white;
    font-family: Montserrat;
    border: none;
    border-radius: 1em;
    background-color:#fa508e;
}

#submit:hover {
   background-color: #f0206c;
   transition: background-color 0.2s; 
}

fieldset {
    background-color: rgba(255, 255, 255, 0.75);
    margin: 0 24em;
    align-items: center;
}

.main-contact {
    height: 45em;
}

.confirmation {
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 2px 2px 2px #75124c;
    font-size: 3em;
    text-align: center;
    padding-top: 1em;

}

.book-review-main {
    height: 50em;
    padding: 2em 14em;
}

.book-review-container {
   background-color: rgba(255, 255, 255, 0.6);
   border: 2px solid rgba(68, 19, 68, 0.1);
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
   padding: 4em;
}

.book-review-header {
    font-family: Refile;
    color: #fa7aa9;
    text-shadow: 1px 2px 2px #833964;
    border-bottom: 2px solid rgba(68, 19, 68, 0.1);
    padding: 0.5em 0;
    text-align: center;
    font-size: 3em;
}

.review-para {
    font-family: Montserrat;
    text-align: justify;
    margin-left: 1em;
    padding-bottom: 1em;
    color: rgb(97, 97, 97);
}

.reviewer-name {
    font-family: Montserrat;
}

#icon-a {
    font-family: Refile;
    border: none;
    border-radius: 50%;
    background-color: #f181aa;
    color: white;
    height: 25px;
    width: 25px;
    padding: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-style: normal;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.reviewer-icon {
    display: flex;
    align-items: center;
    padding: 1em 0;
}

.reviewer-icon span {
    margin-right: 0.5em;
    
    color: gray;
}

.back-to-top {
    font-family: Montserrat;
    color: #f5347b;
    border-bottom: 1px solid #f5347b;
    font-size: 0.75em;
}


.book-review-img {
    float: left;
    padding-right: 1em;
    padding-top: 1em;
}

@media screen and (max-width: 1046px) {
    .hero-img {
        display: none;
    }
}

/*Tablet*/
@media (max-width: 768px) { /*under 768px*/
    .top-nav {
        display: none;
    }

    body {
        overflow-x: hidden;
    }

    .hero-container {
        width: auto;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content h3 {
        font-size: 1.5em;
    }

    .top-button {
        width: 5em;
    }

    .header-logo {
        display: none;
    }

    .logo-mobile-img {
        width: 4em;
    }

    .header-logo-mobile {
        display: flex;
        justify-content: center;
    }

    .gallery-container {
        width: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
    
    }

    .gallery-content img {
        width: 150px;
        
    }

    .gallery-content {
        display: grid;
        justify-content: center;
        align-items: center;

    }

    .feature-title {
        display: none;
    }

    .feature-button {
        display: none;
    }

    .home-main {
        height: auto;
    }

    .row-container {
        padding-bottom: 4em;
    }

}

@media (min-width: 769px) { /*over 769px*/
    .logo-mobile-img {
        display: none;
    }

    .top-nav-mobile {
        display: none;
    }

    .feature-title-mobile {
        display: none;
    }

}

.top-nav-mobile {
    display: none;  
}

.menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white; 
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #eb709d;
    transition: all 0.3s;
}

.mobile-input:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 7px;
}

.mobile-input:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-input:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -7px;
}


.ul-container-mobile {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #eb709d; 
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    border-radius: 5px;
}

.ul-container-mobile li {
    border-bottom: 1px solid #fff;
}

.ul-container-mobile li a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
    font-family: Montserrat;
}

.ul-container-mobile li a:hover {
    background-color: #e78aac;  /* Hover effect */
}

.mobile-input:checked ~ .ul-container-mobile {
    display: block;
}

@media screen and (max-width: 768px) {
    .top-nav-mobile {
        display: block;
    }
}

@media screen and (max-width: 1046px) {
    .nav-item {
        font-size: 1em;
        width: .75em;
    }

    .top-nav {
        height: 1em;
        padding-bottom: 2em;
        overflow: hidden;
    }

    .home-main {
        height: 110em;
    }

    .feature-title {
        display: none;

    }

    .feature-title-mobile {
        display: block;
    }

    .hero-container, .gallery-container {
        width: auto;
    }



}

@media (max-width: 425px) {
    .hero-container {
        width: auto;
    }

    .hero-content h1 {
        font-size: 1em;
    }

    .hero-content h3 {
        font-size: .8em;
    }

    .top-button a {
        font-size: .8em;
    }

    .top-button {
       padding: 6px;
    }

    .slideshow {
        height: 12em;
        width: 7em;
        
    }

    .holiday-text {
        font-size: 2.5em;
    }

}

@media screen and (max-width: 694px) {
    .top-button {
        width: 4em;
        height: 1em;
    }

    .hero-content h1 {
        font-size: 2.5em;

    }

    .home-main {
        height: 115em;
    }

}

.article-header {
    font-family: Montserrat;
    font-size: 2em;
}


    

    

