*{
    margin: 0;
    padding: 0;
    font-family: Montserrat;
}

.header {

    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.4), rgba(4, 9, 30, 0.4)),url(/images/bookshelf.jpeg);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    font-family: Montserrat;

}
nav img {
    width: 150px;
}

.nav-links{
    flex: 1;
    text-align: right;
}

.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;

}
.nav-links ul li::after{
    content: '';
    width: 100%;
    height: 2px;
    background: #03adfc;
    display: block;
    margin: auto;
    transition: 1s;
}
/* For hover underline effect: not working */
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.text-box h1 {
    font-size: 62px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}
.text-box h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}
.text-box p {
    margin: 10px 0 40 px;
    font-size: 14px;
    color: #000;
}
.button {
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    text-decoration:none;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px; 
    padding: 12px 34px;
    font-size: 15px;
    background: transparent;
    position: relative;

}
.button:hover{
    border: 1px solid #03adfc;
    background: #03adfc;
    transition:  1s;
}

/*------------------Hide Menu Icons on Web------------------ */
nav .fa{
    display: none;
}

/*------------------Mobile Friendly (Responsive) Homepage, including menu------------------*/
@media(max-width: 700px){
    .text-box h1{
        font-size: 20px
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links {
        position: fixed;
        background: #03adfc;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav.fa{
        display: block;
        color: #000;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul {
        padding: 30px;

    }
} 

/*------------------Books------------------*/

.Books{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;

}
h1 {
    font: 36px;
    font-weight: 600;
    font-family: Montserrat;
}
p{
    color: #000;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;

}
.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col {
    flex-basis: 31%;
    background: #9bd0e8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    font-family: Montserrat;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}

/*---------About Us----------*/

.sub-header{ 
    min-height: 85vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.3), rgba(4, 9, 30, 0.3)), url(/images/ourbooks.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
.contactus-header{
    min-height: 70vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.35), rgba(4, 9, 30, 0.35)), url(/images/contactuspic.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
.sub-header h1 {
    margin-top: 100px;
}

.about-col{
    width: 60%;
    text-align: center;
    width: 80%;
    padding: 80px 80px 50px 80px;
    margin: 0 auto;
}

.about-col p {
    padding: 15px 0 15px;
    margin: 0;
}

/*------------------ Contact Us Page ------------------*/

.contact-us{
    width: 80%;
    margin: auto;
}

.hero {
    width: 100%;
    height: 100vh;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
form{
    width: 90%;
    max-width: 600px;
}
.input-group {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}
input, textarea{
    width: 100%;
    padding:10px;
    outline: 0;
    border: 1px solid #000;
    color: #000;
    background: transparent;
    font-size: 15px;
}
label{
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    color: #000;
    cursor: text;
    transition: 0.2s;
}
button{
    padding: 10px 0;
    color: #000;
    outline: none;
    background: transparent;
    border: 1px solid #000;
    width: 100%;
    cursor: pointer;
}
input:focus~label,
input:valid~label,
textarea:focus~label,
textarea:valid~label {
    top: -35px;
    font-size: 14px;
}
.row{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.row .input-group{
    flex-basis: 60%;
}
.success-message {
    clear: both; /* Clears any floats */
    display: block; /* Ensures it takes up full width */
    margin-top: 20px; /* Adds space between the form and the message */
    color: green; /* Success message color */
    font-size: 18px; /* Font size for the message */
}

/*------------------ Our Books Page ------------------*/

.books {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #000;
    font-size: 14px;
    font-weight: 300px;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.books-col{
    flex-basis: 31%;
    background: #9bd0e8;
    border-radius: 20px;
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: 2%;
    padding: 20px 12px;
    box-sizing: border-box;
}
h3{
   text-align: center;
   font-weight: 600;
   margin: 10px 0;
}
h5{
    text-align: center;
    font-weight: 300;
}
p {
    text-align: center;
}
.books-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

.aboutus-header {
    min-height: 70vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.3), rgba(4, 9, 30, 0.3)), url(/images/library.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}

/*------------------ Footer ------------------*/
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}
.footer h4 {
    margin-bottom: 0;
    margin-top: 20px;
    font-weight: 700;
    color: #9bd0e8;
}
.footer p{
    margin-bottom: 0;
    margin-top: 5px;
    font-weight: 600;
    color: #9bd0e8;
}
.icons .fa{
    color:#9bd0e8;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}



/*-----------Downloads Page---------*/
.download-header{
    min-height: 70vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.4), rgba(4, 9, 30, 0.4)), url(/images/downloads.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
.file-list{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px
}
.container {
    max-width: 300px; /* Limit the width of the upload form */
    margin: 0 auto; /* Center the form horizontally */
    padding: 10px;
    border: 1px solid #ccc; /* Add a light border */
    border-radius: 5px; /* Round the corners */
    background-color: #f9f9f9; /* Light background color */
}

.container h1 {
    font-size: 1.2em; /* Make the header smaller */
    margin-bottom: 10px;
    text-align: center; /* Center the header text */
}

.container form {
    display: flex;
    flex-direction: column; 
    align-items: center; 
}

.container input[type="file"] {
    font-size: 0.8em;
    padding: 5px;
    margin-bottom: 10px; 
}

.container input[type="submit"] {
    font-size: 0.8em; 
    padding: 5px 10px;
    color: black;
    border: none;
    border-radius: 3px; 
    cursor: pointer;
}

.container input[type="submit"]:hover {
   /* background-color: #45a049; /* Darker green on hover */
}

.delete-btn {
    font-size: 0.7em;
    color: red;
    text-decoration: none;
    padding: 1px 3px;
    border-radius: 3px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    display: inline-block; 
    width: auto; 
    text-align: center;
    white-space: nowrap;
    overflow: hidden; 
    max-width: fit-content; 
    margin: 0; 

}


        .delete-btn:hover {
            background-color: #e6e6e6; /* Slightly darker on hover */
            border-color: #b3b3b3; /* Darker border on hover */
        }
        
        



body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

h1,
h2 {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

form input[type="file"] {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

form input[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    /* background-color: #28a745; */
    color: white;
    cursor: pointer;
}

form input[type="submit"]:hover {
   /*  background-color: #218838; */
}

.file-list {
    margin-top: 20px;
}

.file-list a {
    display: block;
    padding: 10px;
    background-color: #f8f9fa;
    margin-bottom: 5px;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
}

.file-list a:hover {
    background-color: #e2e6ea;
}

/****** ADMIN SUB BUTTON *******/ 

.admin-container {
    display: flex;
    justify-content: flex-end; 
    align-items: center; 
    flex-direction: column;
    height: 100vh; 
    text-align: center;/* Add some padding from the bottom */
}

.admin-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-container input[type="password"],
.admin-container input[type="submit"] {
    margin: 10px 0;
    padding: 5px;
    width: 100%; 
    max-width: 300px; 
    text-align: center; 
    box-sizing: border-box; 
}

.admin-container input[type="submit"] {
    cursor: pointer;
    color: black;
    border: none;
    border-radius: 5px;
}





