* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

header p{
  font-size: 18px;
  font-weight: 300;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}

.test-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.test-box {
  width: 320px;
  height: 320px;
  background-color: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: background-color 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 20px;
  color: #666;
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition: all 0.1s ease;
}

.test-box.waiting {
  background-color: #fff3cd;
  color: #856404;
}

.test-box.active {
  color: white;
}

.controls {
  display: flex;
  gap: 1.5rem;
}

button {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.start-btn {
  background-color: #4CAF50;
  color: white;
}

.start-btn:hover {
  background-color: #3e8e41;
  transform: translateY(-2px);
}

.stop-btn {
  background-color: #f44336;
  color: white;
}

.stop-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
}

.result-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  min-height: 40px;
}

.stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.stat-box {
  background-color: #f8f9fa;
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 25px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #6e8efb;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

.info-section {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #444;
  position: relative;
}

.info-section p {
  line-height: 1.5;
  margin-bottom: 15px;
  color: #555;
}

.keyboard-shortcuts {
  margin-top: 2rem;
}

.shortcut {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.key {
  background-color: #f1f2f3;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  margin-right: 1rem;
  min-width: 40px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

footer {
  width: 100%;
  opacity: 0.8;
  text-align: center;
}

.highlight {
  background-color: #fffacd;
  padding: 0 0.2rem;
  border-radius: 3px;
}
