:root{
  --soft-blue: hsl(215, 51%, 70%);
  --cyan: hsl(178, 100%, 50%);

  --main-bg: hsl(217, 54%, 11%);
  --card-bg: hsl(216, 50%, 16%);
  --line: hsl(215, 32%, 27%);
  --white: hsl(0, 0%, 100%);
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Outfit', sans-serif;
    background: var(--main-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.container{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card{
    background: var(--card-bg);
    max-width: 320px;
    padding: 20px;
    border-radius: 15px;
}
.image-container{
    position: relative;
    cursor: pointer;
}
.image-container img{
    width: 100%;
    border-radius: 10px;
}
.image-container .overlay img{
  width: 50px;
}
.overlay{
    position: absolute;
    inset: 0;
    background: hsla(178, 100%, 50%, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    border-radius: 10px;
}
.image-container:hover .overlay{
    opacity: 1;
}
.card h1{
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin: 15px 0;
    cursor: pointer;
}
.card h1:hover{
    color: var(--cyan);
}
.card p{
    color: var(--soft-blue);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
}
.info{
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
.price{
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}
.time{
    color: var(--soft-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}
hr{
    border: none;
    border-top: 1px solid var(--line);
}
.author{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.author img{
    width:32px;
    border: 1px solid var(--white);
    border-radius: 50%;
}
.author p{
    color: var(--soft-blue);
    font-size: 14px;
}
.author span{
    color: var(--white);
    cursor: pointer;
}
.author span:hover{
    color: var(--cyan);
}
.attribution{
    font-size: 11px;
    text-align: center;
    margin: 20px 0;
    color: var(--white);
}
.attribution a{
    color: var(--white);
}
