.form {
    width: 340px;
    height: 250px;
    background-image: url('../img/saveScore.png');
    background-repeat: no-repeat;
    background-size: 100%;
    border-radius: 8px;
    margin: calc(50vh - 220px) auto;
    padding: 20px 30px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif
}
@media screen and (orientation: landscape) {
    .form {
        margin: calc(50vh - 170px) auto
    }
}
@media screen and (orientation: portrait) {
    .form {
        margin: calc(50vh - 225px) auto
    }
}
h2 {
    margin: 10px auto;
    padding-bottom: 10px;
    width: 100%;
    color: #0967ab;
    text-align: center
}
input {
    text-align: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: none;
    outline: none;
    resize: none;
    border: 0;
    font-family: 'Montserrat', sans-serif;
    transition: all .3s;
    border: 2px solid #bebed2
}
input:focus {
    border-bottom: 2px solid #78788c
}
p:before {
    content: attr(type);
    display: block;
    margin: 28px 0 0;
    font-size: 14px;
    color: #5a5a5a
}
button {
    /*padding: 8px 12px;
    margin: 15px -5px 0;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #78788c;
    background: 0;
    color: #5a5a6e;
    cursor: pointer;*/
    transition: all .3s;
    /*height: 45px;
    width: 45%*/
}
button:hover {
    background: #78788c;
    color: #fff
}
span {
    margin: 0 5px 0 15px
}
h1 {
    padding-top: 10px;
    font-size: 27px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 300;
    text-align: center;
    margin-bottom: 15px;
    max-height: 21px
}
table {
    width: 100%;
    table-layout: fixed
}
.tbl-header {
    background-color: rgba(255, 255, 255, 0.3)
}
@media screen and (orientation: landscape) {
    .tbl-content {
        height: 48%
    }
}
.tbl-content {
    height: 68%;
    overflow-x: auto;
    margin-top: 0px;
    border: 1px solid rgba(255, 255, 255, 0.3)
}
th {
    padding: 10px 15px;
    text-align: left;
    font-weight: bold;
    font-size: 30px;
    color: #fff;
    text-transform: uppercase;
    min-width: 33, 3333%
}
@media screen {
    th {
        font-size: 18px !important
    }
}
td {
    padding: 15px;
    text-align: left;
    vertical-align: middle;
    font-weight: 300;
    font-size: 20px;
    color: #fff;
    border-bottom: solid 1px rgba(255, 255, 255, 0.1)
}
.stt {
    width: 15%
}
.scoretd {
    width: 20%
}
.yellow {
    color: #fff701
}
@import "https://fonts.googleapis.com/css?family=Roboto:400,500,300,700";
section {
    background: -webkit-linear-gradient(left, #25c481, #25b7c4);
    background: linear-gradient(to right, #25c481, #25b7c4);
    font-family: 'Roboto', sans-serif;
    width: 96%;
    padding: 5px;
    position: fixed
}
::-webkit-scrollbar {
    width: 6px
}
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3)
}
::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3)
}
.hide {
    display: none
}
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background: url('../img/menu-back.png');
    background-size: 100% 100%;
    overflow-x: hidden;
    padding-top: 20px;
    transition: 0.5s;
    z-index: 999999999;
}

@media screene{
    .top{

    }
}
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    display: block;
    transition: 0.3s;
    color: white
}
.sidenav a:hover,
.offcanvas a:focus {
    color: #f1f1f1
}
.sidenav #closeMenu {    
    position: absolute;
    top: 20px;
    font-size: 20px;
    width: 15px;
    height: 15px;
    background-color: white;
    color: #e51c23;
    text-align: center;
    line-height: 40px;
    background: url(../img/closex.png);
    background-size: 100% 100%;
    right: 10px;
    cursor: pointer;
}
#searchBtn {   
    background-image: url(../img/icon_menu_search.png);
    background-size: 100% auto;
    width: 20px;
    height: 20px;
    float: right;
    margin-top: 6px;
    margin-right: 5px;
    z-index: 2000;
}
#search {    
    position: absolute;
    width: 70%;
    border-radius: 10px;
    background-color: white;
    color: black;
    margin-bottom: 10px;
    height: 30px;
    border: none;
    text-align: left;
}

.sidenav ul{
    overflow-y: auto;
    margin-bottom: 34px;
}

.sidenav ul li {
    cursor: pointer;
    list-style-type: none;
}

#closeBtn {
    cursor: pointer;
    background-color: #0967ab
}
#closeBtn:hover {
    cursor: pointer;
    background-color: #9c3b25
}
#main {
    transition: margin-left .5s;
    padding: 20px
}
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px
    }
    /*.sidenav a {
        font-size: 18px
    }*/
}
#rank {
    width: 40%;
    height: 95vh;
    background: url('../img/popup_cha.png') no-repeat;
    position: fixed;
    display: inline-block;
    margin: auto;
    text-align: center;
    background-size: 100% 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0
}
#closeX {
    width: 30px;
    height: 30px;
    background: url(../img/ic_close.png) no-repeat;
    background-size: 100% 100%;
    float: right;
    margin: 11px;
    cursor: pointer;
    border: none;
}
#rankContent {
    background: url('../img/popup_con.png') no-repeat;
    position: absolute;
    width: 95%;
    height: 84%;
    margin: auto;
    background-size: 100% 100%;
    right: 0;
    left: 0;
    /*overflow: auto;*/
}
#myRank {
    position: absolute;
    width: 40%;
    height: 70%;
    background: url(../img/btn__4.png) no-repeat;
    background-size: 100% 100%;
    left: 2%;
    font-size: 100%;
    font-weight: bold;
    color: #244001;  
    line-height: 250%;
    cursor: pointer;
    border: none;
}
#myRank:focus, #top20:focus, #myRank:active, #top20:active {
    background: url(../img/btn__2.png) no-repeat;
    background-size: 100% 100%;
    border: none;
}

#top20 {
    width: 40%;
    height: 70%;
    background: url(../img/btn__4.png) no-repeat;
    background-size: 100% 100%;
    position: absolute;
    right: 2%;
    font-size: 100%;
    font-weight: bold;    
    line-height: 250%;
    color: #6e3500;
    cursor: pointer;
    border: none;
}
.clr {
    clear: both
}
#rankTitle {
    margin: 6px 5px 0 15px;
    float: left;
    font-size: 37px;
    font-weight: bold;
    color: #ffffff
}
#footerRank {
    position: absolute;
    bottom: 2%;
    height: 55px;
    width: 100%
}
#contentBox {
    width: 95%;
    height: 89%;
    position: relative;
    margin: 0 auto
}
#rankContent ul {
    width: 98%;
    height: 98%
}
#rankContent ul li {
    list-style: none;
    width: 95%;
    height: 5%;
    background-color: green
}
@media screen and (max-width: 480px) {
    #rank {
        width: 40%
    }
}

@media screen and (max-width: 300px) {
    #popScore {
        width: 40%;
        padding-top: 40%;
    }
}

@media screen and (max-width: 760px) {
    #popScore {
        width: 40%;
        padding-top: 40%;
    }
}

@media screen and (min-width: 650px) {
    #myRank {
        font-size: 86%;
        margin-top: 2%;
    }

    #top20 {
        font-size: 86%;
        margin-top: 2%;
    }
}

@media screen and (min-width: 1300px) {
    #popScore {
        width: 26% !important;
        padding-top: 26% !important;
    }

    #rankIcon {
        width: 40px !important;
        height: 40px !important;
    }

    #top4{
        width: 20%;
        left: -3%;
        font-size: 3em;
        font-weight: bold;
        top: 10%;
    }
}

@media screen and (min-width: 750px) {
    #myRank {
        font-size: 95%;
        margin-top: 2%;
    }

    #top20 {
        font-size: 95%;
        margin-top: 2%;
    }
}
@media screen and (max-width: 1366px) {
    #rank {
        width: 40%
    }
}
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    #rank {
        width: 90%
    }
    
    #myRank {    
        line-height: 250%;
        left: 2.5%;
        height: 70%;
        width: 40%;
        font-size: 93%;
        margin: auto;
        top: 0;
        margin-bottom: 1%;
    }
    #top20 {    
        line-height: 250%;
        right: 2.5%;
        height: 70%;
        width: 40%;
        font-size: 93%;
        margin: auto;
        top: 0;
        margin-bottom: 1%;
    }
    #rankTitle {
        margin-left: 5%
    }
}


@media screen and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
    .rankObject {
        height: 50% !important
    }

    #contentBox {
        height: 80% !important;
    }

    .isRankObject {
        height: 50% !important
    }

    .userName {
        margin-left: 45% !important
    }
    .userScore {
        margin-left: 45% !important
    }
    .rankIcon {
        margin-left: 2% !important
    }

    .top4{
        left: 7%;
    }

    #rankContent {
        height: 75%
    }
    #footerRank {
        position: absolute;
        /*bottom: -2%;*/
        height: 20%;
        width: 100%;
        bottom: 1%;
        left: 0;
    }
}

@media screen and (orientation: landscape) {
    .top4{
        left: -2% !important;
        top: 20% !important;
    }
}

.rankObject {
    position: relative;
    width: 93%;
    height: 20%;
    margin: 0 auto;
    margin-top: 4%;
    text-align: center;
    background: url(../img/btn__1.png) no-repeat;
    background-size: 100% 100%
}

.top4{
    width: 20%;
    position: absolute;
    left: -3%;
    font-size: 2em;
    font-weight: bold;
    top: 20%;
    color: #ffd85a;
}

.isRankObject {
    position: relative;
    width: 93%;
    height: 20%;
    margin: 0 auto;
    margin-top: 4%;
    text-align: center;
    background: url(../img/btn__1_active.png) no-repeat;
    background-size: 100% 100%
}

#listBox {
    position: absolute;
    width: 99%;
    height: 96%;
    left: 3px;
    right: 0;
    margin: 0 auto;
    top: 2%;
    overflow-y: auto;
    /*-webkit-overflow-scrolling: touch;*/
    /*overflow-y: auto;*/
    /*overflow-y: visible;*/
    /*-webkit-overflow-y: scroll;*/
    /*-webkit-overflow-scrolling: touch;*/
}
.rankIcon {
    position: absolute;
    background-size: 100% 100%;
    width: 13%;
    height: 80%;
    margin-top: auto;
    margin-bottom: auto;
    left: 6%;
    top: 0;
    bottom: 0
}
.userIcon {
    position: absolute;
    background-size: 100% 100%;
    width: 47px;
    height: 80%;
    margin-top: auto;
    margin-bottom: auto;
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: 24%
}
.userName {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    text-align: left;
    margin-left: 45%;
    line-height: 170%;
    font-size: 20px;
    color: white;
    font-weight: bold;
}
.userScore {
    position: absolute;
    width: 51%;
    height: 40%;
    top: 42%;
    text-align: left;
    margin-left: 45%;
    line-height: 88%;
    font-size: 27px;
    color: white;
    font-weight: bold
}
#popScore {
    width: 40%;
    padding-top: 40%;
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    display: block;
    margin: calc(50vh - 20%) auto
}
#scoreHeader {
    background: url(../img/yourScore.png);
    width: 100%;
    position: absolute;
    background-size: 100% 100%;
    height: 50%;
    margin: 0 auto;
    top: 0;
    bottom: 0;
    margin-top: -38%;
    z-index: 5
}
#scoreContent {
    width: 100%;
    height: 100%;
    background: url(../img/popup_cha.png);
    background-size: 100% 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: 0 auto
}
#scoreBox {
    width: 80%;
    height: 65%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: url(../img/popup_con.png);
    background-size: 100% 100%;
    margin-top: 10%;
    z-index: 3
}
#scoreFooter {
    position: absolute;
    width: 100%;
    height: 18%;
    bottom: 4%
}
#btnCancel {
    position: absolute;
    width: 36%;
    height: 50px;
    background: url(../img/btn_cancel.png);
    background-size: 100% 100%;
    left: 10%;
    line-height: 2em;
    font-size: 25px;
    text-align: center;
    font-weight: bold;
    color: #659696;
    cursor: pointer;
    border: none;
}
#btnSave {
    position: absolute;
    width: 36%;
    height: 50px;
    background: url(../img/btn__4.png);
    background-size: 100% 100%;
    right: 10%;
    line-height: 2em;
    font-size: 25px;
    text-align: center;
    font-weight: bold;
    color: white;
    cursor: pointer;
    border: none;
}
#score {
    position: absolute;
    width: 100%;
    height: 70px;
    margin: auto;
    top: 13%;
    font-size: 80px;
    color: red;
    font-weight: bold
}
#txtUserName {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    width: 80%;
    border-radius: 10px;
    background: white;
    color: black;
    top: 54%;
    height: 70px;
    font-size: 30px;
}
@media screen and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
    #popScore {
        width: 45%;
        padding-top: 45%;
        margin: calc(50vh - 34%) auto;
        top: 20%;
    }
    #btnCancel {
        height: 34px;
        font-size: 22px;
        line-height: 1.3em
    }
    #btnSave {
        height: 34px;
        font-size: 22px;
        line-height: 1.3em
    }
    #txtUserName {
        width: 78%;
        height: 45px;
        font-size: 13px;
    }
    #score {
        font-size: 50px;
        top: 5%
    }
}
@media screen and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
    #popScore {
        width: 76%;
        padding-top: 80%;
        margin: calc(50vh - 40%) auto
    }

    #txtUserName{
        font-size: 15px;
    }
}

@media screen and (orientation: portrait) and (max-height: 50vh){
    #popScore {
        width: 76%;
        padding-top: 80%;
        margin: calc(50vh - 40%) auto
    }

    #txtUserName{
        font-size: 15px;
    }
}