:root {
  --main: "all 500ms cubic-bezier(0.4, 0, 0.2, 1)";
  --mainColor: #ffffff;
  --secondaryColor: #ffffff;
  --thirdColor: rgb(182, 186, 210);
  --fourColor: #ffffff;
  --bgColor: #171c3a;
  --btnBgColor: #4347fc;
  --accent: #ffd739;
  --btnColor: #171925;
}

html {
  scroll-behavior: smooth;
}

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;

  color: var(--mainColor);
  background-color: var(--bgColor);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
  font-family: "Play", serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: 700;
  line-height: 1.6;
  color: var(--mainColor);
}

p {
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;

  transition: background-color 500ms ease-in-out;
}

a {
  text-decoration: none;
  font-family: inherit;
  color: inherit;
}

a:hover,
a:focus {
  color: var(--accent);
}

.container {
  min-width: 320px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #171925;
  width: 100%;
  background-image: url("../images/gold_line_caesars.png");
  background-position: bottom 0 left 0;
  background-size: 100vw 10px;
  background-repeat: no-repeat;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  font-style: italic;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--mainColor);
}

.logo img {
  width: 40px;
}

.header__menu-btn {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: none;
  background-color: transparent;
  color: var(--mainColor);
}

.header__icon-menu,
.header__icon-close-btn {
  fill: currentColor;
  transition: color 500ms ease-in-out;
}

.header__menu-btn.is-open .header__icon-close-btn {
  display: block;
  position: relative;
  z-index: 5;

  background-color: var(--thirdColor);
  border: none;
}

.header__menu-btn:hover .header__icon-menu,
.header__menu-btn:focus .header__icon-menu {
  color: var(--accent);
}

.menu-container {
  width: 100%;
  background-color: #000000;
}

@media screen and (max-width: 767px) {
  .menu-container.is-open {
    width: 200px;
    background-color: rgba(41, 44, 65, 0.9);
    position: absolute;
    top: 65px;
    right: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 15;
    padding: 48px 40px;

    height: 400px;
    overflow-y: auto;
  }
}

@media screen and (max-width: 767px) {
  .menu-container {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .menu-container {
    width: 100%;
    position: static;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background-color: transparent;
  }
}

@media screen and (min-width: 1200px) {
  .menu-container {
    flex-direction: row;
    align-items: center;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.nav__item {
  text-align: center;
}

.nav__link {
  color: var(--secondaryColor);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;

  transition: var(--main);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--accent);
}

.buttonContainer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}

#login,
#logout {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #000000;
  width: 120px;
  height: 50px;
  font-weight: 500;
  font-family: inherit;
  margin-left: auto;
  margin-right: auto;
  border: none;
  background-image: url("../images/bookmark_gr_start_v2.png"),
    url("../images/bookmark_gr_slice.png"),
    url("../images/bookmark_gr_end_v2.png");
  background-repeat: no-repeat;
  background-position: top 3px left 0, top 3px left 40px, top 3px right 0;
  background-size: 40px 100%, 40px 50px, 40px 100%;
  transition: var(--main);
}

#login:hover,
#login:focus {
  color: #fff;
}

#register {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #000000;
  width: 120px;
  height: 50px;
  font-family: inherit;
  font-weight: 500;
  margin-left: auto;
  margin-right: auto;
  border: none;
  background-image: url("../images/bookmark_gr_start_v2.png"),
    url("../images/bookmark_gr_slice.png"),
    url("../images/bookmark_gr_end_v2.png");
  background-repeat: no-repeat;
  background-position: top 3px left 0, top 3px left 40px, top 3px right 0;
  background-size: 40px 100%, 40px 50px, 40px 100%;

  transition: var(--main);
}

#register:hover,
#register:focus {
  color: var(--secondaryColor);
}

body.active {
  overflow-y: hidden;
  height: 100vh;
}

.backdrop {
  display: none;
  z-index: 20;
}

.backdrop.active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);

  display: block;
}

@media screen and (max-width: 767px) {
  .backdrop.active {
    overflow-y: scroll;
    padding: 93px 15px;
  }
}

.error,
.errorReg {
  color: red;
  margin-bottom: 10px;
  margin-top: 10px;
  height: 20px;
}

.modal {
  width: 288px;
  height: auto;
  position: absolute;
  background-color: transparent;
  background-image: url("../images/frame_caesars.webp"),
    linear-gradient(0deg, rgba(22, 24, 32, 0.9) 0%, rgba(22, 24, 32, 0.9) 100%);
  background-repeat: no-repeat;
  background-position: top 0 left 0, top 20px left 0;
  background-size: 100% 100%, 100% 100%;
  z-index: 20;
  top: 49px;
  padding: 44px 48px;
  color: var(--mainColor);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* 
.modal::before {
  content: "";
  display: inline-block;
 
  width: 298px;
  height: 105%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 22;
} */

.cookies.is-hidden {
  display: none;
}

.cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100vw;
  padding: 1rem 3rem;
  align-items: center;
  gap: 15px;
  z-index: 10;
  background-color: #000;
  display: flex;
  flex-direction: column;
}

.privacyLink {
  color: var(--accent);
}

.cookies .btn {
  background-color: transparent;
  border: 2px solid #b6bad2;
  color: #fff;
  border-radius: 6px;
  width: 200px;
  margin-bottom: 15px;
  height: 45px;
  font-weight: 500;
  font-family: inherit;
  margin-left: auto;
  margin-right: auto;

  transition: var(--main);
}

.cookies .btn:hover,
.cookies .btn:focus {
  color: var(--accent);
  border-color: var(--accent);
}

.cookies__text {
  font-size: 0.8rem;
  color: #fff;
}

input {
  width: 100%;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 6px;
  border: none;
  padding-left: 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

@media screen and (min-width: 768px) {
  input {
    width: 244px;
  }
}

.modal__close {
  position: absolute;
  top: 50px;
  right: 20px;
  background-color: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  padding: 0;
  width: 18px;
  height: 18px;
  color: var(--secondaryColor);

  transition: var(--main);
}

.modal__close:hover,
.modal__close:focus {
  color: var(--accent);
}

.modal__close svg {
  display: block;
  fill: currentColor;
  width: 18px;
  height: 18px;
}

#logout.hidden,
#register.hidden,
#login.hidden {
  display: none;
}

#userName.hidden {
  display: none;
}

#userName {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 24px;
}

.register__text {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.02em;
  color: var(--secondaryColor);
  margin-bottom: 40px;
  text-align: center;
}

.btnRegister {
  width: 208px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 45px;
  border: none;
  border-radius: 6px;
  background-color: var(--accent);
  color: var(--secondaryColor);
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.12;
  margin-left: auto;
  margin-right: auto;

  transition: var(--main);
}

.btnRegister:hover,
.btnRegister:focus {
  color: var(--secondaryColor);
  border: 1px solid var(--accent);
  background-color: transparent;
}

@media screen and (min-width: 390px) {
  .btnRegister {
    width: 244px;
  }
}

@media screen and (min-width: 768px) {
  .register__text {
    font-size: 28px;
    line-height: 1.07;
    margin-bottom: 50px;
  }

  .modal {
    width: 410px;
    padding: 52px 28px 40px;
  }
}

.hero {
  padding-top: 40px;
  padding-bottom: 40px;
  background-image: url("../images/BG-2.jpg");
  background-position: top 0 left 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 5;
  position: relative;
}

.accent {
  color: var(--accent);
}
.bottom__text {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  margin-bottom: 56px;
  color: var(--mainColor);
}

.privacy__title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  color: var(--secondaryColor);
  margin-bottom: 10px;
  text-align: left;
}

.privacy__text {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  color: var(--secondaryColor);
  margin-bottom: 30px;
  text-align: left;
}

.text__item {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  color: var(--secondaryColor);
  text-align: left;
}

.title {
  font-size: 2rem;
  color: var(--mainColor);
  margin-bottom: 30px;
  text-align: center;
}

.hero__img {
  display: none;
}

.hero__video-container {
  width: 290px;
  height: 162px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.hero__video-container::before {
  content: "";
  display: inline-block;
  position: absolute;
  top: -10px;
  left: 0;
  background-image: url("../images/frame_caesars.webp");
  background-position: top 0 left 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  width: 290px;
  height: 176px;
  z-index: 2;
}

.hero__video {
  width: 290px;
  height: 162px;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
}

.hero__link {
  width: 200px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #fff;
  background-image: url("../images/green_gr_start_v2.png"),
    url("../images/green_gr_slice.png"), url("../images/green_gr_end_v2.png");
  background-repeat: no-repeat;
  background-position: top 3px left 0, top 3px left 50px, top 3px right 0;
  background-size: 50px 100%, 100px 100%, 50px 100%;
  border: none;
  margin-left: auto;
  margin-right: auto;
  animation: scaleDown 2s ease-in-out infinite;
}

.about {
  padding: 40px 0 180px;
  background-color: #0a203d;
  background-image: url("../images/zeus.png");
  background-position: bottom 0 left 50%;
  background-size: 300px 600px;
  background-repeat: no-repeat;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.about__title {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 18px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}

.about__text {
  color: #a9a9a9;
  font-size: 18px;
  line-height: 1.12;
  margin-bottom: 1.45vw;
}

.block-wheel {
  width: 228px;
  height: 220px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
}

.block-wheel__img-one {
  width: 228px;
  height: 220px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 0;
  animation: wheelOpacityDown 6s ease-in-out infinite;
}
.block-wheel__img-two {
  width: 228px;
  height: 220px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 0;
  transform: rotate(20deg);
  animation: wheelOpacityUp 6s ease-in-out infinite;
}
.block-wheel__img-main {
  position: relative;
  z-index: 1;
}

.games {
  background: #1d4893;
  padding: 1.5rem 0;
}
.games__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.games__item {
  width: 142.5px;
  position: relative;
}
.games__link {
  color: var(--mainColor);
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.games__link img {
  width: 142.5px;
  height: 142.5px;
  border-radius: 15px;
  position: relative;
  z-index: 4;
}

.games__link:hover img,
.games__link:focus img {
  box-shadow: 0 0 100px #fda90f;
}

.games__text {
  display: block;
  color: var(--mainColor);
  text-decoration: none;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  margin-top: 10px;
  position: relative;
  z-index: 5;
}

.faq {
  background: #0a203d;
  padding: 1.5rem 0;
  background-image: url("../images/decor.webp");
  background-position: top 0 left 10px;
  background-repeat: no-repeat;
  background-size: 60px 90px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.faq__item {
  cursor: pointer;
  border-bottom: 1px solid #656aa4;
  padding: 30px 35px 30px 5px;
}

.faq__question {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.faq__btn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.icon {
  width: 20px;
  height: 20px;
  fill: yellow;
  stroke: yellow;
}

.icon.open {
  transform: rotate(180deg);
}

.faq__answer.hidden {
  display: none;
}
.faq__text {
  color: #a9a9a9;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1;
}

.footer {
  background: #0a203d;
  padding: 80px 0 40px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.footer__copyright {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.app img {
  width: 120px;
  height: 40px;
}
.footer__text {
  color: #585858;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}
.nav-footer__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.navigationLink {
  font-size: 18px;
  color: #fff;
  padding: 0 12px;
}

@media screen and (min-width: 390px) {
  .container {
    width: 390px;
  }

  .hero__video-container {
    width: 360px;
    height: 240px;
  }

  .hero__video {
    width: 345px;
    height: 250px;
    left: 10px;
  }

  .hero__video-container::before {
    top: 15px;
    width: 360px;
    height: 210px;
  }
}

@media screen and (min-width: 768px) {
  .container {
    width: 768px;
    padding: 0 30px;
  }

  .header__menu-btn {
    display: none;
  }

  .cookies .btn {
    width: 500px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  .cookies {
    flex-direction: row;
  }

  .logo {
    font-size: 20px;
    font-weight: 600;
  }

  .logo img {
    width: 80px;
  }

  .hero .container {
    position: relative;
  }

  .hero__img {
    display: block;
    position: absolute;
    top: 0;
    left: -20px;
    width: 300px;
    z-index: 3;
  }

  .hero__title {
    font-size: 3vw;
    margin-bottom: 1.5vw;
    font-weight: 700;
  }

  .hero__video-container {
    width: 520px;
    height: 340px;
    margin-left: 200px;
    margin-right: 0;
  }

  .hero__video {
    width: 500px;
    height: 340px;
    left: 10px;
  }

  .hero__video-container::before {
    top: 12px;
    width: 520px;
    height: 305px;
  }

  .nav__link {
    font-size: 1.5vw;
    font-weight: 600;
    color: var(--mainColor);
  }

  #login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    color: #000000;
    background-size: 40px 100%, 70px 50px, 40px 100%;
  }

  #register,
  #logout {
    display: flex;
    width: 150px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    background-size: 40px 100%, 70px 50px, 40px 100%;
  }

  .header {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .btnLogout {
    width: 150px;
  }

  .nav {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .nav__list {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  .bottom__text {
    font-size: 18px;
  }

  .title {
    font-size: 44px;
    font-weight: 800;
    line-height: 80px;
  }

  .about {
    background-image: url("../images/zeus.png");
    background-position: bottom 0 left 50%;
    background-size: 400px 800px;
    background-repeat: no-repeat;
    padding-bottom: 170px;
  }

  .games__list {
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 60px;
    column-gap: 120px;
    margin-bottom: 30px;
  }

  .faq {
    background-image: url("../images/decor.webp");
    background-position: top 0 left 80px;
    background-repeat: no-repeat;
    background-size: 100px 150px;
  }

  .footer__copyright {
    flex-direction: row;
  }

  .nav-footer__list {
    flex-direction: row;
  }

  .nav-footer__list li {
    display: inline-block;
    padding: 0 20px;
    border-right: 4px solid var(--accent);
  }

  .nav-footer__list li:last-of-type {
    border-right: none;
  }
  .block-wheel {
    width: 361px;
    height: 351px;
    margin-top: 170px;
  }

  .block-wheel__img-main,
  .block-wheel__img-one,
  .block-wheel__img-two {
    width: 361px;
    height: 351px;
  }
}

@media screen and (min-width: 1200px) {
  .container {
    width: 100vw;
    padding: 0 100px;
  }

  .about__text,
  .about__title {
    font-size: 1.3vw;
  }

  .games__text {
    font-size: 1.35vw;
  }

  .faq__question,
  .faq__text {
    font-size: 1.4vw;
  }

  .nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav__list {
    gap: 25px;
  }

  .hero {
    padding: 40px 0 80px;
  }

  .hero__link {
    width: 400px;
    height: 100px;
    font-size: 30px;
    background-position: top 3px left 0, top 3px left 100px, top 3px right 0;
    background-size: 100px 100%, 200px 100%, 100px 100%;
  }

  .bottom__text {
    font-size: 22px;
    line-height: 32px;
  }

  .hero__img {
    display: block;
    position: absolute;
    top: 0;
    left: -20px;
    width: 350px;
    z-index: 3;
  }

  .hero__video-container {
    width: 800px;
    height: 450px;
    margin-left: 200px;
    margin-right: 0;
  }

  .hero__video {
    width: 800px;
    height: 450px;
    left: 10px;
  }

  .hero__video-container::before {
    top: -25px;
    width: 825px;
    height: 480px;
  }

  .faq {
    background-image: url("../images/decor.webp"), url("../images/decor.webp");
    background-position: top 0 left 20px, bottom 0 right 20px;
    background-repeat: no-repeat;
    background-size: 200px 300px;
  }

  .faq__list {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
  .footer__text {
    font-size: 1vw;
  }
  .navigationLink {
    font-size: 1.5vw;
  }

  .about {
    background-image: url("../images/zeus.png");
    background-position: bottom 0 left 50%;
    background-size: 500px 1000px;
    background-repeat: no-repeat;
    padding-bottom: 200px;
  }

  .block-wheel {
    width: 442px;
    height: 430px;
  }

  .block-wheel__img-main,
  .block-wheel__img-one,
  .block-wheel__img-two {
    width: 442px;
    height: 430px;
  }
}

@media screen and (min-width: 1440px) {
  .games__list {
    align-items: flex-start;
  }

  .hero {
    padding: 80px 0 150px;
  }

  .hero__img {
    display: block;
    position: absolute;
    top: 0;
    left: -20px;
    width: 450px;
    z-index: 3;
  }

  .hero__video-container {
    width: 800px;
    height: 450px;
    margin-left: 300px;
    margin-right: 0;
  }
}

@keyframes scaleDown {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes wheelOpacityDown {
  0% {
    transform: rotate(0);
    opacity: 1;
  }
  50% {
    transform: rotate(150deg);
    opacity: 1;
  }
  100% {
    transform: rotate(0);
    opacity: 1;
  }
}

@keyframes wheelOpacityUp {
  0% {
    transform: rotate(20deg);
    opacity: 0;
  }
  50% {
    transform: rotate(170deg);
    opacity: 1;
  }
  100% {
    transform: rotate(20deg);
    opacity: 0;
  }
}
