@media only screen and (max-width: 1040px) {
    header {
        max-height: 100px;
        height: auto;
        width: 100%;
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        z-index: 100;
        background-color: var(--rose);
    }

    .nav-logo {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .nav-social {
        display: none;
    }

    .nav-bar {
        position: fixed;
        top: 0;
        display: none;
        height: 100%;
        color: var(--primary-font-color);
        flex-flow: column wrap;
        justify-content: flex-start;
        font-size: 14px;
        font-weight: 200;
        letter-spacing: 0.1rem;
        z-index: 100;
        background-color: var(--rose);
        text-align: left;
    }

    .nav-list {
        display: flex;
        flex-flow: column wrap;
        width: 100%;
        justify-content: space-evenly;
        align-items: baseline;
        padding: 0;
        height: auto;
    }

    .nav-list-element {
        text-align: left;
        align-self: flex-start;
        padding-left: 35px;
        height: auto;
        width: auto;
        font-size: 14px;
    }
    
    .nav-list-element span:hover , a:hover {
        cursor: pointer;
        color: var(--faded-font-color);
    }
    
    .nav-list-element-selectable {
        display: block;
    }
    
    .nav-selectable {
        transform: unset;
        position: unset;
        margin-top: 0;
        padding: 0;
        height: 0;
        width: auto;
    }
    
    .nav-selectable > li {
        text-align: left;
        width: 240px;
        font-size: 14px;
        padding: 32px 32px 0 0;
    }

    
    .nav-list-element-slidedown:hover  .nav-selectable {
        height: 160px;
        cursor: pointer;
    }

    .nav-list-element-slidedown:active .nav-selectable {
        height: 160px;
        cursor: pointer;
    }

    .nav-list-element-slidedown {
        position: unset;
    }

  

    .logo-container {
        grid-column: 1 / span 3;
        grid-row: 1 / span 1;
        justify-self: flex-start;
        max-width: 80px;
        max-height: 80px;
        padding-left: 15px;
        padding-bottom: 10px;
    }

    .mobile-icon {
        
        margin-right: 15px;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
    }

    .social-icon {
        max-width: 32px !important;
    }

    .nav-mobile {
        display: block;
        position: absolute;
        top: 0;
        right: 15px;
    }

    .mobile-icon img {
        margin-top: 25px;
        height: 100%;
        width: 100%;
        transition: 150ms ease-in-out;
    }
    
    .mobile-icon {
        max-width: 24px;
        height: auto;
        display: block;
        margin-left: 10px;
        margin-right: 10px;
    }

    .background-shade-filter {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        transition : 500ms ease-in-out, transform 500ms ease-in;
        height: 100vh;
        background-color: rgba(55, 55, 55, 0.6);
        z-index: 5;
    }

    .mobile-social-list {
        display: flex;
    }

    .navbar-menu-b {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        grid-column: 5 / span 1;
        grid-row: 1 / span 1;
        width: 100%;
        height: 100%;
    }
    .navbar-menu-b  div{
        max-width: 24px;
    }

    .navbar-menu-b img {
        height: 100%;
        width: 100%;
    }
}