body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
  margin: 0;
}

.flashcard-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}


.flashcard {
  position: relative;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s;
  cursor: pointer;
  width: 200px; /* Set the width of the flashcard */
  height: 150px; /* Set the height of the flashcard */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}




.flashcard .question {
  text-align: center;
  font-size: 14px; /* Adjust the font size */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%; /* Set height to 100% to make it take up the entire flashcard */
}


.flashcard .answer {
  position: absolute;
  bottom: 30px; /* Adjust the position from the bottom */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Adjust for the width of the element */
  padding: 5px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  opacity: 0;
  transition: all 0.3s;
  border-radius: 5px; /* Add rounded corners */
  white-space: nowrap; /* Prevent the text from wrapping to a new line */
  z-index: 1; /* Ensure the answer appears on top of the eye icon */
}

.flashcard:hover .answer {
  opacity: 1;
}

/* ... other styles remain the same ... */
In this updated code, the .question and .answer classes both have a height: 100%, and the .answer class now has an opacity: 0. When hovering over the flashcards, the `.answer
