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

/* Body & Headings */
body {
  background: linear-gradient(135deg, #fbe8e7, #ffe4d1);
  font-family: 'Roboto Mono', monospace;
  scroll-behavior: smooth;
}

h1, h3 {
  font-family: 'Bebas Neue', cursive;
}

/* Fade-in animation for text */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* Button Glow & Bounce */
.btn-glow:hover {
  box-shadow: 0 0 20px rgba(59, 22, 7, 0.7);
}
.btn-glow:active {
  transform: scale(0.95);
  transition: transform 0.1s ease-out;
}
.correct {
  color: green;
}

.incorrect {
  color: red;
  border-bottom: solid;
  
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

header h1 {
  color: #4b1c0a; /* warm brown tone, looks great on your background */
}

.dark header h1 {
  color: #f5f5f5;
}



/* Time Menu Minimal Style */
#time-menu {
  top: 0;
  left: 100%;
  margin-left: 0.25rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.85); /* نیمه شفاف */
  backdrop-filter: blur(6px); /* بلور پس‌زمینه */
  border-radius: 1rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 4px 12px rgba(59, 22, 7, 0.15);
  transition: all 0.3s ease;
  z-index: 70;
}

/* Time Buttons */
#time-menu .time-option {
  background: transparent;
  color: #5c230a;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

#time-menu .time-option:hover {
  background: #f6a3ab/20; /* صورتی پاستلی کم‌رنگ */
  border-color: #c8404d/40;
  cursor: pointer;
}

#time-menu .time-option:hover {
  background: #f9a8b0; /* صورتی پاستلی روشن */
  color: white;         /* متن روشن برای کنتراست */
  border-color: #f9a8b0; 
  cursor: pointer;
  transform: translateY(-2px); /* کمی بلند شدن هنگام هاور */
  transition: all 0.2s ease;
}

#time-menu {
  display: none;
}
