*{
    padding: 0%;
    margin: 0%;  
    box-sizing: border-box;  
}
html{
    scroll-behavior: smooth;
}
body{
    overflow-x: hidden;   
    font-family: Arial, Helvetica, sans-serif;
}
html, body{
    max-width: 100%;
    overflow-x: hidden;
}
main{
    margin-top: 50px;   
    height: auto;        
    overflow: visible;   
}
header{
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav{
    height: 120px;
    background-color: rgba(251, 56, 2, 0.847);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;  
}
nav ul{
    color: rgb(30, 152, 152);
    display: flex;
    font-size: 20px;
    gap: 15px;
    list-style: none;
}
.style-link{
    font-family:serif;
    color: whitesmoke;
    text-decoration: none;
    padding: 9px;
    border-radius: 25px;
    transition: transform 2.0 ease-in;
}
figure img{
    border-radius: 10px;
    transition: transform 0.3s ease-in;
}
figure:hover{
    background-color: rgba(210, 63, 18, 0.062);
    padding: 8px;
    border-radius: 20px;
    transform: scale(1.1);
}
.style-link:hover{
    color: black;
    transform: scale(1.1);
    background-color: rgba(214, 104, 35, 0.539);
}
figure{
    width: 150px;
    text-align: center;
    justify-content: space-evenly;
}
.heading{
    font-style: italic;
    margin:20px 0 10px;
}
.images{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    font-family:Arial, Helvetica, sans-serif;
}
figcaption{
    word-wrap: break-word;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    word-wrap:break-word;
}
.description{
    margin-left: 300px;
    margin-right: 300px;
}
.footer{
    text-align: center;
    padding: 20px;
    color: gray;
}
.Book_details{
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    font-style:normal;
    font-size: medium;
    font-weight: bold;
}
.Author_details{
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 150px;
    margin-right: 150px;
    font-style:oblique;
    font-size: medium;
    font-weight: bold;
    
}
.Author_details img{
    border-radius: 50%;
}
.description h2{
    color: darkgreen;
}
.read_button{
    display: inline-block;
    width: 150px;
    line-height: 30px;
    text-align: center;
    font-size: 15px;
    text-decoration:none;
    background-color: rgb(201, 219, 234);
    border-radius: 5px;
    transition: background-color 0.3s ease-in;
}

.read_button:hover{
    background-color: rgb(160, 222, 162);
    transition: background-color 0.3s ease-in-out;
}
.Book_details p{
    font-size: 12px;
}
.genre{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.genre img{
    transition: transform 0.3s ease-out;
}
.genre img:hover{
    background-color: rgba(210, 63, 18, 0.062);
    transform: scale(1.1);
}
.browseBooks{
    display: flex;
    gap: 40px;
    transition: transform 0.3s ease-out;
}
.browseBooks:hover{
    transform: translateX(15px);
}
.browseBooks2{
    font-size: 15px;
    flex-direction: column;
    gap: 20px;
    
}
.browseBooks img{
    border-radius: 20px;
}
.paragraph{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.paragraph{
    max-width: 1000px;
    color: rgb(99, 92, 92);
    -webkit-line-clamp: 3;
}
.vpn{
    color: rgb(167, 150, 150);
}
.genree{
    margin-top: 10px;
    margin-left: 50px;
    margin-right:20px;
}
@media (max-width: 780px){
    .Book_details{
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .Book_details img{
        width: 180px;
        height: auto;
    }
    .read_button{
        font-size: 10px;
        width: 80px; 
    }
    .description{
        margin-left: 20px;
        margin-right: 20px;
    }
    nav{
        justify-content: center;
    }
    nav img{
        width: 90px;
        height: auto;
    }
    nav ul{
        font-size: 16px;
        gap: 1px;
    }
    .Author_details{
        display: flex;
        gap: 10px;
        align-items: center;
        margin-left: 10px;
        margin-right: 10px;
        font-style:oblique;
        font-size: medium;
        font-weight: bold; 
    }
    .images figure{
        width: 45%;
        text-align: center;
        margin: 0;
    }   
    .genre{
        display: flex;
        flex-direction:row;
        justify-content:center;
        gap: 40px;
    }
    .genre img{
        width:100px;
        height:200px;
        object-fit:cover;
    }
    .paragraph{
        max-width: 1000px;
        color: rgb(63, 56, 56);
        -webkit-line-clamp: 3;
    }
    .browseBooks{
        margin-left: 10px;
        margin-right: 10px;
        display: flex;
        gap: 20px;
        align-items: flex-start;
        max-width: 500px;
        transition: all 0.3s ease-out;
    }
    .browseBooks:hover{
        transform: translateX(15px);
    }
    .browseBooks2 h1,.browseBooks2 h3, .browseBooks2 h4, .browseBooks2 p{
        font-size: 16px;
    }
    
}
@media (min-width:480px){
    .genre{
        gap:5px;
        flex-direction:row;
        align-items:center;
    }
    .read_button{
        font-size: 10px;
        width: 100px; 
    }
    .description{
        margin-left: 20px;
        margin-right: 20px;
    }
}


