:root {
  --active-blue: #1976d2;
  --main-white: #fff;
  --main-grey: rgb(16, 16, 16, 0.6);
  --main-blue: #c4def4;
  --main-dark-grey: #101010;
  --main-light-grey: lab(87.25% -0.03 -3.61);
  --main-ease: cubic-bezier(0.65, 0.05, 0.36, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#games {
  scroll-margin-top: 80px;
}
/* hero */
body {
  width: 100%;
  font-family: "Instrument Sans", sans-serif;
  margin: 0;
  box-sizing: border-box;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 110px;
}

@media only screen and (max-width: 600px) {
  body {
    padding-bottom: 40px;
    gap: 80px;
  }
}

h1 {
  font-size: clamp(3.5rem, calc(-1.591rem + 10.606vh), 4.25rem);
  font-weight: 600;
  margin: 0;
}
h2 {
  font-size: 4rem;
  font-weight: 600;
  margin: 0;
}
h2 span {
  color: #1976d2;
}
.hero {
  width: 100%;
  background: url("../images/Main-bg.webp") center/cover no-repeat;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-direction: column;
  gap: 32px;
  min-height: 100dvh;
  height: 100%;
}
.hero .hero-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 32px;
}
.hero .hero-bottom span {
  padding: 10px 16px;
  background-color: #ffffff;
  border-radius: 24px;
  cursor: pointer;
}
.hero .hero-content-wrapper {
  height: 100vh;
  max-height: 100vh;
}

@media only screen and (max-width: 520px) {
  .hero .hero-content-wrapper {
    height: auto;
    max-height: auto;
  }
}

.hero-content {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0 50px;
  padding-top: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5.3vh;
  max-width: 1280px;
  margin: 0 auto;
  background: #000000;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.78) 12%,
    rgba(255, 255, 255, 0) 80%
  );
}

.hero .merchant-logo {
  display: block;
  margin: 0 auto;
  max-height: 22.2vh;
}
.hero-content .btn-primary {
  margin-top: -12px;
}
.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 48px;
}
.hero .highlight {
  color: #00aaff;
}
.hero .description {
  font-size: 1.5rem;
  max-width: 750px;
  margin: 0 auto;
}

.btn-primary {
  margin: 0 auto;
  width: fit-content;
  background: linear-gradient(90deg, #4481eb 0%, #04befe 100%);
  font-size: clamp(1.5rem, calc(-0.682rem + 4.545vh), 1.88rem);
  display: inline-block;
  margin-top: 1rem;
  padding: 2.5vh 60px;
  color: #fff;
  border-radius: 64px;
  text-decoration: none;
  border: none;
  font-weight: 600;
}

.btn-submit {
  width: fit-content;
  background: linear-gradient(90deg, #4481eb 0%, #04befe 100%);
  display: inline-block;
  /* margin-top: 1rem; */
  padding: 25px 60px;
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  font-size: 1.375rem;
  border: none;
}

.hero .btn {
  display: inline-block;
  font-size: 1.75rem;
  text-decoration: none;
  padding: 3.8vh 86px;
  border-radius: 16px;
}
@media only screen and (min-height: 900px) {
  .hero .btn {
    padding: 36px 86px;
  }
}
.btn-games {
  background-color: #dff0ff;
  color: #1976d2;
}
.btn-bingo {
  background: linear-gradient(90deg, #4481eb 0%, #04befe 100%);
  color: #fff;
}

@media only screen and (max-width: 600px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1;
  }
  h2 {
    font-size: 2.25rem;
  }
  .btn-primary {
    font-size: 1.25rem;
    padding: 18px 24px;
  }
  .hero .description {
    max-width: none;
    font-size: 1.125rem;
  }
  .hero-content {
    max-width: max-content;
    padding: 16px;
    padding-top: 16px;
    gap: 32px;
    justify-content: flex-start;
    background: radial-gradient(
      circle,
      rgba(0, 0, 0, 0.78) 40%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .hero .merchant-logo {
    max-height: 125px;
    margin: 0;
  }
  .hero .buttons {
    width: 100%;
    gap: 16px;
  }

  .hero .btn {
    font-size: 1.25rem;
    padding: 18px 0;
    width: 100%;
  }
  .hero-content .btn-primary {
    margin-top: 0;
  }
  .btn-primary {
    margin: 0;
    padding: 12px 24px;
  }
}

/* carousel */
.games-section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.games-section h2 {
  margin-bottom: 32px;
}

.carousel-item {
  box-shadow: 0px 4px 16px 0px #00000026;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fff;
  cursor: pointer;
}

.carousel-item img {
  object-fit: cover;

  object-position: center top;
  width: 100%;
  height: 366px;
}

.slick-arrow {
  width: 48px !important;
  height: 48px !important;
  aspect-ratio: 1;
  background-color: #1976d2 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.slick-arrow.slick-next {
  right: -50px;
}

.slick-arrow.slick-prev {
  left: -50px;
}

.carousel-item .game-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background-color: #fff;
}

.carousel-item .game-name span {
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: #101010;
}

.carousel-item .arrow {
  width: 24px;
  aspect-ratio: 1;
  background-color: #1976d2;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.slick-slide {
  margin: 20px;
}

@media only screen and (max-width: 600px) {
  .games-section {
    max-width: max-content;
  }
}

/* top-up form */
.topup-section {
  box-shadow: 0px 4px 78.3px 0px #00000026;
  border-radius: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px;
  display: flex;
  gap: 64px;
}
.topup-section .block {
  flex: 1;
}
.block:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}
.selected-game {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.selected-game .form-title span {
  font-weight: 500;
  font-size: 1.5rem;
  color: #101010;
}
.selected-game img {
  max-width: 535px;
  border-radius: 16px;
  min-height: 300px;
  max-height: 300px;
  object-fit: cover;
}
.topup-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.field input,
.field select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
}
.actions label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.field.actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.topup-section .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-picks {
  display: flex;
  gap: 0.5rem;
}
.quick-picks button {
  padding: 16px;
  border-radius: 64px;
  border: 2px solid #c4def4;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  color: #101010;
  transition: all 0.3s ease-in-out;
}
.quick-picks button:hover {
  background: #1976d2;
  color: #fff;
  border: 2px solid transparent;
}

.form-title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-title span {
  text-wrap: nowrap;
  width: fit-content;
  font-size: 16px;
  color: #9fc0dd;
}

.form-title div {
  height: 2px;
  background-color: #9fc0dd;
  width: 100%;
}

.support {
  color: #1976d2;
  text-decoration: underline;
  cursor: pointer;
}

.action-notice {
  min-height: 18px;
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  color: #e53935;
}

.terms-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;

  font-size: 16px;
  line-height: 1.4;
  color: #666;
}

.terms-agreement input {
  flex: 0 0 auto;
  margin-top: 2px;
  cursor: pointer;
}

.terms-agreement a {
  color: #1976d2;
  text-decoration: underline;
}

.terms-agreement a:hover {
  text-decoration: none;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fee {
  color: #10101084;
  font-size: 18px;
  .fee-amount {
    font-weight: 700;
  }
}

.status {
  color: #1976d2;
  font-size: 18px;
  .status-value {
    font-weight: 700;
  }
}

@media only screen and (max-width: 520px) {
  .topup-section {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: fit-content;
    margin: 16px;
    padding: 20px;
    border-radius: 24px;
    gap: 24px;
  }

  .topup-section h2 {
    text-align: center;
  }
  .selected-game img {
    width: 100%;
  }
  .topup-form {
    max-width: fit-content;
    width: 100%;
  }

  .field.actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .topup-section .bottom {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 24px;
  }
  .topup-section .bottom .btn-submit {
    width: 100%;
    margin: 0;
  }
  .quick-picks {
    gap: 0.35rem;
  }
  .quick-picks button {
    padding: 11px;
    font-size: 0.813rem;
  }
}

@media only screen and (min-width: 520px) and (max-width: 768px) {
  .topup-section {
    flex-direction: column;
    margin: 16px;
  }
}

#topup-result {
  margin-top: 12px;
}
