@media (min-width: 600px) {

    #navbar {
        background-color: rgba(0, 0, 0, 0);
        height: 100px;
        width: 100vw;
        display: flex;
        justify-content: center;
        position: fixed;
        top: 0;
        z-index: 500;
        margin-top: 0;
        background-position-y: -65px;
        transition: background-color .3s ease-in-out;
    }

    #navbar.with-bg {
        background-position-y: 0;
        background-color: rgba(0, 0, 0, 0.6);
    }

    #navbar.with-bg .middle-section {
        transform: scale(1);
        opacity: 1;
    }

    .middle-section {
        height: 100%;
        width: 750px;
        display: flex;
        justify-content: space-between;
        transform: scale(0.6) translateY(-5vh);
        transition: transform .25s ease-in-out, opacity .2s ease;
        opacity: 0.6;
    }

    .middle-section a {
        font-family: 'Ditty', sans-serif;
        font-weight: bold;
        width: 170px;
        text-align: center;
        text-decoration: none;
        color: white;
        font-size: 50px;
        margin: auto;
        transition: font-size .15s ease-in-out;
    }

    .middle-section a:hover {
        font-size: 60px;
        text-decoration: underline;
    }

    .navbar-button {
        display: none;
    }

}

@media (max-width: 600px) {

    #navbar {
        background-color: rgba(0, 0, 0, 0.6);
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
        width: 35vw;
        height: 100%;
        display: flex;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0vw;
        z-index: 1000;
        transform: translateX(0vw);
        transition: transform .2s ease-in-out;
    }

    #navbar.is-hidden {
        transform: translateX(35vw);
    }

    .middle-section {
        height: 100%;
        width: 600px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .middle-section a {
        font-family: 'Ditty', sans-serif;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        color: white;
        font-size: 3.5vh;
        margin: auto;
    }

    .navbar-button {
        background: none;
        border: none;
        width: 35px;
        height: 25px;
        position: fixed;
        top: 2%;
        right: 3%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1000;
    }

    .navbar-button-line {
        width: 100%;
        height: 20%;
        background-color: white;
        opacity: 0.6;
        z-index: 10000;
    }

    #navbar .navbar-button-line-1 {
        transform: translateY(-50px);
    }

    .navbar-button div {
        transition: transform .2s ease-in-out, opacity .2s ease-in-out;
    }
}