body {
    overflow-x: hidden;
}

/* NAVIGATION */
.hamburger-menu {
    width: 65px;
    height: 65px;
    background: #7f7b82;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 200;
    border-radius: 50%;
    outline: none!important;
    transition: all .5s;
}

.line1,
.line2,
.line3 {
    width: 30px;
    height: 2px;
    background: #eee;
    margin: 6px;
    transition: all .5s;
}

.bg-cover {
    background: rgba(35, 37, 40, .90);
    width: 55px;
    height: 55px;
    position: fixed;
    top: 35px;
    right: 35px;
    z-index: 100;
    border-radius: 50%;
    transition: all .5s;
}


.change .line1 {
    transform: rotate(-405deg) translate(-5px, 5px);
    background: #777;
}

.change .line2 {
    opacity: 0;
}


.change .line3 {
    transform: rotate(405deg) translate(-5px, -5px);
    background: #777;
}

.change .hamburger-menu {
    background: #eef0eb;
}

.change .bg-cover {
    transform:  scale(150);
}

.nav-content {
    position: fixed;
    z-index: 150;
    width: 100%;
}


/* END OF NAVIGATION */


/* HEADER */
header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .8)), url(./header-bg.jpeg)fixed center  /cover;
    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 */

/* TITLE */
.common-title {
    display: inline-block;
    font-size: 3rem;
    font-weight: 500;
    text-shadow: 2px 3px 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 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 WRITTERS */
.famous-writter {
    background: linear-gradient(rgba(250, 250, 250, .8), rgba(250, 250, 250, .9)), url(./writers-bg.jpeg)fixed center no-repeat;
}

/* END OFFAMOUS WRITTERS */


/* SUGGESTED BOOKS */
.suggested-books {
    height: 100vh;
    background: url(./wood-bg.jpeg) center  /cover ;
}

.books {
    position: relative;
    height: 50vh;
}

.book {
    width: 35%;
    position: absolute;
    box-shadow: 5px 5px 15px #444;
    border-right: 5px siold #777;
    border-bottom: 10px solid #444;
    transition: all .7s ease-in-out;
}


.book-1 {
    top: 5%;
    left: 20%;
    transform: rotate(-45deg);
}

.book-2 {
    top: 20%;
    left: 50%;
    transform: rotate(40deg);
}


.book-3 {
    top: 40%;
    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 .5s;
}

.rotate {
    perspective: 100rem;
}

.back {
    position: absolute;
    top: -100%;
    background: #fefefe;
    height: 100%;
    width: 100%;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    transform: rotateY(180deg);
    transition: top .8s, opacity .4s;
}


.back-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.rotate:hover .book-card {
    transform: rotateY(180deg);
}


.rotate:hover .back {
    opacity: 1;
    top: 0;
    user-select: auto;
    pointer-events: auto;
}
/* END OF POPULAR BOOKS */


/* CONTACT */
.contact {
    background: linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .9)),url(./header-bg.jpeg) center;
}


.items-wrapper {
    background: linear-gradient(rgba(0, 0, 0, .4),rgba(0, 0, 0, .6)),
     url(./items-wrapper-bg.jpg)center no-repeat;
     border-radius: 5px;
}

.floating-item {
    background: rgba(0, 0, 0, .65);
    border-radius: 5px;
}

.first-item {
    animation: float 15s infinite;
}

.second-item {
    animation: float 20s ease-in infinite;
}

.third-item {
    animation: float 40s linear infinite;
}

.fourth-item {
    animation: float 30s infinite;
}

.fifth-item {
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-60px);
    }
    100% {
        transform: translateX(0);
    }


}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background: transparent;
    font-size: 18px;
    color: #333;
    border-radius: 5px;
    box-shadow: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(250, 250, 250, .8);
    box-shadow: none;
}



/* END OF CONTACT */