/* public/style.css */
body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  overflow: hidden; /* Hide scrollbars on the body */
}

.pack-selection {
  text-align: center;
}

.pack-list {
  margin-top: 20px;
}

h2 {
  margin-top: 1.5em;
}

.pack-item {
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ccc;
  margin: 5px;
  background-color: #fff;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.pack-item:hover {
  background-color: #e0e0e0;
}

.mode-toggle {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.toggle-label {
  font-size: 16px;
  margin: 0 10px;
  cursor: pointer; /* Make the labels clickable */
}

.mode-toggle input[type="checkbox"] {
  position: relative;
  width: 50px;
  height: 25px;
  -webkit-appearance: none;
  appearance: none;
  background-color: #999;
  border-radius: 12.5px;
  outline: none;
  cursor: pointer;
  margin: 0 10px;
}

.mode-toggle input[type="checkbox"]:before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.mode-toggle input[type="checkbox"]:checked:before {
  left: 27px;
}

.card-container {
  perspective: 1000px;
  text-align: center;
  display: flex;
  flex-direction: column; /* Stack the card and button vertically */
  align-items: center; /* Center the card and button horizontally */
}

.card {
  width: 80vw;
  height: 60vh;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-in-out; /* Speed up the flip animation */
  cursor: pointer;
  margin-bottom: 20px; /* Add space between the card and the button */
  box-sizing: border-box; /* Include padding in the element's width and height */
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(0deg); /* Initial state for the card flip */
}

.card.flip-left {
  transform: rotateY(-180deg); /* Flip left when swiping left */
}

.card.flip-right {
  transform: rotateY(180deg); /* Flip right when swiping right */
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px; /* Add padding inside the card */
  box-sizing: border-box; /* Ensure padding doesn't affect the card's size */
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 2rem;
  background-color: #fff;
}

.back {
  transform: rotateY(180deg); /* Rotate the back side initially */
}

/* Next button */
.next-button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

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

.end-message {
  text-align: center;
}

.end-message h2 {
  margin-bottom: 20px;
}

.end-message button {
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

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