﻿/* Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Effra', sans-serif;
}

/* Navbar Container */
.navbar {
    display: flex;
    justify-content: space-between;
    background-color: black;
    padding: 10px 20px;
}


/* Navigation Links */
.nav-links ul {
    list-style-type: none;
    display: flex;
    vertical-align: central;
    margin: auto;
    padding-right:100px;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    display: block;
    transition-duration: 0.4s;
    font-weight:600;
}
    .nav-links a.active {
        color: #F9A31A; /* Orange background for active link */
    }

    .nav-links a:hover {
        color: #F9A31A;
    }

/* Dropdown Styles */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    min-width: auto;
    top: 100%;
    left: 0;
    z-index: 1;
}

.dropdown-content a {
    padding: 10px;
    color: white;
    transition-duration: 0.4s;
}

    .dropdown-content a:hover {
        color: #F9A31A;
    }

/* Hamburger Menu Styles for Smaller Screens */
.hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#navLinks {
    display: flex;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Spinner animation */
.spinner {
    border: 8px solid #f3f3f3; /* Light grey background */
    border-top: 8px solid #F9A31A; /*  for the spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite; /* Infinite spinning animation */
}

/* Keyframe for spinning effect */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Media Query for Smaller Screens */
@media screen and (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 30px;
        z-index: 10000; /* Make sure the hamburger is above everything else */
    }

    .nav-links {
        position: absolute;
        top: 50px; /* Adjust to match your navbar height */
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 0;
        margin: 0;
        list-style: none;
        display: none;
        z-index: 9999; /* Ensure it's on top of the content */
    }

        .nav-links.active {
            display: block; /* Show the menu */
        }

    .navbar-nav a {
        padding: 10px 20px;
        color: white;
    }

    #navLinks {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: black;
        padding: 20px;
    }

        #navLinks.active {
            display: flex;
        }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: left;
    }

    .nav-links li {
        text-align: left;
        margin: 10px 0;
    }
}
