@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
*{
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Outfit", sans-serif;
}

main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 375px;
    width: 100%;
    height: 100vh;
    background-color: hsl(217, 54%, 11%);
}

.card{
    display: flex;
    flex-direction: column;
    width: 290px;
    background-color: hsl(216, 50%, 16%);
    padding: 20px;
    border-radius: 20px;
    gap: 15px;
    box-shadow: 0 30px 10px 2px hsl(217, 54%, 11%);
}

.image-container{
    position: relative;
    width: 290px;
    height: 290px;
}

.main-img{
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(178, 100%, 50%, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.image-container:hover .overlay{
    opacity: 1;
}

.view{
    width: 40px;
    height: 40px;
}

article{
    gap: 10px;
    display: flex;
    flex-direction: column;
}

h1{
    color:hsl(0, 0%, 100%);
    font-weight: 600;
}

p{
    color: hsl(215, 51%, 70%);
    font-weight: 300;
}

ul li{
    list-style-type: none;
}

ul:nth-child(1) li:nth-child(2){
    color: hsl(178, 100%, 50%);
}

ul:nth-child(2) li:nth-child(2){
    color: hsl(215, 51%, 70%);
}

.updates{
    display: flex;
    justify-content: space-between;
    border-bottom: .5px solid hsl(215, 51%, 70%);
    padding-bottom: 15px;
}

.updates ul{
    display: flex;
    gap: 5px;
}

footer{
    display: flex;
    gap: 10px;
    align-items: center;
}

.avatar{
    height: 35px;
    width: 35px;
    border-radius: 50%;
    border: 1.5px solid hsl(0, 0%, 100%);
}

footer p span{
    color: hsl(0, 0%, 100%);
}

h1:hover, footer p span:hover{
    cursor: pointer;
    color: hsl(178, 100%, 50%);
}

@media screen and (min-width: 768px) {
    main{
        max-width: 100%;
        height: 100vh;
    }

    .card{
        gap: 25px;
    }

    .updates{
        padding-bottom: 15px;
    }
}
  