*{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body{
    margin: 0;
    padding: 0;
 
}

a{
    text-decoration: none;
}

.box{
    width: 200px;
    height: 300px;
    /* height: auto; */
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    /* position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%); */
    margin: 20px ;
    margin-bottom: 50px;
}

.slide-img{
    height: 450px;
    position: relative;
}

.slide-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
}

.detail-box{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.type{
    display: flex;
    flex-direction: column;
}

.type a{
    color: #222222;
    margin: 5px 0px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding-right: 8px;

}


.type span{
    color: rgba(26, 26, 26, 0.5);
}

.price{
    color: #333333;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.overlay{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50% , -50%);
    width: 100%;
    height: 100%;
    background: rgba(7, 58, 135, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
  

}

#overlay a{

    color:white;
    font-size: 20px;
    justify-content: center;
    font-weight: 700;

}

.buy-btn{
    width: 160px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: whitesmoke;
    color: #252525;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 2px 2px 30px rgba(0, 0, 0, .2);
}

.buy-btn:hover{
    color: white;
    background-color: #1C378A;
    transition: all ease 0.3s;
}

.overlay{
    visibility: hidden;
}
.slide-img:hover .overlay{
    visibility: visible;
    animation: fade 0.5s;
}

@keyframes fade{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}





@media screen and (min-width: 390PX) {

    .box{
        width: 250px;
        height: 340px;
        /* height: auto; */
        box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        overflow: hidden;
        /* position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%); */
        margin: 25px ;
        margin-bottom: 50px;
    }
    #overlay a{

        color:white;
        font-size: 25px;
        justify-content: center;
        font-weight: 700;
    
    }


}

@media screen and (min-width: 768px) {

    .box{
        width: 280px;
        height: 380px;
        /* height: auto; */
        box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        overflow: hidden;
        /* position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%); */
        margin: 30px ;
        margin-bottom: 50px;
    }
    #overlay a{

        color:white;
        font-size: 30px;
        justify-content: center;
        font-weight: 700;
    
    }


}


@media screen and (min-width: 992px) {

    .box{
        width: 300px;
        height: 400px;
        /* height: auto; */
        box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        overflow: hidden;
        /* position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%); */
        margin: 32px ;
        margin-bottom: 50px;
    }
    #overlay a{

        color:white;
        font-size: 30px;
        justify-content: center;
        font-weight: 700;
    
    }


}    



@media screen and (min-width: 1200px) {

    .box{
        width: 300px;
        height: 400px;
        /* height: auto; */
        box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        overflow: hidden;
        /* position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%); */
        margin: 35px ;
        margin-bottom: 50px;
    }


    #overlay a{

        color:white;
        font-size: 30px;
        justify-content: center;
        font-weight: 700;
    
    }
}