* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000000;
  width: 100%;
  font-family: 'Coolvetica', sans-serif;
}

#root {
  width: 100%;
  height: 100%;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  margin-top: var(--top-margin, 0);
  margin-bottom: var(--bottom-margin, 0);
}

.main-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.darken-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
  display: none;
}

.logo-container {
  position: fixed;
  width: 100%;
  height: 30%;
  top: 15px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  background: url('../assets/images/logo/logo.png') no-repeat center;
  background-size: contain;
  z-index: 2;
}

.bgaming-logo {
  position: fixed;
  top: 15px;
  left: 15px;
  width: 120px;
  height: 40px;
  background: url('../assets/images/logo/bgaming-logo.webp') no-repeat center;
  background-size: contain;
  z-index: 3;
}

.content-container {
  position: relative;
  top: 50px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 40%;
  z-index: 2;
  margin-top: 60px;
}

.content-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.content-item-1-images,
.content-item-2-images,
.content-item-3-images {
  margin-top: 0;
  margin-bottom: 0;
  top: 0;
  height: 180px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonus-image {
  width: 100%;
  height: 100%;
}

.jackpot-image {
  width: 100%;
  height: 100%;
}

.content-item-text {
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4), 2px 2px 5px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  font-size: 22px;
  max-width: 430px;
  margin-top: 20px;
  text-align: center;
}

.content-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#content-item-text-1,
#content-item-text-2,
#content-item-text-3 {
  position: static;
  margin-top: -20px;
}

.wheel-image {
  width: 100%;
  height: 100%;
}

.loader-container {
  width: 70%;
  max-width: 670px;
  height: 65px;
  display: flex;
  flex-direction: row;
  position: fixed;
  bottom: 12dvh;
  z-index: 2;
}

.loading-bar-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: url('../assets/images/loading/progressBar/loading_base.webp') no-repeat;
  background-size: contain;
}

.loading-progress {
  position: absolute;
  max-width: 96.5%;
  bottom: 10px;
  height: 65%;
  left: 8px;
  width: 0;
  background: url('../assets/images/loading/progressBar/loading_progress.webp') no-repeat;
}

.play-button {
  display: none;
  width: 300px;
  height: 86px;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  position: fixed;
  bottom: 10dvh;
  cursor: pointer;
  border: none;
  background: url('../assets/images/loading/button/play_b_normal.webp') no-repeat;
  background-size: contain;
  transition: background 0.3s ease;
  z-index: 2;
}

h1 {
  background: linear-gradient(to bottom, #ffffff 15%, #999999 22%, #676767 28%, #c8c8c8 36%, #ffffff 40%, #8a8a8a 78%) 0 1vw;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  position: relative;
  text-transform: uppercase;
  font-size: 40px;
  bottom: 0px;
  margin: 0;
  font-weight: 900;
}

.layer1 {
  display: block;
  background: none;
  left: 0;
  top: 0;
  z-index: -1;
  position: absolute;
  text-shadow: -1px 0 1px #b3b3b3, 0 1px 1px #b3b3b3, 5px 5px 10px rgba(0, 0, 0, 0.4), -5px -5px 10px rgba(0, 0, 0, 0.4);
}

.play-button:hover {
  background: url('../assets/images/loading/button/play_b_hover.webp') no-repeat;
  background-size: contain;
}

.play-button:active {
  background: url('../assets/images/loading/button/play_b_pressed.webp') no-repeat;
  background-size: contain;
}

.play-button:disabled {
  background-color: #9e9e9e;
  cursor: not-allowed;
}

@media (orientation: landscape) {
  .main-container {
    background-image: url(../assets/images/loading/background/loading_bg_desktop.webp);
    background-size: cover;
  }

  .bgaming-logo {
    width: 150px;
    height: 50px;
    top: 18px;
    left: 12px;
  }

  .loader-container {
    width: 33%;
    min-width: 400px;
    max-width: 450px;
    height: 45px;
  }

  .loading-progress {
    bottom: 36%;
    height: 47%;
  }
}

@media (orientation: portrait) {
  .main-container {
    background-image: url(../assets/images/loading/background/loading_bg_mobile.webp);
    background-size: cover;
  }

  .loader-container {
    bottom: 15dvh;
  }
}

@media screen and (min-width: 600px) and (orientation: portrait) {
  .loader-container {
    width: 60%;
  }

  .loading-progress {
    bottom: 50%;
    height: 40%;
  }

  .jackpot-image {
    width: 240px;
    height: 240px;
  }
}

@media screen and (max-width: 700px) and (orientation: portrait) {
  .content-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      'item2 item2'
      'item1 item3';
    gap: 0px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    justify-items: center;
    margin: 0;
    top: 0;
    height: max-content;
  }

  .content-item-text {
    position: static;
    max-width: 200px;
    height: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .content-item {
    top: 0;
  }
  #content-item-1 {
    grid-area: item1;
    margin-top: -40px;
  }
  #content-item-2 {
    grid-area: item2;
  }
  #content-item-3 {
    grid-area: item3;
    margin-top: -40px;
  }
  .content-image {
    height: 103px;
    width: auto;
  }

  .loader-container {
    width: 60%;
    bottom: 2dvh;
  }

  .loading-progress {
    bottom: 62%;
    height: 32%;
  }

  .content-item-text {
    font-size: 14px;
    margin-top: 0;
  }

  .logo-container {
    height: 20%;
  }

  .bgaming-logo {
    width: 80px;
    height: 25px;
    top: 10px;
    left: 10px;
  }

  h1 {
    font-size: 20px;
    line-height: 38px;
  }

  .play-button {
    width: 200px;
    height: 57px;
    bottom: 4dvh;
  }
}

@media screen and (max-width: 500px) and (orientation: portrait) {
  .loader-container {
    width: 60%;
  }

  .loading-progress {
    bottom: 70%;
    height: 25%;
    left: 3px;
  }
}

@media screen and (max-width: 420px) and (orientation: portrait) {
  .loader-container {
    width: 60%;
  }

  .loading-progress {
    bottom: 75%;
    height: 22%;
    left: 3px;
  }

  #content-item-3 {
  }

  #content-item-2 {
    top: -120px;
  }
  #content-item-1 {
    top: -100px;
  }

  .content-image {
    height: 90px;
    width: auto;
  }
  #content-item-text-1 {
    max-width: 150px;
  }

  #content-item-text-3 {
    max-width: 150px;
  }
}

@media screen and (max-height: 700px) and (orientation: landscape) {
  .content-container {
    margin-top: -50px;
  }
  .content-image {
    width: auto;
    height: 130px;
  }
  .content-item-text {
    font-size: 14px;
    margin-top: 0;
    height: 50px;
    margin-top: 0 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    max-width: 200px;
  }

  .play-button {
    bottom: 5dvh;
    width: 135px;
    height: 40px;

    h1 {
      font-size: 20px;
    }
  }
}

@media screen and (max-height: 450px) and (orientation: landscape) {
  .loader-container {
    min-width: 250px;
    max-width: 250px;
    bottom: 3dvh;
  }

  .loading-progress {
    bottom: 62%;
    height: 30%;
    left: 4px;
  }
  .content-image {
    width: auto;
    height: 110px;
  }

  .play-button {
    bottom: 5dvh;
    width: 135px;
    height: 40px;

    h1 {
      font-size: 20px;
    }
  }
}

@media screen and (max-height: 400px) and (orientation: landscape) {
  .bgaming-logo {
    width: 80px;
    height: 25px;
    top: 8px;
    left: 8px;
  }

  .loader-container {
    bottom: 1dvh;
  }
  .content-image {
    width: auto;
    height: 100px;
  }

  .bonus-image {
    width: 70px;
    height: auto;
  }

  .jackpot-image {
    width: 90px;
    height: auto;
  }

  .wheel-image {
    width: 70px;
    height: auto;
  }

  .content-item-2-images {
    margin-top: -20px;
  }

  h1 {
    font-size: 12px;
  }
}

@media screen and (max-height: 550px) and (orientation: portrait) {
  #content-item-3 {
    top: -35px;
  }

  #content-item-1 {
    top: -40px;
  }

  #content-item-2 {
    top: 100px;
  }

  .bonus-image {
    width: 90px;
    height: auto;
  }

  .jackpot-image {
    width: 140px;
    height: auto;
  }

  .wheel-image {
    width: 90px;
    height: auto;
  }
}

@media screen and (min-width: 600px) and (orientation: portrait) {
  .loader-container {
    width: 50%;
    bottom: 10dvh;
    min-width: 400px;
  }

  .loading-progress {
    bottom: 50%;
    height: 40%;
  }

  .content-item-2-images {
    position: relative;
  }

  #content-item-text-2 {
    position: relative;
  }
}

@media screen and (min-width: 1000px) and (orientation: portrait) {
  .loading-progress {
    bottom: 25px;
    height: 50%;
  }
}

@media screen and (min-width: 1920px) and (orientation: portrait) {
  .loader-container {
    width: 60%;
    top: 75%;
  }
}

@media screen and (min-width: 2040px) and (orientation: portrait) {
  .loader-container {
    width: 60%;
    top: 75%;
  }
}

@media screen and (min-width: 1200px) {
  .content-image {
    width: 240px;
    height: 240px;
  }
  .content-item-1-images,
  .content-item-2-images,
  .content-item-3-images {
    width: 240px;
    height: 240px;
  }
}

@media screen and (min-width: 1400px) {
  .content-container {
    top: 0;
  }
  .content-image {
    width: 360px;
    height: 360px;
  }
  .content-item-1-images,
  .content-item-2-images,
  .content-item-3-images {
    width: 360px;
    height: 360px;
  }

  .jackpot-image {
    width: 360px;
    height: 360px;
  }
}

/* fonts */

@font-face {
  font-family: 'Coolvetica';
  src: url('../assets/fonts/coolvetica/coolvetica rg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
