/* ==========================================================================
    Header
    ========================================================================== */
header {
  position: relative;
  background-color: var(--dark);
  overflow: hidden;
}

header img {
  display: block;
  width: 100%;
}

header .promo-text {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

header h1 {
  margin-bottom: 1.5rem;
  color: var(--yellow);
  text-shadow: 0 2px 8px var(--black);
  font-size: 1.25rem;
  white-space: nowrap;
  line-height: 1.5;
}

header .btn {
  padding: 1rem 3rem;
  box-shadow: 0 0 10px var(--yellow);
  background-color: var(--yellow);
  color: var(--black);
  font-family: 'Roboto', sans-serif;
  letter-spacing: 2px;
}

header .btn:hover {
  box-shadow: 0 0 40px var(--yellow);
}

header .btn:focus {
  box-shadow: 0 0 40px var(--yellow);
}


/* ==========================================================================
    Section Main Leaderboard
    ========================================================================== */
#leaderboard {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: var(--dark);
  overflow: hidden;
}

#leaderboard .cobweb {
  position: absolute;
  top: -18px;
  left: -56px;
  width: 9rem;
}

#leaderboard .bats {
  position: absolute;
  top: 0;
  right: 0;
  width: 9rem;
}

#leaderboard .cat {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

#leaderboard .grass {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
}

#leaderboard .prizes {
  position: relative;
  bottom: 0;
  left: 10%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 25rem;
  height: 28rem;
  background-image: url(img/tomb-1.png);
  background-repeat: no-repeat;
  background-size: contain;
}

#leaderboard .tabs-buttons-wrapper {
  margin-bottom: 2rem;
}

#leaderboard .tabs-buttons-wrapper,
#leaderboard .tabs-panels-wrapper {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#leaderboard table tr {
  background-color: var(--white);
}

#leaderboard table th {
  color: var(--orange);
  background-color: var(--red);
  letter-spacing: 1px;
}

#leaderboard table td {
  color: var(--red);
}

#leaderboardTabPanel .main-leaderboard {
  margin-bottom: 3rem;
}

  .main-leaderboard #currentUserInfo {
    display: none;
    position: relative;
    margin-bottom: 1.5rem;
    padding: .75rem 1.25rem;
    border-color: #c3e6cb;
    border-radius: .25rem;
    color: #155724;
    background-color: #d4edda;
  }

  .main-leaderboard #currentUserInfo .scroll-to {
    cursor: pointer;
    font-weight: bold;
  }

  .main-leaderboard #currentRound {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
  }

  .current-user-position {  
    animation: currentUserPosition;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;    
    animation-play-state: running;
  }

  @keyframes currentUserPosition {
    0%      {background-color: var(--white);}
    50.0%   {background-color: var(--yellow);}
    100.0%  {background-color: var(--white);}
  }


#leaderboardTabPanel .daily-leaderboard .leaderboard-slider {
  width: 100%;
}

  .leaderboard-slider .round {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 488px;
  }

  .swiper-pagination-bullets {
    position: static;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .swiper-pagination-bullet {
    width: .5rem;
    height: .5rem;
    background: var(--white);
    opacity: .4;
  }

  .swiper-pagination-bullet-active {
    background: var(--yellow);
    opacity: 1;
  }


#conditionsTabPanel ul {
  padding-left: 1.5rem;
}

  #conditionsTabPanel ul li {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    word-spacing: 3px;
    color: var(--yellow);
  }

  .rest-rules-header,
  .rest-rules-body {
    padding: 1rem 0;
  }

  .rest-rules-header h3 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

#prizesTabPanel table {
  table-layout: fixed;
}

#prizesTabPanel table th:last-of-type {
  width: 80%;
}

#prizesTabPanel .daily-prizes {
  margin-bottom: 3rem;
}



/* ==========================================================================
    Section Games
    ========================================================================== */
#games {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: var(--red);
  overflow: hidden;
}

#games .bats-2 {
  position: absolute;
  top: 4.25rem;
  right: 1.5rem;
  width: 5rem;
}

#games .witch {
  position: absolute;
  top: 0;
  left: 0;
  width: 7rem;
}

#games .house {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(-20%);
  mix-blend-mode: luminosity;
  width: 24rem;
}

#games .grass-2 {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
}

.games-card-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  width: 100%;
  margin-right: 3rem;
  margin-left: auto;
}

.games-slider {
  max-width: 700px;
  width: 100%;
}

.games-slider .swiper-slide {
  display: flex;
  flex-wrap: wrap;
}

.games-slider .swiper-pagination-bullets {
  bottom: -10px;
}

.games-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: .2;
}

.games-slider .swiper-pagination-bullet-active {
  background: var(--orange);
  opacity: 1;
}

.game-card {
  margin: 16px;
}

.game-card,
.game-card-body {
  max-width: 10rem;
  width: 100%;
}

.game-card-body {
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 10px var(--yellow);
}

  .game-card-body img {
    display: block;
    max-width: 10rem;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform .4s;
  }

.game-card-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  background-color: rgba(0, 0, 0, .6);
  border-radius: 16px;
  overflow: hidden;
  transition: opacity .4s;
}

  .game-card-badge {
    position: absolute;
    top: 10px;
    right: -50px;
    color: #fff;
    text-transform: uppercase;
    font-size: .5rem;
    font-weight: 300;
    letter-spacing: 1px;
    display: inline-block;
    background-color: var(--orange);
    border-radius: 20px;
    padding: 4px 8px;
    transition: right .8s;
    font-family: 'Roboto', sans-serif;
  }

 .btn-play-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid transparent;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    background-color: rgba(253, 110, 1, .8);
    text-decoration: none;
    cursor: pointer;
    transform: scale(0);
    transition: all .4s;
    font-family: 'Roboto', sans-serif;
  }

  .btn-play-circle:hover {
    background-color: var(--orange);
  }

  .game-card-title {
    color: var(--yellow);
    font-weight: bold;
    transition: color .4s;
    pointer-events: none;
  }
  
  .game-card:hover .game-card-body > img {
    transform: scale(1.2);
  }
  
  .game-card:hover .game-card-overlay {
    opacity: 1;
    transition: opacity .4s;
  }

  .game-card:hover .game-card-body {
    box-shadow: 0px 0px 40px 0px rgba(253, 110, 1, .8);
    transition: all .4s;
  }

  .game-card:hover .game-card-title {
    color: var(--orange);
  }

 .game-card-overlay:hover .btn-play-circle {
    transform: scale(1);
    transition: transform .4s;
  }
  
  .game-card-overlay:hover .game-card-badge {
    right: 10px;
    transition: right .8s;
  }


/* ==========================================================================
    Footer
    ========================================================================== */
footer {
  padding: 1.25rem;
  background-color: var(--dark);
  color: var(--yellow);
  text-align: center;
}


/* ==========================================================================
    Responsive
    ========================================================================== */

@media (min-width: 375px) {
  header h1 {
    font-size: 1.5rem;
  }
}

@media (min-width: 576px) { 
  
  header .promo-text {
    top: 50%;
  }

  header h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  #leaderboard .cat {
    bottom: 1.25rem;
    width: 9rem;
  }

  #games .bats-2 {
    top: 2rem;
    width: 7rem;
  }

  #games .witch {
    width: 10rem;
  }

  #prizesTabPanel table th:last-of-type {
    width: 50%;
  }

  .games-card-wrapper {
    margin-top: 3rem;
  }

}


@media (min-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  header .btn {
    padding: 1.25rem 4rem;
  }

  #leaderboard {
    padding-bottom: 12rem;
  }
}


@media (min-width: 992px) {
  header h1 {
    font-size: 2.75rem;
  }

  #leaderboard .cobweb {
    width: 11rem;
  }
  
  #leaderboard .bats {
    width: 12rem;
  }

  #leaderboard .cat {
    bottom: 2.25rem;
    width: 9rem;
  }

  #games .witch {
    width: 12rem;
    left: 3rem;
  }

  #games .bats-2 {
    width: 9rem;
  }

  #games .house {
    width: 30rem;
  }
}


@media (min-width: 1200px) { 
  header h1 {
    font-size: 3rem;
  }

  header .btn {
    padding: 1.25rem 5rem;
  }

  #leaderboard .cobweb {
    top: -50px;
    left: -150px;
    width: 18.75rem;
  }
  
  #leaderboard .bats {
    top: 0;
    right: 0;
    width: 18.75rem;
  }
  
  #leaderboard .cat {
    right: 0;
    bottom: 48px;
    max-width: 100%;
  }
  
  #leaderboard .grass {
    bottom: -1px;
    left: 0;
  }

  #games .bats-2 {
    top: 3rem;
    right: 3rem;
    width: 150px;
  }

  #games .witch {
    top: 5rem;
    left: 2rem;
    width: 24rem;
  }

  #games .house {
    bottom: 3rem;
  }
}


@media (min-width: 1800px) {
  html {
    font-size: 20px;
  }

  #games .bats-2 {
    width: 10rem;
  }

  #leaderboard .tabs-buttons-wrapper, #leaderboard .tabs-panels-wrapper {
    max-width: 1140px;
  }

  .games-card-wrapper {
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 6rem;
  }
}

@media (min-width: 2600px) {
  html {
    font-size: 30px;
  }

  #leaderboard .tabs-buttons-wrapper, 
  #leaderboard .tabs-panels-wrapper,
  .games-card-wrapper {
    max-width: 1600px;
  }

  #leaderboard .cat {
    bottom: 90px;
  }
}

@media (min-width: 4000px) {
  html {
    font-size: 40px;
  }

  #leaderboard .tabs-buttons-wrapper, 
  #leaderboard .tabs-panels-wrapper,
  .games-card-wrapper {
    max-width: 2000px;
  }

  #leaderboard .cat {
    bottom: 130px;
  }
}