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

*:hover {
  cursor: var(--cursor-paw);
}

html {
  position: relative;
  height: 100%;
  font-size: 62.5%;
  font-size: 0.83333vw;
}

@font-face {
  font-family: 'MikadoBold';
  src: url('../assets/fonts/MikadoBold.woff') format('woff'),
    url('../assets/fonts/MikadoBold.otf') format('opentype');
}

@font-face {
  font-family: 'MikadoMedium';
  src: url('../assets/fonts/MikadoMedium.woff') format('woff'),
    url('../assets/fonts/MikadoMedium.otf') format('opentype');
}

@font-face {
  font-family: 'MikadoBlack';
  src: url('../assets/fonts/MikadoBlack.woff');
}

body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  line-height: 1;
  position: relative;
  font-size: 1.1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 300;
  color: #fff;
  margin: 0;
  padding: 0;
  user-select: none;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: 0.3s all;
}

ol,
ul {
  list-style: none;
}

#unity-canvas {
  width: 1024px;
  height: 576px;
  display: none;
  margin: 0 auto;
  position: relative;
}

#unity-container * {
  border: 0;
  margin: 0;
  padding: 0;
}

#unity-container {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
  position: relative;
}

#unity-container > canvas {
  position: relative;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

#unity-container .backgroundIMG {
  background: black no-repeat center / contain;
  background-size: cover;
  width: 100%;
  height: 100% !important;
  display: inline;
  opacity: 0.5;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

#unity-container #logo {
  position: absolute;
  left: 50%;
  top: 80%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 154px;
  height: 130px;
}

#unity-container #loading {
  width: 140px;
  height: 140px;
  position: absolute;
  left: 50% !important;
  top: 80% !important;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-animation: rotation 2s infinite linear;
  animation: rotation 2s infinite linear;
}

#webgl-header {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#webgl-header #header-icon {
  display: block;
  width: 40vw;
  height: 40vw;
  float: left;
}

#webgl-header .header-title {
  font-size: 3.5rem;
  font-weight: bold;
  padding-left: 10px;
  float: left;
}

/* center popups on Facebook */
body.facebook #OneRewardDiv,
body.facebook #plpPopupContainer,
body.facebook #oneconnect-back > div {
  top: 30%;
}

#player-info span {
  user-select: all;
  padding: 0 5px;
}

#player-info strong {
  padding: 0 2px;
}

.btn {
  font-size: 2rem;
  color: #83bdff;
  background: none;
  position: relative;
  top: auto;
  left: auto;
  overflow: visible;
  border: 0;
  cursor: pointer;
  padding: 0 5px 0 5px;
}

.action-btn {
  cursor: pointer;
  color: #044b00;
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
  border: 2px solid black;
  border-radius: 2px;
  background: #b6ff00;
  background-image: linear-gradient(
    to bottom,
    #b6ff00 0%,
    #b6ff00 10%,
    #3eb300 35%,
    #3eb300 65%,
    #b6ff00 90%,
    #b6ff00 100%
  );
  box-shadow: inset 0 0 2px 2px #1e7203;
  text-shadow: 0 1px 0 rgb(255 255 255 / 25%), 0 -1px 0 rgb(0 0 0 / 25%);
  width: auto;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  padding: 5px 10px;
}

#loadingOverlay .loading-spinner-container {
  position: relative;
}

#loadingOverlay #loading-spinner-description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: min(3vh, 3vw);
  margin: 0;
  text-align: center;
  font-family: "MikadoBold", sans-serif;
  font-style: normal;
  color: #fff;
}

#loadingOverlay .loading-description-text {
  font-size: 36px;
  margin: 65px 0 0 0;
  text-align: center;
  font-family: "MikadoBold", sans-serif;
  font-style: normal;
  color: #fff;
}

@media (max-width: 1200px) or (max-height: 700px) {
  #loadingOverlay .loading-description-text {
    font-size: 24px;
    margin: 35px 0 0 0;
  }
}

@media (max-width: 600px) or (max-height: 300px) {
  #loadingOverlay .loading-description-text {
    font-size: 16px;
    margin: 0;
  }
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: translate(-50%, -50%) rotate(359deg);
  }
  to {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes rotation {
  from {
    transform: translate(-50%, -50%) rotate(359deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

#oneconnect-back {
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background: transparent;
  position: fixed !important;
}

#oneconnect-back iframe {
  border: none;
}

#oneconnect-back > div {
  position: fixed;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (min-width: 640px) {
  #oneconnect-back > div {
    width: 600px;
    height: calc(648px);
  }
}

@media screen and (min-width: 960px) {
  #oneconnect-back > div {
    width: 500px;
    height: calc(540px);
  }
}

/* for ultra wide monitors */
@media screen and (min-width: 2380px) {
  body {
    background: #000;
  }

  #webgl-header {
    background: url('../assets/images/background.png') repeat 50% 0;
  }
}

.fancybox__backdrop {
  background: rgba(0, 0, 0, 0.88) !important;
}

.about-footer-modal {
  display: none;
  width: 460px;
  background-color: #01032f;
  border-radius: 10px;
  z-index: 2;
  -webkit-box-shadow: inset 0 0 7px 2px #0042ff, 0 0 7px 2px #0042ff;
  box-shadow: inset 0 0 7px 2px #0042ff, 0 0 7px 2px #0042ff;
  border: 1px solid #325461;
  border-bottom: 1px solid rgba(89, 209, 255, 0.7);
  text-align: center;
  color: #fff;
  padding: 0;
}

@media screen and (max-width: 768px) {
  .about-footer-modal {
    max-width: 460px;
    width: 90vw;
  }
}

.about-footer-modal .carousel__button {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 2px solid rgba(89, 209, 255, 0.7);
  top: 7px !important;
  right: 7px !important;
}

.about-footer-modal .carousel__button svg {
  stroke: rgba(89, 209, 255, 0.7);
  stroke-width: 3px;
}

.about-footer-modal-title {
  text-shadow: 0 2px 10px #0042ff, 0 -2px 10px #0042ff;
  color: #59d1ff;
  font-size: 30px;
  padding: 10px;
  border-bottom: 1px solid rgba(89, 209, 255, 0.7);
  -webkit-box-shadow: 0 5px 7px -3px #0042ff;
  box-shadow: 0 5px 7px -3px #0042ff;
  font-weight: 700;
  text-transform: uppercase;
}

.about-footer-modal-content {
  -webkit-box-shadow: inset 0 0 7px 2px #0042ff;
  box-shadow: inset 0 0 7px 2px #0042ff;
  padding: 30px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-size: 20px;
}

.about-footer-modal-content p:not(:last-child) {
  margin-bottom: 1em;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 1024px;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

video#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

header {
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: #4493fd7a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

header img {
  max-height: 50px;
  width: auto;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  width: 100%;
  padding-top: 0px; /* Adjust to header height */
  z-index: 0;
}

canvas {
  width: 50vw;
  height: 50vh;
}

.custom-button {
  position: absolute;
  top: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
}

#fullscreen-button.custom-button {
  right: 10px;
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 20vw;
  height: 20vh;
  margin-bottom: 10px;
}

.loading-spinner-description {
  color: white;
  font-size: 32px;
  text-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 1);
}

#error-modal {
  font-family: 'MikadoBold', 'Open Sans', sans-serif;
  font-size: 100px;

  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url('../assets/images/errorPopupBackground.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-color: transparent;
  width: 1188px;
  height: 726px;
  text-align: center;
  z-index: 1000;
}

#error-modal #error-modal_restart-button {
  align-items: center;
  justify-content: center;
  position: absolute;
  font-family: 'MikadoBold', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: white;
  top: 100%;
  left: 50%;
  font-size: 80px;
  transform: translate(-50%, -50%);
  background-image: url('../assets/images/greenButtonWithBorder.png');
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  width: 714px;
  height: 160px;
  text-align: center;
  z-index: 1000;
  cursor: pointer;
}

#error-modal #error-modal_restart-button .restart-button__text {
  position: relative;
  top: -6px;
  text-stroke: 2px #005412;
  -webkit-text-stroke: 2px #005412;
}

#error-modal .confirm-button__text {
  position: relative;
  top: -10px;
  color: #fff;
  font-size: 73.768px;
  text-transform: capitalize;
  cursor: pointer;
  text-shadow: 0px 6px 2px #005412;
  text-stroke: 2px #005412;
  -webkit-text-stroke: 2px #005412;
}

#error-modal .close-button {
  position: absolute;
  cursor: pointer;
  top: 0px;
  right: 0px;
  background-color: transparent;
}

#error-modal .error-modal__title {
  padding: 26px 100px;
  display: block;
  font-size: 100px;
  color: white;
  text-stroke: 0px 6px 4px #904212;
  -webkit-text-stroke: 4px #904212;
}

#error-modal .error-modal__content {
  padding: 50px 100px;
  display: block;
  position: relative;
  font-size: 56px;
  font-family: 'MikadoBold';
  color: white;
  line-height: 1.143;
  text-align: center;
  text-stroke: 0px 6px 2px #031f61;
  -webkit-text-stroke: 2px #031f61;
}

#error-modal .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

#error-modal .error-modal__content * {
  position: relative;
  z-index: 1;
}

#error-modal .error-modal__content img {
  padding-bottom: 20px;
  width: 200px;
  height: 200px;
  position: relative;
  z-index: 1;
}

#error-modal .lightning-gradient {
  z-index: 0;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1400px;
  height: 700px;
  opacity: 0.62;
  background: radial-gradient(closest-side, #53ffef, transparent);
}

@media (max-width: 1200px) or (max-height: 700px) {
  #error-modal {
    width: calc(0.7 * 1188px);
    height: calc(0.7 * 726px);
  }

  #error-modal .error-modal__title {
    padding: calc(0.7 * 26px) calc(0.7 * 100px);
    font-size: calc(0.7 * 100px);
    color: white;
    text-stroke: 0px 5px 3px #904212;
    -webkit-text-stroke: 3px #904212;
  }

  #error-modal #error-modal_restart-button {
    font-size: calc(0.7 * 80px);
    background-size: calc(0.7 * 714px);
  }

  #error-modal .error-modal__content {
    padding: calc(0.7 * 50px) calc(0.7 * 100px);
    font-size: calc(0.7 * 56px);
    text-stroke: 0px 5px 3px #031f61;
    -webkit-text-stroke: 3px #031f61;
  }

  #error-modal .error-modal__content img {
    padding-bottom: calc(0.7 * 20px);
    width: calc(0.7 * 200px);
    height: calc(0.7 * 200px);
  }

  #error-modal .close-button img {
    width: calc(0.7 * 110px);
  }

  #error-modal .lightning-gradient {
    width: calc(0.7 * 1400px);
    height: calc(0.7 * 700px);
  }
}

@media (max-width: 900px) or (max-height: 500px) {
  #error-modal {
    width: calc(0.5 * 1188px);
    height: calc(0.5 * 726px);
  }

  #error-modal .error-modal__title {
    padding: calc(0.5 * 26px) calc(0.5 * 100px);
    font-size: calc(0.5 * 100px);
    color: white;
    text-stroke: 0px 3px 2px #904212;
    -webkit-text-stroke: 2px #904212;
  }

  #error-modal #error-modal_restart-button {
    font-size: calc(0.5 * 80px);
    background-size: calc(0.5 * 714px);
  }

  #error-modal #error-modal_restart-button .restart-button__text {
    text-stroke: 1px #005412;
    -webkit-text-stroke: 1px #005412;
  }

  #error-modal .error-modal__content {
    padding: calc(0.5 * 50px) calc(0.5 * 100px);
    font-size: calc(0.5 * 56px);
    text-stroke: 0px 3px 2px #031f61;
    -webkit-text-stroke: 2px #031f61;
  }

  #error-modal .error-modal__content img {
    padding-bottom: calc(0.5 * 20px);
    width: calc(0.5 * 200px);
    height: calc(0.5 * 200px);
  }

  #error-modal .close-button img {
    width: calc(0.5 * 110px);
  }

  #error-modal .lightning-gradient {
    width: calc(0.5 * 1400px);
    height: calc(0.5 * 700px);
  }
}

@media (max-width: 600px) or (max-height: 300px) {
  #error-modal {
    width: calc(0.3 * 1188px);
    height: calc(0.3 * 726px);
  }

  #error-modal .error-modal__title {
    padding: calc(0.3 * 26px) calc(0.3 * 100px);
    font-size: calc(0.3 * 100px);
    color: white;
    text-stroke: 0px 2px 1px #904212;
    -webkit-text-stroke: 1px #904212;
  }

  #error-modal #error-modal_restart-button {
    font-size: calc(0.3 * 80px);
    background-size: calc(0.3 * 714px);
  }

  #error-modal #error-modal_restart-button .restart-button__text {
    top: -3px;
    text-stroke: 1px #005412;
    -webkit-text-stroke: 1px #005412;
  }

  #error-modal .error-modal__content {
    padding: calc(0.3 * 50px) calc(0.3 * 100px);
    font-size: calc(0.3 * 56px);
    text-stroke: 0px 2px 1px #031f61;
    -webkit-text-stroke: 1px #031f61;
  }

  #error-modal .error-modal__content img {
    padding-bottom: calc(0.3 * 20px);
    width: calc(0.3 * 200px);
    height: calc(0.3 * 200px);
  }

  #error-modal .close-button img {
    width: calc(0.3 * 110px);
  }

  #error-modal .lightning-gradient {
    width: calc(0.3 * 1400px);
    height: calc(0.3 * 700px);
  }
}

#ot-sdk-btn-floating {
    display: none !important;
}

#footer {
    background: #3E6C04;
    background: linear-gradient(90deg,rgba(62, 108, 4, 1) 0%, rgba(67, 118, 6, 1) 100%);
    padding: 30px 25px;
    width: 100%;

    #footer-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #footer-ot-cookie-settings-button {
        display: flex;
        align-items: center;
        justify-items: flex-start;
        gap: 12px;
        background: unset;
        border: unset;

        svg {
            height: 28px;
            width: 28px;
        }

        span {
            color: #FFFFFF;
            text-shadow: 0 1.2px 1.2px rgba(14, 46, 99, 0.60);
            font-family: 'MikadoMedium';
            font-size: 15px;
            font-style: normal;
            font-weight: 500;
            line-height: 1;
            text-transform: capitalize;
        }
    }

    #footer-menu menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        list-style: none;

        a {
            color: #FFF;
            text-shadow: 0 1.2px 1.2px rgba(14, 46, 99, 0.60);
            font-family: "MikadoMedium";
            font-size: 16px;
            font-style: normal;
            font-weight: 700;
            line-height: 1;
            text-transform: capitalize;
        }
    }

    #footer-social menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        list-style: none;

        li {
            margin: 0;
        }

        svg {
            height: 24px;
            width: 24px;
        }
    }

    #footer-copy {
        color: #FFF;
        text-shadow: 0 1.2px 1.2px rgba(14, 46, 99, 0.60);
        font-family: "MikadoMedium";
        font-size: 10px;
        font-style: normal;
        font-weight: 500;
        line-height: 1;
        text-transform: capitalize;
    }
}

@media (max-width: 1126px) {
    body {
        overflow: auto;
    }

    #footer {
        height: 88px;

        #footer-ot-cookie-settings-button span {
            font-size: 14px;
        }

        #footer-menu menu a {
            font-size: 15px;
        }
    }
}
