/* Body: centers horizontally, slightly higher vertically */
body {
  font-family: Arial, sans-serif;
  background: PaleGoldenrod;
  display: flex;
  justify-content: center;    /* horizontal center */
  align-items: flex-start;    /* align to top instead of center */
  height: 100vh;              /* full viewport height */
  padding-top: 80px;          /* moves cards down from very top */
  margin: 0;                  /* remove default body margin */
}

/* Container for the flashcards */
.app {
  text-align: center;
}

/* Flashcard styling */
.flashcard {
  width: 300px;
  height: 180px;              /* keep same size */
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin: 20px auto;          /* spacing between cards if multiple */
  cursor: pointer;
  position: relative;
  perspective: 1000px;
  margin-bottom: 20px;
}

/* Front/Back sides */
.flashcard div {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding: 20px;
  
}

.front {
  background: #ffffff;
}

.back {
  background: DarkOliveGreen;
  color: white;
  transform: rotateY(180deg);
}

.flashcard.flip .front {
  transform: rotateY(180deg);
}

.flashcard.flip .back {
  transform: rotateY(360deg);
}

/* Buttons */
.controls button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background: DarkOliveGreen;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  padding-top: 50px;
  margin-top: 50px;
}

.controls button:hover {
  background: #3730a3;
}

