html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: arial;
    font-size: 12px;
}

body {
    min-height: 100%;
    height: 100%;
    position: relative;
    background-color: #000;
    color: #000;
    overflow: hidden;
    outline: none !important;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#world {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#timer {
    position: absolute;
    top: 5px;
    left: 5px;
    height: 7.5%;
    background-color: rgba(0, 194, 246, 0.8);
    padding-top: 1vh;
    display: none;
}

#timer img {
    margin-left: 5%;
    margin-right: 5%;
    height: 90%;
    float: left;
}

#timer span {
    color: #fff;
    font-size: 7vh;
    margin-top: -10px;
}

#mainmenu {
    position: absolute;
    top: 0;
    left: 0;
    height: 60%;
    text-align: center;
    display: none;
}

#name {
    width: 90%;
}

.shadow {
    box-shadow: 4px 4px 18px 9px rgba(0, 0, 0, 0.75);
    border-radius: 5px;
}

#mode {
    width: 98%;
}

.space {
    height: 9%;
}

#mode_wrap {
    width: 98%;
    height: 30%;
    margin-left: 1%;
}

#mode0,
#mode1 {
    width: 47%;
    height: 100%;
    background-color: rgba(0, 194, 246, 0.8);
    cursor: pointer;
}

#mode0 {
    float: left;
}

#mode1 {
    float: right;
}

#mode0 img,
#mode1 img {
    height: 65%;
    margin-top: 5%;
    max-width: 30%;
}

.active {
    cursor: pointer;
}

.active:active {
    box-shadow: 2px 2px 9px 4px rgba(0, 0, 0, 0.75);
    background-color: rgba(0, 194, 246, 0.9);
    margin-left: -0.5%;
    margin-top: -0.5%;
}

#sound {
    position: absolute;
    width: 5%;
    min-width: 40px;
    top: 1%;
    text-align: center;
}

#sound img {
    height: 80%;
    margin-top: 10%;
}

.bg {
    background-color: rgba(0, 194, 246, 0.8);
}

#exit {
    position: absolute;
    width: 5%;
    min-width: 40px;
    top: 1%;
    text-align: center;
    display: none
}

#exit2 {
    position: absolute;
    width: 25%;
    min-width: 40px;
    bottom: 3%;
    left: 55%;
    text-align: center;
}

#exit img,
#exit2 img {
    height: 80%;
    margin-top: 10%;
}

#restart {
    position: absolute;
    width: 5%;
    min-width: 40px;
    top: 1%;
    text-align: center;
    display: none;
}

#restart2 {
    position: absolute;
    width: 25%;
    min-width: 40px;
    bottom: 3%;
    right: 55%;
    text-align: center;
}

#restart img,
#restart2 img {
    height: 80%;
    margin-top: 10%;
}

#curTurn {
    position: absolute;
    bottom: 1%;
    right: 1%;
    height: 8%;
    text-align: center;
    color: #fff;
    font-size: 6.8vh;
    display: none;
    text-shadow: -0 -1px 0 #000000, 0 -1px 0 #000000, -0 1px 0 #000000, 0 1px 0 #000000, -1px -0 0 #000000, 1px -0 0 #000000, -1px 0 0 #000000, 1px 0 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
}

#line {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

#gameEnd {
    position: absolute;
    top: 0;
    left: 0;
    height: 50%;
    text-align: center;
    font-size: 5vh;
    color: #fff;
    text-shadow: -0 -1px 0 #000000, 0 -1px 0 #000000, -0 1px 0 #000000, 0 1px 0 #000000, -1px -0 0 #000000, 1px -0 0 #000000, -1px 0 0 #000000, 1px 0 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
    display: none;
    line-height: calc(9vh);
}

#loader {
    position: absolute;
    width: 200px;
    height: 100px;
    left: 50%;
    top: 50%;
    margin-left: -100px;
    margin-top: -50px;
    text-align: center;
    font-size: 18px;
    color: #f0f0f0;
    text-shadow: -0 -1px 3px rgba( 0, 181, 226, 0.52), 0 -1px 3px rgba( 0, 181, 226, 0.52), -0 1px 3px rgba( 0, 181, 226, 0.52), 0 1px 3px rgba( 0, 181, 226, 0.52), -1px -0 3px rgba( 0, 181, 226, 0.52), 1px -0 3px rgba( 0, 181, 226, 0.52), -1px 0 3px rgba( 0, 181, 226, 0.52), 1px 0 3px rgba( 0, 181, 226, 0.52), -1px -1px 3px rgba( 0, 181, 226, 0.52), 1px -1px 3px rgba( 0, 181, 226, 0.52), -1px 1px 3px rgba( 0, 181, 226, 0.52), 1px 1px 3px rgba( 0, 181, 226, 0.52), -1px -1px 3px rgba( 0, 181, 226, 0.52), 1px -1px 3px rgba( 0, 181, 226, 0.52), -1px 1px 3px rgba( 0, 181, 226, 0.52), 1px 1px 3px rgba( 0, 181, 226, 0.52);
}

.ball {
    background-color: rgba(0, 0, 0, 0);
    border: 5px solid rgba(0, 183, 229, 0.9);
    opacity: .9;
    border-top: 5px solid rgba(0, 0, 0, 0);
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    box-shadow: 0 0 35px #2187e7;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    -moz-animation: spin .5s infinite linear;
    -webkit-animation: spin .5s infinite linear;
}

.ball1 {
    background-color: rgba(0, 0, 0, 0);
    border: 5px solid rgba(0, 183, 229, 0.9);
    opacity: .9;
    border-top: 5px solid rgba(0, 0, 0, 0);
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    box-shadow: 0 0 15px #2187e7;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    position: relative;
    top: -50px;
    -moz-animation: spinoff .5s infinite linear;
    -webkit-animation: spinoff .5s infinite linear;
}

@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-moz-keyframes spinoff {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(-360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spinoff {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(-360deg);
    }
}

#loader_bg {
    position: absolute;
    background-color: #000;
    width: 100%;
    height: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}

#fullScreen {
    position: absolute;
    left: 1%;
    bottom: 1%;
    width: 5%;
    min-width: 40px;
    text-align: center;
    display: none;
}

#fullScreen img {
    height: 80%;
    margin-top: 10%;
}