:root {
    --yello: hsl(47, 88%, 63%);
    --card-bg: hsl(0, 0%, 100%);
    --card-black: hsl(0, 0%, 7%);
    --card-gray: hsl(0, 0%, 42%);
    --link: hsl(228, 45%, 44%); 
}

body {
    background-color: var(--yello);
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Figtree';
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border: 1px solid;
    border-color: var(--card-black);
    border-radius: 1em;
    box-shadow: 10px 10px 0px var(--card-black);
}

.card-img {
    border-radius: 1em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-weight: bolder;
}

h1:hover {
    color: var(--yello);
}

h4 {
    font-weight: bold;
}

.tag {
    background-color: var(--yello);
    padding: 0px 10px;
    height: 30px;
    width: 60px;
    margin-top: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
}

.desc {
    line-height: 25px;
    color: var(--card-gray);
}

.author {
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.author img {
    height: 35px;
}

.author p {
    margin-left: 10px;
}

.attribution { 
    font-size: 11px; 
    text-align: center; 
    margin-top: 20px;
}

.attribution a { 
    color: var(--link); 
}

@media screen and (min-width: 1440px) {
    .card {
        width: 350px;
        height: 500px;
    }

    .content {
        margin-left: 10px;
    }
}

@media screen and (max-width: 1439px) {
    .card {
        width: 250px;
        height: 450;
    }

    .card-img {
        width: 250px;
    }

    h1 {
        font-size: 20px;
    }

    h4, p {
        font-size: 14px;
    }

    .tag {
        margin-top: 20px;
        width: 55px;
    }
}