@media screen and (max-height: 640px) {
    .container.container-single{
        padding-top: 3px !important;
    }
}
#gamebox {
    /*width: 750px; */
    width: 750px;
    /*height: 500px;*/
    height: 440px;
    margin: 1px 0px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.header {
    position: absolute;
    top: 30px;
    /*width: 750px; */
    width: 754px;
    text-align: center;
    z-index: 2;
}
.header .current{
    font-size: 30px;
    color: #fff;
}
.header .record{
    font-size: 16px;
    color: #fff;
}

#gamemain {
    /*width: 746px;
    height: 496px;*/
    width: 750px;
    height: 440px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-image: url("/play/images/puppy-snake/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ball {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-image: url("/play/images/puppy-snake/ball.png");
}

.pet {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 0px;
    transition: transform 0s linear;
}

.pet_head {
    background-size: cover;
    border-radius: 50%;
    background-color: transparent;
}

.gameover {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    background-color: rgba(22, 28, 28, 0.9);
    position: absolute;
    z-index: 2;
}

.gameover p.msg {
    font-family: Arial;
    font-size: 24px;
    color: grey;
    margin: 0 auto;
    margin-top: 150px;
}
.gameover span {
    font-family: Arial;
    font-size: 40px;
    color: white;
    margin: 20px auto;
}

#restartgamebutton,
#continuegamebutton {
    display: block;
    margin: 16px auto;
    width: 120px;
    padding: 6px;
    background-color: #00BB00;
    font-family: Arial;
    font-size: 24px;
    color: red;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

#restartgamebutton:hover,
#continuegamebutton:hover {
    background-color: #9f8b77;
}

.pause {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    position: absolute;
    background-color: rgba(22, 28, 28, 0.9);
    z-index: 2;
}

.pause p {
    font-family: Arial;
    font-size: 24px;
    color: grey;
    margin: 0 auto;
    margin-top: 150px;
}

#tips {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-weight: bold;
}
