html {
  -ms-touch-action: none;
}

body, canvas, div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(39, 7, 1, 1);

  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(39, 7, 1, 1);
}

/* 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 */
}

body {
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 101%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
}

#Cocos2dGameContainer {
  position: absolute;
  margin: 0;
  overflow: hidden;
  left: 0px;
  top: 0px;

  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
  -webkit-box-pack: center;
}

canvas {
  background-color: rgba(39, 7, 1, 1);
}

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

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

p.header {
  font-size: small;
}

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

.container {
	margin-top: 7rem;
	margin-bottom: 7rem;
	display: grid;
	grid-template-columns: repeat(2, auto);
	place-items: center;
	gap: 7rem;
}

@media (min-width: 600px) {
	.container {
		grid-template-rows: repeat(2, auto);
		grid-template-columns: repeat(3, auto);
	}
}

#GameDiv, #Cocos3dGameContainer, #GameCanvas {
  width: 100.2%;
  height: 100%;
  margin-left : -0.1%;
}

#mask {
	position:absolute;
	z-index:9999;
	background-color:rgb(19, 19, 19);
	left: 0;
  top: 0;
	height:100%;
  width:100%;
	display :none;
	opacity:0.5;
}

#image {
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(./swipe.gif);
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
  z-index: 99999;
  opacity: 1;
}
#loadingIcon {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -15px;
  margin-left: -15px;
  width: 31px;
  height: 30px;
  background: url(./waiting.png);
  background-position: center;
  background-size: cover;
  z-index: 99999;
  opacity: 1;
}

#handImage {
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(./touch.gif);
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(20, 20, 20, 0.7);
  display :none;
  opacity: 1;
  background-size: 20%;
}

#enterFullscreen {
  border: none;
  margin: 0 auto;
  position: absolute;
  background: url(./enterFullscreenBlank.png);
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.0);
  background-size: contain;
  display :block;
  opacity: 1;
}

.enterFullScreen_Portrait{
  top: 2%;
  left: 45%;
  width: 9vmin;
  height: 9vmin;
  background-size: 80%;
}

.enterFullScreen_Landscape{
  top: 45%;
  left: 2%;
  width: 9vmin;
  height: 9vmin;
  background-size: 80%;
}

#exitFullscreen {
  border: none;
  margin: 0 auto;
  position: absolute;
  background: url(./exitFullscreenBlank.png);
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.0);
  background-size: contain;
  display :none;
  opacity: 1;
}

.exitFullScreen_Portrait{
  top: 2%;
  left: 45%;
  width: 9vmin;
  height: 9vmin;
  background-size: 100%;
}

.exitFullScreen_Landscape{
  top: 45%;
  left: 2%;
  width: 9vmin;
  height: 9vmin;
  background-size: 40%;
}

#splashGamePortrait {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vmax;
  height: 100vmin;
  background: #000000 url(./splashscreen.jpg) no-repeat center center;
  background-size: 100%;
}
.splashPortraitForGamePortrait{
  transform-origin: 50% 28.125%;
  transform: rotate(270deg);
}

#splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vmax;
    height: 100vmin;
    background: #171717 url(splashscreen.jpg) no-repeat center center;
    background-size: 100%;
  }

.splashPortrait{
  transform-origin: 28.125% 50%;
  transform: rotate(90deg);
}


/* Loading layout from the supplied web.sunwin.hockey index.
 * #spinner is hidden by the native Cocos loadGame onStart callback. */
.sunwin-splash-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -15px;
  -webkit-transform: translateY(-50%) translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(#fffcc7, #fffcc7, #fffcc7);
}

@keyframes sunwin-splash-fade {

  0%,
  100% {
    opacity: 0.5
  }

  70% {
    opacity: 1
  }
}

.sunwin-splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateY(-50%) translateX(-50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(#fffcc7, #fffcc7, #fffcc7);
}

.sunwin-splash-glow:nth-child(1) {
  filter: blur(10px);
  animation: sunwin-splash-fade 1.5s linear infinite;
}

.sunwin-splash-glow:nth-child(2) {
  filter: blur(15px);
  animation: sunwin-splash-fade 1.5s linear infinite;
}

.sunwin-splash-glow:nth-child(3) {
  filter: blur(25px);
  animation: sunwin-splash-fade 1.5s linear infinite;
}

.sunwin-splash-glow:nth-child(4) {
  filter: blur(45px);
  animation: sunwin-splash-fade 1.5s linear infinite;
}

.sunwin-splash-logo {
  position: absolute;
  width: 200px;
  height: 200px;
  margin-top: -11.0px;
  margin-left: -49.0px;
}

.sunwin-splash-background {
  background-color: #270701;
  width: 110vmax;
  height: 110vmax;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -100;
  transform: translate(-50%, -50%);
}

.sunwin-splash-message-primary {
  color: #FFE49E;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 87px;
  width: 1000px;
}

.sunwin-splash-message-secondary {
  color: #FFE49E;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 112px;
  width: 1000px;
}

#spinner .sunwin-splash-brand {
  color: inherit;
}

@media (min-width: 1200px) {
  .sunwin-splash-message-primary p {
    font-size: 15px;
  }

  .sunwin-splash-message-secondary p {
    font-size: 15px;
  }
}

@media (max-width: 500px) {
  .sunwin-splash-message-primary p {
    font-size: 11px;
  }

  .sunwin-splash-message-secondary p {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #spinner .sunwin-splash-glow {
    animation: none;
    opacity: 0.75;
  }
}
