body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

/* Навигация — вкладки в строчку */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 12px 24px;
  text-decoration: none;
  color: #007BFF;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
}

nav a:hover {
  background-color: #e8f4fd;
}

nav a.active {
  background-color: #007BFF;
  color: white;
}

/* Содержимое вкладок */
.content {
  display: none;
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main {
  display: block;
  /* Главная страница всегда видна */
}

/* Разделение по авторам */
.author {
  margin-bottom: 30px;
}

.author h3 {
  color: #007BFF;
  border-bottom: 2px solid #007BFF;
  padding-bottom: 5px;
  margin-top: 20px;
}

.author ul {
  list-style: none;
  padding: 0;
}

.author li {
  margin-bottom: 10px;
}

.author a {
  text-decoration: none;
  color: #333;
  padding: 8px 15px;
  display: block;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.author a:hover {
  background-color: #f8f9fa;
  border-left-color: #007BFF;
  color: #007BFF;
}

/* Отображение текста произведения */
.poem-text,
.song-text {
  display: none;
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.poem-text h3,
.song-text h3 {
  color: #2c3e50;
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.poem-text p,
.song-text p {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Кнопка «Назад» */
.back-button {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #545b62;
}

/* Подвал */
footer {
  text-align: center;
  margin-top: 30px;
  padding: 10px;
  color: #666;
  font-size: 14px;
}