@font-face {
  font-family: "Itim";
  src: url(fonts/Itim-Regular.ttf);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Itim";
}

body {
  height: 100%;
  margin: 0;
  background-color: var(--color-blue);
}

a {
  text-decoration: none;
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.container {
  max-width: 1400px;
  padding: 0 20px;
  margin: 0 auto;
}

section {
  padding: 60px 0;
}

.heading {
  margin: 0;
  margin-bottom: 30px;
  font-size: 30px;
}

.text {
  margin: 0;
  margin-bottom: 20px;
  font-size: 25px;
}


/* header */
header {
  width: 100%;
  position: fixed;
  padding: 10px 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.6);
}

.header__container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  flex-direction: row;
  align-items: center;

  font-size: 30px;
  color: var(--color-white);

  transition: color 0.3s ease;
}

.header__logo_yellow {
  color: var(--color-yellow);
  transition: color 0.3s ease;
}

.header__logo:hover {
  color: var(--color-yellow);
}

.header__logo:hover .header__logo_yellow {
  color: var(--color-white);
}

.nav__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.nav__item .hero__btn {
  padding: 10px 20px;
}

.nav__list {
  font-size: 22px;
  color: var(--color-white);

  transition: color 0.3s ease;
}

.nav__list:hover {
  color: var(--color-yellow);
}

:root {
  --color-purple: #3a0066;
  --color-pink: #d60087;
  --color-yellow: #ffe600;
  --color-white: #ffffff;
  --color-red: #ff002e;
  --color-dark: #0a0a1a;
  --color-blue: #001933;
}

/* hero */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), url(images/hero__background.jpg) center/cover no-repeat;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.hero__heading {
  color: var(--color-white);
  font-size: 64px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeInLeft 1s 0.5s ease-out forwards;
}

.hero__text {
  color: var(--color-white);
  font-size: 20px;
  margin-bottom: 20px;
}

.hero__highlight {
  color: var(--color-yellow);
  font-weight: 700;
}

.hero__btn {
  background: var(--color-yellow);
  color: var(--color-dark);
  padding: 14px 36px;
  font-size: 18px;
  border-radius: 10px;
  transition: 0.3s ease;
}

.hero__btn:hover {
  transform: scale(1.05);
}

.hero__players {
  width: 100%;
  max-width: 600px;
  object-fit: cover;
  opacity: 0;
  animation: slideInRight 1s 0.7s ease-out forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.how-to-play {
  padding: 0;
}

/* play-steps */
.play-stepss {
  background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-pink) 100%);
  padding: 40px 0;
}

.play-steps {
  display: flex;
  justify-content: space-between;
}

.play-steps__step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-steps__number {
  font-size: 55px;
  color: var(--color-yellow);
  font-weight: 700;
}

.play-steps__desc {
  color: var(--color-white);
  font-size: 20px;
  margin: 0;
}

/* games-list */
.games-list {
  background-color: var(--color-blue);
}

.games-list__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 20px;
}

.games-list__link {
  display: flex;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.games-list__link--wide {
  grid-column: span 2;
}

.games-list__img {
  width: 100%;
  object-position: top;
  height: 200px;
  object-fit: cover;
  transition: 0.3s ease;
}

.games-list__label {
  margin: 0;
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--color-white);
  font-size: 20px;
  transition: 0.3s ease;
}

.games-list__link:hover .games-list__img {
  transform: scale(1.05);
}

.games-list__link:hover .games-list__label {
  background: var(--color-yellow);
  color: var(--color-dark);
}

/* live-slider */
.live-slider {
  height: 60vh;
  background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-pink) 100%);
  display: flex;
  align-items: center;
}

.live-slider__container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.live-slider__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 40px 20px;
  border-radius: 8px;
}

.live-slider__title,
.live-slider__subtitle {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.live-slider__title {
  color: var(--color-white);
  font-size: 36px;
  margin-bottom: 12px;
}

.live-slider__subtitle {
  color: var(--color-white);
  font-size: 18px;
  margin-bottom: 20px;
}

.live-slider__btn {
  background: var(--color-yellow);
  color: var(--color-dark);
  padding: 12px 28px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.live-slider__btn:hover {
  transform: scale(1.05);
}

.fade-out {
  opacity: 0;
}

/* popular-slots */
.popular-slots__heading {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-white);
  font-size: 32px;
}

.popular-slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.popular-slots__link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.popular-slots__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-slots__link:hover .popular-slots__img {
  transform: scale(1.05);
}

/* footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 80px 0;
  padding-bottom: 30px;
}

/* footer__top */
.footer__top {
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr minmax(200px, auto);
  gap: 40px;
  align-items: start;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 50px;
}

/* footer__social */
.footer__social-title {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--color-yellow);
}

.footer__social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__social-link {
  margin: 0;
  font-size: 14px;
  color: var(--color-white);
  transition: 0.3s ease;
}

.footer__social-link:hover {
  color: var(--color-yellow);
}

/* footer__nav */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
}

.footer__nav-link {
  font-size: 14px;
  color: var(--color-white);
  transition: 0.3s ease;
}

.footer__nav-link:hover {
  color: var(--color-yellow);
}

/* footer__payments */
.footer__payments-title {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--color-yellow);
}

.footer__payments-list {
  font-size: 14px;
  color: var(--color-white);
  line-height: 1.5;
}

/* footer__bottom */
.footer__bottom {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__heading {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--color-white);
}

/* footer__legal-links */
.footer__legal-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.footer__legal-link {
  display: block;
  font-size: 14px;
  color: var(--color-white);
  margin-bottom: 12px;
  transition: 0.3s ease;
}

.footer__legal-link:hover {
  color: var(--color-yellow);
}

/* stats */
.stats {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
  color: var(--color-white);
  padding: 80px 0;
}

.stats__intro {
  text-align: center;
  margin-bottom: 30px;
}

.stats__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stats__card {
  text-align: center;
}

.stats__emoji {
  font-size: 40px;
  margin-bottom: 20px;
}

.stats__label {
  color: var(--color-yellow);
  margin-bottom: 10px;
}

.stats__counter {
  font-size: 48px;
}

/* article */
.article {
  background: var(--color-blue);
  padding: 80px 0;
}

.article__container {
  background: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
}

.article__heading {
  font-size: 28px;
  color: var(--color-purple);
}

.article__text {
  font-size: 16px;
  margin: 0;
  color: var(--color-dark);
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 1000;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__dialog {
  position: relative;
  background: #141414;
  padding: 32px 24px;
  width: 90%;
  max-width: 420px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--color-white);
  cursor: pointer;
  transition: 0.3s ease;
}

.modal__close:hover {
  color: var(--color-white);
}

.modal__title {
  font-size: 22px;
  color: var(--color-yellow);
  text-align: center;
  margin-bottom: 16px;
}

.modal__subtitle {
  font-size: 14px;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 24px;
}

.modal__btn {
  background: var(--color-yellow);
  color: var(--color-dark);
  padding: 12px 36px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.modal__btn:hover {
  transform: scale(1.05);
}