html,
body {
    background-color: #F7F7F7;
    font-family: neue;
    margin: 0;
    /* height: 100%; */
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

/*.overlay-container-basic{
    background-color: #fff;
}*/
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;
}

::-webkit-scrollbar {
  width: 20px;
  background: white;
  border-radius: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 5px #f3bc2c; 
  background: #fce206; 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
     box-shadow: inset 0 0 5px #fce206; 
  background: #f3bc2c; 
}

.box-register-tos-agree {
    font-size: 1em;
}


/* LEADERBOARD */

.box-leaderboard {
    background: rgba(255, 255, 255, 0);
    background-image: url('media/graphics/pixel/panel.png');
    background-size: 100% 100%;
    color: white;
    margin: 1em;
    padding: 0.5em;
    overflow-y: clip;
}

.box-leaderboard-image {
    width: 100%;
}

.box-leaderboard-image img {
    max-width: 300px;
}

.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;
    height: auto;
    font-size: 0.65em;
}

.box-leaderboard-navigation-item-highlighted {
    background-color: rgba(204, 204, 204, 0.3);
    /* lighter color */
}

.box-leaderboard-col-header {
    padding: 0 0.5em 0 0.45em;
    font-size: 1.16em;
    font-weight: 900;
}

.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.5em;
    /*border:1px solid #ccc;*/
}

.box-leaderboard-score {
    padding: 0.5em;
}

.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, .box-popup-header {
    font-size: 3em !important;
    font-weight: bold !important;
    text-align: center !important;
    color: white !important;
    margin: 0.2em !important;
    padding-bottom: 0.3em !important;
}

.box-leaderboard a {
    font-size: 1em !important;
    color: white;
    padding: 0.5em 1.5em;

    background-image: url('media/graphics/pixel/btn-blank.png');
    background-size: 100% 100%;
}

.box-leaderboard-subheader {
    font-size: 0.8em;
    margin: 0.8em;
}

.box-leaderboard-footer {
    margin: 0.4em;
    font-size: 1.5em;
    text-align: center;
}

.box-leaderboard-contents {
    margin: 0.5em;
    overflow-y: scroll;
    height: 55%;
    width: 90%;
    margin-left: 3%;
}

.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: rgba(255, 255, 255, 1);
    color: #666666;
    font-size: 1em;
    margin: 1em;
    padding: 0.5em;
    overflow-y: auto;
}

.login-submit {
    display: flex;
    justify-content: left;
}

.box-popup-contents, .box-popup-footer {
    display: flex;
    justify-content: left;
}

.button{
    font-size: 1.5em !important;
    border-radius: 12px !important;
    color: white !important;
    /*border: 2px solid #2a28db !important;*/
    /*background: #3c3c3c !important;*/
}
.box-login-footer a {
    font-size: 1em !important;
    /*color: #ff0fea;*/
}

.box-login-header {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    color: #3c3c3c;
    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.5em !important;
    /*display: flex;*/
    justify-content: left;
    /*color: white;*/
}

input{
    font-size: 2em !important;
}

.login-submit input.button{
    font-size: 1.5em;
    border-radius: 12px;
    /*border: 2px solid #7affff;*/
    color: white !important;
    /*box-shadow: 0 0px 25px rgb(122 255 255);*/
    background: #2a28db;
}

.box-login-contents {
    margin: 0.5em;
}

.box-login-close {
    text-align: center;
    /*float: right;*/
    /*padding: 0.5em 1.5em;*/
    margin: auto;
    font-size: 2em;
    width: fit-content;
    color: white;
    padding-top: 1em;
}

.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);*/
    background-image: url('media/graphics/pixel/panel.png');
    background-size: 100% 100%;
    color: #666666;
    font-size: 1em;
    margin: 0.7em;
    padding: 0.5em;
    overflow: auto;
}

.box-register-header {
    font-size: 1.2em;
    /*font-weight: bold;*/
    text-align: center;
    color: white;
    margin: 0.35em;
    margin-bottom: 0.5em;
    /*padding-bottom: 0.3em;*/
    padding: 1em;
}

img.box-register-header-image {
    width: 100% !important;
    margin-top: 5px;
}

.register-submit {
    display: flex;
    justify-content: center;
}

.register-submit input.button{
    font-size: 1.5em;
    border-radius: 12px;
    color: white !important;
    /*border: 2px solid #7affff;*/
    background: rgba(0, 0, 0, 0);
    background-image: url('media/graphics/pixel/btn-blank.png') !important;
    background-size: 100% 100% !important;
}

.box-register-subheader {
    font-size: 0.8em;
    margin: 0.8em;
}

.box-register-footer {
    font-size: 1.5em !important;
    display: flex;
    justify-content: left;
    /*color: white;*/
}

.box-register-footer a {
    /*color: #ff0fea;*/
}

.box-register-contents {
    margin: 0.5em;
    padding: 1em;
    padding-top: 0em;
}
.box-register-username{
    color: white;
    text-align: center;
}
#name-desc {
    font-size: 0.7em;
    color: black;
    text-align: left;
}
.box-register-close {
    width: 24px;
    height: 24px;
    text-align: right;
    float: right;
    background-image: url('media/graphics/api/close.png');
}

.box-register-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-reset-password {
    background: rgba(255, 255, 255, 1);
    color: #666666;
    font-size: 1em;
    margin: 1em;
    padding: 0.5em;
    overflow-y: auto;
}

.box-reset-password-header {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    color: #3c3c3c;
    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 {
    font-size: 1.5em !important;
    display: flex;
    justify-content: left;
    /*color: white;*/
}

.box-reset-password-contents {
    margin: 0.5em;
}

.box-reset-password-close {
    width: 24px;
    height: 24px;
    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: rgba(255, 255, 255, 1);
    color: #666666;
    font-size: 1em;
    margin: 1em;
    padding: 0.5em;
}

.box-popup-header {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #f0841f;
    border-bottom: 1px solid #ccc;
    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;
}

.box-popup-close {
    width: 24px;
    height: 24px;
    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: 1.5em;
}

#forgot-password {
    font-size: 0.85em
}


/*
.login-submit {
    margin: 0.2em;
}
*/

@media only screen and (max-width: 480px) {
    .overlay_span_middle {
        margin-top: -1em;
    }
    .box-register-header {
        font-size: 0.7em !important;
        padding: 0em 0.5em;
    }

    .box-register-contents{
        padding-top: 0em;
    }

    input{
        font-size: 1em !important;
    }
    .button{
        padding: 0.3em 0.5em;
    }
   
    .horizontal-seperator{
        height: 0.5em;
    }
    .g-recaptcha {
        margin-top: 1em;
        transform:scale(0.77);
        -webkit-transform:scale(0.77);
        transform-origin:0 0;
        -webkit-transform-origin:0 0;
    }
}
@media only screen and (max-height: 750px) {
     .box-leaderboard-header{
        font-size: 2em !important;
    }
    .box-leaderboard-footer{
        font-size: 1.2em;
    }
    .box-leaderboard-entry{
        font-size: 1em;
    }
    .box-login-close{
        padding-top: 0em;
        font-size: 1.5em;
    }
}
@media only screen and (max-height: 500px) {
    .box-leaderboard-header{
        font-size: 1.2em !important;
    }
    .box-login-close{
        padding-top: 0em;
        font-size: 1.2em;
    }
     .box-leaderboard-footer{
        font-size: 1em;
    }
    .box-register-header {
        font-size: 1em;
        padding: 0.5em;
    }
    .box-login-header {
        font-size: 1em;
    }
    .box-reset-password-header {
        font-size: 1em;
    }

    input{
        font-size: 1em !important;
    }
    .button{
        padding: 0.3em 0.5em;
    }
    .box-reset-password-footer{
        font-size: 1em !important;
    }.box-register-footer{
        font-size: 1em !important;
    }.box-login-footer{
        font-size: 1em !important;
    }
    .horizontal-seperator{
        height: 0.5em;
    }
    .g-recaptcha {
        margin-top: 1em;
        transform:scale(0.77);
        -webkit-transform:scale(0.77);
        transform-origin:0 0;
        -webkit-transform-origin:0 0;
    }
}
@media only screen and (max-height: 350px) {
    .box-register{
        font-size: 0.9em;
    }
     .box-leaderboard-header{
        font-size: 1em !important;
    }
    .box-leaderboard-footer{
        font-size: 0.7em;
        margin: 0em;
    }
    .box-leaderboard-contents{
        height: 45%;
    }
    .box-leaderboard-entry{
        font-size: 0.7em;
    }
    .box-login-close{
        padding-top: 0em;
        font-size: 1em;
    }
}
@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;
    }
}
