body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

body::before {
  content: "🍕 🦁 🏙️ 🛠️ 🎬 👩‍⚕️";
  position: absolute;
  top: 0;
  left: 0;
  font-size: 4rem;
  opacity: 0.05;
  animation: floatIcons 20s linear infinite;
  pointer-events: none;
}

@keyframes floatIcons {
  0% { transform: translateY(100vh) rotate(0deg); }
  100% { transform: translateY(-100vh) rotate(360deg); }
}

.game-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  max-width: 500px;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

select, input, button {
  padding: 10px 20px;
  margin: 10px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

button {
  background: #e94560;
  color: white;
  transition: 0.3s;
}

button:hover {
  background: #ff2e63;
}

#wordDisplay {
  font-size: 1.8rem;
  margin: 20px 0;
  animation: fadeIn 0.8s ease-in-out;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Friend Groups Styling */
.friend-groups-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
}

.friend-groups-section h3 {
  margin-top: 0;
  color: #e94560;
}

.group-management {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.group-management button {
  background: #4a90e2;
  font-size: 0.9rem;
  padding: 8px 16px;
}

.group-management button:hover {
  background: #357abd;
}

/* Modal Styling */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal.hidden {
  display: none !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

.modal-content {
  background: #1a1a2e;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 2px solid #e94560;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.close:hover {
  color: #e94560;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#groupMembersContainer {
  margin: 1rem 0;
}

.member-input {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  gap: 10px;
}

.member-input input {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.remove-member {
  background: #e94560;
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-member:hover {
  background: #ff2e63;
}

.group-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-info h4 {
  margin: 0 0 0.5rem 0;
  color: #e94560;
}

.group-info p {
  margin: 0;
  color: #ccc;
  font-size: 0.9rem;
}

.group-actions {
  display: flex;
  gap: 5px;
}

.group-actions button {
  padding: 5px 10px;
  font-size: 0.8rem;
  background: #4a90e2;
}

.group-actions button.delete {
  background: #e94560;
}

.group-actions button:hover {
  opacity: 0.8;
}
