@import url('https://fonts.cdnfonts.com/css/roboto');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
}

body{
    background-color: black;
}

.card-container{
    perspective: 1000px;
    width: 350px;
    height: 250px;
    margin: 80px auto;
}

.frontcard img{
  max-width: 80%;
  display: block;
  height: 200px;
  width: 250px;
  margin: 25px auto;
}

.card{
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

.card-container:hover .card{
    transform: rotateY(180deg);
}

.frontcard,
.backcard{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0);
}

.frontcard{
    background-color: white;   
    border: 3px solid rgb(18, 164, 231);
}

.backcard{
    position: relative;
    padding: 3px;
    border-radius: 12px;
    background: #833AB4;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 24%, rgba(252, 176, 69, 1) 54%, rgba(39, 230, 52, 1) 77%, rgba(232, 114, 114, 0.95) 99%);
    transform: rotateY(180deg);
}

.backcard-content{
    background-color: black;
    color: white;
    border-radius: 10px;
    height: 100%;
    padding: 5px 2px 2px 5px;
    text-align: left;
}

.name{
    font-size: 18px;
    font-weight: bold;
    margin: 4px;
    border-radius: 5px;
    color:rgb(12, 161, 203);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.title{
    font-size: 25px;
    margin: 5px 0px;
    font-weight: 900;
    color: bisque;
}

.discription{
    font-size: 15px;
    margin: 5px 0px;
}

strong{
    color: rgb(191, 18, 188);
    text-transform: capitalize;
    font-size: 18px;
}

.btn{
    border: 1px solid rgb(12, 161, 203);
    background-color: rgb(7, 204, 243);
    color: black;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

.btn:hover{
    background-color: #833AB4;
    font-size: 17px;
}