* {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

body{
    background-color: lightslategrey;
    width: 100vw;
   
}

.main{
    height: 400px;
    margin-top: 50px;
}


.card {

    
    width: 30vw ;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.card-button {
    
    background: #0047AB;
    color: white;
    border-radius: 10px;
    border: none;
    width: 120px;
    height: 60px;
    z-index: 10;
    
    margin:100px
    
}

.card-data {
    position: absolute;
    bottom: 0;
    left: 20;
    
    width:20px;
    height: 10px;
    font-size: 2px;
    z-index: 1;
    background: black;
    color: white;
    border-radius: 10px;
    animation: reverse1 0.8s forwards;
    margin: 100px;
    
    

}

.card:hover .card-data{
    animation: expand 0.5s forwards;
}


@keyframes expand {
    from{
        width: 0px;
        font-size: 10px;
        display: none;
        opacity: 0%;
    }

    to{
        width: 400px;
        height: 300px;
        font-size: 20px;
        padding:20px;
        margin: 0;
        opacity: 100%;
        border-top: 10px solid white
    }
}


@keyframes reverse1 {
    from{
        
        width: 400px;
        height: 300px;
        font-size: 20px;
        padding:20px;
        margin:0;
        opacity:100%
    }

    to{
        width: 0px;
        font-size: 10px;
        opacity:0%;
    }
    
}