/* The 1eclbet.com landing page, also used by 1ecl.com under the
   .e1eclbet--1ecl modifier. Loaded only for those hosts, from
   src/pages/landing/template.marko. */
.e1eclbet{
  background-color: #000;
}
.e1eclbet-hero{
  position: relative;
}
/* the artwork is a backdrop: the content in flow is what gives the hero its
   height, so the body below needs no negative margin to close the gap */
.e1eclbet-hero__bg,
.e1eclbet-hero__bg-mobile{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* crop from the bottom, which is the part the body used to cover anyway */
  object-position: top center;
}
.e1eclbet-hero__bg-mobile{
  display: none;
}
.e1eclbet-hero__content{
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 7.5vw 16px 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.e1eclbet-hero__logo{
  width: 240px;
  max-width: 45%;
  margin-bottom: 3.5rem;
}
.e1eclbet-country__list{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
}
.e1eclbet-country__card{
  position: relative;
  width: 110px;
  padding: 1rem .5rem .75rem;
  border: 1px solid #F0B429;
  border-radius: 12px;
  background-color: #f6d68e2b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  transition: transform .2s ease;
}
.e1eclbet-country__card:hover{
  transform: translateY(-4px);
}
.e1eclbet-country__badge{
  position: absolute;
  top: -.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  color: #000;
  background-color: #F0B429;
  animation: e1eclbet-badge-bob 1.2s ease-in-out infinite;
}
/* keeps translateX(-50%) in every frame, otherwise the badge jumps off-centre */
@keyframes e1eclbet-badge-bob{
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}
@media (prefers-reduced-motion: reduce){
  .e1eclbet-country__badge{
    animation: none;
  }
}
.e1eclbet-country__flag{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.e1eclbet-country__name{
  color: #fff;
  font-size: 19px;
}
.e1eclbet-country__card--sg{
  border-color: #2FCFA0;
}
.e1eclbet-country__card--sg .e1eclbet-country__badge{
  background-color: #2FCFA0;
}
.e1eclbet-country__card--vn{
  border-color: #E5484D;
}
.e1eclbet-country__card--vn .e1eclbet-country__badge{
  background-color: #E5484D;
  color: #fff;
}

/* 1ecl.com reuses this page with its own artwork. Its logo file is a square
   with transparent padding around the mark, so it has to run larger than
   1eclbet's wordmark to read at the same size. */
.e1eclbet--1ecl .e1eclbet-hero__logo{
  width: 110px;
  max-width: 55%;
}
.e1eclbet--1ecl .footer-logo{
  height: 120px;
  margin-bottom: 0;
}

/* sections */
.e1eclbet-body{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 3rem;
  position: relative;
  z-index: 1;
}
.e1eclbet-body__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  /* stretch (not start) so live casino and jackpot end at the same height,
     whichever one happens to be the taller of the two */
  align-items: stretch;
      margin-bottom: 3rem;
}
/* the section itself is the grid item, so its content has to fill it too */
.e1eclbet-body__row .e1eclbet-section{
  display: flex;
  flex-direction: column;
}
.e1eclbet-body__row .e1eclbet-card__list,
.e1eclbet-body__row .e1eclbet-jackpot{
  flex: 1;
}
/* cards keep their natural size when live casino is the shorter column */
.e1eclbet-body__row .e1eclbet-card__list{
  align-content: start;
}

.e1eclbet-section__title{
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 1rem;
}
.e1eclbet-section__title span{
  font-weight: 400;
}
.e1eclbet-section__title .gold{
  color: #F0B429;
}
.e1eclbet-card__list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.e1eclbet-card__list--fastgame{
  grid-template-columns: repeat(6, 1fr);
}
.e1eclbet-card{
  display: block;

  overflow: hidden;
  transition: transform .2s ease;
}
.e1eclbet-card:hover{
  transform: translateY(-4px);
}
.e1eclbet-card__img{
  width: 100%;
  height: 100%;
  display: block;
}
.e1eclbet-card__list--fastgame .e1eclbet-card{
  aspect-ratio: 3 / 4;
      border-radius: 12px;
}
.e1eclbet-card__list--fastgame .e1eclbet-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* number game jackpot */
.e1eclbet-jackpot{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  border: 1px solid #F0B429;
  border-radius: 12px;
  background-color: #030303;
}
.e1eclbet-jackpot__img{
  max-width: 260px;
}
.e1eclbet-jackpot__label{
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: .15em;
  margin-top: .5rem;
}
.e1eclbet-jackpot__amount{
  color: #F0B429;
  font-size: 3.25rem;
  font-weight: 700;
  margin: .25rem 0 1.25rem;
}
.e1eclbet-jackpot__timer{
  display: flex;
  gap: .75rem;
}
.e1eclbet-jackpot__unit{
     min-width: 70px;
    padding: .5rem;
    border-radius: 8px;
    background-color: #17181E;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    height: 70px;
    justify-content: center;
   
}
.e1eclbet-jackpot__num{
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.e1eclbet-jackpot__tag{
  color: #B2B2B2;
  font-size: 1rem;
  letter-spacing: .08em;
}
.e1eclbet-powered{
  color: #fff;
  margin-top: 1rem;
}
.e1eclbet-logo{
    width: 300px;
}
/* Readable SEO content below the game sections on 1eclbet.com. */
.e1eclbet-seo{
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 24px 3rem;
  color: #d6d6d6;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.e1eclbet-seo h1,
.e1eclbet-seo h2,
.e1eclbet-seo h3{
  color: #fff;
  line-height: 1.35;
  font-weight: 700;
}
.e1eclbet-seo h1{
  margin: 0 0 1.25rem;
  font-size: clamp(26px, 4vw, 36px);
}
.e1eclbet-seo h2{
  margin: 2.5rem 0 1rem;
  font-size: 25px;
}
.e1eclbet-seo h3{
  margin: 1.5rem 0 .75rem;
  font-size: 20px;
}
.e1eclbet-seo p{
  margin: 0 0 1rem;
}
.e1eclbet-seo ul{
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.e1eclbet-seo a{
  color: #F0B429;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.e1eclbet-seo a:hover{
  color: #ffe3a3;
}
.e1eclbet-seo a:focus-visible{
  outline: 2px solid #F0B429;
  outline-offset: 4px;
}
@media(max-width: 768px) {
  .e1eclbet-logo{
      width: 166px;
  }
  .e1eclbet-powered{
    margin-top: 6rem;
  }
  .e1eclbet-hero__bg{
    display: none;
  }
  .e1eclbet-hero__bg-mobile{
    display: block;
    height: auto;
  }
  .e1eclbet-hero__content{
    padding: 6vw 16px 5vw;
  }
  .e1eclbet-hero__logo{
    width: 150px;
    margin-bottom: 1.5rem;
  }
  .e1eclbet--1ecl .e1eclbet-hero__logo{
    width: 90px;
  }
  .e1eclbet--1ecl .footer-logo{
    height: 80px;
  }
  .e1eclbet-country__list{
    gap: 1rem;
    margin-top: 0;
  }

  .e1eclbet-body__row{
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* on phones the rows scroll sideways instead of shrinking to thumbnails */
  .e1eclbet-card__list,
  .e1eclbet-card__list--fastgame{
    display: flex;
    overflow-x: auto;
    gap: .75rem;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
  }
  .e1eclbet-card{
    flex: 0 0 45%;
  }
  .e1eclbet-card__list--fastgame .e1eclbet-card{
    flex: 0 0 38%;
  }
  .e1eclbet-jackpot__label{
    font-size: 1.2rem;
  }
  .e1eclbet-jackpot__amount{
    font-size: 2.5rem;
  }
}
