.phone-overlay {
    position: absolute;
    width: 115%;
    top: -10%;
    /* width: calc(100% + 3rem); */
    /* top: -4rem; */
    pointer-events: none;
}

#header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem 0;
    margin-bottom: 8rem;
    .background {
        background-color: var(--primary);
        top: -7rem;
        height: calc(100% + 11rem);
    }
    a.btn {
        max-width: 20rem;
    }
    > div {
        flex: 0 1 40rem;
        /* max-width: 40rem; */
        /* max-width: 50rem; */
    }
    img {
        flex: 0 1 40rem;
        max-width: 40rem;
        mask-image: radial-gradient(
            ellipse at center,
            black 60%,
            transparent 70%,
            transparent 100%
        );
    }
    h2 {
        font-size: 3rem;
        margin: 0 0 1rem 0;
    }
}

#features {
    padding: 0 5rem;
    > h2 {
        text-align: center;
        font-size: 3rem;
        margin: 4rem 0 0;
    }
    > div {
        display: grid;
        grid-template: "c a" auto "c b" auto;
        align-items: center;
        justify-content: center;
        margin: 5rem 0;
        gap: 0 4rem;
        &:first-of-type,
        &:nth-of-type(2) {
            margin-top: 0;
            .images-container.mobile {
                grid-area: c;
                max-width: 35rem;
            }
            h3 {
                max-width: 20rem;
            }
            > div:first-of-type {
                max-width: 20rem;
            }
        }
        &:nth-child(2n) {
            grid-template: "a c" auto "b c" auto;
        }
        .images-container {
            grid-area: c;
        }
        > img {
            justify-self: stretch;
        }
        h3 {
            max-width: 35rem;
            font-family: 'Roboto-Medium';
            font-size: 1.5rem;
            align-self: end;
            margin-bottom: 0;
        }
        > div:first-of-type {
            max-width: 35rem;
            align-self: start;
        }
    }
    .images-container.mobile {
        max-width: 20rem;
    }
}

#statistics {
    background-color: var(--primary);
    padding-top: 2rem;
    > div {
        padding-top: 1rem;
        .text {
            border-left-color: var(--secondary) !important;
        }
    }
}

@media (max-width: 1400px) {
    #header {
        > img {
            max-width: 30rem;
        }
    }
}
@media (max-width: 1024px) {
    #header {
        position: relative; /* Weird but to make navbar relative positioned elements show behind */
        padding: 2rem 1rem 0;
        margin-bottom: 7rem;
        flex-direction: column;
        > .header-text {
            background-color: var(--primary);
            flex: none;
            max-width: 30rem;
            text-align: center;
            > .btn {
                margin: auto;
            }
        }
        h2 {
            font-size: 2.5rem;
        }
        img {
            max-width: 30rem;
            flex: none;
        }
        .background {
            height: calc(100% + 12rem);
        }
    }
    #features {
        padding: 1rem;
        > h2 {
            margin: 1rem 0;
            font-size: 2.5rem;
        }
        > div {
            h3 {
                font-size: 2rem;
                margin-bottom: 4rem;
            }
            &:has(.dots) {
                > div:first-of-type {
                    margin-top: 5rem;
                }
            }
            grid-template: "a" "c" "b" !important;
            margin: 2rem 0;
            &:nth-child(2n) {
                flex-direction: column-reverse;
            }
            .images-container.mobile {
                justify-self: center;
                max-width: 20rem;
            }
            > img {
                min-width: 0;
                max-width: 100%;
                flex: 0 1 auto;
                align-self: center;
            }
            &:first-of-type,
            &:nth-of-type(2) {
                h3 {
                    margin-bottom: 0;
                }
                img {
                    max-width: 100%;
                }
            }
            &:nth-of-type(2) {
                h3 {
                    margin-bottom: 2rem !important;
                }
            }
            > div:first-of-type {
                margin-top: 3rem;
            }
        }
    }
}
@media (max-width: 650px) {
    #header {
        background-color: var(--primary);
        > img {
            max-width: none;
            width: 100%;
        }
    }
}
.dots {
    margin-top: 1rem !important;
}
