:root {
  --primary: #4e54c8;
  --secondary: #8f94fb;
  --card-bg: rgba(255, 255, 255, 0.8);
  --text-color: #333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#clock {
  background: var(--card-bg);
  border-radius: 1rem;
  width: min(90vw, 400px);
  padding: 2rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

#clock-name {
  text-align: center;
  margin: 0 0 1.5rem;
}

.settings {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.setting-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.setting-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.set-number {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.control {
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.15);
}

#display {
  text-align: center;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.button {
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
  filter: drop-shadow(0 0.2rem 0.4rem rgba(0, 0, 0, 0.2));
  transition: transform 0.1s ease, filter 0.1s ease;
}

.control:hover,
.button:hover {
  transform: translateY(-0.1rem);
}

.control:active {
  transform: translateY(0.1rem);
  box-shadow: none;
}

.button:active {
  transform: translateY(0.1rem);
  filter: none;
}

#time {
  font-size: 3rem;
  margin: 0;
}

#session-break {
  font-size: 1.5rem;
  margin: 0.5rem 0 0;
}

@media (max-width: 480px) {
  #clock {
    padding: 1.5rem;
  }

  #time {
    font-size: 2.5rem;
  }

  #clock-name {
    font-size: 1.75rem;
  }

  .button {
    width: 2rem;
    height: 2rem;
  }
}

