/*
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
#root,
#__next {
  isolation: isolate;
}

body {
  min-height: 100vh;
  font-family: "Arial", sans-serif;
  background-color: #282c34;
  color: #00bf63;
  overflow: hidden;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.controls-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

#stopButton,
#resetButton {
  padding: 10px 20px;
  font-size: 19.5px;
  cursor: pointer;
  background-color: #4a4f57;
  color: white;
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

#stopButton:hover,
#resetButton:hover {
  background-color: #5c626b;
}

.timer-display {
  font-size: 240px;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(0, 191, 99, 0.8);
  user-select: none;
  transition: color 0.5s, text-shadow 0.5s;
}

.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.modal-content {
  background-color: #333;
  padding: 36px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  color: white;
}

h2 {
  margin: 0 0 21px;
  color: #00bf63;
  font-size: 24px;
  line-height: 1;
}

#durationInput {
  padding: 10px;
  font-size: 24px;
  width: 120px;
  text-align: center;
  border: 2px solid #00bf63;
  border-radius: 5px;
  background-color: #444;
  color: white;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#startButton {
  padding: 12px 25px;
  font-size: 24px;
  cursor: pointer;
  background-color: #00bf63;
  color: #282c34;
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

#startButton:hover {
  background-color: #27d979;
}

/* Warning state for timer display */
.timer-display.warning {
  color: #ff6347;
  text-shadow: 0 0 20px rgba(255, 99, 71, 0.8);
}

.countdown-end {
  font-size: 120px;
}
