@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend+Deca:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100vh;
    width: 100%;
    font-size: 15px;
    background-color: hsl(233, 47%, 7%);
    font-family: "Lexend Deca", serif;
    font-weight: 300;
}

.container {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.content {
    width: 80%;
    height: auto;
    background-color: hsl(244, 38%, 16%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 0.5rem;
}
.content-items {
    padding: 4rem;
    padding-right: 0;
}
.content-items, .image-content {
    width: 50%;
}

.content-items .item, .stats {
    margin-right: 8rem;
}
.content-items .item h2 {
    color: hsl(0, 0%, 100%);
    font-size: 2.3rem;
    font-family: "Inter", serif;
    font-weight: 700;
}

.content-items .item h2 span {
    color: hsl(277, 64%, 61%);
}

.content-items .item p {
    color: hsla(0, 0%, 100%, 0.75);
    margin-top: 2rem;
    margin-bottom: 4rem;
    line-height: 1.7;
}

.content-items .stats {
    display: flex;
    flex-direction: row;
    gap: 3.5rem;
    line-height: 1.5;
}
.content-items .stats p {
    color: hsla(0, 0%, 100%, 0.6);
    font-size: 13px;
    letter-spacing: 1px;
}
.content-items .stats p span {
    color: white;
    display: block;
    font-size: 1.5rem;
    font-family: "Inter", serif;
    font-weight: 700;
}

.image-content {
    position: relative;
    border-radius: 0.5rem;
}
.image-content img {
    border-radius: 0.5rem;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.image-content .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: hsla(277, 91%, 34%, 0.452);
}

.attribution {color: white; font-size: 11px; text-align: center; }
.attribution a {color: white; text-decoration: none;}

@media (max-width: 1200px) {
    .container {
       padding: 15rem 0;
    }
    .content {
        flex-direction: column-reverse;
        max-width: 350px;
    }

    .content-items, .image-content {
        width: auto;
        margin: 0;
        padding: 0;
    }

    .image-content {
        height: 300px;
    }
    
    .image-overlay, .image-content img {
        border-top-left-radius: 0.5rem;
        border-bottom-right-radius: 0;
    }
    .content-items {
        margin: 2.5rem 2rem;
        text-align: center;
    }
    .content-items .item {
        margin: 0;
        padding: 0;
    }

    .content-items .stats {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
}