/*به نام خدا*/
@font-face {
    font-family: hamishe;
    
    src: url('http://bitebk.ir/static/font/Digi_Hamishe_Bold.ttf') ;
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: hamishe;
    direction: rtl;
    text-align: center;
    margin: 0;
    background-color: snow;
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}
body, p, span, h1, h2, h3, h4, h5, h6 ,div,a{
    font-family: hamishe;
    }
ul {
    list-style-type: none;
    text-align: center;
    padding: 0;
    margin: 0;
    background-color: olive;
    height: 75px;
    border-radius: 20px;
    font-size: 30px;
    background: linear-gradient(270deg, #cdb4db, #ffc8dd, #ffafcc, #bde0fe, #a2d2ff);
    background-size: 1000% 1000%;
    align-items: center;
    -webkit-animation: AnimationName 20s ease infinite;
    animation: AnimationName 30s ease infinite;
    width: 98%;
    align-items: center;
    
}

li a {
    display: inline-block;

    
    text-decoration: none;
    color: black;
   
}

li a:hover {
    color: rgb(89, 72, 105);
    background-color: rgba(196, 84, 140, 0.658);

}

li {
    display: inline-block;
    padding: 10px;
    vertical-align: middle;
}

@-webkit-keyframes AnimationName {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes AnimationName {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.div {
    background-color: white;
    margin: 10px;
    padding: 10px;
    border-radius: 30px;
    border: solid 4px #b6debd;
    align-items: center;
    width: 95%;

}

.main-category {
 
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
    background-color: white;
    margin: 10px;
    padding: 10px;
    border-radius: 30px;
    border: solid 4px #b6debd;
    background-image: url(Ilust\ banila\ •\ Instagram.jpeg);
    

}

.category {

    display: flex;
    min-height: 200px;
    background-color: snow;
    border-radius: 25px;
    border: solid 2px #488aa8;
    padding: 15px 15px;
    text-align: center;
    flex-direction: column;

}

.lie {
    background-color: #b6debd;
    text-align: center;
    font-size: 20px;

}

.end {
    height: 300px;
    width: auto;
    -webkit-animation: AnimationName 20s ease infinite;
    animation: AnimationName 30s ease infinite;
}



.thank {
    border: black;
    color: white;
    background-color: black;
    padding: 9px;
    margin: 40px;
}

.thank:hover {
    box-shadow: 4px 4px 5px palevioletred, -4px -4px 5px plum;
}

.category:hover {
    box-shadow: 2px 3px 4px #88516e, -2px -3px 4px rgb(234, 188, 245);
    transform: scale(1.04);
    background-color: #cbe1ebf1;
}

.heart {
    color: #b6debd;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 40px;
    margin-top: 3px;
    margin-bottom: 1px;
}

.heart:hover {
    transform: scale(1.4);
    color: rgb(235, 100, 129);


}



#search {
    background-color: white;
    margin: 10px;
    padding: 10px;
    border-radius: 30px;
    border: solid 4px #b6debd;
    height: 40px;
    width: 600px;
}

#home {
    background-attachment: fixed;
    background-image: url();
}


.famous {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 100%;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type:  x mandatory;
    white-space: normal;
    padding: 10px;
}
.gallery-pic {

    width: 150px;
    height: 230px;
    box-shadow: 1px 1px 1px rgb(80, 71, 74), -1px -1px 1px rgb(129, 118, 129);
   
}
.gallery-pic:hover {
    transform: scale(1.05);
}
#pic-category {
    font-size: x-small;
    margin-top: 1px;
    color: #3b3539;
}
.book-name {
    margin-top: 0;
    margin-bottom: 0;
}
.book-name:hover {color: rgb(24, 105, 158);

}
.writer {
     clip-path: circle(50% at 50% 50%);
    -webkit-clip-path: circle(50% at 50% 50%);
    width: 100px;
    height: 100px;
}
.writer:hover {
    transform: scale(1.05);
}
.book-page-link {
    text-decoration: none;
    color: #222222;
}
.gallery {
    flex-shrink: 0;
    white-space: normal;
     scroll-snap-align: center;
     margin-top: 0;
}
#book {
    background-image: url(-9223372036854775808_-210060\ \(1\).jpg);
    
    
}
.slogan {
    color: rgba(255, 250, 250, 0.671);
    transition: color ease-out 0.3s ;
}
.slogan:hover {
    color: rgba(255, 250, 250, 0.99);

}
#book2 {
    background-image: url(a147760b-c9c3-4304-81a5-9df026e5eeea.jpeg) ;
}
.writer-link {
    text-decoration: none;
    color: #333333;
}
.slogan-link {
     text-decoration: none;
    color: rgba(255, 250, 250, 0.671);
}
.enter-pic {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    border: #3b3539 1px solid;
    margin: 0;

}
#home {
    display: flex;
    flex-direction: row;
    
}
.div2 {
    background-color: white;
    margin: 10px;
    padding: 10px;
    border-radius: 30px;
    border: solid 4px #392c41;
    align-items: center;
    width: 95%;

}
.color-head {
    background-color: #518d79;
}
.next {
    border: #cbe1ebf1;
}