body {
  background-color: #f29ba1;
  font-family: monospace;
  text-align: center;
  font-size: medium;
  padding: 50px;
  margin: 0;
  overflow: hidden;  /* Changed from overflow-x */
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
}

/* Paragraph styling */
p {
  color: black;
  font-size: larger;
  margin-bottom: 20px;
  position: relative;
  max-width: 600px;  /* Add this to prevent text from being too wide */
  margin-left: auto;  /* Add this */
  margin-right: auto;  /* Add this - centers the text block */
  z-index: 1;  /* Add this to ensure text is behind button */
}

#theButton {
  position: fixed;
  left: 50%;
  top: 50%;  /* Changed from 200px */
  transform: translate(-50%, -50%);  /* Changed to center both horizontally and vertically */
  
  background-color: #f26e77;
  color: black;
  border-radius: 10px;
  font-weight: bold;
  font-size: larger;
  padding: 20px 40px;
  white-space: nowrap;

  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

#theButton:hover {
  box-shadow: 0 0 10px rgba(248, 48, 48, 0.774);
}

#theButton.active {
  background-color: #f4b9d0;
  color: white;
  box-shadow: 0 0 20px #e74c3c;
}

/* Timer elegantly centered at bottom */
#timer {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: black;
  font-size: larger;
  font-weight: bold;
}

/* Message centered above button */
#message {
  opacity: 0;
  font-size: large;
  color: black;
  margin: 20px 0;
  min-height: 40px;
  transition: opacity 0.1s ease;
}

/* Responsive tweaks for mobile */
@media (max-width: 600px) {
  #theButton {
    padding: 12px 24px;
    font-size: 1rem;
  }
}



/* === INDEX PAGE INPUT STYLE UPGRADE === */
body:not(:has(#theButton)) input,
body:not(:has(#theButton)) select {
  width: min(360px, 80vw);
  padding: 10px 14px;
  margin: 6px auto;
  border-radius: 10px;
  border: 2px solid #f4b9d0; /* soft pink border */
  background: #fff;
  font: inherit;               /* inherit font from body */
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


/* Hover: subtle highlight */
body:not(:has(#theButton)) input:hover,
body:not(:has(#theButton)) select:hover {
  border-color: #f26e77; /* your accent pink */
}

/* Focus: glow effect using your palette */
body:not(:has(#theButton)) input:focus,
body:not(:has(#theButton)) select:focus {
  outline: none;
  border-color: #f26e77;
  box-shadow: 0 0 8px rgba(242, 110, 119, 0.4);
}

body:not(:has(#theButton)) label {
    font-size: large;
}

#saveSettings {
  background-color: #f26e77;
  color: black;
  border-radius: 10px;
  font-weight: bold;
  font-size: larger;
  padding: 10px 30px;
  white-space: nowrap;

  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
}