@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
 
/* General Styles */
body, html {
    margin: 0 80px; /* Adjust margin for body and html */
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    background-color: #fff;
}
 
/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}
 
.logo {
    width: 50px;
    height: 40px;
    margin-left: 5px;
}
 
nav h1 {
    font-family: "Fira Sans", sans-serif;
    color: #2165c3;
    font-size: 30px;
    margin-left: 10px;
    display: flex;
    align-items: center;
}
 
#nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0 auto;
}
 
#nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    font-family: "Poppins",sans-serif;
    padding: 5px 10px;
    transition: color 0.3s;
}
 
#nav-links a:hover {
    color: #0b76c3;
}
 
.nav-button {
    display: flex;
    gap: 20px;
    margin-right: 10px;
}
 
.nav-signin {
    color: white;
    background-color: #2162bc;
    border-radius: 10px;
    padding: 10px 30px;
    text-decoration: none;
}
 
.nav-signin:hover {
    background-color: #327ac7;
}
 
.menu-toggle {
    display: none; /* Hidden by default, shown on smaller screens */
    font-size: 30px;
    cursor: pointer;
}
 
/* Responsive Styles */
@media (max-width: 1024px) {
    #nav-links {
        gap: 20px; /* Reduce gap between links on medium screens */
    }
}
 
@media (max-width: 768px) {
    body, html {
        margin: 0; /* Reset margin for smaller screens */
    }
 
    #nav-links {
        display: none; /* Hide the links initially */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Position below the navbar */
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        transition: transform 0.3s ease;
        transform: translateY(-100%); /* Hide initially */
    }
 
    #nav-links.active {
        display: flex;
        transform: translateY(0); /* Slide down when active */
    }
 
    .nav-button {
        justify-content: end;
        margin: 20px auto;
    }
 
    .nav-signin {
        display: block;
        width: 80%;
        text-align: center;
    }
 
    .menu-toggle {
        display: block; /* Show menu toggle on small screens */
    }
}
 
@media (max-width: 480px) {
    nav h1 {
        font-size: 24px; /* Smaller heading on small screens */
    }
 
    .logo {
        width: 40px;
        height: 30px; /* Adjust logo size */
    }
 
    #nav-links a {
        font-size: 16px; /* Smaller links */
    }
 
    .nav-signin {
        padding: 8px 20px; /* Smaller padding for the button */
    }
}
 
/* User Info Sliding Animation */
#user-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 60px; /* Adjust according to your layout */
    right: 10px;
    background-color: white;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transform: translateY(-20px);
}
 
#user-info.active {
    display: flex;
    transform: translateY(0);
}
 
/* User Icon Styles */
#user-icon {
    font-size: 30px;
    color: #2165c3;
    margin-left: 10px;
}
 
/* Horizontal Divider */
.h {
    border: #2162bc solid 1px;
    margin: 10px 0;
}
 
/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity for background */
    overflow: auto; /* Enable scroll if needed */
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3); /* Add shadow for better UI */
}
 
/* Specific Sizes for Modals */
#loginModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

 
#registerModal .modal-content {
    margin-top: 100px;
    width: 500px;
    height: 900px;
}
 
/* Close Button Styles */
.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
 
.close:hover,
.close:focus {
    color: black; /* Change color on hover/focus */
}
 
/* Form Styles */
.modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2162bc;
}
 
.modal-content label {
    display: block;
    margin-bottom: 10px;
    color: #333;
}
 
.modal-content input {
    width: 90%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
 
.modal-content button {
    width: 100%;
    padding: 10px;
    background-color: #2162bc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}
 
.modal-content button:hover {
    background-color: #327ac7; /* Change color on hover */
}
 
.modal-content a {
    color: #2162bc;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
}
 
.modal-content a:hover {
    text-decoration: underline; /* Underline on hover */
}
 
/* Adjusting Menu Toggle Visibility */
@media (max-width: 480px) {
    .menu-toggle {
        display: block; /* Show menu toggle on small screens */
    }
 
    /* Adjust modal size on small screens */
    #loginModal .modal-content,
    #registerModal .modal-content {
        width: 90%; /* Make modals responsive */
        height: auto; /* Let height adjust to content */
    }
}
 