﻿/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Adds a blur effect */
    display: flex;
    align-items: center; /* Center all elements vertically */
    justify-content: center;
    padding: 15px 20px; /* Adjusted padding */
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Navbar Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ensures vertical alignment with the logo */
    width: 90%;
    max-width: 1200px;
}

/* Navbar Logo */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Mouldy Cheese', 'Comic Sans MS', cursive, sans-serif; /* Ensure logo uses the playful font */
    line-height: 1; /* Avoid extra spacing */
    display: flex;
    align-items: center; /* Align the logo vertically */
    margin-right: 120px;
    margin-left: -200px;
}

/* Navbar Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Increase gap for better spacing */
    margin: 0;
    padding: 0;
    align-items: center; /* Ensures vertical alignment with the logo */
}

    /* Individual Links */
    .nav-links a {
        text-decoration: none;
        color: #333;
        font-size: 1.2rem;
        padding: 5px 10px;
        font-family: 'Mouldy Cheese', 'Comic Sans MS', cursive, sans-serif;
        line-height: 1.2; /* Adjust for irregular font shapes */
        display: flex;
        align-items: center; /* Centers text vertically */
        height: 100%; /* Ensures full clickable height */
        text-align: center; /* Center-aligns text for multi-line items */
        white-space: normal; /* Allows wrapping for long text */
    }

        .nav-links a:hover {
            color: #d63031; /* Hover color */
        }

/* Mobile Hamburger Menu */
.hamburger-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile-Friendly Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

        .nav-links.show {
            display: flex;
        }

    .hamburger-menu {
        display: block;
    }
}
