
#def-header #mobilemenu img.purplelogo {
    display: none;
}

#def-header.secondary #mobilemenu img.whitelogo {
    display: none;
}

#def-header.secondary #mobilemenu img.purplelogo {
    display: inline-block;
}


#mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1000;
    background: rgba(19, 22, 38, 0.98);
    opacity: 0;
}

#mobile-backdrop.open {
    z-index: 100000;
    opacity: 1;
    transition: 0.2s;
}

#mobile {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1000;
    text-align: center;
    height: 100%;
    overflow-y: auto;
    width: 100%;
    overflow-x: hidden;
    transition: 0.2s;
    opacity: 0;
}

#mobile.open {
    z-index: 100001;
    opacity: 1;
    transition: 0.2s;
}

#mobile ul {
    padding: 0;
    margin: 0;
}

#mobile ul li {
    display: block;
}

#mobile ul li a {
    font-size: 28px;
}




#mobile #close {
    background: url(../../assets/images/close.png) no-repeat;
    width: 30px;
    height: 30px;
    background-size: cover;
    display: inline-block;
    position: absolute;
    top: 45px;
    right: 7%;
    border: none;
    z-index: 1000;
}

#mobile #close {
    background: url(../../assets/images/mobile-close.png) no-repeat;
    width: 72px;
    height: 72px;
    background-size: cover;
    display: inline-block;
    border: none;
    z-index: 1000;
}

#mobilemenu {
    all: unset;
    cursor: pointer;
}


#mobile-cards-holder {
    position: fixed;
    top: 50%;
    margin-top: -211px;
    height: 422px;
    overflow-x: scroll;
    overflow-y: hidden;
}

#mobile-cards-holder > #cards {
    width: fit-content;
    margin-left: 4rem;
}

#mobile-howitworks #close-howitworks {
    background: url(../../assets/images/mobile-close-white.png) no-repeat;
    width: 72px;
    height: 72px;
    background-size: cover;
    display: inline-block;
    border: none;
    z-index: 222222;
    position: absolute;
    right: 5px;
    top: 45px;
}

#mobile-howitworks {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: -222222;
    opacity: 0;
    top: 0;
    transition: 0.2s;
}

#mobile-howitworks.open {
    opacity: 1;
    z-index: 222222;
    transition: 0.2s;
}

#mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1000;
    background: rgba(116, 67, 237, 0.96);
    opacity: 0;
    transition: 0.3s;
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    #mobile-backdrop {
        background-color: rgba(116, 67, 237, 0.76);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
}

#mobile-backdrop.open {
    z-index: 100000;
    opacity: 1;
    transition: 0.3s;
}

#mobile {
    position: absolute;
    top: -3px;
    z-index: -1000;
    overflow-y: auto;
    width: 100%;
    overflow-x: hidden;
    transition: 0.3s;
    opacity: 0;

    /*position: absolute;*/
    /*top: 172px;*/
    /*left: 0;*/
    /*right: 0;*/
    /*z-index: -1000;*/
    /*overflow-y: auto;*/
    /*width: 90%;*/
    /*overflow-x: hidden;*/
    /*transition: 0.2s;*/
    /*opacity: 0;*/
    /*margin: auto;*/
}

#mobile.open {
    z-index: 100001;
    opacity: 1;
    transition: 0.3s;
    background-color: white;
    padding-top: 10px;
}

#mobile ul {
    padding: 0;
    margin: 0;
}

#mobile ul li {
    display: block;
    margin-bottom: 2rem;
}

#mobile ul li a {
    font-size: 14px;
}

#mobile .container > .row:first-child {
    height: 72px;
    margin-bottom: 1rem;
}

#mobile .mobile-menu-links {
    display: flex;
    align-items: center;
    align-items: flex-start;
    justify-content: space-between;
    flex-grow: 1;
    margin-right: 2rem;
}


@media (max-width: 576px) {
    #mobile ul li a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .mobile-hero {
        text-align: center;
        position: relative;
        top: -30px;
    }

    .mobile-hero img {
        max-width: 100%;
        border-radius: 5px;
    }

    .text-at-hero {
        padding-right: 0;
    }
}



@media screen and (max-width: 671px) {
    #mobile .mobile-menu-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-grow: initial;
        margin: unset;
    }

}

