/* navbar.css */

.flex-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: auto;
    /* max-width: 15%; */
    flex-direction: column;
    background-color: #f4f4f4;
    flex: 15%;
    display: flex;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.nav-toggle {
    display: none;
    padding: 1em;
    cursor: pointer;
}

.navbar ol {
    list-style-type: none;
    font-size: large;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    text-align: center;
    transition: 0.3s ease;
}

.navbar li:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.navbar a {
    text-decoration: none;
    color: black;
    padding: 2em;
    display: block;
    transition: 0.3s ease;
}

.navbar a:visited {
    color: black;
}

.navbar li:hover {
    background-color: #68ca18;
    transition: 0.3s ease;
}

.navbar a:hover {
    transform: scale(1.1);
    transition: 0.3s ease;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
    .navbar {
        max-width: 35%;
        padding-top: 0;
        min-height: 100%;
    }

    .nav-toggle {
        display: block;
        padding: 1em;
    }

    .navbar ol {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #f4f4f4;
        font-size: 14px;
    }

    .navbar ol li {
        width: 100%;
    }

    .navbar.open ol {
        display: flex;
    }
}

@media screen and (min-width: 769px) {
    .navbar {
        width: 15%;
        height: 100%;
        position: fixed;
    }

    .navbar ol {
        display: block;
    }
}