.game_html {
  overscroll-behavior: none;
  overflow:hidden;
}

.game_body {
  overflow:hidden;
  overscroll-behavior: none;
}

body {
}

#gamewrap {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  z-index:99999999999999;
  background-color:rgba(0,0,0,0.7);
}

#gamewrap1 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

#gamewrap1 * a {
  text-decoration:none;
}

#gamewrap1 {
  margin:0 auto;
  max-width:100%;
  display:table;
  height:100%;
}

#gamewrap2 {
  display:table-cell;
  vertical-align:middle;
}

#gamewrap3 {
  background-color:#EFE5C7;
  background-image:url('background.png');
  background-repeat: no-repeat;
  background-position:0 40px;
  background-size:100%;
}

#game-details {
  color: #ffffff;
  font-weight: 500;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  background: #B43D12;
  font-size:14px;
  text-align:left;
  box-sizing:border-box;
  
}

#game-details a {
  color: #ffffff;
}

#game-details #gdleft {
  margin-top:0px;
}

#game-details #close {
  font-size:10px;
  margin-top:8px;
}

#game-details #timer {
  font-family: 'Handjet', sans-serif;
  text-align:right;
  font-size:38px;
  line-height:32px;
  padding-top:2px;
}

@media only screen and (max-width: 800px) {
  #game-details {
    padding: 4px 10px;
  }
  #game-details #timer {
    font-size:34px;
    line-height:28px;
  }
  #game-details #close {
    font-size:10px;
    margin-top:4px;
  }
}

@media only screen and (max-width: 500px) {
  #game-details {
    padding: 4px 10px;
    height:42px;
  }
  #game-details #timer {
    font-size:28px;
    line-height:22px;
    padding-top:6px;
  }
  #game-details #close {
    font-size:10px;
    margin-top:4px;
  }
}

#playboardx {
  position:relative;
}

#playboard {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template: repeat(9, 1fr) / repeat(10, 1fr);
}

#playboard .food {
}

#playboard .food .product {
  display:block;
  width:100%;
  /* transform: scale(2,2); */
}

#playboard .obstacle {
}

#playboard .obstacle .obstaclei {
  display:block;
  width:100%;
}

#playboard .dragonhead {
  display:block;
  width:100%;
  height:100%;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
  transform: scale(1.05);
}

#playboard.eaten .dragonhead {
  transform:scale(1.5);
}

#playboard .dragonbody {
  display:block;
  width:100%;
  height:100%;
  transform: scale(1.05);
}

#playboard .rot0 {
}

#playboard .rot90 {
  transform: rotate(90deg);
}

#playboard .rot180 {
  transform: rotate(180deg);
}

#playboard .rot270 {
  transform: rotate(270deg);
}

#playboard .mir0 {
  transform: scaleX(-1);
}

#playboard .mir90 {
  transform: scaleX(-1);
  transform: rotate(90deg);
}

#playboard .mir180 {
  transform: scaleX(-1);
  transform: rotate(180deg);
}

#playboard .mir270 {
  transform: scaleX(-1);
  transform: rotate(270deg);
}

#swipe-detector {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  cursor: pointer;
}

#gameover,
#gameotime {
  display:none;
  position:absolute;
  top:40%;
  left:30%;
  width:40%;
}

#gameover img,
#gameotime img {
  display:block;
  width:100%;
}

#gameinstr {
  position:absolute;
  top:3%;
  left:3%;
  width:94%;
  z-index:999999;
  cursor: pointer;
}

#gameinstr img {
  width:100%;
}

#gamef {
  margin:0 auto;
  height:170px;
  position:relative;
}

#controlx {
  -moz-border-radius: 50%; 
  -webkit-border-radius: 50%; 
  border-radius: 50% 50% 50% 50%;
  overflow:hidden;
  margin:0 auto;
  width:150px;
  height:150px;
  position:relative;
  display:none;
}

#controls {
  display:flex;
  margin:-2px 0 0 -2px;
  width:calc(100% + 4px);
  height:calc(100% + 4px);
  flex-wrap:wrap;
  background-color:#B43D12;
  transform: rotate(-45deg);
} 

#controls i {
  width:50%;
  height:50%;
  border:2px solid #ffffff;
  background-image:url('chevron.png');
  background-repeat: no-repeat;
  background-size: 100%;
  cursor: pointer;
}

#controls i.touch {
  background-color:#BB0717;
}

#controls #ArrowRight {
  transform: rotate(90deg);
}

#controls #ArrowDown {
  transform: rotate(180deg);
}

#controls #ArrowLeft {
  transform: rotate(270deg);
}

#finished {
  display:none;
  display:block;
  width:100%;
  text-align:center;
  z-index:100;
  box-sizing:border-box;
  color:#BB0717;
  margin:5px auto;
  padding:0 20px;
  font-weight:600;
}

#finishf {
  display:none;
  display:block;
  margin:0 auto 15px auto;
}

#finishp {
  display:none;
  display:block;
  margin:15px auto 0 auto;
  width:220px;
}

#finishp img {
  display:block;
  width:100%;
}

#finishm {
  display:none;
  display:block;
  margin:15px auto 0 auto;
  width:220px;
}

#finishm img {
  display:block;
  width:100%;
}

#finishc {
  display:none;
  display:block;
  margin:0 auto;
  width:147px;
}

#finishc img {
  display:block;
  width:100%;
}

#gamewrap #play,
#gamewrap #pause {
  position:absolute;
  bottom:10px;
  right:10px;
}

#gamewrap #play {
  display:none;
}

#gamewrap #play a {
  font-size:22px;
  line-height:20px;
  color: #ffffff;
}

#gamewrap #pause a {
  font-size:22px;
  line-height:18px;
  color: #ffffff;
}

/*
@media (orientation: landscape) {
  #gamewrap {
    max-width:calc(100vh + 152px);
  }
  #gamex {
    display:inline-block;
    width:calc(100% - 209px);
    vertical-align:middle;
  }
  #controlx {
    display:inline-block;
    width:200px;
    vertical-align:middle;
    margin:0;
  }
}
*/