:root {
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --grey: hsl(0, 0%, 50%);
    --black: hsl(0, 0%, 7%);
}

@font-face {
    font-family: 'Figtree';
    src: url('./assets/fonts/static/Figtree-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('./assets/fonts/static/Figtree-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--yellow);
    font-family: Figtree, Tahoma, serif;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-width: 375px;
}

.main-card {
    background-color: var(--white);
    width: 325px;
    padding: 23px;
    border: solid 1px var(--black);
    border-radius: 20px;
    box-shadow: 8px 8px var(--black);
    margin: auto;
}

.card-image {
    width: 100%; 
    height: 200px; 
    object-fit: cover;
    border-radius: 10px;
}

.card-theme {
    background-color: var(--yellow);
    display: inline-block;
    font-size: 12px;
    border-radius: 5px;
    font-weight: 800;
    padding: 5px 10px;
    margin-top: 20px;
}

.main-card h5 {
    margin-top: 15px;
    font-size: 12px;
    font-weight: 600;
}

.main-card h1 {
    font-size: 20px;
    font-weight: 800;
}

.main-card p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--grey);
}

.card-creator {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-top: 25px;
}

.creator-image {
    width: 33px;
    height: 33px;
    object-fit: cover;
}

.card-creator span {
    font-size: 14px;
    font-weight: 800;
}


.attribution {
    height: 50px;
    margin-top: 25px;  
    font-family: sans-serif, Figtree;  
    font-size: 12px;
    color:darkslateblue;
    font-weight: 600;
}

.attribution a {
    text-decoration: underline;
}


.attribution a:link, .attribution a:visited, .attribution a:active, .attribution a:hover {
    color: darkolivegreen;
    font-weight: bold;
}


 @media only screen and (min-width: 450px) {
    .main-card {
        width: 380px;
    }
    .card-theme {
        font-size: 15px;
    }
    .main-card h5 {
        font-size: 14px;
    }
    .main-card h1 {
        font-size: 24px;
    }
    .main-card p {
        font-size: 16px;
    }
 }