*{
    box-sizing: border-box;
    padding: 0;
    margin:0;
}
body{
    background-color: #C8C7CF;;
}

header h1{
    text-align: center;
    padding-top: 8vw;
    font-size: 13vw;
    font-family: "Pinyon Script";
    font-weight: 200;
}

.info ul{
    list-style: none;
    display: flex;
    justify-content:space-evenly;
    padding-top: 3vw;
}

.info ul li{
    display: flex;
    font-size: 3vw;
    padding: 2vw;
}

.nav ul{
    justify-content:space-evenly;
    display: flex;
    margin-top: 0;
    list-style: none;
}

.subject{
    justify-content: space-between;
    padding-top: 8vw;
    
}

.writing{
    flex-direction: column;
    text-decoration: none;
    color: black;
    font-size: 2.5vw;

    padding: 1.5vw 2.5vw;
    border:2px solid black;
    border-radius: 10px 60px;
    position: relative;
    transition: .5s;
}

.writing:hover{
    border-radius: 60px 10px;
}

/* img{
    display: block;
    max-width: 100%;
    height: auto;
} */

.anythingImage{
    object-fit: contain;
}

.container{
    display: grid;
    place-items: center;
    margin-inline: 1.5rem;
    padding-block: 5rem;

}

.etsylink{
    justify-content:space-evenly;
    font-size: 3vw;
    text-align: center;
    text-decoration: none;
}

.card__container{
    display: grid;
    row-gap: 3.5rem;
}

.card__article{
    position: relative;
    overflow: hidden;
    display: flex;
    max-height: 400px;
    max-width: 328px;
    min-width: 280px;
}


.card__img{
    /* width: 40vw; */
    /* max-width: 328px;
    min-width: 280px;
    max-height: 400px; */
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    justify-self: center;
}

.card__data{
    /* width: 30vw; */
    width: 280px;
    background-color: aliceblue;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    border-radius: 1rem;
    position: absolute;
    bottom: -9rem;
    left:8%;
    /* right:10%; */

    justify-content: space-between;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
}

.card__description{
    display: block;
    /* font-size: ; */
    margin-bottom: .25rem;
}

.card__title{
    font-weight: 500;
    margin-bottom: .75rem;
}

.card__article:hover .card__data{
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

.card__article:hover{
    animation: remove-overflow 2s forwards;
}

.card__article:not(:hover){
    animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data{
    animation: remove-data 1.5s forwards;/* maybe change*/
}

@keyframes show-data{
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow{
    to{
        overflow: initial;
    }
}

@keyframes remove-data{
    0%{
        transform: translateY(-7rem);
    }
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(5.5rem);/*check if to change*/
    }
}

@keyframes show-overflow{
    0%{
        overflow: initial;
        pointer-events: none;
    }
    50%{
        overflow: hidden;
    }
}

@media screen and (max-width:340px) {
    .container{
        margin-inline: 1rem;
    }

    .card__data{
        width: 70vw;
        padding: 1rem;
    }
    
    .card__article{
        max-height: 500px;
    }

}

@media screen and (min-width: 768px) {
    .card__container{
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1.5rem;
    }
}