.flip-card {
    background-color: transparent;
    width: 200px;
    height: 120px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-front {
    background-color: #f8f9fa;
    color: #000;
}

.card-back {
    background-color: #343a40;
    color: white;
    transform: rotateY(180deg);
}

.fixed-card-text {
    width: 300px;
    height: 100px;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-theory {
    border-top: 7px solid #fff; 
    border-radius:4px;
    padding: 1px;
}

.card-lab {
    border-top: 7px solid #000; 
    border-radius:4px;
    padding: 1px;
}
p{
    margin-top:0px
}