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

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

img {
    display: block;
    width: 60px;
    height: 60px;
}

/* || ULTILITY CLASSES */
.offscreen {
    position: absolute;
    left: -10000px;
}

.nowrap {
    white-space: nowrap;
}

/*  || VARIABLES */
:root {
    /* COLORS */
    --CARD-BGCOLOR: #fff;
    --BODY-BGCOLOR: hsl(0, 0%, 98%);
    --HCOLOR: hsl(234, 12%, 34%);
    --PCOLOR: hsl(229, 6%, 66%);
    --SRCOLOR: hsl(180, 62%, 55%);
    --TBCOLOR: hsl(0, 78%, 62%);
    --KMCOLOR: hsl(34, 97%, 64%);
    --CALC-COLOR: hsl(212, 86%, 64%);

    /* FONTS */
    --FS: 0.9rem;
}

/* GENERAL STYLES */
body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background-color: var(--BODY-BGCOLOR);
}

/* MAIN */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
}


.main {
    /* min-height: 100vh; */
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* HEADER */
.header {
    text-align: center;
    margin-top: 1.5rem;
    margin: 1.5em;
    padding: 1em;
    flex-flow: column nowrap;
}

.header__h2-1 {
    font-weight: 200;
    font-size: 2rem;
}

.header__h2-2 {
    font-weight: 600;
    font-size: 2rem;
    color: var(--HCOLOR);
    margin-bottom: 1rem;
    width: 100%;
}

.header__p {
    color: var(--PCOLOR);
    font-size: 13px;
}

.article {
    background-color: var(--CARD-BGCOLOR);
    width: 280px;
    height: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 15px -10px #000;
    padding: 2em;
    position: relative;
}

.red {
    border-top: 3px solid var(--SRCOLOR);
}

.cyan {
    border-top: 3px solid var(--TBCOLOR);
}

.orange {
    border-top: 3px solid var(--KMCOLOR);
}

.blue {
    border-top: 3px solid var(--CALC-COLOR);
    margin-bottom: 1.5rem;
}

.main__h3 {
    padding-bottom: 0.25em;
    color: var(--HCOLOR);
}

.main__p {
    font-size: 13px;
    color: var(--PCOLOR);
}

.figure {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
}

.figure img {
    margin: 1.5em;
    position: absolute;
    top: 100px;
    bottom: -4px;
    left: 180px;
}

.middle__container {
    display: grid;
    gap: 1rem;
}

/* || SMALL */
@media screen and (min-width: 576px) {
    .article {
        background-color: #fff;
        width: 370px;
        height: 250px;
        border-radius: 5px;
        box-shadow: 0 4px 15px -10px #000;
        padding: 2em;
        position: relative;
    }

    .figure img {
        margin: 1.5em;
        position: absolute;
        top: 130px;
        bottom: -5px;
        left: 240px;
    }

    .wrap::after {
        content: "\a";
        white-space: pre;
    }
}

/* || LARGE */
@media screen and (min-width: 1200px) {
    .article {
        background-color: #fff;
        width: 330px;
        height: 200px;
        border-radius: 5px;
        box-shadow: 0 4px 15px -10px #000;
        padding: 2em;
        position: relative;
    }

    .main {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .figure img {
        margin: 1.5em;
        position: absolute;
        top: 100px;
        bottom: -5px;
        left: 220px;
    }
}

:any-link {
    color: hsl(228, 45%, 44%);
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000;
    color: #fff;
    padding: 5px;
    margin-top: 1.5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 15px;

}