:root {
  --bg: #f4f6fa;
  --text: #000;
  --card: #fff;
  --button-bg: #0077ff;
  --button-hover: #005ccc;
}


@media (max-width: 600px) {
  body {
    font-size: 18px; /* текст крупнее на телефоне */
  }

  .menu button,
  .quiz button {
    font-size: 16px;
    padding: 12px;
  }

  input[type="text"] {
    font-size: 16px;
    padding: 10px;
    width: 100%; /* на весь экран */
    box-sizing: border-box;
  }
}

body.light footer {
  background: #f9f9f9;
  color: #555;
  border-top: 1px solid #ddd;
}

body.dark footer {
  background: #111;
  color: #aaa;
  border-top: 1px solid #333;
}

body.dark {
  --bg: #1e1e1e;
  --text: #f5f5f5;
  --card: #2c2c2c;
  --button-bg: #3a7afe;
  --button-hover: #255ccc;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

#app {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: 350px;
  text-align: center;
  position: relative;
}

.hidden { display: none; }

button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  background: var(--button-bg);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: var(--button-hover);
}

input {
  padding: 8px;
  margin: 10px 0;
  width: 80%;
  border: 1px solid #aaa;
  border-radius: 6px;
}

/* визуальный отклик */
.correct { background: #c8f7c5; }
.wrong   { background: #f7c5c5; }

/* переключатель темы */
#themeToggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  border: none;
  color: var(--text);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  padding: 1rem 0;
  position: fixed;    /* всегда снизу */
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f9f9f9; /* можно убрать или заменить */
  border-top: 1px solid #ddd;
}
