@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend+Deca:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Young+Serif&display=swap');

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

body {
    background-color: hsl(233, 47%, 7%);
    color: hsl(0, 0%, 100%);
    font-size: 15px;
    font-family: 'Inter',sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.main-container {
    max-width: 1030px;
    margin: 0 auto;
}

.business-card {
    background-color: hsl(244, 38%, 16%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 2rem;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-wrapper {
    position: relative;
}

.img-wrapper::after {
    background-color:  hsla(277, 84%, 24%, 0.5);
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.card-text {
    padding: 13%;
}

.card-title {
    font-size: 30px;
    padding-bottom: 22px;
}

.insights {
    color: hsl(277, 64%, 61%);
}

.card-subtitle {
    color: hsla(0, 24%, 81%, 0.75);
    line-height: 1.7;
}

.business-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 60px;
}


.business-stats p.numbers {
    color: hsl(0, 0%, 100%);
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 5px;
}

.categories {
    color: hsla(0, 24%, 81%, 0.75);
    font-size: 12px;
    text-transform: uppercase;
}

.attribution {
    color: hsl(234, 12%, 34%);
    font-size: 11px;
    width: 400px;
    text-align: center;
    margin: 50px auto 20px auto;
}

.attribution img {
    width: 14px;
    margin: 0 5px;
}

.attribution a {
    text-decoration: none;
    color: rgb(210, 210, 228);
}

.attribution a:hover {
    color:  hsl(277, 64%, 61%);
}



@media only screen and (max-width: 850px) {

    .business-stats {
        display: flex;
        flex-wrap: wrap;
    }

    .business-stats section {
        margin-top: 10px;
        margin-right: 10px;
    }
}

@media only screen and (max-width: 425px) {

    body {
        text-align: center;
    }

    .business-card {
        grid-template-columns: 1fr;
    }

    .img-wrapper {
        order: -1;
    }

    .card-text {
        padding: 13% 8%;
    }

    .card-title {
        font-size: 28px;
    }

    .business-stats {
        flex-direction: column;   
        padding-top: 25px;
    }

    .business-stats section {
        margin-top: 25px;
    }
}