/* * {
    box-sizing: border-box;
} */
@font-face {
    font-family: "Liberty";
    src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/907368/liberty.otf');
}

html { /*body*/
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; /* Default font */
}

header {
    background: linear-gradient(135deg, #0d0d2b, #171742); /* Dark background for the header */
    color: #00f7ff; /* Bright green for text */
    padding: 20px;
}

/* Left content (logo and text) */
.left-content {
    display: flex;
    align-items: center; /* Vertically center the logo and text */
    gap: 10px;
}

/* Right content (search bar, nav links, hamburger) */
.right-content {
    display: flex;
    align-items: center;
    gap: 20px; /* Add space between items */
    /* padding-right: 100px; */
    padding-left: 35px;
}

.navbar {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space out items */
    background-color: rgba(255, 255, 255, 0.1); /* Dark blue/gray */
    padding: 15px 20px;
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    vertical-align: middle;
}

.logo a {
    color: #ecf0f1; /* Light gray */
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo img {
    width: 50px; /* Adjust the size as necessary */
    height: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align with text */
}

.text {
    display: flex; /* Flexbox for letters */
    font-family: 'Liberty', sans-serif; /* Unique font for heading */
    font-size: 2rem; /* Adjust heading size */
    letter-spacing: -0.05em; /* Slightly reduce spacing */
    color: #00f7ff; /* Text color for letters */
    position: relative; /* Position relative for pseudo-elements */
    animation: neonGlow 1.5s infinite alternate; /* Added glow animation */
}

.nav-links {
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
    gap: 10 px;
    display: flex; /* Display items in a row */
}

.nav-links li {
    position: relative; /* Relative positioning for dropdowns */
    margin-left: 0 20px; /* Space between links */
    display: inline;
}

.nav-links a {
    color: #00f7ff; /* Matching green color for links */
    text-decoration: none; /* No underline */
    margin-left: 15px; /* Space between links */
    transition: color 0.3s ease, transform 0.2s ease; /* Smooth transition for hover effect */
}

.nav-links a:hover {
    color: #ffcc00; /* Yellow color on hover for contrast */
    text-shadow: 0 0 5px rgba(255, 204, 0, 1), 0 0 10px rgba(255, 0, 255, 1); /* Fun glow effect on hover */
    transform: scale(1.1); /* Scale up effect on hover */
}

/* Dropdown styles */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute; /* Position dropdowns */
    background-color: #2d3e50; /* Match background */
    min-width: 160px; /* Minimum width */
    z-index: 1; /* On top of other elements */
}

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

.dropdown-content a {
    color: #00f7ff; /* Color for dropdown links */
    padding: 12px 16px; /* Padding for dropdown items */
    text-decoration: none; /* No underline */
    display: block; /* Block display for full-width clickable area */
}

.dropdown-content a:hover {
    background-color: #3a4a60; /* Darker background on hover */
}

/* Search bar styles */
.search-bar {
    margin-left: 20px; /* Space to the left */
    padding: 10px; /* Padding for input */
    border: 2px solid #00f7ff; /* Border color */
    border-radius: 5px; /* Rounded corners */
    background-color: #2d3e50; /* Input background */
    color: #fff; /* Input text color */
}

.search-bar:focus {
    box-shadow: 0 0 10px #4285f4;
    outline: none;
}


.search-bar::placeholder {
    color: #00f7ff; /* Placeholder text color */
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001; /* Ensure it's on top of other elements */   
}

.hamburger .bar {
    width: 20px; /* Reduced width */
    height: 3px; /* Reduced height */
    background-color: #ecf0f1; /* Color of the bars */
    margin: 2px 0; /* Adjusted margin */
    border-radius: 2px; /* Rounded corners for bars */
    transition: all 0.1s ease; /* Smooth transition */
}


/* Hamburger Menu Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

    /* Dropdown menu styling */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #444;
        min-width: 160px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

    .dropdown-content a {
        color: white;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    .dropdown-content a:hover {
        background-color: #555;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

@keyframes puff {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.8); /* Larger scale */
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

@keyframes neonGlow {
    0% {
        text-shadow: 0 0 5px #0400ff, 0 0 10px #0400ff, 0 0 20px #0400ff, 0 0 30px #0400ff;
    }
    100% {
        text-shadow: 0 0 10px #00c3ff, 0 0 20px #0400ff, 0 0 30px #0400ff, 0 0 40px #0400ff;
    }
}

/* Media Query for Small Screens */
@media (max-width: 950px) {
    .search-bar {
        display: none; /* Hide search bar on small screens */
    }
}


@media (max-width: 843px) {
    .search-bar {
        display: none; /* Hide search bar on small screens */
    }
    .right-content {
        padding-right: 0px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #34495e;
        position: absolute;
        top: 60px; /* Adjust this if needed */
        left: 0;
        width: 100%;
        padding: 20px 0;
        z-index: 999; /* Ensure links are below the hamburger */
    }
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }
}

/* Responsive styles */
@media (max-width: 512px) {
    .search-bar {
        display: none; /* Hide search bar on small screens */
    }
    .text {
        display: none;
    }
    
    .nav-links {
        display: none; /* Hide links by default on mobile */
        flex-direction: column; /* Stack links vertically */
        position: absolute; /* Position dropdown */
        background-color: #2d3e50; /* Match background */
        top: 70px; /* Position below header */
        right: 0; /* Align right */
        width: 100%; /* Full width */
        z-index: 1; /* On top */
    }

    .nav-links.active {
        display: flex; /* Show links when active */
    }

    .mobile-menu.active {
        display: flex; /* Show mobile menu when active */
    }

    .navbar.active {
        background-color: #2d3e50; /* Maintain background color */
    }

    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }
    
}

/* Responsive Transition */
.nav-links,
.hamburger {
    transition: all 0.3s ease;
}


.login-status {
    padding: 15px;
    margin-top: 0px;
    border-radius: 5px;
    text-align: center;
    min-width: 100px;
}

.login-status:not(:empty) {
    display: block; /* Ensure the element is block when not empty */
}

.login-status.hidden {
    display: none; /* Hide element when it has the 'hidden' class */
}

.login-status.logged-in {
    background: #e0f7fa; /* Light blue background */
    color: #00695c; /* Dark green text */
    border: 1px solid #4db6ac; /* Teal border */
}

.login-status.logged-out {
    background: #ffebee; /* Light red background */
    color: #c62828; /* Dark red text */
    border: 1px solid #ef5350; /* Red border */
}

.login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.50);
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

#login-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: blue;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}
