@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');

:root {
    --font-inter: "Inter", sans-serif;
    --font-lexa: "Lexend Deca", system-ui;
    --bg-main: hsl(233, 47%, 7%);
    --bg-card: hsl(244, 38%, 16%);
    --accent: hsl(277, 64%, 61%);
    --white: hsl(0, 0%, 100%);
    --main-paragraph: hsla(0, 0%, 100%, 0.75);
    --stat-headings: hsla(0, 0%, 100%, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-main);
    height: 100vh;
}

main {
    max-width: 280px;
    background-color: var(--bg-card);
    text-align: center;
    border-radius: 10px;
}

p {
    font-family: var(--font-lexa);
    font-weight: 300;
    letter-spacing: 1px;
}

h1, h2 {
    font-family: var(--font-inter);
}

h1 {
    color: var(--white);    
    font-size: 2.4rem;
    margin-bottom: 15px;
}

span {
    color: var(--accent);
}

h2 {
    color: var(--white);    
    font-size: 2rem;
}

.image {
    width: 100%;
    position: relative;
    display: inline-block;
}

.image img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    opacity: 0.7;
    border-radius: 10px 10px 0 0;
}

.info {
    padding: 30px 30px 10px 30px;
}

#main-paragraph {
    color: var(--main-paragraph);
    margin-bottom: 30px;    
    line-height: 18px;
}


.stat-paragraph {
    color: var(--stat-headings);
    margin-bottom: 20px;
}

@media (width >= 1024px) {
    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 1000px;
    }

    .image {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .info {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        text-align: left;
        max-width: 90%;
        padding-left: 50px;
        padding-top: 50px;
    }

    .stats {
        display: flex;
        justify-content: space-between;
        max-width: 85%;
    }

    .image img, #overlay {
        border-radius: 0 10px 10px 0;
    }

    h1 {
        font-size: 3.5rem;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    #main-paragraph {        
        font-size: 1.3rem;
        margin-bottom: 60px;
    }
}