/*CSS variables*/
:root {
    --color-main-background: hsl(47, 88%, 63%);
    --color-card-background: hsl(0, 0%, 100%);
    --color-title: hsl(0, 0%, 7%);
    --color-text: hsl(0, 0%, 42%);
    --color-active: hsl(47, 88%, 63%);
}

/*General set up*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family:'Figtree', Arial, Helvetica, sans-serif ;
    background-color: var(--color-main-background);
    padding: 0 1.56rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*Container style and classes styles*/
.container {
    max-width: 320px;
    width: 100%;
    background-color: var(--color-card-background);
    border-radius: 20px;
    border: 1px solid var(--color-title);
    padding: 1.25rem;
    box-shadow: 7px 7px 1px;
}

.main-picture {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden; 
  display: block;
  object-fit: cover; 
}

.tag{
    width:25%;
    font-size: 0.73rem;
    padding: 0.32rem;
    margin-block: 1.25rem 0.63rem;
    background-color: var(--color-main-background);
    border-radius: 5px;
    color: var(--color-title);
    font-weight: 800;
    text-align: center;
}

.date{
    margin-block: 0 1rem;
    padding-block: 5px 0;
    font-size: 0.73rem;
    font-weight: 500;
}

.card-title{
    font-size: 1.2rem;
    font-weight: 800;
    margin-block: 0 1rem;
    color: var(--color-title);
}

.card-description{
    font-size: 0.8rem;
    font-weight: 500;
    margin-block: 0 1rem;
    color: var(--color-text);
}

.author{
    background: url(assets/images/image-avatar.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-size: 2rem;
    background-position-y: 0.47rem;
    padding-block: 1rem;
    padding-inline: 2.5rem 0;
    font-size: 0.85rem;
    font-weight: 800;
}

/*Active style*/
h1:hover,
h1:focus,
p:hover,
p:focus{
    color: var(--color-active);
}

/* Desktop styles */
@media screen and (min-width: 768px) {

    .container {
    max-width: 374px;    
    }

    .tag{
    font-size: 0.84rem;
    }

    .date{
    font-size: 0.84rem;

    }

    .card-title{
    font-size: 1.44rem;
    }

    .card-description{

        font-size: 0.96rem;
    }
  
}