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

html {
    font-size: 15px;
    padding: 0px;
    margin: 0px;
}
body {
    background-color: hsl(233, 47%, 7%);
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    align-items: center;
    font-size: 1.5rem;
    justify-content: center;
    height: 100vh;
    margin: 0px;
    padding: 0px;
}

.content {
    display: flex;
    min-width: 1020px;
    flex: 0 0 auto;
}

.left {
    color: white;
    background-color: hsl(244, 38%, 16%);
    display: flex;
    flex-direction: column;
    border-radius: 10px 0 0 10px;
    padding: 50px;
    padding-right: 4em;
    padding-top: 20px;
}

.left > h1 > span {
    color: hsl(277, 64%, 61%);
}

.left > p {
    color: hsla(0, 0%, 100%, 0.75);
    font-size: 0.6em;
    margin-top: -0.5em;
    font-family: "Inter";
    font-weight: 400;
    /* border: solid; */
    line-height: 1.5em;
    width: 90%;
}

.image {
    width: 100%;
    background-size: 100%;
    background-image: url("images/image-header-desktop.jpg");
    background-repeat: no-repeat;
    border-radius: 0 10px 10px 0;
    overflow: hidden;
}

.overlay {
    background: hsla(277, 64%, 61%, 0.45);
    height: 100%;
}

.overlay > div {
    background: hsla(293deg, 42%, 35%, 0.4);
    height: 100%;
    mix-blend-mode: color-burn;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    width: 82%;
}

.header {
    font-family: "Inter", sans-serif;
    font-size: 0.8em;
    font-weight: 700;
}
.footer {
    font-size: 0.4em;
    color: hsla(0, 0%, 100%, 0.6);
    font-family: "Lexend Deca";
    font-weight: 400;
    line-height: 2em;
    letter-spacing: 1px;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

footer {
    padding-top: 50px;
    color: white;
    position: absolute;
    bottom: 0;
    margin-bottom: 10px;
}

@media screen and (max-width: 450px) {
    .content {
        flex-direction: column-reverse;
        min-width: 300px;
        justify-content: center;
        text-align: center;
        padding: 10px;
    }

    .left {
        padding: 30px;
        border-radius: 0 0 10px 10px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
        font-size: 1.35em;
    }

    .stats,
    .left > p {
        width: 100%;
    }

    .image {
        background-image: url("images/image-header-mobile.jpg");
        width: 100%;
        height: 260px;
        border-radius: 10px 10px 0 0;
    }

    .left > h1 {
        font-size: 1.25em;
    }

    .left > p {
        font-size: 0.75em;
    }

    footer {
        display: none;
    }
}
