/* BODY + THEMES */
body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  transition: background 0.5s, color 0.5s;
}

body.light {
  background: linear-gradient(to bottom right, #d0f0fd, #ffffff);
  color: #333;
}

body.dark {
  background: linear-gradient(to bottom right, #0b1e44, #1a2a5c);
  color: #fff;
}

/* CENTER BOX */
.container {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  width: 90%;
  max-width: 400px; /* fits both laptop and phone */
}

body.dark .container {
  background-color: rgba(20, 30, 60, 0.85);
}

/* HEADER */
h1 {
  color: #ff4da6;
  margin-bottom: 15px;
  font-size: 20px; /* smaller header for space */
}

/* INPUTS */
.time-input {
  margin-bottom: 10px;      
  display: flex;
  flex-direction: column;    
  align-items: flex-start;   
}

input {
  width: 100%;
  padding: 8px;
  margin: 5px 0 0 0;
  border: 2px solid #ffb6d9;
  border-radius: 12px;
  font-size: 14px;
}

/* TIMER DISPLAY */
#timer {
  font-size: 50px; /* bigger timer */
  margin: 20px 0;
}

/* TIGER MASCOT */
.mascot {
  width: 150px;  /* bigger tiger */
  display: block;
  margin: 15px auto;
}

/* BUTTONS */
button {
  background-color: #ff4da6;
  color: white;
  border: none;
  padding: 10px 16px;
  margin: 4px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

button:hover {
  background-color: #e6007e;
}

/* QUOTE */
#quote {
  margin-top: 20px;
  font-style: italic;
  color: #555;
  font-size: 13px;
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #bcd4ff;
  opacity: 0.8;
  background: none;
  border: none;
  text-align: right;
}

/* Light mode footer */
body.light footer {
  color: #002244;
}

/* Dark mode footer */
body.dark footer {
  color: #bcd4ff;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-height: 700px) {
  #timer {
    font-size: 40px;
  }
  .mascot {
    width: 120px;
  }
  h1 {
    font-size: 18px;
  }
  input {
    font-size: 13px;
    padding: 6px;
  }
  button {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 400px) {
  #timer {
    font-size: 45px;
  }
  .mascot {
    width: 130px;
  }
  h1 {
    font-size: 18px;
  }
  input {
    font-size: 13px;
    padding: 6px;
  }
  button {
    font-size: 13px;
    padding: 8px 12px;
  }
  #quote {
    font-size: 12px;
  }
}
