* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    width: 100%;
    height: 100vh;
    padding: 10px;
    background-color:  hsl(252, 100%, 67%);
}
.user{
    margin-right: 5px;
}
nav{
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    padding: 0 5px;
    background-color: white;
    margin: 0 -20px;
    font-family: "Inter", sans-serif !important;
}
.flow{
    overflow: hidden;
}
nav ul{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    list-style: none;
    align-items: center;
}
nav li{
    height: 60px;   
}
nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.7s ease;
    color: black;
}
nav .navDesk a{
    justify-content: center;
}
ul .pro:hover ul.dropdown {
    display: flex;
}
.d{
    padding-left: 10px;
}
nav a:hover{
    background-color: #f0f0f0;
    transform: translateY(5px);
    color: white;
    background-color:hsl(252, 100%, 67%) ;

}
.x{
    transform: translate(260px, -35px);
    font-size: 20px;
    cursor: pointer;
    color: black;
}
.xx{
    transform: translate(220px, -32px);
    font-size: 20px;
    display: none !important;
    color: black;
}
.show{
    display: block !important;
}
nav li:first-child{
    margin-right: auto;
}
.logo img{
    width: 40px;
    padding: 0px 20px;
    box-sizing: content-box;
}
.navMob {
    position: fixed;
    top: 0;
    right: 0;
    min-height: 40vh;
    width: 250px;
    list-style: none;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
}
.dropdown{
    width: 250px;
    list-style: none;
    z-index: 9999;
    position: relative;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
}
.dropdown li , .dropdown a{
    width: 100%;
}
.navMob li{
    width: 100%;
}
.navMob a{
    width: 100%;
    color: black;
    font-weight: 700;
}
.menu{
    display: none;
}
.logo{
    font-weight: 600;
    color: hsl(252, 100%, 67%);
    cursor:auto ;
    display: flex;
    align-items: center;
}
input{
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    background-image: url("../images/searchicon.png");
    background-position: 10px 10px; 
    background-repeat: no-repeat;
    padding: 12px 20px 12px 40px;
    margin-top: 7px;
    display: none;
    width: 0;
}
.animition{
    animation: search 0.5s alternate 0.25s forwards ease-out;
    display: block;
}
@keyframes search {
    25% {
        width: 71.25px;
    }

    50% {
        width: 142.5px;
    }

    75% {
        width: 213.75px;
    }

    100% {
        width: 285px;
}
}
@media screen and (max-width:1370px) {
    .hide{
        display: none !important;
    }
    .menu{
        display: block;
    }
    .dropdown{
        background-color: rgba(255, 255, 255, 0.89);
    } 

}
.hideic{
    display: none;
}
@media screen and (max-width:580px) {
    .was{
        display: none;
    }
    .hideic{
        display: block;
    }
}
@media screen and (max-width:400px) {
    .navMob{
        width: 100%;
    }
    .xx{
        transform: translate(255px, -32px)
    }
}

.container {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-areas: "header header" "side-nav offers" "side-nav science-fiction" "side-nav romance" "side-nav classic" "side-nav fantasy" "new new" "footer footer";
    gap: 2rem 1rem;
    padding-right: 10px;
}

header {
    grid-area: header;
}

#sidenav {
    font-family: "SUSE", sans-serif;
    grid-area: side-nav;
}



.side {
    display: none;
    height: 100%;
    width: 280px;
    background-color: #111111cc;
    padding: 15px 0 0 5px ;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 10;
}


.flex-a {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    padding-top: 10px;
}

section a {
    text-decoration: none;
    color: rgb(185, 208, 200);
    font-size: 25px;
}

.padd {
    padding-right: 15px;
}

.bars {
    font-size: 30px;
    position: fixed;
}

.bars:hover {
    cursor: pointer;
}

.close {
    cursor: pointer;
    font-size: 30px;
    color: white;
    position: absolute;
    right: 0;
    padding: 0 15px;
}

.flexx {
    display: flex;
    gap: 2rem;
}

#non-fiction {
    font-family: "SUSE", sans-serif;
    grid-area: offers;
}



.h1 {
    font-size: 35px;
    font-weight: 800;
    color: rgb(31, 3, 58);
    padding: 10px 10px 30px 0;
    text-transform: capitalize;
    position: relative;
    z-index: -2;
}

#science-fiction {
    font-family: "SUSE", sans-serif;
    grid-area: science-fiction;
}

.img-style {
    background-color: white;
    height: 600px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    width: 300px;
    text-align: center;
    transition: 0.7s ease;
    -webkit-transition: 0.7s ease;
    -moz-transition: 0.7s ease;
    -ms-transition: 0.7s ease;
    -o-transition: 0.7s ease;
}

.img-style:hover {
    animation: ani 1.5s  -0.5s infinite  forwards;
    translate: 6px 10px 15px;
    -webkit-animation: ani 1.5s  -0.5s infinite  forwards;
}


.cover-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 300px;
    height: 400px;
    background: rgba(0, 0, 0, 0.698);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cover-1:hover::before {
    opacity: 1;
}


.img-style:hover .cover-1 p {
    display: block;
}

.cover-1 {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.cover-1 img {
    transition: opacity 0.3s ease;
}

.cover-1 p {
    z-index: 6;
    position: absolute;
    display: none;
}

.starss {
    color: gold;
    padding-bottom: 20px;
    bottom: 300px;
    left: 100px;
    font-size: 20px;
}

.rating {
    color: white;
    left: 150px;
    top: 90px;
    font-size: 20px;
}

.text {
    color: white;
    top: 140px;
    left: 100px;font-size: 20px;
}

.details {
    left: 20px;
    width: 263px;
    text-align: center;
    bottom: 25px;
    color: white;
    font-size: 13px;
}

.new {
    color: rgb(130, 97, 160);
    left: 20px;
    width: 263px;
    text-align: center;
    bottom: 25px;
    font-weight: 700;
    font-size: 20px;
}

.price {
    text-align: right;
    padding-right: 10px;
    font-size: 20px;
}

.price span {
    font-size: 22px;
    color: rgb(9, 84, 107);
}

del {
    color: rgb(3, 31, 36);
    font-size: 18px;
    margin-left: 2px;
}

.sci {
    color: blueviolet;
}

.style {
    font-size: 20px;
    text-align: center;
    text-transform: capitalize;
}

#romance {
    font-family: "SUSE", sans-serif;
    grid-area: romance;
}

.roman {
    color: hsl(252, 100%, 67%);;
}

.title {
    font-weight: 900;
    color: black;
}

#classic {
    font-family: "SUSE", sans-serif;
    grid-area: classic;
}

.clas {
    color: rgb(44, 9, 77);
}

#fantasy {
    font-family: "SUSE", sans-serif;
    grid-area: fantasy;
}

.fant {
    color: hsl(252deg 43.73% 45.12%);
}

section img {
    position: relative;
    z-index: 1;
    height: 400px;
    width: 300px;
    border-radius: 10px 10px 0 0;
    -webkit-border-radius: 10px 10px 0 0;
    -moz-border-radius: 10px 10px 0 0;
    -ms-border-radius: 10px 10px 0 0;
    -o-border-radius: 10px 10px 0 0;
}

.add {
    background-color: white;
    border: none;
    font-size: 20px;
    padding-left: 20px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.buy-now {
    text-align: center;
    padding-top: 20px;
}


.buy{
    width: 150px;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: 0.7s ease;
    background-color: black;
    color: white;
}
.buy:hover{
    color: white;
    background-color: hsla(256, 72%, 46%, 1);
    transform: scale(1.1);
}

.buyy {
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.add:hover {
    cursor: pointer;
}

.add.active i {
    color: red;
}


@keyframes ani {
    25%{
        box-shadow: 5px 6px 11px rgb(56 26 62);
    }

    50% {
        box-shadow: 6px 7px 13px rgb(56 26 62);
    }

    75% {
        box-shadow: 5px 6px 11px rgb(56 26 62);
    }

    100% {
        box-shadow: 3px 4px 9px rgb(56 26 62);
    }
}

@media (min-width:500px) and (max-width:1350px){
    .flexx{
        display: grid;
        grid-template-rows: repeat(2,1fr);
        grid-template-columns: repeat(2,1fr);
        grid-template-areas: "dune theMartian" "allSystems dwarfStars";
        justify-content: center;
        gap: 2rem;
        padding-right: 15px;
    }

    .h1 {
        text-align: center;
    }

    .slide {
        display: none !important;
    }

    .hidden-2 {
        display: block !important;
        transform: translateX(80%);
    }

}


@media (max-width:499px) {
    .flexx{
        display: grid;
        grid-template-rows: repeat(4,1fr);
        grid-template-columns: 1fr;
        grid-template-areas: "dune" "theMartian" "allSystems" "dwarfStars";
        justify-content: center;
        gap: 2rem;
        padding-right: 15px;
    }
    .h1 {
        font-size: 20px;
        text-align: center;
    }

    .slide {
        display: none !important;
    }
    .hidden-2 {
        display: block !important;
    }
}

p{
    font-size: 18px;
}
.bigcontainer{
    grid-area: new;
    display: flex;
    justify-content: center;
    align-items: center;
}
.continer1{
    background-image: linear-gradient(hsl(252, 100%, 67%),hsl(241, 81%, 54%));
    width: 310px;
    height: auto;
    border-radius: 15px ;
    display: flex;
    text-align: center;
    padding: 3rem;
    flex-direction: column;
    color: hsl(241, 100%, 89%);
}
.circle{
    width: 170px;
    height: 170px;
    background-image: linear-gradient(hsla(256, 72%, 46%, 1), transparent);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.big{

    font-size: 50px;
    color: white;
    font-weight: 900;
}
.of{
    color: #ffffff57;
}
h2{
    color: white;
    font-weight: 500;
}

.continer2{
    width: 310px;
    height: auto;
    border-radius: 15px;
    box-shadow: 9px 0px 20px 4px #0000000d;
    background-color: hsl(0deg 0% 100%);
    display: flex;
    padding: 1rem 2rem;
    flex-direction: column;
}



.continer2 img {
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}

@media screen and (max-width:550px) {
    .bigcontainer{
        flex-direction: column;
    }
    /* .continer2{
        width: 320px !important;
    } */
}
@media screen and (max-width:550px) {
    .continer1{
        border-radius: 0 0 20px 20px;
    }
}



    .hidden-2 {
        display: none;
    }
    
    .slide {
        color: rgb(31, 3, 58);
        font-size: 30px;
        align-self: center;
    }
    
    .slide-left {
        display: none;
    }
    
    .slide:hover {
        cursor: pointer;
    }
    footer{
        background-color: black;
        grid-area: footer;
        margin: 0px -20px;
    }
    /* .footer a {
        font-size: 16px;
        color: #551A8B;
        text-decoration: underline;
    } */
    .footerContainer{
        padding: 70px 30px 20px ;
    }
    .socialIcons{
        display: flex;
        justify-content: center;
    }
    .socialIcons a{
        text-decoration: none;
        padding:  10px;
        background-color: white;
        margin: 10px;
        border-radius: 50%;
    }
    .socialIcons a i{
        font-size: 2em;
        color: black;
        opacity: 0,9;
    }
    .socialIcons a:hover{
        background-color: #111;
        transition: 0.5s;
    }
    .socialIcons a:hover i{
        color: white;
        transition: 0.5s;
    }
    .footerNav{
        margin: 30px 0;
    }
    .footerNav ul{
        display: flex;
        justify-content: center;
        list-style-type: none;
    }
    .footerNav ul li a{
        color:white;
        margin: 20px;
        text-decoration: none;
        font-size: 1.3em;
        opacity: 0.7;
        transition: 0.5s;
    }
    .footerNav ul li a:hover{
        opacity: 1;
    }
    .footerBottom{
        background-color: #000;
        padding: 20px;
        text-align: center;
    }
    .footerBottom p{
        color: white;
    }
    .designer{
        font-weight: 700;
    }
    @media screen and (max-width: 580px) {
        footer{
            display: flex;
            flex-direction: column;
        }
        .footerNav ul{
            flex-direction: column;
            align-items: center;
        }
        .footerNav li{
            padding: 10px;
        }
    }
    @media screen and (max-width: 365px) {
        .socialIcons a{
            margin: 10px 5px;
        }
    }
    .footerBottom a{
        font-size: 16px;
        color: #551A8B;
        text-decoration: underline;
    }





/* .search-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    position: relative;
}

.search-bar input {
    width: 50%;
    min-width: 300px;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    border: 0px;
    outline: none;
} */



/* #searchList {
        position: relative;
}

#searchList li {
    list-style: none;
    text-align: center;
    background-color: #111111cc;
    width: 200px;
    height: 40px;
    cursor: pointer;
}

#searchList li a {
    text-align: center;
    color: rgb(208, 178, 236);
} */