@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

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

:root {
    /* colors */
    --White: hsl(0, 0%, 100%);
    --Light-gray: hsl(212, 45%, 89%);
    --Grayish-blue: hsl(220, 15%, 55%);
    --Dark-blue: hsl(218, 44%, 22%);

    /* font size */
    --Font-size: 15px;
}

body{
    background-color: var(--Light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: "Outfit", sans-serif;
    text-align: center;
}

.card {
    display: flex;
    flex-direction: column;
    width: 22em;
    height: 32em;
    background: var(--White);
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

img {
    width: 90%;
    height: 85%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: 20px;
}

.text {
    padding: 0 17px;
}

h1 {
    color: var(--Dark-blue);
    padding: 0 0.5em 0.3em;
    font-size: 23px;
    font-weight: bold;
    line-height: 1.3;
}

p {
    font-size: var(--Font-size);
    font-weight: 400;
    color: var(--Grayish-blue);
    font-family: "Outfit", sans-serif;
    letter-spacing: 2px;
    padding: 10px;
    line-height: 1.3;
}


@media (min-width: 550px) and (max-width: 850px) {
    section {
        padding-bottom: 10px;
    }
    .card {
        width: 50vw;
        height: 85vh;
        margin-bottom: 10px;
        font-size: 16px;
    }
    h1 {
        font-size: 25px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    p {
        font-size: 17px;
        margin-top: 10px;
        line-height: 1.5;
    }
}

@media (max-width: 550px) {
    section {
        padding-bottom: 10px;
    }
    .card {
        width: 90vw;
        height: 80vh;
        margin-bottom: 10px;
        font-size: 16px;
    }
    h1 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    p {
        font-size: 14px;
        line-height: 1.5;
    }
}