/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #333;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.button:hover {
  background-color: #0056b3;
}

/* Card Styles */
.card {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 20px auto;
  perspective: 1000px; /* Enables 3D effects */
  cursor: pointer;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  color: #555;
  border-radius: 10px;
  backface-visibility: hidden; /* Ensures the back face is not visible during flip */
  transition: transform 0.6s ease-in-out;
}

.front {
  background: #f9f9f9;
  transform: rotateY(180deg); /* Initially hidden */
}

.back {
  background: #007bff;
  color: #fff;
}

/* Flip Animation */
.card.flipped .front {
  transform: rotateY(0deg); /* Show the front */
}

.card.flipped .back {
  transform: rotateY(-180deg); /* Hide the back */
}
