html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

input[type=checkbox] {
    -ms-transform: scale(2);
    /* IE */
    -moz-transform: scale(2);
    /* FF */
    -webkit-transform: scale(2);
    /* Safari and Chrome */
    -o-transform: scale(2);
    /* Opera */
    margin-top: 10px;
    margin-bottom: 10px;
}

.box-register-tos-agree {
    font-size: 1em;
}


/* LEADERBOARD */

.box-leaderboard {
    /* background: rgba(135, 43, 145, 1); */
    background: linear-gradient(to top, rgba(135, 43, 145, 1) 77%, rgba(236, 131, 249, 1) 23%);
    color: #fdef40;
    font-family:"arial";
    margin: 0.2em;
    padding: 0.2em;
    overflow-y: auto;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 0px;
    font-size: 35px;
    text-transform: uppercase;
    /* border: 5px solid black;
    box-sizing: border-box; */
    min-width: 478px;

}

/* .box-leaderboard-image {
    width: 80%;
}

.box-leaderboard-image img {
    max-width: 300px;
    background-position: center;
} */

.box-leaderboard-navigation {
    /*border:1px solid #000;*/
    font-size: 2em;
    margin: 0;
    padding: 0;
/*    margin: 0 0.2em 0 0.2em;*/
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.box-leaderboard-navigation a {
    text-decoration: none;
}

.span_2_of_4_leaderboard {
    display: table;
}

.span_2_of_4_leaderboard a {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.box-leaderboard-navigation-item {
    text-align: center;
/*    padding: 0 0.2em 0.5em 0.2em;*/
    padding: 0;
    line-height: 1.3em;
    height: 1.3em;
    font-size: 0.65em;
/*    display: inline-block;*/
}

.box-leaderboard-navigation-item-highlighted {
    background-color: rgba(0, 0, 0, 0.3);
    /* lighter color */
}

.box-leaderboard-col-header {
    padding: 0 0.5em 0 0.45em;
    font-size: 1.16em;
    font-weight: 900;
    visibility: hidden;
}

.box-leaderboard-col-header-white{
    background: #ffffff;
    color: #000000;
    padding: 0.2em;
    padding-left: 0.4em;
    padding-right: 0.4em;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.box-leaderboard-col-header-red{
    background: #ee4399;
    color: #de1446;
    padding: 0.2em;
    padding-left: 0.4em;
    padding-right: 0.4em;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.box-leaderboard-col-header-blue{
    background: #ef6b26;
    color: #ef6b26;
    padding: 0.2em;
    padding-left: 0.4em;
    padding-right: 0.4em;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.box-leaderboard-green{
    padding: 0.5em;
    color:#a6cb48;
    text-align: center;
}
.box-leaderboard-blue{
    padding: 0.5em;
    color:#233c98;
    text-align: center;
}
.box-leaderboard-red{
    padding: 0.5em;
    color:#de1446;
    text-align: center;
}
.box-leaderboard-white{
    padding: 0.15em;
    text-align: center;   
}

.span-green{
    color: #a6cb48;
}

.box-leaderboard-icon img {
    padding: 0.2em 0 0 0;
    width: 80%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    /*border:1px solid #ccc;*/
}

.box-leaderboard-username {
    padding: 0.15em;
    /*border:1px solid #ccc;*/
}

.box-leaderboard-score {
    padding: 0.15em;
}

.box-leaderboard-entry {
    /* Basic solution. Better is to have scrollbar sticking to right border
	max-height:300px;
	overflow-y:scroll;    
	*/
    /*overflow-y:scroll; */
    
}

.box-leaderboard-header {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    color: #000;

        border: 5px solid black;
        border-bottom: hidden;
}

.box-leaderboard-subheader {
    font-size: 0.8em;
    margin: 0.8em;
}

.box-leaderboard-footer {
    margin: 0.4em;
    font-size: 1.2em;
    text-align: center;
}

.box-leaderboard-contents {
    /* margin: 0.5em; */
    
    border: 5px solid black;
    border-top: hidden;
}

.box-leaderboard-close {
    text-align: right;
    background-image: url('media/graphics/api/close.png');
}

.span_2_of_10_leaderboard .box-leaderboard-score {
    padding-left: 1.4em !important;
}



/* LOGIN */

.box-login {
    background: #5da04c;
    color: #ef6b26;
    font-size: 1em;
    margin: 1em;
    padding: 0.5em;
    overflow-y: auto;
}

.box-login-header {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #ef6b26;
    border-bottom: 1px solid #ccc;
    margin: 0.35em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
}

.box-login-subheader {
    font-size: 0.8em;
    margin: 0.8em;
}

.box-login-footer {
    font-size: 1.2em;
}

.box-login-contents {
    margin: 0.5em;
}

.box-login-close {
    width: 42px;
    height: 42px;  
    text-align: right;
    float: right;
    background-image: url('media/graphics/api/close.png');
}

.box-login-form-input {
    margin-top: 0.2em;
    margin-bottom: 0.5em;
    width: 100%;
    font-size: 1em;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 0.3em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}


/* REGISTER */

.box-register {
    background: rgba(255, 255, 255, 1);
    color: #5da04c;
    font-family:"dunkinserif-bold";
    font-size: 1em;
    margin: 1em;
    padding: 0.5em;
    overflow: auto;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.box-register-header {
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    color: #5da04c;
    border-bottom: 1px solid #ccc;
    margin: 0.35em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
}

img.box-register-header-image {
    width: 80% !important;
    margin-top: 20px;
    padding: 10%;
    padding-top: 0.1em;
    padding-bottom: 0.3em;
}

.box-register-subheader {
    font-size: 0.8em;
    margin: 0.8em;
}

.button {
    text-align: center;
    background-color: #f3ec27;
    color: white;
    font-size: 1.6em;
    border: 2px solid black;
}

.register-submit .button {
    color: #000;
    font-size: 1.2em;
    border: 3px solid black;
    border-radius: 20px;
}
.register-submit {
    text-align: center !important;;
    color: #000 !important;; 
    font-size: 1.2em !important;
    padding-top: 0.4em !important;
    /* border: 2px solid black !important; */
}

.box-register-footer {
    font-size: 1.2em;
}

.box-register-contents {
    margin: 0.5em;
}

.box-register-close {
    width: 42px;
    height: 42px;
    text-align: right;
    float: right;
    background-image: url('media/graphics/api/close.png');
}

.box-register-form-input {
    margin-bottom: 0.1em;
    width: 100%;
    font-size: 40px;
    color: #5da04c;
    border: 2px solid #ccc;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 0.3em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    letter-spacing: 1rem;
    text-transform: uppercase;
    text-align: center;
    font-family:"arial";
}

/* .box-register-form-input {
    margin-bottom: 0.5em;
    width: 70%;
    font-size: 95px;
    color: #5da04c;
    border: none;
    border-bottom: 2px solid #ccc;
    letter-spacing: 1rem;
    text-transform: uppercase;
    text-align: center;
    font-family:"dunkinserif-bold";
    margin-left: 15%;
} */


/* REGISTER */

.box-reset-password {
    background: #282828;
    color: #252fae;
    font-size: 1em;
    margin: 1em;
    padding: 0.5em;
}

.box-reset-password-header {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #252fae;
    border-bottom: 1px solid #ccc;
    margin: 0.35em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
}

.box-reset-password-subheader {
    font-size: 0.8em;
    margin: 0.8em;
}

.box-reset-password-footer {
    border-top: 1px solid #ccc;
    font-size: 1.2em;
    margin: 0;
    padding-top: 0.4em;
}

.box-reset-password-contents {
    margin: 0.5em;
}

.box-reset-password-close {
    width: 42px;
    height: 42px;
    text-align: right;
    float: right;
    background-image: url('media/graphics/api/close.png');
}

.box-reset-password-form-input {
    margin-top: 0.2em;
    margin-bottom: 0.5em;
    width: 100%;
    font-size: 1em;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 0.3em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}


/* POPUP */

.box-popup {
    background: #282828;
    color: #ffffff;
    font-size: 1em;
    margin: 1em;
    padding: 0.5em;
    text-align: center;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.box-popup-header {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #a6cb48;
    margin: 0.35em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
}

#okButton {
    margin-left: 0.5em;
}

.box-popup-subheader {
    font-size: 0.8em;
    margin: 0.8em;
}

.box-popup-footer {
    border-top: 1px solid #ccc;
    font-size: 0.8em;
    margin: 0.8em;
    padding-top: 0.4em;
}

.box-popup-contents {
    margin: 0.5em;
    text-align: center;
}

.box-popup-close {
    width: 42px;
    height: 42px;
    text-align: right;
    float: right;
    background-image: url('media/graphics/api/close.png');
}

.box-popup-form-input {
    margin-top: 0.2em;
    margin-bottom: 0.5em;
    width: 100%;
    font-size: 0.8em;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    padding: 0.3em;
}

.box-leaderboard-entry {
    font-size: 1em;
}

#forgot-password {
    font-size: 0.85em
}


/*
.login-submit {
    margin: 0.2em;
}
*/


@media only screen and (max-width: 600px) {
    
    .box-leaderboard-col-header {
        font-size: 0.8em;
    }
    .box-leaderboard-header{
        font-size: 40px;
    }
}

@media only screen and (min-width: 500px) {
    /*
    .box-leaderboard-entry {
        font-size: 1em;
    }
*/
    /*
    .box-leaderboard-navigation-item {
        height: 1.6em;
        font-size: 1em;
    }
*/
    /*
    .box-leaderboard-footer {
        margin: 0.4em;
        font-size: 1em;
    }
*/
    .box-login-footer {
        font-size: 0.9em;
    }
    .box-register-footer {
        font-size: 0.9em;
    }
    .box-register-tos-agree {
        font-size: 0.9em;
    }
    .box-reset-password-footer {
        font-size: 0.9em;
    }
}