@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}


body{
    max-width: 100vw;
    overflow-x: hidden;
}

nav{
    height: 80px;
    display: flex;
}


img{
    width: 100%;
    height: 100%;
    max-height: 50vh;
    padding: 20px;
}


.nav-container{
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}


.purple{
    color: #7342d6;
}


.logo{
    width: 160px;

}


ul{
    display: flex;
}

li{
    list-style-type: none;
}

.nav-link{
    margin-left: 16px;
    text-decoration: none;
    font-size: 20px;
    color: #7342d6;
    font-weight: bold;
    padding: 8px;
}

.nav-link:hover{
    text-decoration: underline;
}

.nav-link-primary{
    border: 2px solid #7342d6;
    border-radius: 4px;
}

.nav-link-primary:hover{
    text-decoration: none;
}


#landing{
    background-color: rgba(115, 66, 214, 0.1);
}

header{
    height: calc(100vh - 80px);
}


.header-container{
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-top: 20px;
}

.img-wrapper{
    padding: 20px;
    z-index: 50;
}

.header-desc{
    display: flex;
    flex-direction: column; 
    align-items: center;
}


h1{
    font-size: 56px;
    color: #7342d6;
    margin-bottom: 24px;
    text-align: center;
}

h2{
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}

p{
    line-height: 1.5;
}

button{
    cursor: pointer;
}

button:active{
    transform: translateY(1px);
}


.btn{
    background-color: #7342d6;
    color: white;
    padding: 12px 24px;
    font-size: 20px;
    border-radius: 4px;
    border: none;
}

.img-wrapper{
    padding: 20px;
}


.container{
    padding: 56px 0;
}

.row{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


.row-column{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.no-cursor{
    cursor: not-allowed;
}

/*  Highlights! */

#highlights{
    position: relative;
    max-width: 100vw ;
}

#highlights:before,
#highlights:after{
    background: url('../images/wave.svg');
    content: "";
    position: absolute;
    width: 101vw;
    height: 12vw;
    left: 0;
    z-index: 1;
    background-size: cover;
    background-repeat: no-repeat;
}


#highlights:before {
    top: 1px;
    transform: translateY(-100%);
}


#highlights:after {
    bottom: 1px;
    transform: translateY(100%) rotate(180deg);
}

.highlight-wrapper{
    display: flex;
}

.highlight{
    padding: 0 24px;
    width: calc(100% / 3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.highlight-para{
    text-align: center;
    max-width: 280px;
}

.highlight-img{
    border: 2px solid #7342d65d;
    color: #7342d6;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 32px;
    margin-bottom: 24px;
}

.highlight-subtitle{
    font-size: 20px;
    margin-bottom: 16px;
}


/* features! */

#features{
    padding-top: 8vw;
    background-color: rgba(115, 66, 214, 0.1);
}

.books{
    display: flex;
    flex-wrap: wrap;
}

.book{
    width: 25%;
    padding: 24px;
}

.book-img{
    max-height: 380px;
    transition: all 300ms ease;
    cursor: not-allowed;
}

.book-img-wrapper{
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.book:hover .book-img{
    transform: scale(1.03);
}


.book-title{
    font-size: 20px;
    margin-bottom: 8px;
}

.book-title:hover{
    text-decoration: underline;
}

.book-ratings{
    margin-bottom: 8px;
    color: #fabf2a;
}

.book-price-normal{
    text-decoration: line-through;
    padding-right: 6px;
    color: #bfbfbf;
}

/* latest */

#recent{
    background-color: white;
}


/* Explore */

#explore{
    background-color: rgba(115, 66, 214, 0.1);
}


/* footer */

footer{
    background-color: #242424;
}

.footer-logo-img{
    width: 160px;
    filter: grayscale(1) invert(1);
}

.footer-link, 
.footer-copyright{
    color: #fff;
}