
.flip-container {
    perspective: 1000px;
}

.flipper {
    position: relative;
    max-width: 640px;
    
    min-height:250px; 
    max-height:250px; 
    
    transition: transform 0.4s;
    transform-style: preserve-3d;
}

.flipped {
    transform: rotateX(180deg);
}

.flip-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;

    white-space:normal; 
    word-wrap: break-word;
}

.front {
    background-color: #3f51b5; 
    color: white;
}

.back {
    background-color: white;
    color: black;
    transform: rotateX(180deg);
}


#confetti-wrapper {
  position: fixed;
  top: 0;
  left: 12%;
  width: 75%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: red;
  opacity: 0.8;
  transform: rotate(45deg);
  animation: fall 3s linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(200vh) rotate(360deg);
    opacity: 0;
  }
}

