:root {
    --play-color: #40bd67;
    --stop-color: #e06c75;
    --card-color: #3a3f4b;
    --phase-ring-size: 220px;
}

body {
  margin: 0;
  padding: 0;
  font-family: monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #282c34;
  color: #abb2bf;
  font-weight: 500;
  overflow: hidden;
}

h1 {
  color: rgba(229, 192, 123, 1);
}

#controls {
  background-color: var(--card-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  transition: box-shadow 0.1s ease-out;
}

#controls.beat {
  box-shadow: 0 0 10px 4px rgba(229, 192, 123, 0.5);
}

#controls label {
  font-weight: bold;
  color: #e5c07b;
}

#controls input {
  width: 60px;
  padding: 8px;
  border: 1px solid #5c6370;
  border-radius: 4px;
  text-align: center;
  font-size: 1em;
  background-color: #21252b;
  color: #abb2bf;
}

.start-stop-button {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  width: 60px;
  height: 60px;
  font-size: 3em;
  cursor: pointer;
  border-radius: 30px;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

#start-button {
  padding-left: 10px;
  border: 4px solid var(--play-color);
  color: var(--play-color);
}

#start-button:hover {
  color: white;
  background-color: var(--play-color);
}

#stop-button {
  border: 4px solid var(--stop-color);
  color: var(--stop-color);
  padding: 17px;
}
#stop-button:hover {
  color: white;
  background-color: var(--stop-color);
}

#phaseShiftDisplay {
  font-size: 0.9em;
  color: #abb2bf;
  min-width: 80px;
  text-align: center;
}

.phase-ring {
    width: var(--phase-ring-size);
    height: var(--phase-ring-size);
    position: relative;
    user-select: none;
    touch-action: none;
}
.phase-ring-outer {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
}
.phase-ring-inner {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background-color: var(--card-color);
    display: flex;
    justify-content: center;
    align-items: center;
}
.phase-ring button {
    width: 35px;
    height: 35px;
    background-color: gold;
    border: 5px solid var(--card-color);
    border-radius: 50%;
    position: absolute;
    top: -10px;
    transform-origin: center calc(var(--phase-ring-size) / 2 + 10px);
}
.phase-ring-label {
    font-size: 3em;
    font-weight: bold;
}
