html, body, canvas {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
}

#swipeLayer, #swipeBackground {
	display: none !important;
}

#wrapper {
    position: fixed;
    left: 0;
    top: 0;
}

#stage {
    /*margin-left: auto;
    margin-right: auto;
    display: block;*/
    width: 0;
    height: 0;
}

#statsPanel {
    position: absolute;
    width: 100%;
    height: 8%;
    bottom: 0;
    opacity: 0.8;
    background-color: #ff0000;
}

#portraitonly {
    /* margin: auto !important;
    width: 70%;
    justify-content: center;
    align-items: center;
    text-align: center; */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; 
    min-height: 100vh;
    visibility: hidden;
}

#portraitonly img {
    width: 30%;
}


.portraitonlytext {
    /* width: 70%; */
    color: white;
    font-family: Arial, Helvetica, sans-serif;
	font-size: 1.2em;
}


.noselect {
  font-family: Arial, Helvetica, 'Microsoft Yahei', 'Malgun Gothic', 'Khmer OS Battambang', 'Nokora', 'Tahoma', sans-serif !important;
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
     -khtml-user-select: none; /* Konqueror */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  not supported by any browser */
}


.loader {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 30px 0 0 -15px !important;
}

.gplogo img{    
    width: 388px !important;
    height: 102px !important;
}

.gplogo
{
    width: 388px;
    height: 102px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -80px 0 0 -194px;
    visibility: hidden;
}

.fadeLogo {
    visibility: visible;
     -webkit-animation: fadein .5s; /* Safari, Chrome and Opera > 12.1 */
     -moz-animation: fadein .5s; /* Firefox < 16 */
     -ms-animation: fadein .5s; /* Internet Explorer */
     -o-animation: fadein .5s; /* Opera < 12.1 */
     animation: fadein .5s;
 }

 .closeHistory
 {
    position:fixed; 
    width:40px; 
    height: 40px;
    top: 0;
    right:0; 
    z-index:999999;
    padding: 10px 0 0 5px;
    cursor: pointer;
 }
 
 .closeHistory img
 {
    width: 30px; 
    height: 30px;
 }

 #historyContainer
 {
    -webkit-overflow-scrolling: touch;
    display: none;
    overflow: hidden;
 }

 #historyFrame
 {
    height: 100%;
    width: 100%;
 }
 
 #historyLoader {
	width: 100%;
	height: 100%;
	position: absolute;
	background: rgba(18, 41, 91, 0.5);
 }
 
 #btnCloseHistory {
    width: 44px !important;
    height: 44px !important;
    padding: 0px !important;
    right: 8px !important;
 }
 
 
 #btnCloseHistory img {	 
    padding: 10px;
 }
 
@media only screen 
  and (min-width: 240px) 
  and (max-width: 320px) 
  ,   (min-height: 240px) 
  and (max-height: 420px) {
 
  #btnCloseHistory {
    width: 34px;
    height: 34px;
    padding: 0px;
    right: 8px;
  }
 
  #btnCloseHistory img {	 
    padding: 7px;
	width: 20px;
	height: 20px;
  } 	  
}
  
/**
 * ==============================================
 * Dot Collision
 * ==============================================
 */
.dot-collision {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background-color: #CFE6EF;
  color: #CFE6EF;
  margin: auto;
  top: 48vh;
}

.dot-collision::before, .dot-collision::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-collision::before {
  left: -12px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background-color: #CFE6EF;
  color: #CFE6EF;
  -webkit-animation: dot-collision-before 2s infinite ease-in;
  animation: dot-collision-before 2s infinite ease-in;
}

.dot-collision::after {
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background-color: #CFE6EF;
  color: #CFE6EF;
  -webkit-animation: dot-collision-after 2s infinite ease-in;
  animation: dot-collision-after 2s infinite ease-in;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}

@-webkit-keyframes dot-collision-before {
  0%,
  50%,
  75%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-20px);
  }
}

@keyframes dot-collision-before {
  0%,
  50%,
  75%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-20px);
  }
}

@-webkit-keyframes dot-collision-after {
  0%,
  50%,
  75%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(20px);
  }
}

@keyframes dot-collision-after {
  0%,
  50%,
  75%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(20px);
  }
}


/****MODAL STYLE***/
.modal {
    left: 0;
    top: 0;
    display: none; 
    position: absolute;
    width: 100%; 
    height: 100%;
    height: 100vh; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.6); 
}

/* Modal Content/Box */
@media only screen and (min-width: 768px) {

    .error-content {
        max-width: 600px;
        min-width: 600px;
        min-height: 120px;
    }

	.closeHistory
    {
       position:fixed; 
       width:40px; 
       height: 40px;
   
       top: 0;
       right:0; 
       z-index:999999;
       padding: 10px 8px 0 0;
       cursor: pointer;

    }
}

@media only screen and (min-device-width: 847px) {
	.closeHistory {
       padding: 10px 15px 0 0 !important;
    }
}

@media only screen and (min-width: 480px)  and (max-width: 736px){

    .error-content {
        min-width: 400px;        
        min-height: 50px;
    }
	
	.closeHistory
    {
       position:fixed; 
       width:40px; 
       height: 40px;
       top: 0;
       right:0; 
       z-index:999999;
       padding: 10px 0 0 5px;
       cursor: pointer;
    }

}

@media only screen and (min-width: 412px) {

    .error-content {
        min-width: 350px;        
        min-height: 50px;
    }

}

@media only screen and (max-width: 320px) and (max-width: 359px){

    .error-content {
        max-width: 260px;
        min-width: 260px;
        min-height: 120px;
    }

	.closeHistory
    {
       position:fixed; 
       width:40px; 
       height: 40px;
       top: 0;
       right:0; 
       z-index:999999;
       padding: 10px 0 0 5px;
       cursor: pointer;
    }
}

@media only screen and (min-width: 360px) and (max-width: 410px) {

    .error-content {
        max-width: 350px;
        min-width: 350px;
        min-height: 120px;
    }
	.closeHistory
    {
       position:fixed; 
       width:40px; 
       height: 40px;
       top: 0;
       right:0; 
       z-index:999999;
       padding: 10px 0 0 5px;
       cursor: pointer;
    }
}

@media only screen and (max-width: 260px) {

    .error-content {
        max-width: 240px;
        min-width: 240px;
        min-height: 100px;
    }

    #errormessage
    {
        font-size: 10px !important;
    }
        
    .gplogo img{    
        width: 250px !important;
        height: 66px !important;
    }

    .gplogo
    {
        margin: -60px 0 0 -125px;
    }
	.closeHistory
    {
       position:fixed; 
       width:40px; 
       height: 40px;
       top: 0;
       right:0; 
       z-index:999999;
       padding: 10px 0 0 5px;
       cursor: pointer;
    }
}

.error-content {
    font-family: "Arial", "Veradana";
    border-radius: 6px;
    border: 1px solid #9CCC02;
    background-color: #fff;
}

/* The Close Button */
.close {
    color: #FFF;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding-right: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.center {
    position: absolute;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#errormessage
{
    padding: 5px 20px;
    font-size: 14px;
    line-height: 18px;
    color: #232323;
}


div.container4 {
    height: 100%;
}

.erroHeader
{    
    height: 40px;
    width: 100%;
    background-color: #9CCC02;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}


div.erroHeader .box-icon {
   /*  margin-left: 5px;
    padding-top: 15px; */
    display: block;
    float: left;
    background-image: url(./images/icon.png);
    width: 30px;
    height: 25px;
    margin-top: -2px;
    background-position: -8px -8px;
}


div.erroHeader.error .box-icon {
    background-position: -128px -8px;
}

div.erroHeader {
    color: #fff;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
}

.errorTitle
{
    padding: 10px 0px 0px 10px;
}

.buttons
{
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
}

.button
{    
    width: 160px;
    height: 28px;
    line-height: 28px;
    margin-bottom: 15px;
    margin-left: 5px;
    margin-right: 5px;
    display: inline-block;
    background-color: #9CCC02;
    border-radius: 6px;
    cursor: pointer;
}