@font-face {
  font-family: "Oswald";
  src: url(fonts/Oswald-Regular.ttf);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  height: 100%;
  margin: 0;
  font-family: "Oswald";
  background-color: var(--bg-secondary);
}

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;
}

main {
  padding-top: 95px;
}

.heading {
  margin: 0;
  margin-bottom: 30px;
  font-size: 30px;
}

.text {
  margin: 0;
  margin-bottom: 20px;
  font-size: 25px;
}

/* burger */
.burger {
  display: none;
  height: 100%;
}

.nav__burger {
  top: 0;
  right: 0;
  padding: 70px;
  width: 100%;
  position: absolute;
  z-index: 99;

  display: none;
  flex-direction: column;

  background-color: #333;
  border-radius: 20px;
  border: 1px solid var(--primary-color);
}

.nav__burger .nav__list {
  margin-left: auto;
  font-size: 30px;
  color: #fff;
}

.active {
  display: flex;
}

.overflow {
  overflow: hidden;
}

.burger-checkbox {
  position: absolute;
  visibility: hidden;
  right: 0;
}

.burger {
  cursor: pointer;
  display: none;
  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 */


/* header */
header {
  max-width: 1500px;
  border-radius: 20px;
  width: 90%;
  transform: translateX(-50%);
  position: fixed;
  left: 50%;
  padding: 10px 0;
  padding-top: 0px;
  z-index: 99;
  background-color: var(--border-color);
  border: 1px solid var(--primary-color);
}

.header__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  flex-direction: row;
  align-items: center;

  font-size: 30px;
  color: var(--primary-color);

  transition: color 0.3s ease;
}

.header__logo:hover {
  color: var(--btn-color);
}

.nav__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.nav__list {
  font-size: 20px;
  color: var(--text-color);
  transition: color .3s ease;
}

.nav__list:hover {
  color: var(--btn-color);
}

:root {
  --bg-color: #0b0f1b;
  --bg-secondary: #111623;
  --primary-color: #ffd700;
  --text-color: #ffffff;
  --text-secondary: #a1a7bb;
  --btn-color: #ffb700;
  --highlight-color: #ff3366;
  --border-color: #2d3242;
  --gradient-color: linear-gradient(90deg, #ffb700 0%, #ff3366 100%);
}


/* hero  */
.hero {
  padding: 30px 0;
}

.hero__container {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
}

.hero__slider {

  display: flex;
  transition: transform 0.3s ease;
}

.hero__slide {
  border-radius: 30px;
  flex: 0 0 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.hero__slide--one {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("images/slide1.webp") center/cover no-repeat;
}

.hero__slide--two {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("images/slide2.webp") center/cover no-repeat;
}

.hero__slide--three {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("images/slide3.webp") center/cover no-repeat;
}

.hero__content {
  background: rgba(0, 0, 0, 0.5);
  padding: 24px;
  border-radius: 8px;
  max-width: 600px;
}

.hero__heading {
  color: var(--text-color);
  font-size: 36px;
  margin-bottom: 15px;
}

.hero__text {
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0;
}


.btn.hero__prev,
.btn.hero__next {
  font-size: 30px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--bg-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 10;
}

.btn.hero__prev {
  left: 16px;
}

.btn.hero__next {
  right: 16px;
}

/* ticker */
.ticker {
  padding: 0;
}

.ticker__container {
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: scrollX 15s linear infinite;
}

.ticker__item {
  flex: none;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-color);
  font-size: 16px;
}

@keyframes scrollX {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/*  */


/* games */
.games__heading {
  color: var(--text-color);
  margin-bottom: 24px;
}

.games__container {
  padding: 20px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
}

/* games__nav */
.games__nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.games__nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  transition: 0.3s ease;
}

.games__nav-link:hover {
  color: var(--text-color);
}

.games__nav-link--active {
  color: var(--bg-color);
  background: var(--primary-color);
  border-radius: 4px;
}

/* games__category */
.games__category {
  margin-bottom: 48px;
}

/* games__subheading */
.games__subheading {
  margin-bottom: 16px;
  font-size: 28px;
  color: var(--text-color);
}

/* games__grid */
.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  justify-content: center;
  gap: 16px;
}

.games__grid--collapsed .games__item:nth-child(n+9) {
  display: none;
}

/* games__item */
.games__item {
  position: relative;
  overflow: hidden;
  display: flex;
  border-radius: 15px;
}

.games__img {
  width: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.games__item:hover .games__img {
  filter: brightness(60%);
}

/* games__play-btn */
.games__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.games__play-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--bg-color);
}

.games__item:hover .games__play-btn {
  opacity: 1;
}

/* games__load-btn */
.games__load-btn {
  margin: 24px auto 0;
  display: block;
}

/* games__load-btn */
.games__load-btn {
  background: var(--primary-color);
  color: var(--bg-color);
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.games__load-btn:hover {
  color: var(--text-color);
  background: #e39400;
}


/* footer__container */
.footer__container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 20px;
  background: var(--bg-secondary);
}

/* footer__col */
.footer__col {
  flex: 1 1 200px;
}

/* footer__heading */
.footer__heading {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 16px;
}

/* footer__list */
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* footer__link */
.footer__link {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--text-color);
}

/* footer__text */
.footer__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* footer__bottom */
.footer__bottom {
  text-align: center;
  padding: 16px 0;
  background: var(--bg-color);
}

.footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* modal__overlay */
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* modal__dialog */
.modal__dialog {
  position: relative;
  background: #1a1f2e;
  padding: 32px;
  border-radius: 12px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  animation: slideDown 0.4s ease;
  z-index: 1;
}

/* modal__close */
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal__close:hover {
  color: #ffb700;
}

/* modal__icon */
.modal__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* modal__title */
.modal__title {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 12px;
}

/* modal__subtitle */
.modal__subtitle {
  color: #a1a7bb;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.4;
}

/* modal__btn */
.modal__btn {
  display: inline-block;
  background: #ffd700;
  color: #1a1f2e;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.modal__btn:hover {
  background: #e6c200;
}

/* keyframes */
@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}