body {
  cursor: default;
  padding: 0;
  border: 0;
  margin: 0;

  text-align: center;
  background-color: white;
  font-family: Helvetica, Verdana, Arial, sans-serif;
}

body, canvas, div {
  outline: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

#Cocos2dGameContainer {
  position: relative;
  /* max-width: calc(var(--mw, 1mw));
  max-height: calc(var(--mh, 1mh)); */
  margin: 0 auto !important;
  overflow: hidden;
  top: calc((100% - var(--mh, 1mh)) * 0.5);
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

a:link, a:visited {
  color: #000;
}

a:active, a:hover {
  color: #666;
}

p.header {
  font-size: small;
}

p.footer {
  font-size: x-small;
}

#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: #171717 url(./splash.85cfd.png) no-repeat center;
  background-size: 350px;
}

.progress-bar {
    background-color: #1a1a1a;
    position: absolute;
    left: 50%;
    top: 80%;
    height: 5px;
    width: 300px;
    margin: 0 -150px;
    border-radius: 5px;
    box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;           
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
    transition: width .4s ease-in-out; 
    background-color: #3dc5de;
}

.stripes span {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
                        transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
                        transparent 75%, transparent);            
    
    animation: animate-stripes 1s linear infinite;             
}

@keyframes animate-stripes {
    0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

h1 {
    color: #444;
    text-shadow: 3px 3px 15px;
}

#GameDiv {
    width: 800px;
    height: 450px;
    margin: 0 auto;
    background: black;
    position: relative;
    border: 3px solid black;
    border-radius: 6px;
    box-shadow: 0 5px 40px #333
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center; /* Horizontally center the game section */
  align-items: center;    /* Vertically center the game section */
  background-color: black; /* Optional: Set a background color */
  overflow: hidden;        /* Prevent scrolling */
}

#game-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#img-splash {
  position: fixed; /* Ensure it covers the entire viewport */
  top: 0;
  left: 0;
  width: 100vw; /* Full width of the viewport */
  height: 100vh; /* Full height of the viewport */
  object-fit: cover; /* Maintain aspect ratio while covering the viewport */
  z-index: 20; /* Ensure the splash image appears above the game canvas */
  display: block; /* Ensure the image is displayed */
}

#GameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Ensure the game canvas is below the splash image */
  display: block;
  background-color: transparent; /* Ensure the canvas background is transparent */
}





/* Old code */



/* nagaLoadingChanges */
.logo {
  position: fixed;
  z-index: 999;
  overflow: visible;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

#background-img {
  position: fixed; /* Ensure it covers the entire viewport */
  top: 0;
  left: 0;
  width: 100vw; /* Full width of the viewport */
  height: 100vh; /* Full height of the viewport */
  object-fit: cover; /* Maintain aspect ratio while covering the viewport */
  background-color: transparent; /* Ensure no black background is visible */
}

#black-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

.black-background {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  background: #000;
  transition: opacity 0.5s;
}

.transparent {
  opacity: 0;
}

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

/* nagaLoadingChanges */
#sprite {
  width: 311px;
  height: 158px;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: 9999;
  background: url('src/logoSplash.png');
  background-position: 0px 0px;
}

.NAGA_00 {width:311px; height:158px; background-position: -1px -1px}
.NAGA_01 {width:311px; height:158px; background-position: -1px -161px}
.NAGA_02 {width:311px; height:158px; background-position: -1px -321px}
.NAGA_03 {width:311px; height:158px; background-position: -1px -481px}
.NAGA_04 {width:311px; height:158px; background-position: -1px -641px}
.NAGA_05 {width:311px; height:158px; background-position: -1px -801px}
.NAGA_06 {width:311px; height:158px; background-position: -1px -961px}
.NAGA_07 {width:311px; height:158px; background-position: -1px -1121px}
.NAGA_08 {width:311px; height:158px; background-position: -1px -1281px}
.NAGA_09 {width:311px; height:158px; background-position: -1px -1441px}
.NAGA_10 {width:311px; height:158px; background-position: -1px -1601px}
.NAGA_11 {width:311px; height:158px; background-position: -1px -1761px}
.NAGA_12 {width:311px; height:158px; background-position: -314px -1px}
.NAGA_13 {width:311px; height:158px; background-position: -314px -161px}
.NAGA_14 {width:311px; height:158px; background-position: -314px -321px}
.NAGA_15 {width:311px; height:158px; background-position: -314px -481px}
.NAGA_16 {width:311px; height:158px; background-position: -314px -641px}
.NAGA_17 {width:311px; height:158px; background-position: -314px -801px}
.NAGA_18 {width:311px; height:158px; background-position: -314px -961px}
.NAGA_19 {width:311px; height:158px; background-position: -314px -1121px}
.NAGA_20 {width:311px; height:158px; background-position: -314px -1281px}
.NAGA_21 {width:311px; height:158px; background-position: -314px -1441px}
.NAGA_22 {width:311px; height:158px; background-position: -314px -1601px}
.NAGA_23 {width:311px; height:158px; background-position: -314px -1761px}
.NAGA_24 {width:311px; height:158px; background-position: -627px -1px}
.NAGA_25 {width:311px; height:158px; background-position: -627px -161px}
.NAGA_26 {width:311px; height:158px; background-position: -627px -321px}
.NAGA_27 {width:311px; height:158px; background-position: -627px -481px}
.NAGA_28 {width:311px; height:158px; background-position: -627px -641px}
.NAGA_29 {width:311px; height:158px; background-position: -627px -801px}
.NAGA_30 {width:311px; height:158px; background-position: -627px -961px}
.NAGA_31 {width:311px; height:158px; background-position: -627px -1121px}
.NAGA_32 {width:311px; height:158px; background-position: -627px -1281px}
.NAGA_33 {width:311px; height:158px; background-position: -627px -1441px}
.NAGA_34 {width:311px; height:158px; background-position: -627px -1601px}
.NAGA_35 {width:311px; height:158px; background-position: -627px -1761px}
.NAGA_36 {width:311px; height:158px; background-position: -940px -1px}
.NAGA_37 {width:311px; height:158px; background-position: -940px -161px}
.NAGA_38 {width:311px; height:158px; background-position: -940px -321px}
.NAGA_39 {width:311px; height:158px; background-position: -940px -481px}
.NAGA_40 {width:311px; height:158px; background-position: -940px -641px}
.NAGA_41 {width:311px; height:158px; background-position: -940px -801px}
.NAGA_42 {width:311px; height:158px; background-position: -940px -961px}
.NAGA_43 {width:311px; height:158px; background-position: -940px -1121px}
.NAGA_44 {width:311px; height:158px; background-position: -940px -1281px}
.NAGA_45 {width:311px; height:158px; background-position: -940px -1441px}
.NAGA_46 {width:311px; height:158px; background-position: -940px -1601px}
.NAGA_47 {width:311px; height:158px; background-position: -940px -1761px}
.NAGA_48 {width:311px; height:158px; background-position: -1253px -1px}
.NAGA_49 {width:311px; height:158px; background-position: -1253px -161px}
.NAGA_50 {width:311px; height:158px; background-position: -1253px -321px}
.NAGA_51 {width:311px; height:158px; background-position: -1253px -481px}
.NAGA_52 {width:311px; height:158px; background-position: -1253px -641px}
.NAGA_53 {width:311px; height:158px; background-position: -1253px -801px}
.NAGA_54 {width:311px; height:158px; background-position: -1253px -961px}
.NAGA_55 {width:311px; height:158px; background-position: -1253px -1121px}
.NAGA_56 {width:311px; height:158px; background-position: -1253px -1281px}
.NAGA_57 {width:311px; height:158px; background-position: -1253px -1441px}
.NAGA_58 {width:311px; height:158px; background-position: -1253px -1601px}
.NAGA_59 {width:311px; height:158px; background-position: -1253px -1761px}

/* nagaLoadingChanges */
.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: visible;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.loading a {
  position: absolute;
  margin-top: 0px;
  margin-left: -5px;
  color: lightblue;
  text-shadow: 0 0 black;
  font-size: 16px;
  width: 20px;
  height: 10px;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  animation: spinner 1500ms infinite linear;
  border-radius: 0.5em;
  box-shadow: rgba(255, 255, 255, 0.749) 1.5em 0 0 0, rgba(171, 213, 200, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.749) 0 1.5em 0 0, rgba(171, 213, 200, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.749) -1.5em 0 0 0, rgba(171, 213, 200, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.749) 0 -1.5em 0 0, rgba(171, 213, 200, 0.75) 1.1em -1.1em 0 0;
}

@font-face {
  font-family: 'MyWebFont';
  src: url('DXCharmantB-KSCpc-EUC-H.eot'); /* IE9 Compat Modes */
  src: url('DXCharmantB-KSCpc-EUC-H.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('DXCharmantB-KSCpc-EUC-H.woff2') format('woff2'), /* Super Modern Browsers */
       url('DXCharmantB-KSCpc-EUC-H.woff') format('woff'), /* Pretty Modern Browsers */
       url('DXCharmantB-KSCpc-EUC-H.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('DXCharmantB-KSCpc-EUC-H.svg#svgFontName') format('svg'); /* Legacy iOS */
}

/* Animation */
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}