* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7fc;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  zoom: 1.2; /* Увеличение общего масштаба (эквивалентно 120%) */
}

/* Альтернатива zoom для кросс-браузерности — можно раскомментировать и убрать zoom */
/*
html {
  font-size: 20px;  Увеличенный базовый шрифт
}
*/

.container {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

h1 {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 36px;
  font-weight: bold;
}

h2 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 20px;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 20px 30px;
  margin: 15px 10px;
  border-radius: 12px;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

button:hover {
  background-color: #2980b9;
}

button:active {
  transform: scale(0.98);
}

input[type="number"] {
  padding: 18px;
  font-size: 36px;
  width: 180px;
  text-align: center;
  border: 3px solid #ddd;
  border-radius: 10px;
  margin: 20px 0;
}

input[type="number"]:focus {
  border-color: #3498db;
  outline: 4px solid rgba(52, 152, 219, 0.3);
  outline-offset: 2px;
}

.problem {
  font-size: 48px;
  margin: 30px 0;
  color: #2c3e50;
  font-weight: bold;
}

#feedback {
  font-size: 30px;
  margin: 20px 0;
  min-height: 40px;
  font-weight: 500;
}

.hidden {
  display: none;
}

p {
  margin: 15px 0;
  font-size: 24px;
}
/* Стили таблицы */
#results-table {
  width: 100%;
  margin: 20px auto;
  border-collapse: collapse;
  font-size: 20px;
}

#results-table th,
#results-table td {
  border: 2px solid #ddd;
  padding: 12px;
  text-align: center;
}

#results-table th {
  background-color: #f0f8ff;
  color: #2c3e50;
  font-weight: bold;
}

#results-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

#results-table tr:hover {
  background-color: #f0f8ff;
}

/* Статус позиции */
#rank-status {
  font-size: 24px;
  margin: 15px 0;
  font-weight: bold;
}

#rank-status.good {
  color: #27ae60;
}

#rank-status.bad {
  color: #e74c3c;
}

/* Анимация нового рекорда */
#new-record {
  font-size: 32px;
  color: #f39c12;
  margin: 20px 0;
  font-weight: bold;
  animation: bounce 0.6s ease infinite alternate;
}

.hidden {
  display: none;
}

@keyframes bounce {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}
