@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
}

/* Toggle Switch */
.toggle-container {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle-label {
  margin-right: 0.5rem;
  font-size: 0.875rem;
  color: indigo;
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.toggle-switch:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: transform 0.3s;
}

.toggle-input {
  display: none;
}

.toggle-input:checked + .toggle-switch {
  background-color: #4f46e5; /* Indigo-500 */
}

.toggle-input:checked + .toggle-switch:before {
  transform: translateX(20px);
}

#container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.circle {
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  animation: bounce 0.6s infinite ease-in-out;
}

#ball-1 {
  animation-delay: -0.4s;
}

#ball-2 {
  animation-delay: -0.2s;
}

#ball-3 {
  animation-delay: 0s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
