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;
    overflow: hidden;
}

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

#timer {
    position: absolute;
    top: -1005px;
    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: 70%;*/
    text-align: center;
    display: none;
}

#name {
    width: 50%;
}

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

#mode {
    width: 95%;
}

.space {
    height: 9%;
}

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

#mode0,
#mode1 {
    width: 47%;
    height: 100%;
    background-color: rgba(107, 203, 0, 0.6);
    /*background-color: #6BCB00;*/
    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(107, 203, 0, 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);*/
    /*background-color: #6BCB00;*/
    background-color: rgba(107, 203, 0, 0.6);
}

#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;
    top: 1%;
    left: 1%;
    height: 8%;
    text-align: center;
    color: #fff;
    font-size: 3.2vh;
    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%;
}

#player1balls,
#player2balls,
#player1escBalls,
#player2escBalls,
#ballsplace {
    position: absolute;
    left: 1%;
    top: 5%;
    height: 6%;
    display: none;
}

#player1balls img,
#player2balls img {
    float: left;
    margin-top: 2.35%;
    margin-left: 2.95%;
    margin-right: 0.7%;
}

#player1escBalls img,
#player2escBalls img,
#player1escBalls div,
#player2escBalls div {
    float: left;
    margin-top: 2.35%;
    margin-left: 2.95%;
    margin-right: 0.7%;
}

#hitArrow {
    position: absolute;
    bottom: 1%;
    left: 50%;
    height: 45%;
    display: none;
}

#hitRound,
#roundDummy {
    position: absolute;
    left: 50%;
    height: 5%;
    bottom: 40%;
    opacity: 0.3;
    display: none;
    cursor: pointer;
}

#roundDummy {
    z-index: 10;
}

.cursorRot {
    cursor: ew-resize;
}

.cursorHit {
    cursor: ns-resize;
}

.cursorCueHover {
    cursor: pointer;
}

#hitLine {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 40%;
}

#hitLine div {
    width: 100%;
    height: 0;
    overflow: hidden;
}

#hitLine img {
    width: 100%;
}

@keyframes rounds {
    from {
        background-size: 30%;
        opacity: 0.8
    }
    to {
        background-size: 100%;
        opacity: 0.05;
    }
}

#hitAnim {
    position: absolute;
    left: 50%;
    display: none;
}

#hitAnim .round {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-repeat: no-repeat;
    background-position: center center;
    animation-iteration-count: 1;
    animation-duration: 1s;
    animation-name: rounds;
    background-image: url('../img/round.png');
    opacity: 0;
}

#hitAnim .round:nth-child(1) {
    animation-delay: 0.5s;
}

#hand {
    position: absolute;
    /*left: 49%;
    bottom: 39%;*/
    display: none;
    left: 60%;
    bottom: 30%;
    height: 5%;
}

@media screen and (max-width: 500px) {
    #hand {
        height: 10%;
    }
}

@media screen and (max-width: 980px) {
    #hand {
        height: 7%;
    }
}

@media screen and (max-width: 980px) {
    .shadow {
        box-shadow: 2px 2px 9px 4px rgba(0, 0, 0, 0.75);
        border-radius: 5px;
    }
}

@media screen and (max-width: 500px) {
    .shadow {
        box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.75);
        border-radius: 5px;
    }
}

#howToPlay {
    position: absolute;
    font-size: 1.7vh;
    left: 50%;
    bottom: 1.5%;
    color: #fff;
    white-space: nowrap;
}

#powerBorder,
#powerWrap {
    position: absolute;
    left: 2%;
    bottom: 50%;
    max-height: 461px;
    height: 40%;
    display: none;
}

#power {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-image: url('../img/bill_power_full.png');
    background-repeat: no-repeat;
    background-position: left bottom;
}