.card>a>.reward{
    position: relative;
    width: 15%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: -2em;
}
/*  */
.reward1{
    position: absolute;
    width: 20%;
    margin-top: 5%;
    margin-left: 2%;

}
.card2{
    width: 47%;
    margin-left: auto;
    margin-right: auto;
}

#content{
    margin-top: 3em;
}

.card:hover {
    box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2);
}



.card {
    display: block; 
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16); 
    transition: box-shadow .25s; 
}

/* .ให้รูปขนาดเท่ากล่อง */
.img-card img{
    width: 100%;
    height: 200px;
    object-fit:cover; 
    transition: all .25s ease;
} 
.img-card {
    width: 90%;
    height:200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5%;
    border-top-left-radius:2px;
    border-top-right-radius:2px;
    display:block;
    overflow: hidden;
}

.img-card1 {
    width: 90%;
    height:170px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10%;
    margin-bottom: 7%;
    border-top-left-radius:2px;
    border-top-right-radius:2px;
    display:block;
    overflow: hidden;
}
.img-card1 img{
    width: 100%;
    height: 170px;
    object-fit:cover; 
    transition: all .25s ease;
} 


.card-content {
    padding:1%;
    text-align:left;
}
a:link{
    color: #000000;
    text-decoration: none;
}
a:hover{
    color: #000000 !important;
    text-decoration: none !important;
}
a:visited{
    color: #000000;
    text-decoration: none;
}

@media screen and (max-width:922px) {
    .reward{
        width: 12%;
    }
    .card2{
        width: 90%;
         }
    .img-card {
        width: 90%;
        height:350px;
    }
    .img-card img{
        width: 100%;
        height: 350px;
  } 

}
@media screen and (max-width:768px) {
    .reward{
        width: 12%;
    }
    .card2{
        width: 90%;
    }
    .reward1{
        width: 10%;
        margin-top: 5%;
    }
    .img-card {
        width: 90%;
        height:300px;
    }
    .img-card img{
        width: 100%;
        height: 300px;
  } 
}
@media screen and (max-width:576px) {
    .img-card {
        width: 90%;
        height:200px;
    }
    .img-card img{
        width: 100%;
        height: 200px;
  } 
}
