@font-face {
  font-family: "RobotoMono";
  src: url(fonts/RobotoMono-Regular.ttf);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "RobotoMono";
}

body {
  height: 100%;
  margin: 0;
  background-color: var(--black);
}

a {
  text-decoration: none;
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

section {
  padding: 30px 0;
}

main {
  padding-top: 50px;
}

.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;
}

.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: 25px;
  color: var(--primary);

  transition: color 0.3s ease;
}

.header__logo:hover {
  color: var(--accent);
}

.nav__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.nav__list {
  color: var(--white);
  font-size: 22px;
  transition: .3s ease;
}

.nav__list:hover {
  color: var(--accent);
}

:root {
  --primary: #1abc9c;
  --primary-dark: #117a65;
  --accent: #f1c40f;
  --white: #ffffff;
  --black: #000000;
  --gray: #7f8c8d;
}

/* hero */
.hero__container {
  overflow: hidden;
  padding: 0;
  position: relative;
  border-radius: 20px;
}

.hero__slider {
  display: flex;
  transition: transform 0.5s ease;
}

.hero__slide {
  position: relative;
  min-width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero__slide--one {
  background-image: url("images/hero-slide-1.webp");
}

.hero__slide--two {
  background-image: url("images/hero-slide-2.webp");
}

.hero__slide--three {
  background-image: url("images/hero-slide-3.webp");
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero__content {
  padding: 0 20px;
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center;
  color: var(--white);
}

.hero__heading {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--white);
}

.hero__text {
  font-size: 20px;
  color: var(--white);
}

/* token */
.token {
  position: absolute;
  bottom: -40px;
  width: 24px;
  height: 24px;
  background-image: url("images/token.svg");
  background-size: cover;
  animation: float 6s linear forwards;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-120vh) scale(1.5);
    opacity: 0;
  }
}

/* ticker */
.ticker {
  padding: 0;
}

.ticker__container {
  padding: 10px 20px;
  background: var(--primary);
  overflow: hidden;
  border-radius: 20px;
}

.ticker__track {
  display: flex;
  animation: scroll 15s linear infinite;
}

.ticker__item {
  white-space: nowrap;
  padding-right: 50px;
  font-size: 16px;
  color: var(--black);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* jackpot */
.jackpot__container {
  text-align: center;
}

.jackpot__heading {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.jackpot__board {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 28px 24px;
  border-radius: 14px;
  background: #001820;
}

.jackpot__board::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.jackpot__digit-box,
.jackpot__sep {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jackpot__digit-box {
  width: 54px;
  height: 72px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: #01222b;
}

.jackpot__digit,
.jackpot__sep {
  font-weight: 700;
  font-size: 40px;
  color: var(--accent);
}

.jackpot__sep {
  width: 26px;
  height: 72px;
}

/* categories */
.categories__container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.categories__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  transition: 0.3s ease;
}

.categories__link:hover,
.categories__link--active {
  background: var(--primary);
  color: var(--black);
}

/* games */
.games {
  padding-top: 0;
}

.games__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.games__heading {
  margin-bottom: 15px;
  font-size: 30px;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 7px 10px;
  border-radius: 10px;
}

.games__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.games__card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.games__card::after {
  content: "Popular";
  position: absolute;
  top: 0;
  left: 0px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary);
  color: var(--black);
  border-radius: 0 0 30px 0;
}

.games__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.3s ease;
}

.games__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-weight: 700;
  opacity: 0;
  transition: 0.3s ease;
}

.games__card:hover .games__img {
  filter: blur(2px) brightness(0.7);
}

.games__card:hover .games__play {
  opacity: 1;
}

.games__nav {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.games__arrow,
.games__more {
  border: 1px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  transition: 0.3s ease;
}

.games__arrow:hover,
.games__more:hover {
  background: var(--primary-dark);
}

/* slots-nav */
.slots-nav {
  width: 100%;
}

.slots-nav__container {
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  padding: 18px 24px;
  background: #001820;
  border-radius: 0 0 18px 18px;
  overflow-x: auto;
}

.slots-nav__item {
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 60px;
  padding: 0 22px;
  position: relative;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.3s ease;
}

.slots-nav__item:last-child {
  border-right: none;
}

.slots-nav__item--active {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  font-weight: 700;
}

.slots__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.slots__heading {
  font-size: 30px;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid var(--primary);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  color: var(--primary);

  transform: translateX(1px);
}

.slots-nav__img {
  max-height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: 0.3s ease;
}

.slots-nav__item:hover .slots-nav__img {
  filter: none;
}

.games__card_fish::after {
  content: "Fish";
}

.games__card_card::after {
  content: "Card";
}

.games__card_live::after {
  content: "Live";
}

.games__card_slots::after {
  content: "Slots";
}

/* winners */
.winners__heading {
  color: var(--white);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.winners__slider {
  overflow: hidden;
}

.winners__track {
  display: flex;
  gap: 20px;
  transition: 0.5s ease;
}

.winners__card {
  flex: 0 0 calc(33.333% - 20px);
  background: #01222b url("images/world-map.svg") center/cover no-repeat;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 640px) {
  .winners__card {
    flex: 0 0 100%;
  }
}

.winners__top {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
}

.winners__img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.winners__game {
  margin: 0;
  font-weight: 700;
  color: var(--white);
}

.winners__nick,
.winners__date {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.winners__date {
  width: 100%;
}

.winners__amount {
  font-weight: 700;
  margin: 0;
  margin-top: auto;
  font-size: 20px;
  color: var(--accent);
}

.winners__btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* footer */
.footer {
  background: #001820;
  padding: 40px 0;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer__logo {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer__copy {
  color: var(--gray);
  font-size: 14px;
  line-height: 20px;
}

.footer__title {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--white);
}

.footer__link {
  display: block;
  margin-bottom: 10px;
  color: var(--gray);
  transition: 0.3s ease;
  font-size: 15px;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__rg {
  margin-top: 28px;
}

/* burger */
.burger {
  display: none;
  height: 100%;
}

.nav__burger {
  top: 0;
  right: 0;
  padding: 50px 100px;
  width: 100%;
  position: absolute;
  z-index: 99;

  display: none;
  flex-direction: column;

  background-color: #000;
}

.nav__burger .nav__list {
  font-size: 30px;
  color: #fff;
}

.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.overflow {
  overflow: hidden;
}

.burger-checkbox {
  position: absolute;
  visibility: hidden;
  right: 0;
}

.burger {
  cursor: pointer;
  display: block;
  color: #fff;
  position: relative;
  border: none;
  background: transparent;
  width: 30px;
  height: 23px;
  z-index: 100;
}

.burger::before,
.burger::after {
  content: "";
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 10px;
  background-color: #fff;
}

.burger::before {
  top: 0px;
  box-shadow: 0 11px 0 #fff;
  transition: box-shadow 0.3s 0.15s, top 0.3s 0.15s, transform 0.3s;
}

.burger::after {
  bottom: 0;
  transition: bottom 0.3s 0.15s, transform 0.3s;
}

.burger-checkbox:checked+.burger::before {
  top: 12px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 transparent;
  transition: box-shadow 0.15s, top 0.3s, transform 0.3s 0.15s;
}

.burger-checkbox:checked+.burger::after {
  bottom: 9px;
  transform: rotate(-45deg);
  transition: bottom 0.3s, transform 0.3s 0.15s;
}

/* end burger */

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal__dialog {
  position: relative;
  background: var(--primary-dark);
  padding: 24px 32px;
  border-radius: 8px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

.modal__title {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--white);
}

.modal__subtitle {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--black);
}

.modal__btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--black);
  border-radius: 4px;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s ease;
}

.modal__btn:hover {
  background: var(--primary);
}