:root {
  --primary: #0071e3;
  --primary-hover: #574fd6;
  --darkest: #031944;
  --gradient-1: #1bcbf9;
  --gradient-2: #5833fd;
  --gradient-3: #0b0921;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: var(--darkest);
  color: #fff;
  transition: background 0.5s ease, color 0.3s ease;
}

body.light {
  background-color: #ebedee;
  color: var(--darkest);
}

body.break {
  background-color: #272C18;
  color: #fff;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#phaseLabel {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: none;
}

#timerDisplay {
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1rem 2rem;
}

.controls, .info-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

#btn--settings, #btn--theme {
  position: absolute;
  top: 1rem;
  background: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
}

#btn--settings {
  right: 1rem;
}

#btn--theme {
  left: 1rem;
}

.hide {
  display: none;
}

.modal, .info-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--glass-bg);
  color: inherit;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 100;
  max-width: 400px;
  text-align: left;
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inputs input {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.close-x {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
}