/* General styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
}

.container {
  max-width: 1200px;
  width: 90%;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
  color: #667eea;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Timers styles */
.timers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.timer {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-height: 400px;
}

.timer:hover {
  transform: translateY(-5px);
}

.timer h2 {
  color: #764ba2;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.time-display {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 1rem 0;
  min-height: 2.5rem;
}

.record {
  font-size: 1rem;
  color: #666;
  margin: 0.5rem 0;
}

.reset-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0.5rem 0;
}

.reset-btn:hover {
  background-color: #c0392b;
}

.chart-container {
  margin-top: 1rem;
  height: 200px;
  position: relative;
}

/* Responsive design */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .timers {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
  }

  .timer {
    padding: 1.5rem;
    min-height: auto;
  }

  .time-display {
    font-size: 1.5rem;
  }

  .chart-container {
    height: 150px;
  }

  .bedtime-wakeup {
    grid-column: span 1 !important;
  }
}

/* Responsive design */
@media (max-width: 900px) {
  .container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .timers {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
  }

  .timer {
    padding: 1.5rem;
    min-height: auto;
  }

  .time-display {
    font-size: 1.5rem;
  }

  .chart-container {
    height: 150px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timer {
  animation: fadeIn 0.5s ease-out;
}
