@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #000;

}

.max_width {
    max-width: 1100px;
    margin: 0 auto;
}

img {
    width: 100%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    box-shadow: 0px 7px 8px -1px rgba(255, 255, 255, 0.75);
    -webkit-box-shadow: 0px 7px 8px -1px rgba(255, 255, 255, 0.75);
    -moz-box-shadow: 0px 7px 8px -1px rgba(255, 255, 255, 0.75);
    z-index: 99;
    user-select: none;
}

nav .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav .logo {
    width: 120px;
    position: relative;
}

nav .nav .logo a {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
}

nav .nav .log2 {
    width: 200px;
}

/* Dropdown Button */
.dropbtn {
    background-color: #000000;
    color: whitesmoke;
    padding: 8px;
    font-size: 16px;
    border: none;

    font-family: 'Roboto', sans-serif;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0e0b0b;
    min-width: 105px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;

}

/* Links inside the dropdown */
.dropdown-content a {
    color: whitesmoke;
    padding: 6px 0px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    font-family: 'Roboto', sans-serif;

}

.dropdown-content i {
    padding-right: 10px;

}

.dropbtn i {
    padding-right: 5px;
    color: whitesmoke;
}

/* Change color of dropdown links on hover */
.dropdown-content div:hover {
    background-color: rgb(36, 30, 30);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: rgb(36, 30, 30);

}

.banner {
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;

}

.banner .person1 {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 500px;
    z-index: 5;
}

.banner .person2 {
    position: absolute;
    right: 100px;
    bottom: 0;
    width: 300px;
    opacity: 0.3;
    animation-name: animate;
    animation-iteration-count: infinite;
    animation-duration: 8s;
    z-index: 3;
}

.banner .heading {
    width: 300px;
    margin-left: 100px;
    margin-top: -100px;
    z-index: 4;

}

@keyframes animate {
    0% {
        transform: translate(0px, 0px);
    }

    50% {
        transform: translate(10px, 10px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

.books {
    background: rgb(29, 29, 29);
    padding-bottom: 100px;
}

.books .main_heading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

.books .main_heading h1 {
    font-family: 'Noto Nastaliq Urdu', serif;
    color: rgb(221, 193, 32);
}

.books .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 100px 40px;
    grid-template-areas:
        ". .";
}

.book-container {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
}

@keyframes initAnimation {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(-30deg);
    }
}

.book_box {
    position: relative;
}

.book_box .book-name {
    position: absolute;
    font-size: 60px;
    font-family: 'Noto Nastaliq Urdu', serif;
    color: #fff;
    left: -70px;
    top: 30%;
    opacity: 0.4;
}

.book_box .book {
    width: 200px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-30deg);
    transition: 1s ease;
    animation: 1s ease 0s 1 initAnimation;
}

.book_box .book:hover {
    transform: rotateY(0deg);
}

.book_box .book> :first-child {
    position: absolute;
    top: 0;
    left: 0;

    width: 200px;
    height: 300px;
    transform: translateZ(25px);
    background-color: #0040b8;

    border-radius: 0 2px 2px 0;
    box-shadow: 5px 5px 20px #000;
}

.book_box .book::before {
    position: absolute;
    content: ' ';
    background-color: blue;
    left: 0;
    top: 3px;
    width: 48px;
    height: 294px;
    transform: translateX(172px) rotateY(90deg);
    background: linear-gradient(90deg,
            #fff 0%,
            #f9f9f9 5%,
            #fff 10%,
            #f9f9f9 15%,
            #fff 20%,
            #f9f9f9 25%,
            #fff 30%,
            #f9f9f9 35%,
            #fff 40%,
            #f9f9f9 45%,
            #fff 50%,
            #f9f9f9 55%,
            #fff 60%,
            #f9f9f9 65%,
            #fff 70%,
            #f9f9f9 75%,
            #fff 80%,
            #f9f9f9 85%,
            #fff 90%,
            #f9f9f9 95%,
            #fff 100%);
}

.book_box .book::after {
    background-color: #0040b8;
    box-shadow: -10px 0 50px 10px #000;
    position: absolute;
    top: 0;
    left: 0;
    content: ' ';
    width: 200px;
    height: 300px;
    transform: translateZ(-25px);
    border-radius: 0 2px 2px 0;

}

.book_box .book.n2::after {
    background-color: #35413a;

}

.book_box .book.n3::after {
    background-color: #646a74;

}

.book_box .book.n4::after {
    background-color: #b3a957;

}

.book_box .book.n5::after {
    background-color: #cacaa2;

}

.book_box .book.n6::after {
    background-color: #2f3541;

}

.book_box .book.n7::after {
    background-color: #b4b9c2;

}

.book_box .book.n8:after {
    background-color: #6b3939;

}

.books .searchBox {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;

}

.books .searchBox form {
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.books .searchBox form input {
    padding: 15px;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
    outline: none;
    border: none;
}

.books .searchBox form button {
    padding: 15px 25px;
    background: #f9d20a;

    border-radius: 20%;
    position: absolute;
    right: -5px;
    top: -3px;
    border: none;
    outline: 0;
    box-shadow: -9px 2px 45px -5px rgba(0, 0, 0, 0.68);
    -webkit-box-shadow: -9px 2px 45px -5px rgba(0, 0, 0, 0.68);
    -moz-box-shadow: -9px 2px 45px -5px rgba(0, 0, 0, 0.68);
    border: 1px solid #fa9f3a;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.books .searchBox form button:hover {
    transform: scale(1.07);
    background: #fa9f3a;

}

.books .searchBox form button:hover i {
    transform: rotate(-10deg);
    transform: scale(1.1);

}

.books .searchBox form button i {
    font-size: 20px;
    color: #fff;
    transition: all 0.2s ease-in-out;

}

/*------------------------------------ Search Result Container------ */
.search-result-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0px 20px;
    grid-template-areas:
        ". .";
}

.books-search-result {
    padding-top: 100px;
}

.books-search-result .max_width {
    padding: 0 0px;
}

.books-search-result p {
    font-size: 16px;
    color: #fff;
}

.books-search-result .box {
    padding: 10px;
    margin-top: 20px;
    border: 1px dotted #ddd;
}

.books-search-result .box h2 {
    color: #f9d20a;
    font: 25px;
    margin: 10px 0;
    font-weight: 600;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.books-search-result .box p {
    font-size: 12px;
    margin-bottom: 10px;
    font-family: 'Noto Nastaliq Urdu', serif;

}

.search-results-box {
    text-align: center;

}

/*------------------------------------ result_box_container ------ */
.result_box_container {
    border-radius: 5px;
    text-align: center;
    margin-top: 30px;
    display: flex;
}

.result_box_container .results img {
    width: 50px;
}

.result_box_container div .results {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
}

.result_box_container div .results p {
    margin-left: 15px;
}

.result_box_container div .results img {
    margin-right: 15px;
}

.result_box_container div .results h2 {
    margin-left: 30px;
    width: 300px;
    color: #f9d20a;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-weight: 500;
    font-size: 30px;
    user-select: none;
}

.result_box_container div .results a {
    margin-right: 30px;
    font-size: 30px;
    width: 300px;
    animation-name: animate;
    animation-iteration-count: infinite;
    animation-duration: 5s;
    font-family: 'Roboto', sans-serif;
    color: #fa9f3a;
    user-select: none;
}

.result_box_container div .results .icon i {

    margin-right: 20px;
    color: #f9d20a;
}

.arrow-5 {
    width: 50px;
    height: 30px;
    display: grid;
    overflow: hidden;
}

.arrow-5:before,
.arrow-5:after {
    content: "";
    grid-area: 2/1;
    background-color: #f9d20a;

    clip-path: polygon(0 10px, calc(100% - 15px) 10px, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, calc(100% - 15px) calc(100% - 10px), 0 calc(100% - 10px));
    animation: a5 1s infinite;
    transform: translate(calc(0% + var(--s, 0%)));
}

.arrow-5:after {
    --s: -100%;
}

@keyframes a5 {

    80%,
    100% {
        transform: translate(calc(100% + var(--s, 0%)))
    }
}

.result_box_container div li {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    user-select: none;
}

.result_box_container li p {
    font-size: 20px;
    color: #fff;
    font-family: 'Noto Nastaliq Urdu', serif;
    user-select: none;
}

input[type=button],
input[type=View],
input[type=reset] {
    background-color: #f9d20a;
    border: none;
    color: white;
    padding: 4px 8px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
}

/*------------------------------------ result_box_container end------ */
/*------------------------------------ responsive------ */
@media screen and (max-width: 885px) {
    .result_box_container div .results {
        display: flex;
        justify-content: center;
    }

    .result_box_container div .results p {
        margin-left: 0px;
    }

    .result_box_container div .results img {
        margin-right: 20px;
    }

    .result_box_container div li {
        padding: 0px;
    }

    .result_box_container div .results {

        margin-right: 80px;
    }


    .result_box_container div .results h2 {
        width: 0px;
        font-weight: 450;
        font-size: 18px;
    }

    .result_box_container div .results a {
        margin-right: 100px;
        font-size: 18px;
        width: 0px;
    }

    .result_box_container div li {
        padding: 2px 4px;
        margin: 10px 0;
    }


    .result_box_container li p {
        font-size: 18px;
    }

    .arrow-5 {
        width: 20px;
        height: 30px;
    }

    .search-results-box h1 {
        font-size: 18px;
    }
}

@media screen and (max-width: 500px) {
    .result_box_container div .results img {
        margin-right: 15px;
    }
}

.books-search-result .box span {
    font-size: 12px;
    color: #fa9f3a;
}

.books-search-result .box a {
    font-size: 14px;
    color: #fa9f3a;
    display: flex;
    flex-direction: column;
}

.search-results-box {
    padding: 20px 0;
}


.search-results-box .pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-top: 20px;
}

.search-results-box .pagination a {
    padding: 10px;
    background: #f9d20a;
}

.search-results-box .pagination i {
    font-size: 20px;
}

footer .max_width {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    user-select: none;
}

footer img {
    width: 200px;
}

footer div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 10px 10px;
    grid-template-areas:
        ". . . .";
}

footer div li {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    gap: 0 20px;
    border-radius: 5px;
    position: relative;
}

footer div li a {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

footer div li img {
    width: 50px;
}

footer div li p {
    font-size: 16px;
    color: #fff;
    font-family: 'Noto Nastaliq Urdu', serif;
}

.islam {
    color: #f9d20a;
}

/*------------------------------------ Responsive------ */
@media screen and (max-width: 885px) {

    .banner .person2 {
        right: 0px;
    }

    .banner .heading {
        width: 300px;
        margin-left: 200px;
        margin-top: -130px;

    }

    .book_box {
        margin-bottom: 30px;
    }

    .book_box .book-name {
        font-size: 30px;
        left: 35%;
        top: 100%;
        opacity: 0.4;
        margin-top: 20px;
    }

    footer .max_width {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px 0;
    }


}

@media screen and (max-width: 500px) {
    nav .nav .logo {
        width: 80px;
    }

    .banner {
        height: 400px;
    }

    .banner .person1 {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 240px;
    }

    .banner .person2 {
        width: 150px;
        opacity: 0.3;
    }

    .banner .heading {
        width: 200px;
        margin-left: 0px;
        margin-top: -100px;

    }

    .books .container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        gap: 100px 40px;
        grid-template-areas:
            ".";
    }

    .book_box {
        margin-bottom: 50px;
    }

    .book_box .book-name {
        font-size: 25px;
        left: 40%;
        margin-top: 10px;

    }

    .search-result-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        gap: 10px 0px;
        grid-template-areas:
            ".";
    }

    footer div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        gap: 10px 10px;
        grid-template-areas:
            ". .";
    }
}

.maintain {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(29, 29, 29);

}


.maintain h1 {
    color: #fff;
    font-size: 30px;
    user-select: none;
    max-width: 80%;
    text-align: center;
    line-height: 50px;
    margin-top: 100px;

}

.maintain h1 span {
    color: #0040b8;
}

.search-results-box h1 {
    text-align: left;
    color: #f9d20a;
    user-select: none;
}