button.menu-toggle-button {
    display: none;
}
  
nav {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    background-color: var(--color1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    z-index: 1000;
}
nav img {
    height: 100%;
    width: auto;
    max-height: 2rem;
    margin-right: 1rem;
}
nav ul {
    display: flex;
    list-style: none;
}
nav ul li a {
    color: var(--color2);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    transition: background-color 0.3s;
}
nav ul li a:hover {
    background-color: var(--color3);
}
  
@media (width < 600px) {
    button.menu-toggle-button {
        display: block;
        position: fixed;
        top: 2rem;
        right: 2rem;
        z-index: 2000;
    }
    button.menu-toggle-button:hover {
        background-color: var(--color1);
        scale: 1;
    }
    nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 8rem 2rem 2rem 2rem;
        background-color: rgba(0, 0, 0, 0.5);

        flex-direction: column;
        justify-content: flex-start;
    }
    nav.hidden {
        display: none;
    }
    nav ul {
        margin-top: 4rem;
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        width: 100%;
        background-color: var(--color150);
        border-bottom: var(--color2) solid 1px;
    }
    nav ul li a {
        display: block;
        color: var(--color2);
        text-decoration: none;
        font-size: 1.1rem;
        padding: 1rem;
        transition: background-color 0.3s;
    }
    nav ul li a:hover {
        background-color: #555;
    }
}
