/* General body styling */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f0f11;
  color: white;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #1a1a1d;
  align-items: center;
  animation: fadeIn 1s ease-in-out;
}

header h1 {
  color: #8e44ff;
  font-size: 1.5rem;
}

nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}

nav a:hover {
  color: #8e44ff;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #8e44ff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero section styling */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: #19191d;
  animation: slideUp 1s ease-out;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-in-out;
}

.hero p {
  color: #ccc;
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease-in-out;
}

.actions button {
  background: #8e44ff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  animation: bounceIn 1s ease-out;
}

.actions button:hover {
  background: #7d3cbe;
}

.actions .invite {
  background: #3498db;
}

.actions .invite:hover {
  background: #2980b9;
}

/* Features section styling */
.features {
  padding: 3rem 2rem;
  background: #0f0f11;
}

.features h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-in-out;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.feature {
  background: #1a1a1d;
  padding: 1.5rem;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.feature:hover {
  transform: scale(1.05);
}

/* Footer styling */
footer {
  padding: 1rem;
  text-align: center;
  background: #1a1a1d;
  color: #aaa;
  font-size: 0.9rem;
  animation: fadeIn 1.5s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Settings GUI */
#settingsBtn {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: #8e44ff;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
}

#settingsPanel {
  position: fixed;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  background: #1a1a1d;
  color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.6s ease-in-out;
  z-index: 999;
  pointer-events: none;
}

#settingsPanel.active {
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}

#settingsPanel .toggle-container {
  display: flex;
  align-items: center;
}

#settingsPanel .toggle-label {
  margin-left: 0.5rem;
}

input[type="range"] {
  width: 100%;
}

input[type="number"] {
  width: 80px;
}

.hidden {
  display: none;
}
