html {
        box-sizing: border-box;
      }
      *, *:before, *:after {
        box-sizing: inherit;
      }
      body {
        margin: 0;
        background: #37b1cb;
		font-family: Arial, sans-serif;
      }
      #gameContainer {
        width: 100vw;
        height: 100vh;
      }
      canvas {
        width: 100%;
        height: 100%;
        display: block;
      }
      /* try to handle mobile dialog */
      canvas + * {
        z-index: 2;
      }
      .logo {
          display: block;
          max-width: 100vw;
          max-height: 70vh;
      }

      .progress {
          margin: 1.5em;
          border: 1px solid white;
          width: 50vw;
          display: none;
      }
      .progress .full {
          margin: 2px;
          background: white;
          height: 1em;
          transform-origin: top left;
      }

      #loader {
        position: absolute;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
		    background: #37b1cb;
      }

      .spinner,
      .spinner:after {
        border-radius: 50%;
        width: 5em;
        height: 5em;
      }
      .spinner {
        margin: 10px;
        font-size: 10px;
        position: relative;
        text-indent: -9999em;
        border-top: 1.1em solid rgba(255, 255, 255, 0.2);
        border-right: 1.1em solid rgba(255, 255, 255, 0.2);
        border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
        border-left: 1.1em solid #ffffff;
        transform: translateZ(0);
        animation: spinner-spin 1.1s infinite linear;
      }
      @keyframes spinner-spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }
  
  
  #links {
	position: absolute;
	right: 0px;
	bottom: 0px;
	list-style: none;
	background-color: #eee;
	border-top-left-radius: 5px;
}
#links ul {
	list-style-type: none;
	margin: 0;
	font-weight: bold;		
	padding-inline-start: 0;
}
#links ul li {
	display: inline;
}
#links ul li a, #links ul li p {
	color: #000;
	display: inline-block;
	margin: 5px;
	padding: 5px;
	cursor: pointer;
}
#popupAboutGame{
	height: 100vh;
	overflow-y: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}
#popupAboutGame::-webkit-scrollbar{
width:10px;
height:5px;
}
#popupAboutGame::-webkit-scrollbar-thumb{
	background:#555;
	border-radius:10px;
}
#popupAboutGame::-webkit-scrollbar-track{
	background:0 0;
}			

.container-popup-aboutgame{
	visibility: hidden;
	position: fixed;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	z-index: 100;
	overflow-y: auto;
	background: rgba(0,0,0,.8);
	cursor: pointer;
	transition: transform .2s ease,-webkit-transform .2s ease;
}

.content-popup-aboutgame{
	display: flex;
	justify-content: center;
	align-items: center;

}

.btn-close-popup{
position: absolute;
top: 10px;
right: 28px;
z-index: 101;
width: 80px;
height: 80px;
background-color: transparent;
color: #f0f0f0;
font-family: monospace;
cursor: pointer;
display: flex;
justify-content: center;
border: none;
}

.btn-close-popup .btn-icon{
	font-size: 60px;
}

.btn-close-popup .btn-text{
	font-size: 24px;
		padding-top: 5px;
}

.set-scale{
	visibility: visible;
}
.set-scale .popup-aboutgame{
	transform: scale(1);
}

.popup-aboutgame{
	position: relative;
	flex-shrink: 0;
	width: 60%;
	border-radius: 4px;
	background-color: #fff;
	opacity: 1;
	cursor: auto;
	transition: transform 0.3s cubic-bezier(.175,.885,.32,1.275),-webkit-transform 0.3s cubic-bezier(.175,.885,.32,1.275);
	transform: scale(.8);  
}


.popup-content{
	padding: 48px;
}
.btn-text{
	display: none;
}

@media (max-width:1000px){
	.content-popup-aboutgame{
		padding-top: 50px;
		height: auto;
	}
}

@media (max-width:540px){
	.btn-close-popup{
		top:0;
		left: 0;
		right:0;
		width:100%;
		height: 60px;
		background-color: #2c3e50;
		line-height: 55px;

	}
	.popup-aboutgame{
		width:100%;
	}
	.btn-text{
		display: block;
	}
	.btn-close-popup .btn-icon{
		margin-right: 10px
	}
}