@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Roboto:wght@300;400;500;700;900&display=swap');



body{
    font-family: 'Roboto',
    sans-serif;
    margin: 0px;
    background-color: #f9e6ea;
    color: #063671;

     /*background: url("https://images.unsplash.com/photo-1517315003714-a071486bd9ea?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Nnx8YWVzdGhldGljfGVufDB8fDB8fA%3D%3D&w=1000&q=80"); 
          background-repeat: no-repeat; 
    background-size: cover; 
     color: white; */
}
main{
    margin: 20px;
}

/* ---------------Nav-------------- */
nav{

    background: url("https://www.shutterstock.com/image-vector/random-butterfly-silhouette-pattern-seamless-260nw-1932944300.jpg");
    display: flex;
    align-items: center;
    width: 100%;
    
}

nav a{

    text-decoration: none;

    font-size: 26px;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-family: 'Pacifico', cursive;
    margin: 0 10px;
   
}
nav img{
    width: 70px;
    height: 70px;

}
@media screen and (max-width:768px){
    nav a{
        font-size: 18px;
        font-weight: 300;
        margin: 0px 10px;
    }
    nav img{
        width: 40px;
        height: 40px;
    }
}

/* -----------Search Bar--------------- */


.search_div{
    font-family: 'Roboto', sans-serif;
    font-size: 22px;

    text-align: center;


}

.search_box{
    display: flex;
    justify-content: center;
    align-items: center;
}
.search_box span{
    margin-right: 30px;
    font-weight: 500;
}
.search_bar{
    /* box-sizing: border-box; */
    border: 2px solid #063671;
    display: flex;
    align-items: center;
    width: 70%;
    padding: 5px;
}

.search_div input{
    box-sizing: border-box;
    background-color: #f9e6ea;
    border: none;
    height: 100%;
    width: 100%;
    color: #063671;
    font-size: 20px;
    outline: none;
    padding-left: 10px;
}

.search_div button{
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 10px;
    color: #063671;
    background-color: #dccce6;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

#searchFor{
    display: none;
}


@media screen and (max-width:768px){
    .search_box{
        display: block;
    }
    .search_bar{
        margin: auto;
    }
}

/* ------------bookShelf------------- */


.bookShelf{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0px;
    justify-content: center;

}
.bookBox{

     box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; 
width: 300px;
   
}

.bookBox:hover{
    scale:102%
}
.bookBox img{
    width: 50%;
    height: 200px;
}
.bookImgDiv{

display: flex;
justify-content: center;
background: url("https://www.shutterstock.com/image-vector/vector-pastel-pink-butterflies-repeat-260nw-636120644.jpg");
}

.title{
    font-weight: 600;
    text-align: center;
}
.bookDesc{
    margin: 10px;
}
.buyDiv{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.buyBtn{
width: 92%;
padding: 10px 0px;
color: #063671;
border-radius: 10px;
font-weight: 600;
font-size: 16px;
background-color:#f8c9d7;
cursor: pointer;
border: none;
}

/* ----------History Page----------- */
/* ------------SearchBar---------- */


.searchBar{

display: flex;
justify-content: space-between;
align-items: center;
font-size: 22px;
font-weight: 600;
}

.searchBar #clear{


    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    color: #063671;
    background-color: #dccce6;
    border: none;
    cursor: pointer;
}

@media screen and (max-width:560px){
    .searchBar{
        font-size: 20px;
        font-weight: 500;
    }
    .searchBar #clear{
        font-size: 18px;
        font-weight: 500;
    }
}

/* -----------HistoryDiv----------- */

.list_div{
    display: flex;
    justify-content: space-between;
    padding:  0px 10px;
    gap: 30px;
    font-size: 20px;
    font-weight: 500;
    
    background-color: #dccce6;
    border-radius: 10px;
    margin:  20px 0px;
    cursor: pointer;
}

@media screen and (max-width:560px){
    .list_div{
        font-size: 16px;
        font-weight: 400;
    }
}

/* -------------Search Page-------------- */
main>p{
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

.list_div{
    display: flex;
    justify-content: space-between;
    padding:  0px 10px;
    gap: 30px;
    font-size: 20px;
    font-weight: 500;
    /* border: 1px solid black; */
    background-color: #dccce6;
    border-radius: 10px;
    margin:  20px 0px;
    cursor: pointer;
}
@media screen and (max-width:560px){
    .list_div{
        font-size: 16px;
        font-weight: 400;
    }
}


/*toggle button*/

.theme-switch {
    position: fixed;
    display: inline-block;
    width: 60px;
    height: 34px;
    bottom: 20px;
    right: 20px;
  
  }
  
  .theme-switch::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #f8c9d7;
    border-radius: 34px;
    transition: background-color 0.3s ease;
  }
  
  .theme-switch::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color:#f9e2e9;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.3);
    top: 4px;
    left: 4px;
    transition: transform 0.3s ease;
  }
  input[type='checkbox'] {
    display: none;
  }
  
  input[type='checkbox']:checked + .theme-switch::before {
    background-color: #333; 
   
  }
  
  input[type='checkbox']:checked + .theme-switch::after {
    transform: translateX(26px);
   
  }
  .deletebtn{
    font-size: 25px;
    font-weight: 500;
    border: none;
    color: red;
    background-color: #dccce6;
    cursor: pointer;
  }

/* pointer cursor circle */


.cursor {
    position: fixed;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
    background-color: palevioletred;
    z-index: 10000;
    border: 2px solid palevioletred;
    height: 0.3rem;
    width: 0.3rem;
    border-radius: 50%;
    transition: all 200ms ease-out;
  }
  
  .cursor-pointer {
    position: fixed;
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
    background-color: transparent;
    z-index: 10000;
    border: 2px solid palevioletred;
    height: 2rem;
    width: 2rem;
    transition: all 400ms ease-out;
  }
  
