* {
    margin: 0;
    font-family: Arial;
    box-sizing: border-box;
}

body{
    background-image: url(pagepalettebook.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.thank{
    visibility: collapse;
}

.navbar {
    height: 80px;
    background-color: rgb(33, 32, 32);
    color: black;
    display: flex;
    align-items: center;
}

.logo {
    background-image: url("logo.jpg");
    background-size: cover;
    height: 100px;
    width: 100px;
    border-radius: 150px;
    position: absolute;
    left: 20px;
    top: 10px;
}

.name {
    font-size: 23px;
    font-family: cursive;
    font-weight: bold;
    color: rgb(208, 104, 142);
    position: relative;
    left: 125px;
    top: 50px;
}

.quote {
    font-size: 30px;
    font-style: italic;
    text-decoration: dotted;
    width: 800px;
    letter-spacing: 0.07em;
    line-height: 1.2;
    margin: 7px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: rgb(131, 227, 203);
    position: relative;
    left: 500px;
    bottom: 5.5px;
}

.midbar {
    height: 1000px;
    background-image: url(pagepalettebook.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    color: black;
    display: flex;
    align-items: center;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.popular {
    font-size: 30px;
    font-family: cursive;
    font-weight: bold;
    color: rgb(242, 236, 238);
    position: absolute;
    left: 150px;
    top: 170px;
}


.popular:hover{
    background: linear-gradient(45deg, #f3ec78, #af4261);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.may:hover{
    background: linear-gradient(45deg, #876fba, #e97dc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shelf-popular {
    display: flex;
    width: 100%;
    max-width: 600px;
    height: 150px;
    border-radius: 10px;
    justify-content: flex-start;
    align-items: center;
    background-color: #6a3612;
    position: absolute;
    top: 220px;
    left: 150px;
    padding: 10px;
    transition: all 0.3s ease;
}

button.book {
    height: 120px;
    width: 30px;
    font-weight: bold;
    font-size: 20px;
    border: 2px solid;
    background-color: white;
    color: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, margin-right 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: 1.06px;
    z-index: 0;
    position: relative;
    top: 5px;
}

button.book:hover {
    transform: scale(2);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    z-index: 1;
}


.book1 { transform: rotate(2deg); height: 123px; width: 30px; background-image: url(book1s1.jpg); background-size: cover; }
.book2 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book2s1.jpg); background-size: cover; }
.book3 { transform: rotate(0deg); height: 122px; width: 30px; background-image: url(book3s1.jpg); background-size: cover; }
.book4 { transform: rotate(1deg); height: 122px; width: 30px; background-image: url(book4s1.jpg); background-size: cover; }
.book5 { transform: rotate(2deg); height: 122px; width: 30px; background-image: url(book5s1.jpg); background-size: cover;}
.book6 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book6s1.jpg); background-size: cover; }
.book7 { transform: rotate(3deg); height: 122px; width: 30px; background-image: url(book7s1.jpg); background-size: cover;}
.book8 { transform: rotate(1deg); height: 122px; width: 30px; background-image: url(book8s1.jpg); background-size: contain; }
.book9 { transform: rotate(-2deg); height: 122px; width: 30px; background-image: url(book9s1.jpg); background-size: cover;}
.book10 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book10s1.jpg); background-size: cover;}
.book11 { transform: rotate(2deg); height: 122px; width: 30px; background-image: url(book11s1.jpg); background-size: cover;}
.book12 { transform: rotate(1deg); height: 122px; width: 30px; background-image: url(book12s1.jpg); background-size: cover;}
.book13 { transform: rotate(-2deg); height: 122px; width: 30px; background-image: url(book13s1.jpg); background-size: cover;}
.book14 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book14s1.jpg); background-size: cover;}
.book15 { transform: rotate(-4.5deg); height: 122px; width: 30px; background-image: url(book15s1.jpg); background-size: cover; }
.book16 { transform: rotate(1deg); height: 122px; width: 30px; background-image: url(book16s1.jpg); background-size: cover;}
.book17 { transform: rotate(-2deg); height: 122px; width: 30px; background-image: url(book17s1.jpg); background-size: cover;}
.book18 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book18s1.jpg); background-size: cover;}
.book19 { transform: rotate(0deg); height: 122px; width: 30px; background-image: url(book19s1.jpg); background-size: cover;}


.may {
    font-size: 30px;
    font-family: cursive;
    font-weight: bold;
    color: rgb(242, 236, 238);
    position: absolute;
    left: 150px;
    top: 435px;
}

.shelf-may {
    display: flex;
    width: 100%;
    max-width: 600px;
    height: 150px;
    border-radius: 10px;
    justify-content: flex-start;
    align-items: center;
    background-color: #6a3612;
    position: absolute;
    top: 485px;
    left: 150px;
    padding: 10px;
    transition: all 0.3s ease;
}

.shelf-may .book {
    height: 120px;
    width: 30px;
    font-weight: bold;
    font-size: 20px;
    border: 2px solid;
    background-color: white;
    color: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, margin-right 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: 1.06px;
    z-index: 0;
}

.shelf-may .book:hover {
    transform: scale(2);
    box-shadow: 0 6px 10px rgba(240, 54, 54, 0.15);
    z-index: 1;
}

.shelf-may .book20 { transform: rotate(2deg); height: 123px; width: 30px; background-image: url(book20s2.jpg); background-size: cover;}
.shelf-may .book21 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book21s2.jpg); background-size: cover;}
.shelf-may .book22 { transform: rotate(0deg); height: 122px; width: 30px; background-image: url(book22s2.jpg); background-size: cover;}
.shelf-may .book23 { transform: rotate(1deg); height: 122px; width: 30px; background-image: url(book23s2.jpg); background-size: cover;}
.shelf-may .book24 { transform: rotate(2deg); height: 122px; width: 30px; background-image: url(book24s2.jpg); background-size: cover;}
.shelf-may .book25 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book25s2.jpg); background-size: cover;}
.shelf-may .book26 { transform: rotate(3deg); height: 122px; width: 30px; background-image: url(book26s2.jpg); background-size: cover;}
.shelf-may .book27 { transform: rotate(1deg); height: 122px; width: 30px; background-image: url(book27s2.jpg); background-size: cover;}
.shelf-may .book28 { transform: rotate(-2deg); height: 122px; width: 30px; background-image: url(book28s2.jpg); background-size: cover;}
.shelf-may .book29 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book29s2.jpg); background-size: cover;}
.shelf-may .book30 { transform: rotate(2deg); height: 122px; width: 30px; background-image: url(book30s2.jpg); background-size: cover;}
.shelf-may .book31 { transform: rotate(1deg); height: 122px; width: 30px; background-image: url(book31s2.jpg); background-size: cover;}
.shelf-may .book32 { transform: rotate(-2deg); height: 122px; width: 30px; background-image: url(book32s2.jpg); background-size: cover;}
.shelf-may .book33 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book33s2.jpg); background-size: cover;}
.shelf-may .book34 { transform: rotate(-4.5deg); height: 122px; width: 30px; background-image: url(book34s2.jpg); background-size: cover;}
.shelf-may .book35 { transform: rotate(1deg); height: 122px; width: 30px; background-image: url(book35s2.jpg); background-size: cover;}
.shelf-may .book36 { transform: rotate(-2deg); height: 122px; width: 30px; background-image: url(book36s2.jpg); background-size: cover;}
.shelf-may .book37 { transform: rotate(-1deg); height: 122px; width: 30px; background-image: url(book37s2.jpg); background-size: cover;}
.shelf-may .book38 { transform: rotate(0deg); height: 122px; width: 30px; background-image: url(book38s2.jpg); background-size: cover;}


.search-icon {
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: rgb(34, 32, 32);
}

#search-input {
    width: 300px;
    height: 200px;
    background-color: rgb(119, 70, 38);
    border: none;
    font-size: 20px;
}

.nav-search {
    display: flex;
    width: 380px;
    height: 250px;
    border-radius: 20px;
    position: absolute;
    top: 250px;
    left: 970px;
    justify-content: space-evenly;
    align-items: center;
    background-color: rgb(119, 70, 38);
    transition: box-shadow 0.3s ease;
}
.nav-search:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
}
.voice-text{
    font-family: sans-serif;
    text-align: justify;
    color:#000
}
.voice-search-icon {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: rgb(34, 32, 32);
    cursor: pointer;
    margin-left: 10px;
}

.voice-search-icon:hover {
    color: rgb(255, 0, 0);
}

.bordersearch {
    border: 2px solid transparent;
}

.bordersearch:hover {
    border: 2px solid white;
}

.border {
    padding: 13px;
    border-radius: 9px;
    border: 2px solid transparent;
    transition: box-shadow 0.3s ease;
}

.border:hover {
    background-color: rgb(136, 76, 50);
    border: 2px solid transparent;
}

#results {
    margin-top: 20px;
    color: white;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
}

.book {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background-color: rgb(255, 255, 255, 0.1);
}

.book img {
    max-width: 100px;
    display: block;
    margin-top: 10px;
}

.home-button {
    margin: 20px auto;
    padding: 10px 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
}

.home-button:hover {
    background-color: rgb(106, 19, 19);
}

/* Existing CSS ... */

.book-details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    background-color: white;
    color: #000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.close-button:hover {
    color: red;
}

@media only screen and (min-width: 800px) {

   html.body{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
   }


    #book-details{
        width: 1050px;
        z-index: 1000;
        position: absolute;
        top: 10%;
        left: 14.5%
        
    }
}
/** For phone **/
@media only screen and (max-width: 700px) {

    

    .navbar {
        height: 105px;
        width: 600px;
        background-color: rgb(33, 32, 32);
        color: black;
        display: flex;
        align-items: center;

    }

    
    .logo {
        background-image: url("logo.jpg");
        background-size: cover;
        height: 60px;
        width: 60px;
        border-radius: 150px;
        position: absolute;
        left: 8px;
        top: 10px;
    }

    .name {
        font-size: 13.5px;
        font-family: cursive;
        font-weight: 1000;
        color: rgb(208, 104, 142);
        position: absolute;
        left: 14px;
        top: 75px;
    }

    .quote {
        font-size: 17.2px;
        font-style: italic;
        text-decoration: dotted;
        width: 300px;
        font-weight: 1000;
        letter-spacing: 0.01em;
        line-height: 1.2;
        margin: 7px;
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        color: rgb(131, 227, 203);
        position: absolute;
        top: 35px;
        left: 88px;
        bottom: 1px;
        height:50px;
    }

    .thank{
        color: rgb(185, 169, 169);
        width: 4px;
        font-weight: 900;
        position: absolute;
        left: 485px;
        top: 10px;
    }

    
    .midbar {
        background-image: url(back-phone.jpg);
        color: black;
        display: flex;
        align-items: center;
        width: 412px;
        height: 950px;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .popular {
        font-size: 22px;
        font-family: cursive;
        font-weight: 1000;
        color: rgb(242, 236, 238);
        letter-spacing: 0.02em;
        position: absolute;
        left: 30px;
        top: 265px;
    }

    .shelf-popular {
        display: flex;
        width: 385px;
        max-width: 600px;
        height: 110px;
        border-radius: 10px;
        justify-content: flex-start;
        align-items: center;
        background-color: #6a3612;
        position: absolute;
        top: 300px;
        left: 10px;
        padding: 1px;
        transition: all 0.3s ease;
    }

    .may {
        width: 500px;
        font-size: 22px;
        font-family: cursive;
        font-weight: 1000;
        color: rgb(242, 236, 238);
        letter-spacing: 0.02em;
        position: absolute;
        left: 30px;
        top: 530px;
    }
    .shelf-may {
        display: flex;
        width: 385px;
        max-width: 600px;
        height: 110px;
        border-radius: 10px;
        justify-content: flex-start;
        align-items: center;
        background-color: #6a3612;
        position: absolute;
        top: 570px;
        left: 10px;
        padding: 10px;
        transition: all 0.3s ease;
    }

    #search-input {
        width: 300px;
        height: 30px;
        background-color: rgb(119, 70, 38);
        border: none;
        font-size: 17px;
    }
    
    .nav-search {
        display: flex;
        width: 375px;
        height: 50px;
        border-radius: 20px;
        position: absolute;
        top: 130px;
        left: 15px;
        justify-content: space-evenly;
        align-items: center;
        background-color: rgb(119, 70, 38);
        transition: box-shadow 0.3s ease;
    }

    .search-icon {
        width: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 25px;
        color: rgb(34, 32, 32);
    }

    .voice-search-icon {
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 25px;
        color: rgb(34, 32, 32);
        cursor: pointer;
        margin-left: 10px;
    }

    .bordersearch {
        border: 2px solid transparent;
    }
    
    .bordersearch:hover {
        border: 2px solid white;
    }
    
    .border {
        padding: 13px;
        border-radius: 9px;
        border: 2px solid transparent;
        transition: box-shadow 0.3s ease;
    }
    
    .border:hover {
        background-color: rgb(136, 76, 50);
        border: 2px solid transparent;
    }

    .shelf-may .book:hover {
        transform: scale(2);
        box-shadow: 0 6px 10px rgba(240, 54, 54, 0.15);
        z-index: 1;
    }

    
    button.book:hover {
        transform: scale(2);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
        z-index: 1;
    }

    #book-details{
    display: block;
    position: absolute;
    top: 10%;
    bottom: 90%;
    left: 10px;
    background: white;
    padding: 10px;
    border: 1px solid rgb(204, 204, 204);
    font-size: 10px;
    z-index: 1000;
    width: 380px;
    border-radius: 10px;
    color: black;
    height: 700px;
    }

    button.book {
        height: 95px;
        width: 10px;
        font-weight: bold;
        font-size: 20px;
        border: 2px solid;
        background-color: white;
        color: #000;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease, margin-right 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-right: 1.06px;
        z-index: 0;
        position: relative;
        top: 5px;
    }

    
    button.book20{
        position: absolute;
        left:7px;
    }
    button.book21{
        position: absolute;
        left:30px;
    }
    button.book22{
        position: absolute;
        left:53px;
    }
    button.book23{
        visibility: collapse;
    }
    button.book24{
        position: absolute;
        left:75px;
    }
    button.book25{
        position: absolute;
        left:98px;
    }
    button.book26{
        position: absolute;
        left:118px;
    }
    button.book27{
        position: absolute;
        left: 140px;
    }
    button.book28{
       visibility: collapse;
    }
    button.book29{
        position: absolute;
        left: 160px;
    }
    button.book30{
        position: absolute;
        left:182px;
    }
    button.book31{
        position: absolute;
        left:205px;
    }
    button.book32{
        position: absolute;
        left:230px;
    }
    button.book33{
        position: absolute;
        left:255px;
    }
    button.book34{
        position: absolute;
        left:280px;
    }
    button.book35{
        position: absolute;
        left:303px;
    }
    button.book36{
        position: absolute;
        left:326px;
    }
    button.book37{
        position: absolute;
        left:350px;
    }

    button.book38{
        visibility: collapse;
    }

    button.book1{
        position: absolute;
        left:7px;
    }
    button.book2{
        position: absolute;
        left:30px;
    }
    button.book3{
        position: absolute;
        left:53px;
    }
    button.book4{
        visibility: collapse;
    }
    button.book5{
        position: absolute;
        left:75px;
    }
    button.book6{
        position: absolute;
        left:98px;
    }
    button.book7{
        position: absolute;
        left:118px;
    }
    button.book8{
        position: absolute;
        left: 140px;
    }
    button.book9{
       visibility: collapse;
    }
    button.book10{
        position: absolute;
        left: 160px;
    }
    button.book11{
        position: absolute;
        left:182px;
    }
    button.book12{
        position: absolute;
        left:205px;
    }
    button.book13{
        position: absolute;
        left:230px;
    }
    button.book14{
        position: absolute;
        left:255px;
    }
    button.book15{
        position: absolute;
        left:280px;
    }
    button.book16{
        position: absolute;
        left:303px;
    }
    button.book17{
        position: absolute;
        left:326px;
    }
    button.book18{
        position: absolute;
        left:350px;
    }

    button.book19{
        visibility: collapse;
    }

    .shelf-may .book20 { transform: rotate(2deg); height: 95px; width: 10px; background-image: url(book20s2.jpg); background-size: cover;}
    .shelf-may .book21 { transform: rotate(-1deg); height: 95px; width: 10px; background-image: url(book21s2.jpg); background-size: cover;}
    .shelf-may .book22 { transform: rotate(0deg); height: 95px; width: 10px; background-image: url(book22s2.jpg); background-size: cover;}
    .shelf-may .book23 { transform: rotate(1deg); height: 95px; width: 10px; background-image: url(book23s2.jpg); background-size: cover;}
    .shelf-may .book24 { transform: rotate(2deg); height: 95px; width: 10px; background-image: url(book24s2.jpg); background-size: cover;}
    .shelf-may .book25 { transform: rotate(-1deg); height: 95px; width: 10px; background-image: url(book25s2.jpg); background-size: cover;}
    .shelf-may .book26 { transform: rotate(3deg); height: 95px; width: 10px; background-image: url(book26s2.jpg); background-size: cover;}
    .shelf-may .book27 { transform: rotate(1deg); height: 95px; width: 10px; background-image: url(book27s2.jpg); background-size: cover;}
    .shelf-may .book28 { transform: rotate(-2deg); height: 95px; width: 10px; background-image: url(book28s2.jpg); background-size: cover;}
    .shelf-may .book29 { transform: rotate(-1deg); height: 95px; width: 10px; background-image: url(book29s2.jpg); background-size: cover;}
    .shelf-may .book30 { transform: rotate(2deg); height: 95px; width: 10px; background-image: url(book30s2.jpg); background-size: cover;}
    .shelf-may .book31 { transform: rotate(1deg); height: 95px; width: 10px; background-image: url(book31s2.jpg); background-size: cover;}
    .shelf-may .book32 { transform: rotate(-2deg); height: 95px; width: 10px; background-image: url(book32s2.jpg); background-size: cover;}
    .shelf-may .book33 { transform: rotate(-1deg); height: 95px; width: 10px; background-image: url(book33s2.jpg); background-size: cover;}
    .shelf-may .book34 { transform: rotate(-4.5deg); height: 95px; width: 10px; background-image: url(book34s2.jpg); background-size: cover;}
    .shelf-may .book35 { transform: rotate(1deg); height: 95px; width: 10px; background-image: url(book35s2.jpg); background-size: cover;}
    .shelf-may .book36 { transform: rotate(-2deg); height: 95px; width: 10px; background-image: url(book36s2.jpg); background-size: cover;}
    .shelf-may .book37 { transform: rotate(-1deg); height: 95px; width: 10px; background-image: url(book37s2.jpg); background-size: cover;}
    .shelf-may .book38 { transform: rotate(0deg); height: 95px; width: 10px; background-image: url(book38s2.jpg); background-size: cover;}
}

