@media screen and (max-width: 715px) {
    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        background-color: var(--background);
        width: 225px;
        height: 100vh;     
        margin: 0;   
        z-index: 99;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
        transform: translateX(300px);
    }
    
    nav ul li {
        display: block;
        padding: 14px 0px;
        text-decoration: none;
        width: 225px;
        color: var(--hard-emphasis);
    }

    nav ul li a {
        color: var(--hard-emphasis);
        text-decoration: none;
    }

    .hamburger-open {
        width: 58px;
        height: 58px;
        float: right;
        background-image: var(--hamburger);
        background-size: 48px 48px;
        background-position: center;
        background-repeat: no-repeat;
        border: 0;
        background-color: transparent;  
        cursor: pointer;      
    }

    .hamburger-close {
        float: inline-end;
        width: 225px;
        padding-bottom: 50px;
    }

    .hamburger-close img {
        float: right;
        width: 48px;
        height: 48px; 
        margin-top: 15px;
        margin-right: 35px;
        cursor: pointer;
    }
} 

@media not screen and (max-width: 715px) {
    .hamburger-close {
        display: none;
    }

    nav button {
        display: none;
    }

    nav ul {
        float: right;
        margin: 0px;
        line-height: 58px;
        transform: translateX(0);
    }

    nav ul li {
        display: inline;
        margin-right: 15px;
    }

    nav ul li:last-child {
        margin-right: 0;
    }

    nav ul li a {
        color: var(--hard-emphasis);
        text-decoration: none;
    }
}

nav {
    height: 58px;
    font-size: 16px;
    margin: 0 5px;
}

nav h1 {
    float: left;
    margin: 0;
    line-height: 58px;
}

nav h1 a {
    text-decoration: none;
    color: var(--text);
}

@keyframes appearing {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}