:root {
  --main-color: #7d3a3a;
  --main-color-dark: #4a7142;
  --secondary-color: #b84040;
}

html {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif; /* Подключаем шрифт Anton из Google Fonts */
  font-weight: 300;
  background: var(--main-color);
  cursor: default;
  height: 100%;
  width: 100%;
}

/*Preloader*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}
.preloader img {
  animation: spin 1s linear infinite;
  width: 5vw;
}
.preloader-inner {
  background-color: #ececec;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.content {
  display: none; /* Начнет видимо после загрузки */
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  background: var(--main-color);
  box-shadow: inset 0px -10px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

nav ul li {
  margin: 1vw;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #ececec;

  font-size: 1.3vw;
  border-radius: 1vw;
  font-weight: bold;
  transition: 0.3s;
  display: block;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  top: 1.9vw;
  height: 0.2vw;
  background: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.section {
  flex-grow: 1;
  background-image: linear-gradient(
      to bottom,
      rgb(74 113 66) 0%,
      rgba(107, 99, 179, 0.4) 30%,
      rgba(107, 99, 179, 0.4) 70%,
      rgb(74 113 66) 100%
    ),
    url(/img/bg.png);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2vw 8vw;
}

.text-block {
  flex: 1;
  text-align: center;
  padding: 2vw;
  text-align: left;
}
.text-block h2 {
  background: linear-gradient(
    to bottom,
    #ececec 0%,
    /* серый цвет */ rgba(220, 220, 220, 1) 10%,
    /* более светлый серый */ rgba(255, 255, 255, 1) 50%,
    /* белый цвет */ rgba(220, 220, 220, 1) 90%,
    /* более светлый серый */ rgba(192, 192, 192, 1) 100% /* серый цвет */
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 900;
  font-size: 4vw;
  margin: 0;
  text-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.5);
  color: transparent;
}
.text-block p {
  color: #ececec;
  font-weight: 700;
  font-size: 1.4vw;
  margin: 0;
}
.image-block {
  text-align: center;
  position: relative;
}

.mainimg {
  width: 30vw;
  height: auto;
  margin-bottom: 4vw;
}
.overlay-image img {
  width: 10vw;
}
.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  animation: rotate 15s linear infinite;
}
.overlay-image-two {
  width: 7vw;
  position: absolute;
  top: 23vw;
  left: 35vw;
  animation: rotate 15s linear infinite;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.game-cont {
  padding-left: 10vw;
  padding-right: 10vw;
  position: relative;
  top: -5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw;
  margin-bottom: -4vh;
}

.game-block {
  background: #7d3a3a;
  display: flex;
  align-items: center;
  padding: 0.5vw;
  border-radius: 0.3vw;
  flex: 1;
  transition: transform 0.5s;
}
.image-square {
  border-radius: 0.3vw;
  margin-right: 1vw;
  width: 6vw;
  height: 6vw;
  background: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s;
}
.game-block:hover .text-content h3 {
  color: var(--secondary-color);
}
.game-block:hover .image-square {
  transform: rotate(360deg);
}
.game-block:hover {
  transform: scale(1.07);
}
.image-square img {
  width: 4vw;
}

.text-content {
  color: #ececec;
  width: 20vw;
}

.text-content h3 {
  margin: 0.5vw 0vw;
  font-size: 1.2vw;
  transition: transform 0.5s;
}

.text-content p {
  margin: 0;
  font-size: 0.9vw;
}
/*Game-list*/
.games {
  box-shadow: inset 0px 10px 20px rgba(0, 0, 0, 0.5);
  background: var(--main-color);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  /* padding-top: 8vw; */
}

.game-tit-g {
  text-align: center;
  margin-top: 20px;
  color: var(--main-color);
  background: linear-gradient(
    to bottom,
    #ececec 0%,
    /* серый цвет */ #dcdcdc 10%,
    /* более светлый серый */ #ffffff 50%,
    /* белый цвет */ rgba(220, 220, 220, 1) 90%,
    /* более светлый серый */ rgba(192, 192, 192, 1) 100% /* серый цвет */
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 900;
  font-size: 3vw;
  margin: 0;
  text-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.5);
  color: transparent;
}

.back {
  position: absolute;
  opacity: 0.2;
  top: 49vw;
  left: 40vw;
}
.back img {
  width: 45vw;
  animation: rotate 35s infinite linear;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.game-tit {
  text-align: center;
  margin-top: 20px;
  color: var(--main-color);
  background: linear-gradient(
    to bottom,
    #ececec 0%,
    /* серый цвет */ rgba(220, 220, 220, 1) 10%,
    /* более светлый серый */ rgba(255, 255, 255, 1) 50%,
    /* белый цвет */ rgba(220, 220, 220, 1) 90%,
    /* более светлый серый */ rgba(192, 192, 192, 1) 100% /* серый цвет */
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 900;
  font-size: 3vw;
  margin: 0;
  text-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.5);
  color: transparent;
}

.game-container {
  margin: 0 auto;
  background: var(--main-color);
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 столбца в каждом ряду */
  grid-gap: 2vw; /* Расстояние между блоками */
  padding-top: 5vw;
  margin-bottom: 4vw;
}

.game-cl {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-cl img {
  bottom: 0;
  border-radius: 0.2vw;
  width: 15vw;
  height: auto;
  transition: opacity 0.3s;
}

.game-cl .overlay {
  border-radius: 0.2vw;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Цвет затемнения с прозрачностью */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-cl:hover img {
  opacity: 0.7; /* Затемнение изображения при наведении */
}

.game-cl:hover .overlay {
  border: 0.15vw solid var(--secondary-color);
  opacity: 1; /* Появление затемнения с надписью и кнопкой при наведении */
}

.game-cl a {
  color: #ececec;
  font-weight: 500;
}
.game-cl h3 {
  cursor: default;
  color: #ececec;
  font-size: 1.5vw;
  margin-top: 8vw;
  margin-bottom: 1vw;
}

.game-cl a {
  color: #ececec;
  background: var(--secondary-color);
  padding: 0.6vw 1.2vw;
  border: none;
  font-size: 0.8vw;
  border-radius: 0.3vw;
  cursor: pointer;
  text-decoration: none; /* Убрать стандартное подчеркивание ссылок */
  transition: background 0.5s, color 0.5s; /* Плавное изменение фона и цвета текста при наведении */
}

.game-cl a:hover {
  background: #ececec;
  color: var(--secondary-color);
}

/*FOOTER*/
.footer {
  margin-top: auto;
  margin-bottom: 0;
  box-shadow: inset 0px 10px 20px rgba(0, 0, 0, 0.5);
  background-color: var(--main-color-dark);
  color: #ececec;
  text-align: center;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
  justify-content: space-around;
}

.block {
  flex: 1;
  width: 50vw;
  text-align: center;
  padding: 10px;
}
.block p {
  font-size: 1.1vw;
}
.ba {
  color: #ececec;
  font-weight: 600;
  margin-left: 1vw;
  font-size: 2.4vw !important;
  text-decoration: none;
}
.block a {
  text-decoration: none;
  color: #ececec;
  font-weight: 600;
  font-size: 1.4vw;
  margin-right: 0.5vw;
}
.block img {
  width: 3vw;
}
.block a:hover {
  color: var(--secondary-color);
}
.center-vertically {
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-vertically img {
  margin-right: 10px;
}

.gameprew {
  background-color: var(--main-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
iframe {
  height: 67vw;
  width: 95vw;
  border-radius: 2vw;
}
.hepl {
  width: 20vw !important;
}

.contact-form p {
  font-size: 1.4vw;
  color: #ececec;
}

label {
  display: block;
  font-weight: bold;
  color: #ececec;
}

label span {
  color: #ececec;
}

input[type="text"],
input[type="email"],
textarea {
  width: 60%;
  padding: 1.4vw;
  border: 0.07vw solid #ddd;
  border-radius: 0.35vw;
  font-size: 1.12vw;
  margin-top: 0.07vw;
}

button {
  color: #ececec;
  background: var(--secondary-color);
  padding: 0.6vw 1.2vw;
  border: none;
  font-size: 0.8vw;
  border-radius: 0.3vw;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.5s, color 0.5s;
}

button:hover {
  background: #ececec;
  color: var(--secondary-color);
}

/*MOBILE*/
@media (max-width: 768px) {
  .mainimg {
    width: 46vw;
    height: auto;
    margin-bottom: 4vw;
  }
  .section {
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    align-items: center;
    padding: 2vw 8vw;
  }
  .overlay-image {
    position: absolute;
    top: 0;
    width: 14vw;
    left: -18vw;
    animation: rotate 15s linear infinite;
  }
  nav ul li a {
    text-decoration: none;
    color: #ececec;
    font-size: 4.3vw;
    border-radius: 1vw;
    font-weight: bold;
    transition: 0.3s;
    display: block;
  }
  .text-block {
    flex: 1;
    text-align: center;
    padding: 2vw;
    text-align: center;
  }

  .footer {
    background-color: var(--main-color-dark);
    color: #ececec;
    text-align: center;
    /* position: absolute; */

    width: 100%;
    padding: 20px 0;
  }
  .footer a {
    text-decoration: none;
    color: #ececec;
    margin: 0 1vw;
    font-weight: 600;
    font-size: 2vw;
  }
  .block p {
    font-size: 3.1vw;
    margin: 0;
  }
  .ba {
    font-size: 4vw !important;
  }
  .block {
    flex: 1;
    width: 70vw;
    text-align: center;
    padding: 10px;
  }
  .game-container {
    background: var(--main-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2vw;
    padding-top: 25vw;
    margin-bottom: 4vw;
  }
  .game-cl img {
    border-radius: 1vw;
    width: 30vw;
    height: auto;
    transition: opacity 0.3s;
  }
  .back {
    position: absolute;
    top: 155vw;
    left: 30vw;
  }
  .back img {
    width: 58vw;
    animation: scale 3s infinite alternate;
  }
  .game-tit {
    text-align: center;
    margin-top: 20px;
    color: var(--main-color);
    background: linear-gradient(
      to bottom,
      #ececec 0%,
      /* серый цвет */ rgba(220, 220, 220, 1) 10%,
      /* более светлый серый */ rgba(255, 255, 255, 1) 50%,
      /* белый цвет */ rgba(220, 220, 220, 1) 90%,
      /* более светлый серый */ rgba(192, 192, 192, 1) 100% /* серый цвет */
    );
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
    font-size: 7vw;
    margin: 0;
    text-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.5);
    color: transparent;
  }
  .text-block h2 {
    background: linear-gradient(
      to bottom,
      #ececec 0%,
      /* серый цвет */ rgba(220, 220, 220, 1) 10%,
      /* более светлый серый */ rgba(255, 255, 255, 1) 50%,
      /* белый цвет */ rgba(220, 220, 220, 1) 90%,
      /* более светлый серый */ rgba(192, 192, 192, 1) 100% /* серый цвет */
    );
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
    font-size: 8vw;
    margin: 0;
    text-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.5);
    color: transparent;
  }
  .text-block p {
    color: #ececec;
    font-weight: 700;
    font-size: 3.4vw;
    margin: 0;
  }
  .text-block p {
    color: #ececec;
    font-weight: 700;
    font-size: 3.4vw;
    margin: 0;
  }
  .game-cont {
    display: none;
  }
  .game-cl a {
    color: #ececec;
    background: var(--secondary-color);
    padding: 0.6vw 1.2vw;
    border: none;
    font-size: 2.8vw;
    border-radius: 1.3vw;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.5s, color 0.5s;
  }
  .game-cl h3 {
    cursor: default;
    color: #ececec;
    font-size: 4.5vw;
    margin-top: 8vw;
    margin-bottom: 1vw;
  }
  iframe {
    height: 67vw;
    width: 100vw;
  }
  .gameprew {
    background-color: var(--main-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
  }
  .mob {
    width: 66vw;
  }
  .game-tit-g {
    text-align: center;
    margin-top: 20px;
    color: var(--main-color);
    background: linear-gradient(
      to bottom,
      #ececec 0%,
      /* серый цвет */ rgba(220, 220, 220, 1) 10%,
      /* более светлый серый */ rgba(255, 255, 255, 1) 50%,
      /* белый цвет */ rgba(220, 220, 220, 1) 90%,
      /* более светлый серый */ rgba(192, 192, 192, 1) 100% /* серый цвет */
    );
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
    font-size: 12vw;
    margin: 0;
    text-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.5);
    color: transparent;
  }
}

label {
  display: block;
  font-weight: bold;
  color: white;
}

.cookie-banner {
  box-sizing: border-box;
  display: none;
  border-top: 3px solid var(--secondary-color);
  gap: 2vw;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: #f1f1f1;
  padding: clamp(20px, 50px, 2em);
  text-align: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  height: auto;
  font-size: clamp(16px, 2vw, 20px);
}

.cookie-banner p {
  margin: 0;
  max-width: 70vw;
}

#accept-cookie {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 1em 2em;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: clamp(16px, 2vw, 20px);
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  .cookie-banner {
    padding: 20px;
    font-size: clamp(18px, 3vw, 24px);
  }
}

@media screen and (max-width: 767px) {
  .cookie-banner {
    padding: 10px;
    font-size: clamp(16px, 2vw, 20px);
  }
}

.gameprew {
  padding-bottom: 2vh;
}
