


@font-face {
    font-family: 'leo';
    src: url(fonts/Hokuto\ Regular.ttf)
}

@font-face {
    font-family: 'leo2';
    src: url(fonts/RobotoSlab-Regular.ttf)
}

@font-face {
    font-family: 'shazde';
    src: url(fonts/Digi\ Nozha2\ Bold.ttf)
}

@font-face {
    font-family: 'always';
    src: url(fonts/Lato-Reg.ttf)
}
.genre{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);

  
}
.genre-icon img{
  width: 60px;
  height:auto;
  margin-bottom: 0px;
  margin-top: 20px;
  
}
.genre-title{
  color:#f8bbd0;
 font-weight: bold;
 text-align: center;
  font-size: 65px;
  margin: 0;
  font-family: leo;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color:#ffff;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* header */

.logo {
 
    width:170px; 
    height:170px; 
 

}

.header-menu{
   
    background: #f8e1eb;
    display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   gap: 1px;
   
   
}
.header-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.header-menu ul li {
    list-style-type: none;
    margin-top: 7px;
    margin-bottom: 13px;
    margin-left: 20px;
    margin-right: 20px;
}

.header-menu ul li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-family: 'shazde';
    font-size: 20px;
    padding: 10px;

}

.header-menu ul li a:hover {
    background-color: #fa6bc6;
    border-radius: 7px;
    background-clip: padding-box;
}


/*main container */
.main-container {
    background-color: #f8e1eb;
    width: 90%;
    max-width: 1200px;
    margin: 150px auto;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* گرید برای نمایش کتاب‌ها */
.book-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-gap: 20px; 
    justify-items: center;
    align-items: center;
}


.book-item {
    background-color: #f8bbd0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 150px; 
    height: 200px; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.book-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


.book-item:hover {
    transform: scale(1.05);
}



/*--comments--*/
.title-text {
    text-align: center;
    padding-bottom: 70px;
    font-family: always;
    font-style: italic;
}

.title-text p {
    margin: auto;
    font-size: 20px;
    color: #ffc0cb;
    font-weight: bold;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.title-text h1 {
    font-size: 50px;
}

.title-text p::after {
    content: "";
    width: 50px;
    height: 35px;
    background: linear-gradient(#ffc0cb, white);
    position: absolute;
    top: -20px;
    left: 0;
    z-index: -1;
    transform: rotate(10deg);
    border-bottom-right-radius: 35px;
    border-top-left-radius: 35px;
}
#comments{
    width: 100%;
    padding: 70px 0;
  }

  .comments-row{
    width: 80%;
    margin:auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .comments-col{
    flex-basis: 28%;
    padding: 10px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 10px 20px 3px #ffc0cb;
    cursor: pointer;
    transition: transform 0.5s;
  }

  .comments-col p{
    font-size: 14px;
    font-family: 'leo2';
  }
   

  .user{
    display: flex;
    margin: 20px 0;
    align-items: center;
  }

  .user img{
    width: 40px;
    height: 40px;
    margin-right: 20px;
    border-radius: 3px;
  }
  .comments-col:hover{
    transform: translateY(7px);
  }



  /*--footer--*/

#footer{
    padding: 100px 0 20px;
    background: #efefef;
    }
    
    .foooter-row{
      width: 80%;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    
    .footer-left, .footer-right{
      flex-basis: 45%;
      padding: 10px;
      margin-bottom: 20px;
    }
    
    .footer-right{
      text-align: right;
    }
    
    .foooter-row h1{
      margin:10px 0;
      font-family: 'leo';
    }
    
    .foooter-row p{
      line-height: 35px;
      font-family: 'always';
    }


    /*--footer--*/

#footer{
    padding: 100px 0 20px;
    background: #efefef;
    }
    
    .foooter-row{
      width: 80%;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    
    .footer-left, .footer-right{
      flex-basis: 45%;
      padding: 10px;
      margin-bottom: 20px;
    }
    
    .footer-right{
      text-align: right;
    }
    
    .foooter-row h1{
      margin:10px 0;
      font-family: 'leo';
    }
    
    .foooter-row p{
      line-height: 35px;
      font-family: 'always';
    }