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

/* */


*
{
    margin: 0;
    padding: 0;
}

body
{
    background-color: hsl(217, 54%, 11%);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif ;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
img
{
    max-width: 100%;
}

h1,span
{
    color: white;
}
p
{
    color:hsl(215, 32%, 27%) ;
    
}

h1
{
    margin: 1rem 0;
}

.card
{
    width: 275px;
    background-color: hsl(216, 50%, 16%);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}


.price,.time
{
    display: flex;
}



.price-time
{
    display: flex;
    justify-content: space-between;
}

.price-time img
{   
    align-self: center;
    margin-right: 0.5rem;
}

.price-time
{
    margin: 1.125rem 0;
}

.price p
{
    color: hsl(178, 100%, 50%);
}

.time
{
    color: hsl(215, 51%, 70%);
}


hr
{
    border: 1px solid hsl(215, 32%, 27%);
    margin-bottom: 1rem;   
}

footer
{   
    display: flex;
    margin: 0.5rem 0;
    
}

.creator-pic
{
    width: 10%;
    
}

.creator-name
{   
    margin-left: 0.75rem;
    width: 80%;
    allign self:center;
}


h1:hover,span:hover
{
    color: hsl(178, 100%, 50%);
}

.main-img
{
    width:100%;
    border-radius: 0.75rem;
}

main
{
    position: relative;
}
.overlay
{
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    min-width: 100%;
    background-color:hsla(178, 100%, 50%,0.6) ;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.overlay:hover
{
    opacity: 1;
}


@media (max-width)
{
    .card
    {
        margin: 0 2rem;
    }
}
