* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
}

ul {
  list-style-type: none;
}

ul, ol, div {
  margin: 0;
  padding: 0;
}

::selection {
  text-shadow: none;
  background: #b3d4fc;
}

hr {
  border: 0;
  border-top: 1px solid #ccc;
  height: 1px;
  margin: 1em 0;
  padding: 0;
  display: block;
}

audio, canvas, iframe, img, svg, video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

html {
  color: #303030;
  font-family: sans-serif;
  font-size: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Helvetica, sans-serif;
}

a {
  color: #17a2b8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.clearfix:after {
  content: "";
  clear: both;
  display: table;
}

.image {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.live-casino__upper-section {
  background: #2c092d url("images/background-d1.jpg") center / cover no-repeat;
  height: 100vh;
  position: relative;
}

@media screen and (width <= 1024px) {
  .live-casino__upper-section {
    background: #2c092d url("images/background-m1.jpg") center / cover no-repeat;
    height: max-content;
  }
}
@media screen and (width <= 576px) {
  .live-casino__upper-section {
    height: 100%;
  }
}

.live-casino__upper-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 90px 2% 0;
}

@media screen and (width >= 1280px) and (width <= 1536px) {
  .live-casino__upper-container {
    max-width: 1536px;
  }
}
@media screen and (width <= 1024px) {
  .live-casino__upper-container {
    max-width: 100%;
    padding: 70px 4%;
  }
}
@media screen and (width <= 576px) {
  .live-casino__upper-container {
    padding: 70px 0 40px;
  }
}

.live-casino__content-wrapper-desktop {
  align-items: center;
  gap: 100px;
  width: 100%;
  height: 100%;
  display: flex;
}

@media screen and (width >= 1280px) and (width <= 1536px) {
  .live-casino__content-wrapper-desktop {
    gap: 50px;
  }
}
@media screen and (width <= 1024px) {
  .live-casino__content-wrapper-desktop {
    flex-direction: column;
    gap: 0;
  }
}
@media screen and (width <= 576px) {
  .live-casino__content-wrapper-desktop {
    display: none;
  }
}

.live-casino__character-imgs {
  width: 65%;
  height: auto;
  display: flex;
  position: relative;
}

@media screen and (width <= 1024px) {
  .live-casino__character-imgs {
    width: 100%;
    height: 100%;
  }
}

.live-casino__main-img {
  z-index: 1;
  width: 100%;
  max-width: 1145px;
  height: auto;
}

@media screen and (width >= 1280px) and (width <= 1536px) {
  .live-casino__main-img {
    max-width: 1137px;
  }
}

.live-casino__logo {
  z-index: 2;
  width: 100%;
  max-width: 250px;
  height: auto;
  position: absolute;
}

@media screen and (width <= 1024px) {
  .live-casino__logo {
    max-width: 200px;
  }
}

.live-casino__logo--blackjack {
  bottom: 30%;
  right: 20%;
}

@media screen and (width >= 1280px) and (width <= 1536px) {
  .live-casino__logo--blackjack {
    right: 10%;
  }
}

.live-casino__logo--crazytime {
  max-width: 180px;
  top: 15%;
  left: 0%;
}

@media screen and (width >= 1280px) and (width <= 1536px) {
  .live-casino__logo--crazytime {
    max-width: 150px;
  }
}
@media screen and (width <= 1024px) {
  .live-casino__logo--crazytime {
    max-width: 130px;
  }
}

.live-casino__logo--mega-roulette {
  max-width: 200px;
  top: 28%;
  right: 0%;
}

@media screen and (width >= 1280px) and (width <= 1536px) {
  .live-casino__logo--mega-roulette {
    top: 25%;
  }
}
@media screen and (width <= 1024px) {
  .live-casino__logo--mega-roulette {
    max-width: 150px;
  }
}

.live-casino__logo--crazycoin {
  max-width: 180px;
  bottom: 20%;
  left: 10%;
}

@media screen and (width <= 1024px) {
  .live-casino__logo--crazycoin {
    max-width: 150px;
  }
}

.live-casino__logo--roulette {
  max-width: 150px;
  top: 5%;
  left: 50%;
}

@media screen and (width <= 1024px) {
  .live-casino__logo--roulette {
    max-width: 130px;
  }
}

.live-casino__main-text {
  z-index: 2;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 40%;
  max-width: 520px;
  height: auto;
  margin-top: -10%;
  display: flex;
  position: relative;
}

@media screen and (width >= 1280px) and (width <= 1536px) {
  .live-casino__main-text {
    margin-top: -5%;
  }
}
@media screen and (width <= 1024px) {
  .live-casino__main-text {
    width: 100%;
    margin-top: -5%;
  }
}

.live-casino__header {
  width: 100%;
  max-width: 553px;
  height: 100%;
}

.live-casino__subheader {
  width: 100%;
  max-width: 429px;
  height: 100%;
}

.live-casino__button {
  width: 200px;
  height: 100%;
  margin-top: 30px;
}

@media screen and (width <= 1024px) {
  .live-casino__button {
    margin-top: 10px;
  }
}

.live-casino__content-wrapper-mobile {
  display: none;
}

@media screen and (width <= 576px) {
  .live-casino__content-wrapper-mobile {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0;
    display: flex;
  }
}

.live-casino__main-img-mobile {
  width: 100%;
  max-width: 425px;
  height: auto;
}

.live-casino__intro-text-mobile {
  width: 100%;
  height: auto;
  margin-top: -40px;
  margin-bottom: 40px;
}

.live-casino__button-mobile {
  width: 100%;
  max-width: 220px;
  height: 100%;
}

.live-casino__lower-section {
  display: none;
}

@media screen and (width <= 576px) {
  .live-casino__lower-section {
    background: #2c092d url("images/lower-bg-m.jpg") center / cover no-repeat;
    height: 100%;
    display: block;
  }
}

.live-casino__lower-container {
  flex-direction: column;
  align-items: center;
  padding: 50px 2%;
  display: flex;
}

.live-casino__logo-wrapper {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: auto;
  margin-bottom: 50px;
  display: flex;
}

.live-casino__logo-mobile {
  width: 120px;
  height: auto;
}

.live-casino__logo-mobile--blackjack, .live-casino__logo-mobile--mega-roulette {
  width: 180px;
}

.live-casino__logo-mobile--mega-roulette {
  width: 150px;
}

.live-casino__header-mobile {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin-bottom: 20px;
}

.live-casino__subheader-mobile {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.scroll-down-btn {
  display: none;
}

@media screen and (width <= 576px) {
  .scroll-down-btn {
    z-index: 3;
    cursor: pointer;
    background: #fffc;
    border: none;
    border-radius: 50%;
    padding: 10px;
    transition: transform .3s;
    animation: 1.6s ease-in-out infinite bounceY;
    display: block;
    position: absolute;
    bottom: 20px;
    right: 10px;
    box-shadow: 0 4px 10px #0000004d;
  }
}

/* === ANIMATIONS === */

/* === Preload Hidden === */
.preload-hidden {
  visibility: hidden;
  opacity: 0 !important;
}

/* === Fade In === */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.fade-down {
  transform: translateY(-20px);
}
.fade-forward {
  transform: scale(0.9);
}
.fade-in.is-visible.fade-down {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.fade-in.is-visible.fade-forward {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

/* === Button Pulse === */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.9; }
}

.live-casino__button.is-pulsing, .live-casino__button-mobile.is-pulsing {
  will-change: transform, opacity;
  animation: 1.2s ease-in-out infinite pulse;
}
.live-casino__button:hover, .live-casino__button-mobile:hover {
  animation-play-state: paused;
}

/* === Logo Animations === */
@keyframes logoZoomOnce {
  0% {
    opacity: 0;
    transform: scale(.5);
  }

  80% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.logo-hidden {
  opacity: 0;
  transform: scale(0.5);
}
.logo-zoom-in {
  animation: logoZoomOnce 0.8s ease-out forwards;
  will-change: transform, opacity;
}
.logo-pulse-loop {
  animation: logoPulse 0.7s ease-in-out;
  will-change: transform;
  opacity: 1 !important;
}

/* === Scroll Down Button Bounce === */
@keyframes bounceY {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}
