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

/* variables */

:root {
    font-size: 15px;
    --prim-dark-blue: hsl(233, 47%, 7%);
    --prim-sat-blue: hsl(244, 38%, 16%);
    --prim-voilet: hsl(277, 64%, 61%);

    --nue-white: hsl(0, 0%, 100%);
    --neu-trans-white: hsla(0, 0%, 100%, 0.75);
    --neu-more-trans-white: hsla(0, 0%, 100%, 0.6);

    --bg-violet: hsl(277deg, 100%, 50%, 0.42);
    --bg-light-violet: hsl(293deg, 42%, 35%, 0.24);
}

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

body {
    font-family: "Inter", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--prim-dark-blue);
    color: var(--nue-white);
    font-weight: 400;
}

/* stats card */

.container {
    min-width: 600px;
    z-index: 1;
    display: flex;
    margin: 1em;
}

.flex-left {
    display: flex;
    flex-direction: column;
    padding: 5.85em 7em 5.85em 5.85em;
    width: 570px;
    min-width: 300px;
    background: var(--prim-sat-blue);
    border-radius: 10px 0 0 10px;
}

.flex-left h1 {
    columns: var(--nue-white);
    font-size: 2.25rem;
    margin-bottom: 0.75em;
    font-weight: 700;
}

.flex-left h1 span {
    color: var(--prim-voilet);
}

.flex-left .content {
    margin-right: 2em;
}

.flex-left .lead {
    color: var(--neu-trans-white);
    line-height: 1.5em;
    margin-bottom: 5em;
}

.flex-left ul {
    display: flex;
    list-style: none;
    justify-content: space-between;
    letter-spacing: 1px;
}

.flex-left ul h2 {
    color: var(--nue-white);
    margin-bottom: 0.3em;
}

.flex-left ul p {
    font-family: "Lexend Deca", sans-serif;
    color: var(--neu-more-trans-white);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.flex-right {
    min-height: 10em;
    width: 540px;
    min-width: 200px;
    background: url(images/image-header-desktop.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0 10px 10px 0;
    overflow: hidden;
}

.overlay {
    background: var(--bg-violet);
    height: 100%;
}

.overlay-2 {
    background: var(--bg-light-violet);
    height: 100%;
    mix-blend-mode: color-burn;
}

.attribution {
    position: absolute;
    bottom: 0;
    font-size: 0.75rem;
    line-height: 20px;
    text-align: center;
    color: var(--neu-trans-white);
    margin-bottom: 10px;
}

.attribution a {
    text-decoration: none;
    color: var(--neu-trans-white);
    font-weight: bold;
}

.attribution a:hover {
    color: var(--prim-violet);
}

@media only screen and (max-width: 1024px) {
    :root {
        font-size: 12px;
    }
    .flex-left {
        padding: 3em 4.5em 3em 3em;
    }
}

@media only screen and (max-width: 625px) {
    body {
        flex-direction: column;
    }
    .container {
        flex-direction: column-reverse;
        margin: 10px;
        min-width: 200px;
        margin-top: 5em;
    }
    .flex-left {
        padding: 3em;
        width: 300px;
        border-radius: 0 0 10px 10px;
    }
    .flex-left h1, 
    .flex-left .lead {
        text-align: center;
    }
    .flex-left .lead {
        font-size: 1.1rem;
        margin-bottom: 2em;
        line-height: 1.75em;
    }
    .flex-left .content {
        margin-right: 0;
    }
    .flex-left ul {
        flex-direction: column;
        align-items: center;
    }
    .flex-left ul li {
        margin-bottom: 2em;
    }
    .flex-left ul h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 0.25em;
    }
    .flex-left ul p {
        font-size: 1.05rem;
    }
    .flex-right {
        height: 220px;
        width: 300px;
        border-radius: 10px 10px 0 0;
        background: url(images/image-header-mobile.jpg) no-repeat;
        background-size: contain;
    }
    .attribution {
        position: relative;
        margin-top: 20px;
    }

}
