﻿html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
}

#gameGroup {
    position: absolute;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    background-color: #000;
}

#mainTips {
    color: #fff;
    font-size: 0.8rem;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 370;
}

#musicBtn {
    position: fixed;
    bottom: 3px;
    right: 3px;
    cursor: pointer;
    z-index: 400;
    display: none;
}

#startPanel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /*background-color: #fff;*/
    background-color: #000000;
    overflow: hidden;
    z-index: 300;
}

#startTop {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    z-index: 350;
}

#startTopProgressBar {
    width: 90%;
    height: 5%;
    margin: 0 5%;
    position: absolute;
    top: 5%;
    background-color: #fff;
    z-index: 15;
}

#startTopProgress {
    width: 0%;
    height: 100%;
    background-color: #666;
}

#startTopLoadTips {
    color: #fff;
    font-size: 0.6rem;
    position: absolute;
    top: 8%;
    left: 5%;
    z-index: 15;
}

#startTopHint {
    color: #66CCFF;
    position: absolute;
    bottom: 0;
    left: 5%;
    z-index: 15;
    font-size: 18px;
}

#startBackground {
    position:absolute;
    top:50%;
    left:50%;
    height: 100%;
    width: 100%;
    transform:translate(-50%,-50%);
    z-index: 260;
    display: none;
}

#startLogo {
    position: absolute;
    z-index: 290;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8%;
    max-width: 100%;
    text-align: center;
    font: 4rem STXingkai;
}

#startTitle {
    position: absolute;
    z-index: 280;
}
#titleWord {
    white-space: nowrap;
    background-image:url(project/images/back.png);
    opacity: 1;
    padding: 3px 10px 5px 10px;
	background-size:100% 100%;
}
#startButtonGroup {
    width: auto;
    position: absolute;
    text-align: center;
    font-size: 1.4rem;
    display: none;
    z-index: 310;
    bottom: 0;
    margin-bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    min-width: 20%;
    /* default value */
    background-color: #32369F;
    opacity: 0.85;
    color: #FFFFFF;
    border: #FFFFFF 2px solid;
    caret-color: #FFD700;
    border-radius: 10px;
}
#choice {
    display: none;
    position: relative;
    text-align: center;
}
#exit {
    display: none;
    position: absolute;
    text-align: center;
}
.choice {
    border:2px solid rgba(255,255,255,0);
    border-radius:10px;
    -webkit-animation: onChoice 1s infinite; /* Chrome, Safari, Opera */
    animation: onChoice 1s infinite;
    z-index: 300;
}
@-webkit-keyframes onChoice {
    0% {
        border-color: rgba(255,255,255,0.8);
    }
    20% {
        border-color: rgba(255,255,255,0.6);
    }
    40% {
        border-color: rgba(255,255,255,0.4);
    }
    60% {
        border-color: rgba(255,255,255,0.2);
    }
    80% {
        border-color: rgba(255,255,255,0.4);
    }
    100% {
        border-color: rgba(255,255,255,0.6);
    }
}
@keyframes onChoice {
    0% {
        border-color: rgba(255,255,255,0.8);
    }
    20% {
        border-color: rgba(255,255,255,0.6);
    }
    40% {
        border-color: rgba(255,255,255,0.4);
    }
    60% {
        border-color: rgba(255,255,255,0.2);
    }
    80% {
        border-color: rgba(255,255,255,0.4);
    }
    100% {
        border-color: rgba(255,255,255,0.6);
    }
}
#choice span{
    display: block;
}

#word img {
    width: 100%;
    height: 100%;
}
#choice span{
    line-height: 1.8;
    text-align: center;
}
#word{
    position: absolute;
    display: none;
    z-index: 200;
}
#startButtons {
    display: block;
}

#levelChooseButtons {
    display: none;
}

.startButton {
    width: 100%;
    margin: 0;
    color: #fff;
    font-weight: bold;
    display: block;
    cursor: pointer;
    padding: 4px 0;
    border-color: transparent;
    border-width: 2px;
    border-style: solid;
    border-radius: 6px;
    /*border:2px solid rgba(255,255,255,0);
    border-radius:10px;*/
    -webkit-animation: onChoice 1s infinite; /* Chrome, Safari, Opera */
    animation: onChoice 1s infinite;
}

#floorMsgGroup {
    top: 3px;
    right: 3px;
    position: absolute;
    text-align: center;
    display: none;
    color: #fff;
    background-color: #000;
    z-index: 230;
}
#blackScreen {
    position: absolute;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    background-color: #000;
    color: #fff;
    display: block;
    z-index: 270;
    padding-top:100px;
    padding-left: 50px;
}
.myText {
	vertical-align: middle;
}
#nextPage {
    text-align: center;
}
#opener {
    cursor: pointer;
    width: 10px;
    height: 10px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    display: none;
    border-bottom: 4px solid rgb(255,255,255);
    border-right: 4px solid rgb(255, 255, 255);
    position: absolute;
    top: 200px;
    left:150px;
    -webkit-animation: opener .5s ease-in-out alternate infinite;
    animation: opener .5s ease-in-out alternate infinite;
    cursor: pointer;
    opacity: 0.5;
    -webkit-transition: opacity .2s ease-in-out, transform .5s ease-in-out .2s;
    transition: opacity .2s ease-in-out, transform .5s ease-in-out .2s;
}
@-webkit-keyframes opener {
    100% {
        top: 205px
    }
}
@keyframes opener {
    100% {
        top: 205px
    }
}
#next {
    cursor: pointer;
    width: 5px;
    height: 5px;
    display: block;
    position: absolute;
    transform: rotate(45deg);
    border-bottom: 4px solid rgb(255,255,255);
    border-right: 4px solid rgb(255, 255, 255);
    -webkit-animation: next .5s ease-in-out alternate infinite;
    animation: next .5s ease-in-out alternate infinite;
    top: 95px;
    left:150px;
    opacity: 0.7;
}
@-webkit-keyframes next {
    100% {
        transform: rotate(45deg) translate(-3px, -3px);
    }
}
@keyframes next {
    100% {
        transform: rotate(45deg) translate(-3px, -3px);
    }
}
#logoLabel {
    margin-top: 8%;
    font: bold 3rem STXingkai;
    margin-left: auto;
    margin-right: auto;
}

#versionLabel {
    margin-top: -3%;
    font-size: 1.2rem;
    font-weight: bold;
}

#floorNameLabel {
    margin-top: 30px;
    font-size: 1.6rem;
    font-weight: bold;
}

#statusBar {
    position: absolute;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    background: url(project/images/ground.png) repeat;
    z-index: 185;
    display: none;
    top: 0;
    left: 0;
    padding: 3px;
}
#statusBar .status{
    position: relative;
    display: block;
    float: left;
    width: 100%;
}
.status img{
    vertical-align: middle;
    width: auto;
    height: 100%;
    max-height: 1.6em;
}
#statusBar span{
    font: bold italic 1.0em Verdana;
    vertical-align: middle;
    display:inline-block;
}
#statusBar p {
    display: inline-block;
    vertical-align: middle;
    width: 60%;
    margin: 0;
    color: white;
    font: bold italic 1.1em Verdana;
    white-space: nowrap;
}
#toolBar {
    position: absolute;
    background: url(project/images/ground.png) repeat;
    z-index: 210;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    display: none;
    left: 0;
    padding: 3px;
}
#toolBar .tools{
    position: relative;
    display: block;
    float: left;
}

p#hard {
    width: 6em;
    vertical-align: middle;
    display: inline-block;
    color: red;
    font: bold normal 1.1em "Arial Black";
    text-align: center;
    word-break: keep-all;
}

span#poison, span#weak, span#curse, span#pickaxe, span#bomb, span#fly {
    font-style: normal;
    font-size: 1em;
}

p#name {
    font-style: normal;
}

.gameCanvas {
    position: absolute;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#gif {
    z-index: 20;
    position: absolute;
    overflow: hidden;
}

#gif2 {
    z-index: 90;
    position: absolute;
    overflow: hidden;
}

#gameDraw {
    position: absolute;
    background: #000000;
    overflow: hidden;
    z-index: 185;
}

#bg {
    z-index: 10;
}

#event {
    z-index: 30;
}

#hero {
    z-index: 40;
}

#event2 {
    z-index: 50;
}

#fg {
    z-index: 60;
}

#damage {
    z-index: 65;
}

#animate {
    z-index: 70;
}

#curtain {
    z-index: 125;
}

#ui {
    z-index: 140;
}

#data {
    z-index: 170;
}

#inputDiv {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(127,127,127,0.6);
    z-index: 2000
}

#inputDialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: white;
    width: 250px;
    min-height: 50px;
    max-height: 250px;
}

#inputMessage {
    word-wrap: break-word;
    text-align: left;
    margin-left: 8%;
    margin-right: 5%;
}

#inputBox {
    margin-left: 8%;
    width: 80%;
    margin-bottom: 10px;
    padding: 5px 3px;
    border: 1px solid;
    background: #F0F0F0;
}

#inputYes {
    margin-bottom: 15px;
    margin-left: 8%;
}

#inputNo {
    float:right;
    margin-right: 10%;
}