/* Reset some basic styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  /* Use a soft blue gradient for the page background.  The subtle shift gives depth
     without distracting from the content. */
  background: linear-gradient(135deg, #f0f4fa 0%, #f7faff 100%);
  color: #334155;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: center;
  color: #1e3a8a;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #475569;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

label {
  font-weight: 600;
  color: #334155;
}

/* Style the text input for time entry. */
input[type="text"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus {
  border-color: #3b82f6;
}

button[type="submit"],
button#download-ics {
  background-color: #1e40af;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

button[type="submit"]:hover,
button#download-ics:hover {
  background-color: #1e3a8a;
  box-shadow: 0 4px 6px rgba(30, 64, 175, 0.25);
}

button[type="submit"]:active,
button#download-ics:active {
  background-color: #1e3a8a;
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

#schedule-display.hidden {
  display: none;
}

#schedule-display h2 {
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 1.5rem;
  color: #1e40af;
}

#feeding-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

#feeding-list li {
  padding: 0.3rem 0;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  color: #1e293b;
}

/* Canvas styling (centered) */
#clockCanvas {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 380px;
  width: 100%;
  height: auto;
}