*{
    margin: 0;
    padding: 0;
}

body{
    background-color: #0f0f0f;
    color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.menu-toggle {
    display: none;
}

.navbar{
    border: rgba(0, 0, 0, 1) 0.5px solid;
    border-right: none;
    border-left: none;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    height: 60px;
    width: 60%;
    background-color: #1a1a1a;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    .navbar ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 0;
        margin: 0;
    }

    .navbar li {
        list-style: none;
        margin: 0 10px;
    }

    .navbar a {
        font-size: 18px;
        color: #f0f0f0;
        text-decoration: none;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        height: 100%;
        text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 2px;
    }

@media (max-width: 1440px) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        background-color: #1a1a1a;
        color: #f0f0f0;
        border: none;
        padding: 10px 15px;
        font-size: 18px;
        cursor: pointer;
        border-radius: 5px;
        z-index: 999;
        width: 10.2%;
    }

    .menu-toggle img{
        width: 100%;
        height: 100%;
    }
    .navbar {
        position: fixed;
        top: 0;
        right: -450px; /* hidden by default */
        width: 450px;
        height: 100%;
        margin-top: 0;
        background-color: #1a1a1a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 60px;
        transition: right 0.3s ease;
        border-radius: 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .navbar ul {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* aligns li to left */
        justify-content: flex-start; /* aligns from top */
        padding: 0px;
        margin-top: 40px;
        height: auto;
        width: 100%;
    }
    .navbar li {
        width: 97%;
        margin-top: 100px;
    }

    .navbar a {
        justify-content: center;
        padding: 30px;
        height: 60px;
        width: 100%;
        font-size: 2.4rem;
        font-weight: 500;
        background-color: #1b1b1b;
    }

    .navbar.active {
        right: 0; /* slide in */
    }
}