@font-face {
    font-family: BeforeTheRainbow;
    src: url("../fonts/Before\ the\ Rainbow.otf") format("opentype");
  }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

header {
    background-color: #fff;
    padding: 20px 0 0 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.header-top .logo {
    height: auto;
    max-width: 100%;
}

.tagline {
    font-family: 'BeforeTheRainbow', serif;
    font-size: 40px;
    margin-left: 10px;
    color: #333;
}


.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    justify-content: space-around;
    height: 25px;
    position: absolute;
    right: 20px;
}

.menu-icon div {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.4s;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
    position: relative;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
}

.header-banner {
    text-align: center;
    color: white;
    background-color: #fff;
    position: relative;
}

.banner-img {
    width: 100%;
    height: auto;
}

.newsletter-signup {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    border: 3px solid #000; /* Thick black border */
    position: absolute;
    top: 50%; /* Center vertically */
    right: 20px; /* Far right */
    transform: translateY(-50%); /* Center vertically */
    width: 20%; /* Adjust as needed */
    max-width: 400px; /* Adjust as needed */
}

.newsletter-signup h3 {
    margin: 0 0 10px 0;
    font-size: 24px; /* Larger heading */
    color: #000; /* Black color */
}

.newsletter-signup form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-signup input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.newsletter-signup button {
    padding: 10px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

main {
    padding: 20px;
}

.book-highlight {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.book-img-container {
    max-width: 100%;
    max-height: 100%;
    background-color: #e6e7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-img {
    max-width: 100%;
    max-height: 100%;
}

.book-content {
    text-align: left;
    max-width: 600px;
}

.amazon-button {
    background-color: #ff6347;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.about-author-container {
    display: flex;
    justify-content: center;
    padding: 20px 0 0 0;
    gap: 20px;
}

.about-author h2 {
    display: flex;   
    justify-content: center; 
    align-items: center;      
}

.author-img-container {
    max-width: 100%;
    max-height: 100%;
    background-color: #e6e7f7;
    display: flex;
    align-items: center;
    justify-content: center;    
}

.author-img {
    max-width: 100%;
    max-height: 100%;
}

.author-content {
    text-align: left;
    max-width: 600px;    
}

.reviews, .social-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.review, .social-media img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

footer {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
}

.social-icons a {
    margin: 0 10px;
}

.social-icons a img {
    height: 25px;
    width: 25px;
}



/*Font*/
    .poppins-thin {
        font-family: "Poppins", sans-serif;
        font-weight: 100;
        font-style: normal;
    }
  
  .poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
  }
  
  .poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
  }
  
  .poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
  }
  
  .poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
  }
  
  .poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
  }
  
  #messageDialog {
    display: none;
    border: none;
    flex-direction:column;    
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  #messageDialog p {
    margin-bottom: 10;
    padding: 0;
  }

  #messageDialog button {
    padding: 10;
  }

  #redirect-section {
    display: flex;
    justify-content: center;
    padding-top: 50px; 
    font-size: 14px;
    font-weight: bold;
  }

  #amazon-section {
    display: flex;
    justify-content: center;
  }

  .amazon-product-button {
    display: flex;
    justify-content: center;    
    align-items: center;
    width: 20%;        
    padding: 10px 20px;
    background-color: 1px solid #ff9900;
    border: 1px solid black; /* Amazon button color */
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
  }

  .amazon-product-button img {
    height: 20px;
    margin-right: 10px;
  }

  .amazon-product-button span {
    color: black;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
  }

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #fff;
        padding: 10px 0;
        margin: 0 30px 0 0;
        gap: 0;
    }

    .main-nav ul a {
        border-bottom: 1px solid #000;
    }


    .main-nav ul.show {
        display: flex;
    }

    .header-top .logo {
        width: 120px; /* Adjust as necessary for smaller screens */
    }

    .tagline {
        font-size: 18px;
    }

    .newsletter-signup {
        background-color: #e6e7f7;
        position: static;
        margin: auto;
        width: 80%;
        transform: translateY(0);               
    }

    .newsletter-signup h3 {
        font-size: 16px; /* Larger heading */
    }

    .newsletter-signup form {
        justify-content: center;
        align-items: center;    
    }    

    .book-highlight {
        flex-direction: column;
        align-items: center;  
        gap: 0;          
    }

    .book-img-container {
        width: 80%;
        height: auto;
    }

    .about-author-container {
        flex-direction: column;
        align-items: center;         
        gap: 0;
    }

    .author-img-container {
        width: 80%;
        height: auto;
    }

    .book-content {
        text-align: center;
        width: 100%;
    }

    .author-content {
        text-align: center;
        width: 100%;
    }    

    .book-img {
        width: 100%;
        height: auto;
    }

    .author-img {
        width: 100%;
        height: auto;
    }    
}
