:root{
    --main-color:#c0392b;
    --body-bg: #181616;
    --box-bg:#221f1f;
    --text-color: #ffffff;

    --nav-height: 60px;
    --space-top: 30px;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html{
    font-size: 16px;
}

body{
    font-family: 'Cairo', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    padding-top: var(--nav-height);

}

a{
    text-decoration: none;
    color: unset;
}

image{
    max-width: 100%;
}

.main-color{
    color: var(--main-color);
}

.container{
    max-width: 1920px;
    padding: 0 40px;
    margin: auto;
}

.overlay{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: #000000;
}

.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    height: var(--nav-height);
}

.nav a{
    color: var(--text-color);
}

.logo{
    font-size: 2rem;
    font-weight: 1200;
}

.search{
    width: 45%;
    height: 60%;
}

.search .btn:hover{
   background-color: var(--main-color);
}

.nav-menu{
    list-style-type: none;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-menu li~li{
    margin-left: 30px;
}

.nav-menu a{
    text-transform: uppercase;
    font-weight: 700;
}

.nav-menu a:hover{
    color: var(--main-color);
}

.nav-menu a.btn:hover, 
a.logo:hover,
a.book-item:hover{
    color: unset;
}

.btn{
    color: #ffffff;
    padding: .25rem 1.5rem;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    position: relative;
    align-items: center;
}

.btn-hover::before{
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--main-color);
    transition: 0.3s ease-in-out;
}

.btn-hover:hover::before{
    width: 100%;

}
.btn i,
.btn span{
    z-index: 1;
}  

.btn i{
    margin-right: 1rem;
}

.hamburger-menu{
    --size: 30px;
    height: var(--size);
    width: var(--size);
    cursor: pointer;
    z-index: 101;
    position: relative;
    display: none;
    align-items: center;
}

.hamburger{
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: var(--size);
    height: 3px;
    border-radius: 0.5rem;
    background-color: var(--text-color);
    transition: 0.4s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before{
    top: -10px;
}

.hamburger::after{
    bottom: -10px;
} 

.hamburger-menu.active .hamburger{
    background-color: transparent;
}

.hamburger-menu.active .hamburger::before{
    transform-origin: top left;
    transform: rotate(45deg);
    left: 6px;
}

.hamburger-menu.active .hamburger::after{
    transform-origin: bottom left;
    transform: rotate(-45deg);
    left: 6px;
}


.author-slide-item{
    padding-top: 40%;
    position: relative;
    overflow: hidden;
    
}

.author-slide-item img{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px;
}

.author-slide-item-content{
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
    height: 100%;
    color: var(--text-color);
    display: flex;
}



.item-content-wraper{
    padding-left: 5rem;
    width: 40%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    
}

.item-content-wraper::before{
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    left: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) rgba(0, 0, 0, 0));
}

.item-content-title{
    font-size: 3.5rem;
    line-height: 3.5rem;
    font-weight: 650;
}


.book-infos{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: calc(var(--space-top) / 2);
}


.book-info{
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
}

.book-info span{
    margin-left: 5px;
}

.book-info i{
    color: var(--main-color);
}

.book-info ~ .book-info{
      margin-left: 5px;
}

.item-content-description{
    font-size: 1.15rem;
    margin-top: var(--space-top);
    line-height: 1.5rem;
}


.item-action{
    margin-top: var(--space-top);
}

.carousel-nav-center{
    position: relative;
}

.carousel-nav-center .owl-nav button i{
    font-size: 3rem;
}

.carousel-nav-center .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}



.carousel-nav-center .owl-nav  .owl-prev{
    position: absolute;
    left: 5px;
}

.carousel-nav-center .owl-nav  .owl-next{
    position: absolute;
    right: 5px;
}

.owl-nav button{
    border: none;
    outline: none;
}

.owl-nav button i{
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
}

.owl-nav button:hover i{
    color: var(--main-color);
}

.top-down{
    transform: translate(-50px);
    visibility: hidden;
    opacity: 0;
    transition: 0.5s ease-in-out;
}

.delay-2{
    transition-delay: 0.2s;
}

.delay-4{
    transition-delay: 0.4s;
}

.delay-6{
    transition-delay: 0.6s;
}

.delay-8{
    transition-delay: 0.8s;
}

.owl-item.active .top-down{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.book-item{
    display: block;
    position: relative;
    overflow: hidden;
    padding-top: 140%;
    cursor: pointer;
}

.book-item img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 5px;
    margin-left: 0.2rem;
    transition: transform 0.3s linear;
}

.book-item:hover img{
    transform: scale(1.2);
}

.book-item-content{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.8);
}

.book-item-content::before{
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) rgba(0, 0, 0, 0));
}


.book-item-title{
    color: var(--text-color);
    font-size: 1.5rem;
    position: relative;
    font-weight: 700;
}

.slider-overly{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    height: 100%;
    background-color: rgba(92, 95, 236, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}


.btn-download{
    width: 100px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: #252525;
    font-weight: 800px;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.2);
}
.btn-download:hover{
    color: #ffffff;
    background-color: #f39c12;
    transition: all ease 0.3s;
}
.slider-overly{
    visibility: hidden;
}

.book-item:hover .slider-overly{
    visibility: visible;
    animation: fade 0.5s;
}

.section{
    padding-top: 80px;
}

.section-header{
    margin-bottom: 30px;
    padding-left: 20px;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 700;
    border-left: 4px solid var(--main-color);
    display: flex;
    align-items: center;
}

footer.section{
    margin-top: 80px;
    padding-bottom: 80px;
    position: relative;
    background-color: var(--box-bg);
}

footer a:hover{
    color: var(--main-color);
    
}

footer a.logo{
    margin-top: -2.5rem;
    display: block;
}

footer a.logo:hover{
    color: unset;
}

.social-list{
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.social-item{
    --size: 30px;
    height: var(--size);
    width: var(--size);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--text-color);
    color: var(--main-color);
}

.social-item:hover{
    background-color: var(--main-color);
    color: var(--text-color);
}

.social-item ~ .social-item{
    margin-left: 20px;
}

footer .content{
    margin-top: 20px;
}

.footer-menu{
    list-style-type: none;
}

.footer-menu a{
    display: inline-block;
    transition: transform .2s ease-in-out;
}

.footer-menu a:hover{
    transform: translateX(5px);
}

.copyright{
    padding: 0.8rem 0.8rem;
    font-size: 2.2rem;
    color: #fff;
    background: #111;
    text-align: center;
    font-weight: normal;
}

.copyright a{
    color: #f39c12;
}




/* Responsive */

@media only screen and (max-width:1280px) {
    html{
        font-size: 14px;
    }

    .author-slide-item{
        padding-top: 50%;
    }

    .item-content-wraper{
        width: 50%;
    }
}

@media only screen and (max-width: 850px) {
    html{
        font-size: 12px;
    }

    .author-slide-wraper{
        height: max-content;
        padding-top: unset;
    }

    .item-content-wraper{
        width: 100%;
        height: 100%;
        padding-bottom: 20px;
        padding-right: 5rem;
        background-color: rgba(0, 0, 0, 0.2);
    }

    .author-slide-item-content{
        position: relative;
    }

    .author-slide-item img{
        height: 100%;
    }

    .item-content-title{
        font-size: 3rem;
    }

    .hamburger-menu{
        display: grid;
    }

    .nav-menu{
        /* display: none; */
        position: absolute;
        top: 100%;
        left: -100%;
        background-color: #000000;
        flex-direction: column;
        width: 80%;
        height: 100vh;
        padding: 20px;
        transition: .3s ease-in-out;
    }

    .nav-menu li{
        margin: 10px 30px;
    }

    .nav-menu.active{
        left: 0;
    }

    .search{
        width: auto;
    }

    
}