.flashcard {
  transition: 0.5s;
  transform-style: preserve-3d;
  position: relative;
  margin: 0px 1vw;
  font-size: calc(28px - 1vmin);
  cursor: pointer;
  z-index: 3;
  outline: none;
  box-shadow: 0px 0px 20px -10px black;
}

.flipme {
  transform: rotateY(180deg);
}


.flashcard .front, .flashcard .back {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0px 1px 4px #a7a7a6;
}


.flashcard .front{
  z-index: 2;
  backface-visibility: hidden;
  transform: rotateY(0);
}

.flashcard .back {
  transform: rotateY(180deg);
  color: black;
  background-color: white;
  z-index: 1;

}
#clases .flashcard {
  min-height: 250px !important;
  margin: 20px 5px !important;
  transition: 1s !important;
  line-height: 25px;
  width: auto;
  user-select: none;
}

#clases .cards-container {
  position: relative;
  height: calc(100% - 50px);
  display: flex;
  flex-direction: column;
}

#clases .flashcard .front {
  color: black;
  background-color: aliceblue;
  transition: 0.5s;
  font-size: 28px;
}

#clases .flashcard .front:hover {
  font-size: 2em;
  background-color: #99e1ff;
  box-shadow: 0px 0px 20px -10px black;
}

#clases .flashcard .back {
  background-color: #ffbf34;
}
