@charset "UTF-8";
@import "easy_animation.scss";
@import "compass/reset";
//@import "compass/css3/animation";
$max-width: 640px;
$body-width: 640px;
$body-height: 1006px;
$real-body-width: 640px !default;
$real-body-height: 1006px !default;
$container-body-width: 640px !default;
$container-body-height: 1006px !default;
$r: ($real-body-width / $container-body-width);
$ea-prefix-for-mozilla: false !global;
$ea-prefix-for-microsoft: true !global;
$ea-prefix-for-opera: false !global;
$ea-prefix-for-spec: false !global;
@function minus_topbar($x) {
  @return $x - 124px;

}

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

//
//@function torem($px) {
//  @return $px / 100px * 1rem;
//}
//@mixin image_bounds_by_pos($img, $x, $y) {
//  position: absolute;
//  display: inline-block;
//  left: torem($x);
//  top: torem($y);
//  background: url($img) left top no-repeat;
//  width: torem(image_width($img));
//  height: torem(image_height($img));
//}
//
//@mixin bounds_by_pos($x, $y, $w, $h) {
//  position: absolute;
//  display: inline-block;
//  left: torem($x);
//  top: torem($y);
//  width: torem($w);
//  height:torem($h);
//}
@function torem($px) {
  @return $px
}

@mixin bounds_by_pos($x, $y, $w, $h) {
  position: absolute;
  display: inline-block;
  left: torem($x);
  top: torem($y);
  width: torem($w);
  height: torem($h);
}

@mixin image_bounds_by_pos($img, $x, $y) {
  position: absolute;
  display: inline-block;
  left: torem($x);
  top: torem($y);
  background: url($img) left top;
  width: torem(image_width($img));
  height: torem(image_height($img));
}

@mixin full_page {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

@mixin animate_forwards() {
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

html {
  font-family: 'MicrosoftYaHei', '微软雅黑', 'STHeitiSC';
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  //  user-select: none;
  //  -webkit-user-select: none;
}

html, body {
  margin: 0;
  height: 100%;
  //height: 1008px;
  width: 100%;
  overflow-x: hidden;
  user-select: none;
  padding: 0;
  //  -webkit-overflow-scrolling: touch;
  background-color: white;
  font-family: 'MicrosoftYaHei', '微软雅黑', 'STHeitiSC';
}

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
  html, body {
    height: 1030px;
  }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  html, body {
    height: 1030px;
  }
}

@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 3) {
  html, body {
    height: 1041px;
  }
}

@media only screen and (min-device-width: 414px) and (max-device-width: 736px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 3) {
  html, body {
    height: 1041px;
  }
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;

}

#container {
  width: $container-body-width;
  height: 100%;
  max-width: $max-width;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.page {
  @include full_page;
  display: none;
  overflow-x: hidden;
  height: 100%;
}

.page .inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.page .layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.dialog {
  @include full_page;
  display: none;
}

.dialog .inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.flex {

  display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox; /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Chrome */
  display: flex;
  align-items: center;
  justify-content: center;
}

#container {
  @extend .flex;
  width: 100%;
  height: 100%;
  .btn-prize,.prize-type {
    @extend .flex;
    width: torem(200px);
    height: torem(200px);
    font-size: 27px;
    border: 1px solid red;
  }
}


