/*
TABLE OF CONTENTS
1. OVERRIDES AND GENERAL STYLING
2. HEADER STYLING

*/

/*
1. OVERRIDES AND GENERAL STYLING
*/
body{
    margin: 0;
    padding: 0;
    max-width: 100vw;
}
body *{
    font-family: 'Poppins',sans-serif;
}
form{
    margin: 0;
}
a{
    text-decoration: none;
    color: inherit;
}
canvas{
    display: none;
}
.input-wrapper{
    position: relative;
}
.input-wrapper input{
    font-size: 1rem;
    padding: 0.8rem;
    outline: none;
    border: 1px solid white;
    background-color: #f3f3f3;
    width: 100%;
    border-radius: 100px;
}
.input-wrapper label{
    position: absolute;
    top: 1rem;
    left: 1rem;
    pointer-events: none;
    transition: 0.1s ease-out;
}
.input-wrapper input:focus ~ label,
.input-wrapper input:valid ~ label,
.input-wrapper textarea:focus ~ label,
.input-wrapper textarea:valid ~ label{
    top: 0.1rem;
    font-size: 0.6rem;
}
.header{
    display: flex;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
    padding: 1rem;
    justify-content: space-between;
}
.header-link-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.header-link{
    display: flex;
    align-items: center;
    cursor: pointer;
}
.header-link p{
    font-weight: bold;
}
.basket-link p{
    margin-right: 1rem;
}
.header .input-wrapper input{
    font-size: 1rem;
    padding-left: 60px;
    width: 100%;
    border-radius: 100px;
    background-color: #f3f3f3;
}
.header .input-wrapper label{
    left: 4rem;
}
.header .input-wrapper img{
    position: absolute;
    top: 0.8rem;
    left: 1.6rem;
}
.banner-cell{
    max-width: 60%;
    max-height: 510px;
}
.banner-cell-inner{
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
}
.banner-cell-inner:after{
    position: absolute;
    content: '';
    width: 101%;
    height: 10%;
    bottom: 0;
    left: -1px;
    background-color: white;
}
.banner-book-image{
    position: relative;
    z-index: 1000;
    margin-right: 60px;
}
.banner-book-title{
    color: white;
}
.banner-book-author{
    color: white;
    font-style: italic;
}
.banner-book-description{
    color: white;
}
.banner-book-price{
    color: white;
    font-weight: bold;
}
.banner-book-button{
    background-color: white;
    border-radius: 50px;
    padding: 10px 20px;
    width: fit-content;
    box-shadow: 0px 0px 10px rgba(0,0,0,0);
    transition: 0.1s ease-out;
}
.banner-book-button:hover{
    background-color: lightgrey;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.7);
}
.banner-book-button p{
    margin: 0;
}
.genre-card{
    margin-left: 1rem;
}
.genre-card .genre-image{
    width: 210px;
    height: 340px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.genre-image p{
    position: relative;
    z-index: 11;
    color: white;
}
.genre-image:after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10;
    border-radius: 10px;
}
.book{
    margin-left: 1rem;
}
.most-popular-books .book{
    margin-bottom: 2rem;
}
.book .book-image{
    width: 210px;
    height: 340px;
    border-radius: 10px;
}
.book .book-author{
    margin-top: -5px;
    font-style: italic;
}
.book .atb-button{
    text-align: center;
    background-color: #f0f0f0;
    padding: 0.4rem 0; 
    box-sizing: border-box;
    border-radius: 100px;
    cursor: pointer;
}
.book .atb-button p{
    margin: 0;
    font-weight: bold;
}
.book-details-area{
    display: flex;
}
.bd-background{
    position: absolute;
    width: 100%;
    z-index: -1;
}
.bdc-banner h1,
.bdc-banner p{
    color: white;
}
.bdc-content{
    display: flex;
}
.bdsa-area .genre-links-wrapper{
    display: flex;
    gap: 0 1rem;
}
.bdsa-area .accent-colour{
    font-weight: bold;
}
.genre-link{
    border: 1px solid;
    padding: 0.5rem;
}
.purchase-buttons-wrapper{
    display: flex;
    gap: 0 1rem;
    align-items: center;
}
.purchase-button{
    background-color: white;
    padding: 0.7rem 1rem;
    border: 1px solid;
    border-radius: 100px;
    cursor: pointer;
}
.popup{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    transition: 1s cubic-bezier(0.46,1.03,0.32,1);
    overflow: hidden;
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup.visible{
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.p-form{
    position: relative;
    background-color: white;
    padding: 4rem;
    box-sizing: border-box;
}
.p-form .input-wrapper{
    margin-bottom: 20px;
}
.p-form img{
    display: block;
    margin: 0 auto 20px auto;
}
.error-message{
    color: red;
}
.close-form-button{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    background-image: url('images/fi-rr-close.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.login-register-link{
    border-bottom: 1px solid transparent;
    cursor: pointer;
}
.login-register-link:hover{
    border-color: black;
}
.auth-small-details{
    display: flex;
    align-items: center;
}
.auth-icon{
    border-radius: 100px;
    width: 80px;
    height: 80px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}
.basket-overlay{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease-in-out;
}
.basket-overlay.visible{
    visibility: visible;
    opacity: 1;
    background-color: rgba(0,0,0,0.6);
}
.basket-overlay .basket-info{
    max-width: 600px;
    width: 100%;
    height: 100vh;
    position: fixed;
    right: -100%;
    transition: 0.3s ease-in-out;
    background-color: white;
}
.basket-overlay.visible .basket-info{
    right: 0px;
}
.basket-info{
    padding: 20px;
    box-sizing: border-box;
}
.basket-row{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.basket-row img{
    margin-right: 20px;
}
.basket-row .br-book-details{
    width: 100%;
}
.basket-row .brbc-inner{
    display: flex;
    align-items: center;
}
.basket-row .brbc-inner .remove-item{
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('images/fi-rr-close.svg');
    width: 20px;
    height: 20px;
    margin: 0 20px 0 -20px;
    cursor: pointer;
}
.basket-row .brbc-inner input{
    width: 40px;
}
.checkout-button{
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 100px;
    background-color: #f3f3f3;
    box-shadow: 0 0 10px transparent;
    transition: 0.2s ease-in-out;
}
.checkout-button:hover{
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.bica-area{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* CHECKOUT STYLING */
.checkout-body{
    display: flex;
}
.checkout-info{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-form{
    max-width: 500px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}
.checkout-form .flex{
    display: flex;
}
.checkout-form .input-wrapper{
    width: 100%;
}
.checkout-form .flex .input-wrapper{
    width: 50%;
}
.checkout-form .input-wrapper input{
    border-radius: 0;
}
.checkout-form .input-wrapper input[name="country"]{
    border-radius: 10px 10px 0 0;
}
.checkout-form .input-wrapper input[name="town"]{
    border-radius: 0 0 0 10px;
}
.checkout-form .input-wrapper input[name="phone_number"]{
    border-radius: 0 0 10px 0;
}
.checkout-form .checkbox-wrapper{
    display: flex;
    align-items: center;
}
.checkout-form input[name="student"]{
    width: 40px;
    height: 40px;
    margin-right: 20px;
}
.basket-wrapper{
    background-color: #f3f3f3;
    max-width: 600px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
}
.basket-wrapper .basket-info{
    padding: 0;
}
.basket-wrapper .basket-info .bi-title{
    margin-top: 0;
}
.search-content-wrapper{
    display: flex;
    padding: 20px;
    box-sizing: border-box;
}
.search-content-wrapper .filter-menu-wrapper{
    background-color: #ececec;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
}
.search-content-wrapper .filter-menu-wrapper a{
    display: block;
}
.search-content-wrapper .filter-menu-wrapper a.selected{
    font-weight: bold;
}
.search-results-wrapper{
    padding: 1rem;
}
.srw-results{
    display: flex;
    flex-wrap: wrap;
}
.srw-results .book{
    margin-left: 1rem;
}
.review-form .input-wrapper{
    margin-bottom: 20px;
}
.review-form input[name="title"]{
    background-color: white;
    border-radius: 10px;
    border: 2px solid black;
    max-width: 400px;
}
.review-form textarea{
    background-color: white;
    border-radius: 10px;
    border: 2px solid black;
    max-width: 400px;
    width: 100%;
    resize: vertical;
    min-height: 200px;
    box-sizing: border-box;
    padding: 0.8rem;
}
.review-star{
    cursor: pointer;
}
.review-star.selected path{
    fill: yellow;
}
.review-data{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.review-data .review-bar{
    max-width: 300px;
    width: 100%;
    background-color: lightgrey;
    height: 10px;
}
.locate-me-button{
    cursor: pointer;
}
.footer{
    margin-top: 60px;
    display: flex;
    padding: 1rem;
    background-color: lightgrey;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
}
.user-review{
    max-width: 400px;
    box-sizing: border-box;
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 20px;
}
@media screen and (min-width: 1200px){

}
@media screen and (min-width: 720px){
    .header .header-link-wrapper{
        max-width: 300px;
        width: 100%;
    }
    .header .search-form{
        max-width: 1000px;
        width: 100%;
    }
    .header .input-wrapper{
        width: 100%;
    }
    .banner-cell{
        width: 100%;
        height: 100%;
    }
    .banner-cell-inner{
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 60px 60px 0 60px;
    }
    .banner-book-image{
        width: 290px;
        height: 450px;
    }
    .genres-section{
        max-width: 83%;
        margin: 0 auto;
        width: 100%;
    }
    .most-popular-section{
        max-width: 83%;
        margin: 0 auto;
        width: 100%;
    }
    .book .book-image{
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    .bd-background{
        max-height: 500px;
        height: 100%;
    }
    .bd-sidebar{
        padding: 100px 100px 0 100px;
        box-sizing: border-box;
    }
    .bds-area{
        position: sticky;
    }
    .bdsa-book-image{
        height: 610px;
    }
    .bdc-banner{
        padding: 100px 0;
    }
    .bdc-content{
        padding-top: 100px;
    }
}