@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Saira:wght@100..900&display=swap');



body {
    margin: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #FFF;
    color: #2D2147;
    * {
        box-sizing: border-box;
        font-family: 'Inter', sans-serif;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}

body.menu-open {
    overflow-y: hidden;
}

.nav-bump {
    display: block;
    width: 100%;
    height: 80px;
    @media screen and (max-width: 1300px) {
        height: 72px;
    }
}


nav.nav-bar.nav-bar-desktop {
    position: fixed;
    height: 80px;
    width: 100%;
    top: 0;
    display: flex;
    background: #FFFFFF;
    z-index: 5;
    @media screen and (max-width: 1300px) {
        display: none;
    }
    .left,.right {
        display: flex;
        width: 50%;
        z-index: 5;
        background: white;
        border-bottom: 1px solid #E2DFE5;
        a {
            display: flex;
            height:  80px;
            width: auto;
            text-align: center;
            align-items: center;
        }
        button {
            display: flex;
            height: 80px;
            align-items: center;
            img {
                margin-left: 16px;
                transform: rotateX(180deg);
                transition: .4s transform;
            }
        }
        button:hover {
            cursor: pointer;
        }
    }
    .right {
        justify-content: end;
        a {
            font-size: 16px;
            padding: 0 .75rem;
            margin-right: 1rem;
            font-weight: 600;
            color: #2D2147;
            text-decoration: none;
        }
        #navAuthBlock {
            display: flex;
            a {
                font-weight: 400;
            }
            a:nth-of-type(1) {
                margin-right: 0;
            }
            a:nth-of-type(2) {
                margin-right: 24px;
                span {
                    background: #2D2147;
                    color: white;
                    font-weight: 400;
                    padding: 12px 20px;
                    border-radius: 4px;
                }
            }
            a.portal-link {
                margin-right: 24px;
                font-weight: 600;
                img {
                    margin-right: 12px;
                    height: 16px;
                    width: 16px;
                }
            }
            .login {
                margin-left: 1rem;
            }
        }
    }
    .left {
        a,button {
            margin-left: 36px;
        }
        button {
            margin-left: 40px;
            font-size: 16px;
            font-weight: 600;
            padding: 1em;
            color: #2D2147;
            background: transparent;
            border: none;
            border-bottom: 2px solid #2D2147;
        }
    }
    .services-bg {
        position: fixed;
        background: rgba(0,0,0,.15);
        height: 100%;
        top: 80px;
        width: 100%;
        backdrop-filter: saturate(200%) blur(12px);
        z-index: 2;
        transform: translateY(-200%);
        opacity: 0;
        transition: .4s opacity;
    }
    .services-panel {
        z-index: 3;
        position: fixed;
        top: 80px;
        background: white;
        width: 100%;
        transform: translateY(-200%);
        transition: .4s transform;
        .services-container {
            width: 100%;
            display: flex;
            max-width: 1700px;
            margin: 0 auto;
            .service {
                padding: .75rem;
                .service-content {
                    text-decoration: none;
                    color: #2D2147;
                    padding: 40px 40px 64px;
                    padding-bottom: 32px;
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                    border: 1px solid transparent;
                    transition: .4s border;
                    border-radius: 8px;
                    .top {
                        margin-bottom: 24px;
                        .img-wrapper {
                            height: 64px;
                            width: 64px;
                            border-radius: 100%;
                            display: inline-block;
                            position: relative;
                            img {
                                height: 32px;
                                width: 32px;
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                margin-left: -16px;
                                margin-top: -16px;
                            }
                        }
                        .img-wrapper.yellow {
                            background: #FEEEDD;
                        }
                        .img-wrapper.green {
                            background: #DDF0EC;
                        }
                        .img-wrapper.red {
                            background: #FCD8E0;
                        }
                        .img-wrapper.blue {
                            background: #D3EAFD;
                        }
                    }
                    h3 {
                        font-size: 18px;
                        line-height: 24px;
                        font-weight: 700;
                        margin: 0;
                    }
                    p {
                        font-size: 13px;
                        color: #837A8C;
                        line-height: 24px;
                        font-weight: 400;
                        margin-bottom: 32px;
                        min-height: 120px;
                    }
                    hr {
                        border-top: none;
                        border-color: #E2DFE5;
                        margin-bottom: 24px;
                    }
                    .bottom {
                        font-size: 14px;
                        font-weight: 500;
                        img {
                            margin-left: 12px;
                        }
                    }
                }
                .service-content:hover {
                    cursor: pointer;
                    border: 1px solid #E2DFE5;
                }
            }
        }
    }
}

nav.nav-bar.nav-bar-desktop.open {
    .left {
        button {
            img {
                transform: rotateX(0deg);
            }
        }
    }
    .services-panel {
        transform: translateY(0);
    }
    .services-bg {
        transform: translateY(0);
        opacity: 1;
    }
}

nav.nav-bar-mobile {
    position: fixed;
    width: 100%;
    z-index: 2;
    .mobile-nav-top {
        display: flex;
        width: 100%;
        height: 72px;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #E2DFE5;
        background: white;
        z-index: 3;
        a,button {
            height: 100%;
        }
        button {
            padding: 0 1rem;
            border: none;
            background: none;
            position: relative;
            img {
                position: absolute;
                left: 50%;
                top: 50%;
                margin-left: -28px;
                margin-top: -12px;
                transition: .4s opacity;
            }
        }
        a {
            display: flex;
            align-items: center;
            padding: 0 .75rem;
        }
    }
    .mobile-nav-content {
        opacity: 0;
        transition: .4s opacity;
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        top: 72px;
        width: 100%;
        z-index: 10;
        background: white;
        min-height: calc(100vh - 72px);
        overflow: auto;
        .mobile-nav-block {
            display: flex;
            width: 100%;
            flex-direction: row;
            flex-wrap: wrap;
            padding: 0 .75rem;
            hr {
                width: 100%;
                border: none;
                border-bottom: 1px solid #E2DFE5;
                margin: 0;
                margin-top: 38px;
            }
            p,a {
                display: flex;
            }
            p {
                width: 100%;
                font-family: "Saira", sans-serif;
                color: #7D7796;
                font-size: 12px;
                margin: 0;
                padding-top: 24px;
                padding-bottom: 16px;
                font-weight: 500;
            }
            a {
                width: 100%;
                align-items: center;
                font-size: 16px;
                font-weight: 600;
                padding: 16px;
                color: #2D2147;
                text-decoration: none;
                img {
                    height: 1em;
                    width: 1em;
                    color: white;
                    margin-right: 28px;
                }
            }
        }
        .mobile-nav-lower {
            display: flex;
            width: 100%;
            padding: 0 .75rem;
            align-items: center;
            padding-top: 32px;
            padding-bottom: 48px;
            a {
                width: calc(50% - 1.5rem);
                text-align: center;
                padding: 18px;
                font-size: 14px;
                font-weight: 700;
                border-radius: 8px;
                text-decoration: none;
            }
            a:first-child {
                margin-right: 1.5rem;
                color: #2D2147;
                border: 1px solid #E2DFE5;

            }
            a:last-child {
                background: #2D2147;
                color: white;

            }
        }
    }
}

nav.nav-bar-mobile.open {
    .mobile-nav-content {
        transform: translateX(0);
        opacity: 1;
    }
}

nav.nav-bar-mobile {
    @media screen and (min-width: 1300px) {
        display: none;
    }
}

.content-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

article {
    padding-bottom: 6rem;
    padding-top: 3rem;
    section {
        width: 100%;
    }
    section.image-header {
        max-width: 100%;
        position: relative;
        min-height: 300px;
        background-image: url("../img/header.webp");
        background-size: cover;
        background-color: #2D2147;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        padding-top: 96px;
        padding-bottom: 96px;
        margin-bottom: 32px;
        .image-header-content-wrapper {
            width: 100%;
        }
        span.img-text {
            color: white;
            font-weight: bold;
            width: 100%;
            left: 0;
            text-align: center;
            font-size: 64px;
            display: block;
            word-break: break-all;
            @media screen and (max-width: 900px) {
                font-size: 48px;
            }
        }
        ul {
            padding: 0;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            width: 100%;
            justify-content: center;
            margin-top: 32px;
            margin-bottom: 0;
            backdrop-filter: saturate(125%) blur(9px);
            li {
                margin: 0;
                width: calc(25% - .5625rem);
                margin-right: .75rem;
                background: transparent;
                border-radius: 4px;
                padding: .75rem;
                color: white;
                display: flex;
                align-items: center;
                flex-direction: row;
                flex-wrap: wrap;
                b,span {
                    width: 100%;
                    display: block;
                    text-align: center;
                }
                b {
                    font-size: 13px;
                    opacity: .9;
                    font-family: "Saira", sans-serif;
                }
                span {
                    font-size: 24px;
                    font-weight: bold;
                }
                @media screen and (max-width: 800px) {
                    width: calc(50% - .375rem);
                    margin-bottom: .75rem;
                }
            }
            li:nth-child(4n) {
                margin-right: 0;
            }
            @media screen and (max-width: 800px) {
                li:nth-child(even) {
                    margin-right: 0;
                }
            }
        }
    }
    section.image-header::after {
        content: "by DeHashed";
        color: white;
        font-size: 13px;
        font-weight: bold;
        position: absolute;
        left: 12px;
        bottom: 12px;
    }
    section.article-header {
        max-width: 100%;
        p {
            color: #7D7796;
        }
    }
    section {
        h2 {
            margin-top: 2rem;
        }
        h3 {
            margin-top: 2rem;
        }
        p {
            line-height: 2rem;
        }
        ul {
            li {
                line-height: 2rem;
                margin: 1rem 0;
            }
        }
    }
    section.data-viz {
        img {
            border: 1px solid #E2DFE5;
            border-radius: 4px;
            margin-top: 32px;
        }
    }
}

footer {
    background: #2D2147;
    padding: 96px 0;
    .footer-container {
        color: white;
        max-width: 1700px;
        margin: 0 auto;
        padding: 0 1rem;
        overflow-y: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        a {
            color: white;
            text-decoration: none;
        }
        .logo {
            p {
                font-size: 13px;
                color: #A9A1BA;
            }
            a.legal {
                font-size: 13px;
                color: white;
            }
            a.logo-img {
                display: inline-block;
            }
            @media screen and (max-width: 900px) {
                margin-bottom: 32px;
            }
        }
        .links,.logo {
            display: inline-block;
            width: 50%;
            float: left;
            @media screen and (max-width: 900px) {
                width: 100%;
            }
        }
        .links {
            .link-block {
                display: inline-block;
                float: left;
                width: 33%;
                @media screen and (max-width: 1300px) {
                    width: 50%;
                    margin-bottom: 32px;
                }
                span {
                    font-size: 13px;
                    width: 100%;
                    display: block;
                    margin-bottom: 16px;
                    color: #A9A1BA;
                }
                a {
                    padding: 8px 0;
                    width: 100%;
                    display: block;
                    font-size: 13px;
                }
                @media screen and (max-width: 900px) {
                   margin-top: 32px;
                }
                @media screen and (max-width: 700px) {
                    width: 50%;
                }
            }
        }
        .changelog-container {
            .changelog-row {
                width: 100%;
                display: flex;
                flex-direction: row;
                justify-content: end;
                .changelog-entry {
                    width: 100%;
                    max-width: 320px;
                    margin-bottom: 32px;
                    @media screen and (max-width: 900px) {
                        max-width: 100%;
                    }
                    p {
                        margin: 0;
                        color: #A9A1BA;
                    }
                    p:first-child {
                        font-weight: 500;
                        font-size: 12px;
                        line-height: 16px;
                        font-family: "Saira", sans-serif;
                        margin-bottom: 12px;
                        b {
                            color: white;
                            font-weight: 500;
                            font-family: "Saira", sans-serif;
                            margin-right: 1rem;
                        }
                    }
                    p:last-child {
                        font-size: 13px;
                        line-height: 24px;
                    }
                }
            }
        }
        .links,.changelog-container,.logo {
            width: 33%;
            @media screen and (max-width: 900px) {
                width: 100%;
            }
        }
    }
}

