@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {

--overlaycolor1: rgba(0, 51, 78, 0);
--overlaycolor2: rgba(2, 47, 71, 0.62);
}

/* Apply the font to the entire document */
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300; /* Thinner font weight */
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #fff;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease; /* Add smooth transition */
}

/* Flex container for menubar and logo */
.header-content {
    display: flex;
    align-items: center; /* Align items in the center vertically */
}
.logo-img {
  width: 25px;
  height: 25px;
  vertical-align: middle; /* keeps text and image aligned */
}

.book-img {
  width: 75%;
  vertical-align: middle; /* keeps text and image aligned */
}

.logo {
    margin-left: 20px;
    font-size: 18px; /* Adjust size as needed */
    font-weight: 700; /* Optional: bold text */
    color: rgb(0, 0, 0);
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Increased gap between navigation links */
    margin: 0;
    padding: 0; /* Remove default padding */
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 300; /* Thinner font weight
    color: #333; */
    position: relative; /* For positioning the underline */
    padding-bottom: 4px; /* Space for the underline */
    background-color: rgba(255, 255, 255, 0);
    font-size: 16px;
}

.nav-links a:hover, .btn:hover {
    border-bottom: 2px solid #000; /* Black underline on hover */
}

.nav-links a.active {
    font-weight: 400; /* Optionally, make the active link bolder */
    color: #000000; /* Optionally, change the text color for the active link */
    border-bottom: 2px solid #000; /* Black underline for the active link */
}

.nav-links li {
    margin: 0;
}

.loggedin-header .nav-links a{
    color: white;
}

.sign-button {
    background-color: #3A6EA5;
    color: #fff;
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 300; /* Thinner font weight */
    font-size: 16px;
    text-decoration: none; /* Ensures no underline or decoration */
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Adjusted for fixed header */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Ensure the video loop attribute is working */
    /* Do not add `pointer-events: none` here */
}

.hero-overlay {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensures the content is above both the video and overlay */
    background-color: rgba(33, 42, 48, 0.704);
    align-items: center;
}

.hero-content {
    width: 40%; /* Restricting width to 50% of the screen */
    position: relative;
    z-index: 3; /* Ensures the content is above both the video and overlay */
    text-align: center; /* Center the text inside */
    margin: 0 auto;
    /*margin-left: 25%;*/
    margin-top: 200px;
    /*background-color: rgba(0, 0, 0, 0.634)*/

}

.hero h1 {
    font-size: 64px; /* Large enough to be impactful but not overwhelming */
    font-family: 'Open Sans', sans-serif; /* Consistent with other text */
    font-weight: 600; /* Slightly bolder for prominence */
    line-height: 1.3; /* Slightly tighter line-height for a more cohesive look */
    letter-spacing: 1px; /* Subtle kerning adjustment for better readability */
    text-decoration: none; /* Ensures no underline or decoration */
    margin-bottom: 20px; /* Space below the heading */
    text-align: center; /* Centered for hero section */
}

.hero p {
    margin-bottom: 70px;
}


footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-weight: 300; /* Thinner font weight */
}


h3 {
    margin-top: 0px;
    margin-bottom: 0px;
    color: white;
}

.header-wrapper-index {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to left, var(--overlaycolor1), var(--overlaycolor1)),
    url('https://images.pexels.com/photos/6788186/pexels-photo-6788186.jpeg');

    background-size: cover; /* Ensure the image covers the entire div */
    background-position: center; 
    /*     background-color: #1d3557; */
    padding: 20px;
    padding-bottom: 20px;
    border-radius: 8px 8px 0px 0px;
}

.header-wrapper-index1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to left, var(--overlaycolor1), var(--overlaycolor1)),
    url('https://images.pexels.com/photos/1370298/pexels-photo-1370298.jpeg');

    background-size: cover; /* Ensure the image covers the entire div */
    background-position: center; 
    /*     background-color: #1d3557; */
    padding: 20px;
    padding-bottom: 350px;
    border-radius: 8px 8px 0px 0px;
}

.header-wrapper-index2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to left, var(--overlaycolor1), var(--overlaycolor1)),
    url('https://images.pexels.com/photos/4318455/pexels-photo-4318455.jpeg');

    background-size: cover; /* Ensure the image covers the entire div */
    background-position: center; 
    /*     background-color: #1d3557; */
    padding: 20px;
    padding-bottom: 350px;
    border-radius: 8px 8px 0px 0px;
}

.header-wrapper2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to left, var(--overlaycolor1), var(--overlaycolor1)),
    url('https://images.pexels.com/photos/6770610/pexels-photo-6770610.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');

    background-size: cover; /* Ensure the image covers the entire div */
    background-position: center; 
    /*     background-color: #1d3557; */
    padding: 20px;
    border-radius: 8px 8px 0px 0px;
}

.header-wrapper-home1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to left, var(--overlaycolor1), var(--overlaycolor1)),
    url('https://images.pexels.com/photos/756856/pexels-photo-756856.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');

    background-size: cover; /* Ensure the image covers the entire div */
    background-position: center; 
    /*     background-color: #1d3557; */
    padding: 20px;
    padding-bottom: 90px;
    border-radius: 8px 8px 0px 0px;
}

.header-wrapper-home2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: linear-gradient(to left, var(--overlaycolor1), var(--overlaycolor1)),
    url('https://images.unsplash.com/photo-1620365744528-88da1e08ac96?q=80&w=1935&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');

    background-size: cover; /* Ensure the image covers the entire div */
    /*     background-color: #1d3557; */
    padding: 20px;
    padding-bottom: 90px;
    border-radius: 8px 8px 0px 0px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; 
    margin-top: 20px;
}

/* Chart container inside chartandtable and charts2 */
.bgcontainer {
    width: calc(100%);
    margin-bottom: 30px;

    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
}

.bgcontainer3 {
    width: calc(100%);
    margin-bottom: 30px;

    background-color: #ffffff;

}
/* Tables Data tab */
.table-container {
    overflow-x: auto;
    overflow-y: auto;
    
    /*height:  flex-direction: row;
    height: 500px;  
        background-color: white; padding: 0px 20px;40%;*/
    padding:20px;
    
}

.table-container2 {
    overflow-x: auto;
    overflow-y: auto;
    background-color: white;
    background-color: #ffffff;
    border-radius: 8px;
    margin-top: 20px;
    height: 200px;

}

.data-table-index {
    margin-top: 0px;
    border-collapse: collapse;
    font-size: 16px;
    width: 100%;
    font-weight: 400;
}

.data-table-index thead {
    background-color: #ffffff;
}

.data-table-index thead th {
    padding: 10px 5px;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #f0eeee;
    font-size: 22px;
}

.data-table-index tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.data-table-index tbody td {
    padding: 7px 5px;
    text-align: left;
}

.data-table-index tbody th {
    padding: 7px 5px;
    text-align: left;
    width: 140px;
}

.bottom-container {
    bottom: 0;
    border-top: 1px solid #e9e9e9;
    background-color: rgb(1, 26, 45);
    box-shadow: 0px -1px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between; /* Distribute logo, social media, and links */
    align-items: center;
    padding: 0 40px; /* background-color: #1d3557;Add padding to the sides */
    height: 150px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
}

/* Social Media Icons */
.social-media {
    display: flex;
    gap: 20px;
}

.social-link {
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link i {
    transition: color 0.2s ease;
}

/* Bottom Links */
.bottom-links {
    display: flex;
    gap: 30px;
}

.bottom-item {
   /*color: #666;*/
   color: white;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.1s ease;
}

/* Hover Effects */
.bottom-item:hover, 
.social-link:hover {
    color: #3a6ea5;
}

.logobottom {
    margin-left: 20px;
    font-size: 18px; /* Adjust size as needed */
    font-weight: 400; /* Optional: bold text */
    color: rgb(255, 255, 255);
}


.linkbutton {
    font-size: 15px;
    margin-top: 10px;
    padding: 8px 25px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background-color: #3A6EA5;
    color: #fff;
    border-radius: 20px;
    font-weight: 200; /* Thinner font weight */
}

.linkbutton:hover, .sign-button:hover {
    text-decoration: none;
}

.linkbutton:active, .sign-button:active {
    background-color: #1c4570;
}

.linkbutton:visited {
    color: white;          /* Ensure the text remains white after the link has been visited */
}


.content-index {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
    padding: 20px;
    margin: 0 auto; /* Centers horizontally */
}

.indexcontent1 {
    width: 45%;
}


.indexcontent2 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 85px); /* Adjusts to take the full height of the viewport */
}


.indexcontainer {
    padding: 90px;
    padding-bottom: 90px;
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: space-between;
    background-size: cover;
    opacity: 0; /* Start hidden */
    transform: translateY(150px); /* Start slightly below the final position */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth transition */
}

.indexcontainer3 {
    padding: 90px;
    padding-bottom: 90px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* space between books */
    padding: 20px;
}

.indexcontent3 {
    flex: 0 0 calc(25% - 20px); /* always 25% width */
    max-width: calc(25% - 20px); /* prevent stretching */
    min-width: calc(200px); /* prevent stretching */
    box-sizing: border-box;
    background: #fff; /* optional */

    padding: 10px;
}


.indexcontainer.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Reset to normal position */
}

.hidden1 {
    display: none;
}

.visible1 {
    display: block;
}

.hidden2 {
    display: none;
}

.visible2 {
    display: block;
}

.indexbuttonholder {
    margin-top: 25px;
    margin-bottom: 10px;
}

.returnbutton {
    font-size: 15px;
    padding: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    border-radius: 20px;
    font-weight: 200; /* Thinner font weight */
}


.loginform {
    padding: 20px;
    display: flex;
    flex-direction: column; /*     border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 1px 2px 8px; */
    align-items: flex-start; /* 
    box-shadow: rgba(0, 0, 0, 0.16) 1px 2px 8px;
    Align items to the start of the column 
         margin-top: 100px;
              background-color: rgb(255, 255, 255);*/
     font-family: 'Open Sans', sans-serif; 
     font-weight: 300; 
     max-height: calc(90vh - 100px);

}

.loginform .headerform {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure the header takes full width */
    border-bottom: 1px solid rgba(34, 40, 49, 0.2);
}

.loginform h2 {
    /*margin-bottom: 15px;*/
    color: var(--textcolor2);
    margin: 0px;
    margin-bottom: 10px;
}

.loginform a {
    color: var(--textcolor1);
   /* margin-bottom: 1vh;*/
   text-decoration: none;
}

/*
.loginform a:hover {
   text-decoration: underline; 
}
*/
.loginform label {
    
    margin-top: 5px;
    color: var(--textcolor1);

    margin-bottom: 3px;
}


/* Add CSS for inputs */
.loginform input {
    margin-bottom: 5px; /* Add a larger margin between inputs */
    width:99%; /* Make inputs take full width */
    background-color: white;
    border-width: 1px;
    border-radius: 5px;
    border-color: #bababa;
    height: 35px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

.loginform textarea[name="message"] {
    height: 180px; 
    width: 99% ;
    resize: none;
    background-color: white;
    border-radius: 5px;
    border-width: 1px;
    border-color: #bababa;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.navpush {
    height: 90px;
}

/*Phone formats*/
@media (max-width: 768px) {

    .indexcontainer {
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        padding: 0px;
        padding-top: 30px;
        height: auto;
    }

    header {
        padding: 15px 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column; 
    }

    .logo {
        display: flex;
        width: 80%;
        margin: auto;
        padding: 10px;
        align-items: center; 
        justify-content: center; 
    }

    .bottom-container {
        flex-direction: column; 
        justify-content: space-between; 
        align-items: center; 
        padding: 20px; 
        padding-top: 30px;
    }
    
    .indexcontent1 {
        width: 80%;
    }
    .hero h1 {
        font-size: 40px; 
    }

    .hero-content {
        width: 80%
    }

    .content-index {
        width: 80%;
    }

    .loginform input {

        width:95%

    }
    .loginform textarea[name="message"] {
        width: 95%;

    }

    .indexcontent3 {
        width: 100%;
        min-width: calc(200px); 
        max-width: none;
        flex: none;
    }

    .book-img {
        width: 50%;
    }
}