@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap');

:root {
    /* Primary */
    --very_dark_blue: hsl(233, 47%, 7%);
    --dark_desaturated_blue: hsl(244, 38%, 16%);
    --soft_violet: hsl(277, 64%, 61%);

    /* Neutral */

    --white: hsl(0, 0%, 100%);
    --slightly_transparent: hsla(0, 0%, 100%, 0.75);
    --slightly_transparent_white: hsla(0, 0%, 100%, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@media(max-width: 1100px) {
    body {
        background-color: var(--very_dark_blue);
        min-height: 100vh;
        font-size: 15px;
        display: flex;
        flex-direction: column;
        color: var(--white);
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 50px 0;
    }

    body p {
        line-height: 1.5;
        font-family: 'Inter', sans-serif;
    }

    .card {
        background-color: var(--dark_desaturated_blue);
        margin-bottom: 30px;
        max-height: 730px;
        max-width: 320px;
        border-radius: 10px;
    }

    .img {
        background: url('../images/image-header-mobile.jpg') no-repeat center center/cover;
        width: 100%;
        height: 220px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        position: relative;
    }

    .img::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--soft_violet);
        opacity: 0.6;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .card h1 {
        font-family: 'Inter', sans-serif;
    }

    .purple {
        color: var(--soft_violet);
    }

    .text {
        padding: 20px;
    }

    .card .text>h1 {
        margin-bottom: 20px;
    }

    .card .text>p {
        padding: 0 10px;
        justify-self: center;
        align-self: center;
        margin-bottom: 30px;
        color: var(--slightly_transparent);
    }

    .stat1,
    .stat2,
    .stat3 {
        margin: 20px 0;
    }

    .stat1>p,
    .stat2>p,
    .stat3>p {
        text-transform: uppercase;
        color: var(--slightly_transparent_white);
    }
}

@media(min-width:1101px) {
    body {
        background-color: var(--very_dark_blue);
        min-height: 100vh;
        font-size: 15px;
        display: flex;
        flex-direction: column;
        color: var(--white);
        justify-content: center;
        align-items: center;
        text-align: left;
        padding: 50px 0;
    }

    body p {
        line-height: 1.5;
        font-family: 'Inter', sans-serif;
    }

    .card {
        display: flex;
        flex-direction: row-reverse;
        background-color: var(--dark_desaturated_blue);
        margin-bottom: 50px;
        max-height: 380px;
        max-width: 1000px;
        border-radius: 10px;
    }

    .img {
        background: url('../images/image-header-desktop.jpg') no-repeat center center/cover;
        width: 100%;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        position: relative;
    }

    .img::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--soft_violet);
        opacity: 0.6;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .card h1 {
        font-family: 'Inter', sans-serif;
    }

    .purple {
        color: var(--soft_violet);
    }

    .text {
        padding: 50px 100px 50px 50px;
    }

    .card .text>h1 {
        margin-bottom: 20px;
    }

    .card .text>p {
        margin-bottom: 60px;
        color: var(--slightly_transparent);
    }

    .stats {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        max-width: 350px;
    }

    .stat1>p,
    .stat2>p,
    .stat3>p {
        text-transform: uppercase;
        color: var(--slightly_transparent_white);
    }

    .attribution a {
        color: var(--soft_violet);
        text-decoration: none;
        cursor: pointer;
    }
}