body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(-45deg, #6a11cb, #2575fc, #f7971e, #ffd200);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: Arial, sans-serif;
    margin: 0;
  }
  
  @keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
  }
  
  .card {
    perspective: 1000px;
  }
  
  .card-inner {
    width: 350px;
    height: 400px; 
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  .card.flipped .card-inner {
    transform: rotateY(180deg);
  }
  
  .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    padding: 2.5rem;
    text-align: center;
  }
  
  .card-back {
    transform: rotateY(180deg);
  }
  
  button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    background-color: #2575fc;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  button:hover {
    background-color: #6a11cb;
  }
  
  .typing {
    border-right: .1em solid #2575fc;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 1.5s steps(30, end), blink 0.5s step-end infinite alternate;
  }
  
  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }
  
  @keyframes blink {
    50% { border-color: transparent; }
  }
  
  .card-back p {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
  }
  
  .card-back p:nth-child(2){ animation-delay: 0.2s; }
  .card-back p:nth-child(3){ animation-delay: 0.4s; }
  .card-back p:nth-child(4){ animation-delay: 0.6s; }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
