*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    
}

.nav{
  
    padding: 10px;
    width: 100%;
   
    grid-area: nav;
    position: relative;
  background-color: black;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;

}
.logo{
    width: 10%;
    display: flex;
    justify-content:stretch;
    align-items: center;
}
.logo img{
 height: 2rem;
 width: 2rem;
 
}
.logo h1{
  color: white;
    font-family: "Reenie Beanie", cursive;
    font-weight: 400;
    font-style: normal;
    
}.nav a {
    position: relative;
    display: inline-flex;
    font-family: 'Graduate', serif;
    color: white;
    padding: 10px;
    border: 1px solid white;
   
    z-index: 1;
    overflow: hidden;
}

.nav a:hover {
    color: black;
    transition: 0.8s;
}

.nav a::before {
    content:'' ;
    position:absolute ;
    top: 0;
    right:0 ;
    width: 0;
    height: 100%;
    background: white;
    z-index: -1;
    transition: 0.8s;
}

.nav a:hover:before {
    width: 100%;
}
.mid {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.box {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #444;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; 
}

.box:hover img {
    transform: scale(2.1);
}

.buy-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.buy-btn:hover {
    background-color: #555;
    color: #fff;
}


/* Add your existing CSS styles here */

/* CSS */
#unavailable-book-form button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 10px;
}

/* CSS */
footer {
    background-color: #f4f4f4;
    padding: 20px 0;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin: 10px 0;
    font-size: 16px;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    color: #007bff;
}

#unavailable-book-form {
    margin-top: 20px;
    text-align: center;
}

#unavailable-book-form input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#unavailable-book-form button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 10px;
}

#unavailable-book-form button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

