@import url('./flap.css');

:root {
  --bg-color: #0f0f0f;
  --text-color: #f2f2f2;
  --accent-color: #e2e2e2;
  --flap-bg: #1a1a1a;
  --divider-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.8);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', monospace;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.title {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.8;
  letter-spacing: 0.1em;
  font-weight: 300;
  text-transform: uppercase;
}

.display-container {
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.split-flap-row {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* ===== CONTROLS ===== */
.animate-btn {
  background: linear-gradient(45deg, #333, #555);
  border: 1px solid #666;
  color: var(--text-color);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  margin: 1rem 0;
}

.animate-btn:hover {
  background: linear-gradient(45deg, #444, #666);
  border-color: #777;
}

.animate-btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .title {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .display-container {
    gap: 0.25rem;
  }

  .split-flap-row {
    gap: 0.15rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }

  .animate-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }
}
