/* CSS Variables for theming */
:root {
  --bg-color: #f3f4f6;
  --text-color: #111827;
  --text-secondary: #4b5563;
  --button-bg: #2563eb;
  --button-text: #ffffff;
  --button-hover: #1d4ed8;
  --key-bg: #e5e7eb;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1rem;
  position: relative;
}

/* Header styles */
.header {
  position: absolute;
  top: 1rem;
  left: 0;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.total-time {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-secondary);
}

.round-number {
  font-size: 1.875rem;
  font-weight: bold;
}

/* Main content area */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.screen.active {
  display: flex;
}

/* Ready screen */
.ready-text {
  font-size: 8rem;
  font-weight: bold;
}

/* Exercise screen */
.exercise-name {
  font-size: 5rem;
  font-weight: bold;
  max-width: 100%;
  padding: 0 1rem;
}

.next-exercise {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

/* Timer screen */
.timer {
  font-size: 9rem;
  font-weight: bold;
}

/* Mobile button */
.mobile-button {
  width: 100%;
  padding: 1rem;
}

.mobile-button button {
  width: 100%;
  padding: 2rem 0;
  background-color: var(--button-bg);
  color: var(--button-text);
  font-size: 1.875rem;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.mobile-button button:hover {
  background-color: var(--button-hover);
}

/* Desktop instructions */
.desktop-instructions {
  width: 100%;
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
}

.key-hint {
  font-family: monospace;
  background-color: var(--key-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Responsive styles */
@media (min-width: 640px) {
  .ready-text {
    font-size: 9rem;
  }

  .exercise-name {
    font-size: 6rem;
  }

  .timer {
    font-size: 10rem;
  }

  .next-exercise {
    font-size: 1.875rem;
  }

  .total-time {
    font-size: 1.875rem;
  }

  .round-number {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .ready-text {
    font-size: 12rem;
  }

  .exercise-name {
    font-size: 7rem;
  }

  .timer {
    font-size: 12rem;
  }

  .next-exercise {
    font-size: 2.25rem;
  }

  .round-number {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .ready-text {
    font-size: 15rem;
  }

  .exercise-name {
    font-size: 8rem;
  }

  .timer {
    font-size: 15rem;
  }

  .next-exercise {
    font-size: 3rem;
  }
}

@media (min-width: 1280px) {
  .exercise-name {
    font-size: 9rem;
  }

  .timer {
    font-size: 18rem;
  }

  .next-exercise {
    font-size: 3.75rem;
  }
}
