body {
  background: linear-gradient(to bottom, #ffe4e6, #fecaca);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

.question-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

/* Card styles */
#cardArea {
  width: 100%;
  max-width: 400px;
  position: relative;
  text-align: center;
}

.swipe-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  justify-content: center; /* center vertically */
  align-items: center;     /* center horizontally */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative; 
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.swipe-card.active {
  display: block;
}

.image-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 15px;
}

/* Buttons */
.button-group {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  border: none;
}

.swipe-left {
  background: #e74c3c;
  color: white;
}

.swipe-left:hover {
  background: #c0392b;
}

.swipe-right {
  background: #2ecc71;
  color: white;
}

.swipe-right:hover {
  background: #27ae60;
}

/* Page Container */
.create-room-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #ffe4e6, #fecaca);
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Title */
.page-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

/* Form Styling */
.create-room-form {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #555;
}

.form-input {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #fb7185; /* rose-400 */
}

.submit-btn {
  background: linear-gradient(to right, #f43f5e, #fb923c); /* rose-500 to orange-400 */
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(to right, #e11d48, #f97316); /* darker on hover */
}

/* Lobby and Join Room shared container */
.lobby-container,
.join-room-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #ffe4e6, #fecaca);
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Common Heading Styles */
.lobby-title,
.join-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

/* Invite link input */
.invite-link {
  width: 100%;
  max-width: 500px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 15px;
  text-align: center;
  font-size: 16px;
  margin-top: 10px;
  color: #b91c1c;
}

/* Form inside the lobby */
.add-answer-form,
.join-form {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  flex-grow: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.input-group input:focus {
  outline: none;
  border-color: #fb7185;
}

/* List groups */
.list-group {
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.list-group-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 16px;
  color: #555;
}

.list-group-item:last-child {
  border-bottom: none;
}

/* Start Activity Button */
.start-activity-btn {
  background: linear-gradient(to right, #3b82f6, #9333ea); /* blue to purple */
  color: white;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  margin-top: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.start-activity-btn:hover {
  background: linear-gradient(to right, #2563eb, #7e22ce);
}

.page-title-img {
  width: 360px; /* made title bigger */
  margin-top: -200px;
  margin-bottom: -100px; /* pushed cards closer to title */
}

.cards-img {
  width: 180px;
  margin-bottom: 15px; /* made margin under cards smaller */
}

.breathing {
  animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Tooltip styling */
.tooltip {
  margin-left: 8px;
  cursor: pointer;
  font-size: 18px;
  vertical-align: middle;
}
.tooltip:hover::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  top: 100%;
  left: 0;
  white-space: nowrap;
  font-size: 12px;
  transform: translateY(5px);
}

.swipe-card {
  touch-action: pan-y;
}

.results-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #ffe4e6, #fecaca);
  padding: 20px;
  font-family: Arial, sans-serif;
}

.results-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}

.results-table {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.results-table th,
.results-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  font-size: 18px;
}

.results-table th {
  background: #fef2f2;
  font-weight: bold;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.start-another-btn {
  margin-top: 30px;
  background: linear-gradient(to right, #3b82f6, #9333ea); /* blue to purple */
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.start-another-btn:hover {
  background: linear-gradient(to right, #2563eb, #7e22ce); /* darker hover */
}

#infoIcon:hover {
  color: #0a58ca;
}
