@font-face {
    font-family: 'Caraque';
    src: url('../Caraque_Trial_RgMelted.ttf') format('truetype');
}

@keyframes menu {
    from {
      transform: translateX(-100%);
      transform-origin: top left;
      
    }
    to {
      transform: translateX(0%);
      transform-origin: top left;
    }
  }


body{
    margin: 0;
}

/* INDEX.html PAGE CSS FROM HERE */

.header{
    position: relative;
    display: flex;
    height: 100px;
    width: 85%;
    align-items: center;
    margin: auto;
    justify-content: space-between;
}

.header img{
    width: 187px;
}

.header input{
    width: 500px;
    border: none;
    
   
    color: #EE579D;
    font: italic normal normal 18px Segoe UI;
    outline: none;
    
}

.mobileMenu{
    animation: menu 300ms;
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1;
    width: 80%;
    height: 100%;
    overflow-y: auto;
    
}

.menu-btn-div{
    background-color: #63CCF5;
    display: flex;
    flex-direction: column;
    font: normal normal 600 24px/40px Segoe UI;
    color: white;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    gap: 15px;
    box-shadow: 0px 3px 6px #00000029;
}

.menu-btn-div span{
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn-div svg{
    width: 16px;
}

.mobile-menu-header{
    background-color: white;
    display: flex;
    align-items: center;
    box-shadow: 0px 3px 6px #00000029;
    gap: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
    justify-content: space-between;
    padding-right: 30px;
}

.menu-books-div{
    background-color: #EE579D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font: normal normal 600 20px/40px Segoe UI;
    color: white;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    padding-right: 30px;
    gap: 15px;
    box-shadow: 0px 3px 6px #00000029;
}

.menu-books-div span{
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-books-div svg{
    width: 12px;
}

.mobile-menu-header img{
    width: 150px;
}

.mobile-menu-header svg{
    width: 50px;
}

.inputDiv {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid #EE579D;
    padding: 4px;
    padding-left: 30px;
    padding-right: 20px;
    border-radius: 19px;
}

.searchIcon{
    cursor: pointer;
}

.sectionImage img{
    width: 100%;
}

.searchInput::placeholder {
    color: #EE579D;
    opacity: 1; /* Firefox */
  }

.footerInput::placeholder {
    color: #FFCC00;
    font: italic normal normal 16px/27px Segoe UI;
    opacity: 1; /* Firefox */
  }


.left{
    display: flex;
    align-items: center;
    gap: 70px;
}

.nav-buttons{
    display: flex;
    gap: 30px;
}

.nav-button{
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-button p{
    font: normal normal 600 18px/27px Segoe UI;
    letter-spacing: 0px;
    color: #EE579D;
}

.blue-nav{
    background-color: #63CCF5;
    display: flex;
    gap: 25px;
    justify-content: center;
}

.blue-nav-btn{
    color: white;
    font: normal normal 600 18px/27px Segoe UI;
    letter-spacing: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
}

.banner{
    width: 85%;
    margin: auto;
    
}

.banner img{
    width: 100%;
}

.cat-banner{
    width: 85%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 30px;
}

.cat-banner img{
    width: 100%;
}

.categories{
    width: 85%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns with equal width */
    grid-template-rows: repeat(2, auto);  /* 2 rows with height determined by content */
    gap: 15px;
}

.cat-item{
    width: 100%;
    cursor: pointer;
}

.cat-item img{
    width: 100%;
}

.post-banner{
    width: 85%;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 10px;
}

.post-banner img{
    width: 100%;
}

.section{
    position: relative;
    width: 85%;
    margin: auto;
    margin-bottom: 50px;
}

.sec-banner{
    width: 100%;
}

.section p{
    font-family: 'Caraque', sans-serif;
    letter-spacing: 0px;
    color: #2C2C2C;
    font-size: 28px;
    line-height: 0;
}

.rightIcon{
    position: absolute;
    width: 100px;
    top: 42%;
    right: 10px; /* Adjust the right position as needed */
    transform: translateY(-50%);
    cursor: pointer;
}

.footer{
    display: flex;
    justify-content: center;
    padding: 30px;
    background: #63ccf544;
    flex-direction: column;
    gap: 20px;
}

.top{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.top img{
    width: 80px;
}

.top span{
    font: normal normal bold 20px/33px Segoe UI;
    letter-spacing: 0px;
    color: #000000;
}

.medium{
    width: 70%;
    text-align: center;
    margin: auto;
    font: normal normal normal 16px/27px Segoe UI;
    color: #5B6273;
}

.bottom{
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.bottom input{
    border: 2px solid #FFCC00;
    border-radius: 14px;
    font-size: 18px;
    padding: 6px;
    padding-left: 30px;
    padding-right: 30px;
    outline: none;
    width: 400px;
    
}

.bottom button{
    display: flex;
    align-items: center;
    gap: 15px;
    background: #FFCC00 0% 0% no-repeat padding-box;
    border-radius: 19px;
    border: none;
    outline: none;
    padding: 5px;
    padding-left: 30px;
    padding-right: 30px;
    font: normal normal 600 20px/33px Segoe UI;
    color: white;
    cursor: pointer;
}

.bottom svg{
    width: 10px;;
}

.bell {
    width: 17px;
}

.menuIcon{
    display: none;
}

.searchMobileIcon{
    display: none;
}

.cat-banner-mobile{
    display: none;
}

.post-banner-mobile{
    display: none;
}

@media (min-width: 1024px) and (max-width: 1600px) {

    .menuIcon{
        display: none;
    }

    .searchMobileIcon{
        display: none;
    }

    .header img{
        width: 140px;
    }
    .left{
        gap: 30px;
    }
    .header input{
        width: 320px;
    }
    .nav-buttons{
        gap: 20px;
    }
    .nav-button {
        gap: 8px;
    }
    .nav-button p {
        font-size: 17px;
    }

    .cat-banner-mobile{
        display: none;
    }

    .post-banner-mobile{
        display: none;
    }

}

@media (max-width: 1023px) {

    .menuIcon{
        display: initial;
    }

    .searchMobileIcon{
        display: initial;
    }

    .header img{
        width: 200px;
    }

    .header{
        width: calc(100% - 60px);
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav-buttons{
        display: none;
    }
    .inputDiv{
        display: none;
       
    }

    .blue-nav{
        display: none;
    }

    .banner{
        width: 100%;
    }

    .cat-banner{
        display: none;
    }

    .cat-banner-mobile{
        display: flex;
        justify-content: center;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .cat-banner-mobile img{
        width: 90%;
    }

    .post-banner-mobile{
        display: flex;
        justify-content: center;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .post-banner-mobile img{
        width: 90%;
    }

    .post-banner{
        display: none;
    }

    .categories{
        width: 90%;
        grid-template-columns: repeat(2, 1fr); /* 4 columns with equal width */
        grid-template-rows: repeat(4, auto);  /* 2 rows with height determined by content */
        gap: 15px;
    }

    .bottom{
        flex-direction: column;
        justify-content: center;
    }

    .bottom input{
        width: 80%;
        margin: auto;
    }

    .bottom button{
        width: fit-content;
        margin: auto;
    }

    .section{
        width: 90%;
    }

}

@media (max-width: 800px){

    .section p{
        font-size: 24px;
    }

}

@media (max-width: 700px){

    .section p{
        font-size: 20px;
    }

}

@media (max-width: 600px){

    .section p{
        font-size: 18px;
        white-space: wrap;
        line-height: 1.1;
    }

    .section{
        margin-bottom: 30px;
    }

    .medium {
        width: 90%;
        font-size: 14px;
    }

    .top span{
        font-size: 16px;
        text-align: center;
    }

    .top{
        flex-direction: column;
    }

    .footer{
        padding-top: 30px;
        position: relative;
    }

    

    .mailIconDiv{
        position: absolute;
        top: 0;
        transform: translateY(-60%);
        
        padding: 20px;
        border-radius: 50%;
    }

    .divider{
        display: block;
        height: 40px;
    }

    .ellipse{
        display: block;
        background: #63ccf544;
        width: 130px;
        height: 60px;
        margin: auto;
        border-top-left-radius: 60px;
        border-top-right-radius: 60px;
    }

}

@media (max-width: 410px){

    .header{
        width: calc(100% - 40px);
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .menuIcon svg{
        width: 40px;
    }

    .searchMobileIcon svg{
        width: 40px;
    }

    .header img{
        width: 180px;
    }

   


}

/* ----------------------------------------------------------------- */

/* BOOKS.html PAGE CSS FROM HERE */

.book-info{
    width: 85%;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 60px;
}

.book-info img{
    width: 100%;
}

.book-text-div{
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: calc(70% - 60px);
}

.book-heading{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font: normal normal bold 28px/40px Segoe UI;
}

.stars{
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.book-picture{
    width: 30%;
}

.book-author{
    font: normal normal normal 28px/40px Segoe UI;
}

.book-paragraph{
    font: normal normal normal 20px/32px Segoe UI;
}

.book-specs{
    margin-top: 20px;
}

.book-buttons{
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.book-buttons button{
    background: #63CCF5 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 26px;
    border: none;
    color: white;
    padding: 10px;
    padding-left: 30px;
    padding-right: 30px;
    font: normal normal bold 22px/33px Segoe UI;
    cursor: pointer;
}

.divider{
    display: flex;
    justify-content: center;
    width: 85%;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 40px;
}