/*
less:
.main{
	width: 300px;
	.atSmall({
		width: 100%;
	});
}

compailed css:
.main{
	width: 300px;
}
@media (max-width:780px){
	.main{
		width: 100%;
	}
}
*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}
/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}
/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}
/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}
/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}
/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}
/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
  /* 2 */
}
/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}
/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}
/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}
/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}
/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}
/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}
/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}
/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}
/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}
/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}
/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}
/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}
/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}
/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}
/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}
/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}
/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}
body,
html {
  font-family: "PingFang TC", "Microsoft JhengHei", Arial, Helvetica, sans-serif;
  font-size: 16px;
  overflow: hidden;
  width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}
input,
textarea,
select {
  padding: 0;
  border: none;
  background-color: transparent;
  outline: 0;
  margin: 0;
  font-family: inherit;
  border-radius: 0;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-appearance: none;
}
input:focus,
textarea:focus,
select:focus {
  -webkit-appearance: none;
}
input[type="button"] {
  cursor: pointer;
  padding: 0;
  border: none;
  background-color: transparent;
  outline: 0;
  margin: 0;
  font-family: inherit;
}
*:focus {
  outline: 0;
}
.hide-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  text-indent: 110%;
}
.hide-title {
  display: block;
  margin: 0;
  white-space: nowrap;
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
  text-indent: 2px;
}
.road,
.blockcar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
@media (max-width: 780px) {
  .road,
  .blockcar {
    top: 8%;
  }
}
.road__block,
.blockcar__block {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  padding-bottom: 116.61538462%;
  background-image: url(../images/road-block.jpg);
  background-size: 100% 100%;
}
.road__block--start,
.blockcar__block--start {
  display: block;
  width: 100%;
  background-size: 100% auto;
  padding-bottom: 61.53846154%;
  background-position: bottom center;
  background-image: url(../images/start.jpg);
  z-index: 5;
}
.car {
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../images/car-grey.png);
  background-size: 100% 100%;
  width: 10%;
}
.car__body {
  padding-bottom: 200%;
}
.car--me {
  background-image: url(../images/car.png);
  left: 50%;
  top: auto;
  bottom: -8%;
  -webkit-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
  -webkit-transition: left 0.5s ease-in-out;
  transition: left 0.5s ease-in-out;
}
@media (max-width: 780px) {
  .car--me {
    bottom: 8.88888889%;
  }
}
.handler {
  position: absolute;
  left: 22.68518519%;
  bottom: 0;
  margin-bottom: -10.18518519%;
  width: 20.37037037%;
  padding-bottom: 20.37037037%;
}
.handler__hint {
  position: absolute;
  width: 44.89795918%;
  height: 25.45454545%;
  background-image: url(../images/hint.png);
  background-size: auto 100%;
}
.handler__hint--left {
  left: 0;
  top: 0;
  -webkit-transform: translate(-7%, -31%);
          transform: translate(-7%, -31%);
  background-position: left top;
  opacity: 0;
}
.handler__hint--left.show {
  -webkit-animation: showhint 1s forwards;
          animation: showhint 1s forwards;
}
.handler__hint--right {
  right: 0;
  top: 0;
  -webkit-transform: translate(7%, -31%);
          transform: translate(7%, -31%);
  background-position: right top;
  opacity: 0;
}
.handler__hint--right.show {
  -webkit-animation: showhint 1s forwards;
          animation: showhint 1s forwards;
}
@-webkit-keyframes showhint {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
@keyframes showhint {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
@media (max-width: 780px) {
  .handler {
    left: 24.67489712%;
    width: 22.63374486%;
    padding-bottom: 22.63374486%;
    margin-bottom: -9.77366255%;
  }
}
.handler__body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/handler.png);
  background-size: 100% 100%;
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
}
.handler__left,
.handler__right {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  cursor: -webkit-grab;
  cursor: grab;
}
.handler__right {
  left: 50%;
}
.handler.turn-left .handler__body {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.handler.turn-right .handler__body {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
@-webkit-keyframes turnL {
  0%,
  100% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  50% {
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
  }
}
@keyframes turnL {
  0%,
  100% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  50% {
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
  }
}
@-webkit-keyframes turnR {
  0%,
  100% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  50% {
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
  }
}
@keyframes turnR {
  0%,
  100% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  50% {
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
  }
}
.stage {
  position: relative;
  display: block;
  padding-bottom: 46.2962963%;
  overflow: hidden;
}
@media (max-width: 780px) {
  .stage {
    width: 178.57142857vw;
    left: -40%;
    padding-bottom: 119.04761905%;
  }
}
.stage--crush {
  -webkit-animation: shake 0.3s;
          animation: shake 0.3s;
}
@-webkit-keyframes shake {
  0%,
  20%,
  50%,
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
  }
  10% {
    -webkit-transform: translate(-5px, 5px);
            transform: translate(-5px, 5px);
  }
  40% {
    -webkit-transform: translate(5px, -5px);
            transform: translate(5px, -5px);
  }
  75% {
    -webkit-transform: translate(5px, 5px);
            transform: translate(5px, 5px);
  }
}
@keyframes shake {
  0%,
  20%,
  50%,
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
  }
  10% {
    -webkit-transform: translate(-5px, 5px);
            transform: translate(-5px, 5px);
  }
  40% {
    -webkit-transform: translate(5px, -5px);
            transform: translate(5px, -5px);
  }
  75% {
    -webkit-transform: translate(5px, 5px);
            transform: translate(5px, 5px);
  }
}
.step {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.result {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 99;
}
.result__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.result__text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  text-indent: 110%;
  width: 50.37037037%;
  padding-bottom: 20.55555556%;
  background-image: url(../images/fail-text.png);
}
@media (max-width: 780px) {
  .result__text {
    width: 94.66666667vw;
    padding-bottom: 43.73333333vw;
  }
}
.result__text--again {
  background-image: url(../images/again-text.png);
}
.result__btn {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  text-indent: 110%;
  margin-top: -3.7037037%;
  width: 29.67592593%;
  padding-bottom: 14.53703704%;
  background-image: url(../images/re-btn.png);
}
@media (max-width: 780px) {
  .result__btn {
    margin-top: -16vw;
    width: 85.6vw;
    padding-bottom: 41.86666667vw;
  }
}
.result__btn--again {
  background-image: url(../images/again-btn.png);
}
.intro {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 0;
  background-image: url(../images/intro.jpg);
  background-size: 100% 100%;
  padding-bottom: 46.2962963%;
}
.intro .gogame-btn {
  position: absolute;
  left: 0;
  bottom: 0;
  margin-left: 4.62962963%;
  margin-bottom: 7.40740741%;
  width: 20.46296296%;
  padding-bottom: 5.27777778%;
}
@media (max-width: 780px) {
  .intro {
    padding-bottom: 120%;
    background-image: url(../images/intro-m.jpg);
  }
  .intro .gogame-btn {
    margin-left: 20.53333333%;
    margin-bottom: 8%;
    width: 58.93333333%;
    padding-bottom: 16%;
  }
}
.guide {
  position: absolute;
  width: 100%;
  height: 0;
  z-index: 20;
  background-image: url(../images/guide.png);
  background-size: 100% 100%;
  padding-bottom: 46.2962963%;
}
@media (max-width: 780px) {
  .guide {
    padding-bottom: 120%;
    background-image: url(../images/guide-m.png);
  }
}
