*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    transition: 0.2s ease;
}

a{
    text-decoration: none;
    color: inherit;
}

input{
    outline: none;
    font-size: inherit;
}

button{
    border: none;
    background: transparent;
    cursor: pointer;
}

img{
    object-fit: contain;
}

/*  */

#page_loader{
    position: fixed;
    top: 0;
    width: 100%;
    height: 100dvh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    z-index: 20;
}

#page_loader p{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 0.5rem; */
}

#loader_pdf_img{
    width: 200px;
}

#page_loader p img{
    width: 150px;
}

nav{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: white;
    box-shadow: 0px 0px 3px 1px black;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav img{
    width: 5%;
}

h1{
    text-align: center;
    padding: 1rem 0.2rem;
    color: gray;
    font-size: 2.5rem;
}

#pdf_main{
    min-height: 70vh;
    margin: 2rem 0rem;
}

#reader_url{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#reader_url div{
    width: 30%;
    text-align: center;
}

#reader_url div img{
    width: 70%;
    display: flex;
    margin: 0 auto;
    border: 2px solid darkred;
    padding: 2px;
    border-radius: 5px;
}

#reader_url div img:hover{
    transform: scale(1.1);
    cursor: pointer;
}

#reader_url div p{
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    /* color: white; */
    margin: 1rem 4rem 0rem 4rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 550;
    cursor: pointer;
}

#pdf_btn_container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 6rem;
}

#pdf_btn{
    padding: 0.5rem 3rem;
    font-size: 1.5rem;
    border-radius: 10px;
    background-color: rgba(139, 0, 0, 0.8);
    color: white;
}

#pdf_btn_container img{
    width: 50px;
}

#pdf_btn:hover{
    background-color: rgba(139, 0, 0, 1); 
}

#pdf_footer{
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0.1rem;
    font-size: smaller;
    background-color: silver;
}

#pdf_footer img{
    width: 2%;
}

/*  */

@media (max-width: 1030px) {

    #pdf_main{
        min-height: 70vh;
        margin: 4rem 0rem;
    }

    #reader_url div{
        width: 40%;
        margin: 0rem 1rem;
    }

    #reader_url div img{
        width: 100%;
    }

    #reader_url div p{
        margin: 1rem 0rem 0rem 0rem;
        padding: 0.5rem 0.1rem;
    }

    #reader_url div img:hover{
        transform: scale(1);
    }
    
    footer{
        position: fixed;
        bottom: 0;
        width: 100%;
    }
}

@media (max-width: 650px) {
    nav img{
        width: 8%;
    }

    h1{
        font-size: 2rem;
    }

    #reader_url div p{
        margin: 1rem 0rem 0rem 0rem;
        padding: 0.3rem 0.1rem;
        font-size: 0.9rem;
    }

    #pdf_btn_container{
        margin-top: 5rem;
    }

    #pdf_btn{
        padding: 0.4rem 2rem;
        font-size: 1.1rem;
        border-radius: 5px;
    }
    
    #pdf_btn_container img{
        width: 40px;
    }

    #pdf_footer img{
        width: 3%;
    }
}

@media (max-width: 500px) {
    nav img{
        width: 10%;
    }

    #reader_url{
        gap: 1rem;
    }

    #reader_url div{
        margin: 0rem;
    }

    #reader_url div p{
        font-size: smaller;
    }
    
}

@media (max-width: 400px) {
    nav {
       font-size: smaller;
    }

    h1{
        font-size: 1.5rem;
        margin-bottom: -4rem;
    }

    #reader_url{
        flex-wrap: wrap;
    }

    #reader_url div{
        width: 60%;
        margin: 1rem 0rem;
    }

    #pdf_btn{
        font-size: 1rem;
    }
    
    #pdf_btn_container img{
        width: 35px;
    }

    #pdf_footer{
        font-size: 0.6rem;
        padding: 0.2rem;
    }
    
    #pdf_footer img{
        width: 4%;
    }
}


