/* Header */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
body {
    overflow-x: hidden;
}
header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .8)), url('../img/header-bg.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);

}
.banner-heading:first-letter {
font-family: 'Great Vibes', cursive;
font-size: 10rem;
margin-right: 20px;
}
.banner-heading img {
    animation: beating 2s infinite;
}
@keyframes beating {
    0%{
        transform: scale(1);
    }
    40%{
        transform: scale(1.1);
    }
    60%{
        transform: scale(1.05);
    }
    80%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(1);
    }
}
/* End of Header */

/* Common Title */
.common-title {
    display: inline-block;
    font-size: 3rem;
    font-weight: 500;
    text-shadow: 2px 2px 5px #aaa;
    transition: all .5s;
}
.common-title::first-letter{
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    margin-right: 10px;
    font-style: normal;
}
.common-title:hover{
    transform: translate(-5px , -3px);
    text-shadow: 2px 5px 20px #aaa;
}
/* End of Common Title */
/* Gallery */
.gallery-img {
    backface-visibility: hidden;
    transition: all .5s;
}
.gallery-img:hover{
    transform: scale(1.05);
}
.first-row {
    transform: translateX(-300px);
    opacity: 0;
    transition: all 2.5s;
}
.second-row {
    transform: translateX(300px);
    opacity: 0;
    transition: all 2.5s;
}
.change .first-row , .change .second-row{
    transform: translateX(0);
    opacity: 1;


}
/* End of Gallery */
/* Famous Writers */
.famous-writers {
    background: linear-gradient(rgba(250, 250, 250, .8), rgba(250, 250, 250, .9)),url('../img/writers-bg.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}
/* End of Famous Writers */
/* Suggested Books */
.suggested-books {
    height: 100vh;
    background: url('../img/wood-bg.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}
.books {
    position: relative;
    height: 50vh;
}
.book {
    width: 35%;
    position: absolute;
    box-shadow: 5px 5px 15px #444;
    border-right: 5px solid #777;
    border-bottom: 10px solid #444;
    transition: all .7s ease-in-out;
}
.book-1{
    top: 2%;
    left: 20%;
    transform: rotate(-45deg);
}
.book-2{
    top: 7%;
    left: 50%;
    transform: rotate(40deg);
}
.book-3{
    top: 15%;
    left: 40%;
    transform: rotate(-55deg);
}
.book-4{
    top: 35%;
    left: 10%;
    transform: rotate(-38deg);
}
.book:hover{
    transform: scale(1.3) rotateX(20deg);
    z-index: 50;
    box-shadow: 5px 5px 25px #444;
    border-right: 10px solid #ddd;
    border-bottom: 20px solid #bbb;
}
/* End of Suggested Books */

/* Popular Books */
.popular-books {
    position: relative;
}
.video-container {
    position: absolute;
    top: 0%;
    left: 0%;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: .4;
}
.bg-video {
    height: 100%;
    width: 100%;
    object-fit: cover;

}
.book-card {
    position: relative;
    box-shadow:5px 15px 50px #aaa ;
    max-width: 420px;
    overflow: hidden;
    transition: all .8s;
}
.back {
    position: absolute;
    top: -100%;
    background: #fafafa;
    height: 100%;
    width: 100%;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    transform: rotateY(180deg);
    transition: top .8s;
}
.rotate {
    perspective: 100rem;
}
.back-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.rotate:hover .book-card {
    transform: rotateY(180deg);
}
.rotate:hover .back {
    top: 0;
    opacity: 1;
    user-select: auto;
    pointer-events: auto;
}
/* End of Popular Books */
