@charset "UTF-8";
@font-face {
  font-family: "Roboto";
  font-display: swap;
  src: url(../fonts/Roboto.woff2) format("woff2"), url(../fonts/Roboto.woff) format("woff");
  font-style: normal;
}
* {
  padding: 0;
  margin: 0;
  border: 0;
}

*,
:after,
:before {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
html {
  height: 100%;
  min-width: 320px;
}

body {
  color: #000;
  background-color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  font-family: "Roboto";
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea {
  font-family: "Roboto";
  font-size: inherit;
}

button {
  cursor: pointer;
  color: inherit;
  background-color: inherit;
}

a {
  color: inherit;
}

a:link,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

.lock body {
  overflow: hidden;
  touch-action: none;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wrapper > main {
  flex: 1 1 auto;
}

img {
  max-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  height: auto;
}

a {
  transition: color 0.3s ease 0s;
}

/* --- ОБЩИЕ СТИЛИ --- */
:root {
  --primary-color: #4CAF50; /* Основной зеленый цвет */
  --dark-bg: #121212; /* Темный фон */
  --card-bg: #1e1e1e; /* Фон карточек */
  --text-color: #ffffff; /* Основной текст */
  --secondary-text-color: #aaaaaa; /* Второстепенный текст (жанр) */
  --border-color: #333333; /* Цвет границ */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
}

/* --- ШАПКА САЙТА --- */
header {
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  font-size: 3em;
  color: var(--primary-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- ОСНОВНОЙ КОНТЕНТ --- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#games-catalog {
  text-align: center;
}

#games-catalog h2 {
  font-size: 2.2em;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 10px;
}

/* --- СЕТКА ИГР --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* --- КАРТОЧКА ИГРЫ --- */
.game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.game-card img {
  width: 100%;
  height: 160px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.game-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.4em;
}

.game-card .genre {
  color: var(--secondary-text-color);
  font-size: 0.9em;
  margin: 0 0 20px 0;
}

.play-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.play-button:hover {
  background-color: #45a049;
}

/* --- ПОДВАЛ САЙТА --- */
footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  font-size: 0.9em;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}/*# sourceMappingURL=style.css.map */