/* Чёрный экран в начале */
#overlay {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 999;
  animation: fadeOut 2s ease forwards;
}

/* Плавное появление страницы */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  color: white;
  scroll-behavior: smooth;
  opacity: 0;
  animation: appear 2s ease forwards;
}

/* Заголовок */
header {
  text-align: center;
  padding: 50px 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

header h1 {
  font-size: 3em;
  margin: 0;
  color: #00ffff;
}

header p {
  font-size: 1.2em;
  color: #c0f0ff;
}

main {
  padding: 40px 20px;
}

h2 {
  text-align: center;
  color: #00ffff;
}

/* Контейнер со списком игр */
.games-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  align-items: center;
}

/* Игровой блок */
.game-item {
  background: #112;
  border: 1px solid #00ffff66;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #00ffffaa;
}

/* Кнопка скачивания с анимацией */
.download-button {
  background: #00ffff;
  border: none;
  color: #000;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(100px);
  animation: slideIn 1s ease forwards;
  animation-delay: 1s; /* Задержка после загрузки */
}

/* Рейтинг */
.rating {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

.rating svg {
  width: 20px;
  height: 20px;
}


/* Анимации появления */
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

@keyframes appear {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Подвал */
footer {
  text-align: center;
  padding: 20px;
  background: #00000088;
  margin-top: 40px;
  font-size: 0.9em;
  color: #ccc;
}

