html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: white;
}

@font-face {
  font-family: "default";
  src: url("fonts/pressstart2s-regular.ttf") format("truetype"), url("fonts/pressstart2s-regular.woff") format("woff"),
    url("fonts/pressstart2s-regular.woff2") format("woff2"),
    url("fonts/pressstart2s-regular.eot") format("embedded-opentype"),
    url("fonts/pressstart2s-regular.svg") format("svg");
}

@font-face {
  font-family: "header";
  src: url("fonts/pressstart2s-regular.ttf") format("truetype"), url("fonts/pressstart2s-regular.woff") format("woff"),
    url("fonts/pressstart2s-regular.woff2") format("woff2"),
    url("fonts/pressstart2s-regular.eot") format("embedded-opentype"),
    url("fonts/pressstart2s-regular.svg") format("svg");
}

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;
}

#div-form {
  max-width: 960px;
  max-height: 540px;
  width: 53vw;
  height: 30vw;
  background-color: #f7ec13;
  background-size: cover;
  margin: 1em auto;
}

::-webkit-scrollbar {
  background: #fdfff2;
  border: 1px solid #dbdbdb;
}

/* Track */
::-webkit-scrollbar-track {
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #dbdbdb;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #dbdbdb;
}
.box-register-tos-agree {
  font-size: 1em;
}

.box-exit-form {
  background: rgba(255, 255, 255, 1);
  color: #231f20;
  margin: 1em;
  padding: 1em;
  overflow-y: none;
}

.box-exit-form form {
  margin: auto;
  /* left: 30%; */
  /* width: 30%; */
}

/* LEADERBOARD */

.box-leaderboard {
  background: #333333;
  color: #ffffff;
  margin: 1em;
  /*padding: 0.5em;*/
  overflow-y: auto;
  /*-moz-border-radius: 0.5em;
    border-radius: 0.5em;*/
  width: 100%;
}

.box-register-stripes-line {
  position: relative;
  bottom: 0px;
  width: 100%;
  height: 11px;
  display: block;
  margin: auto;
  background-image: url("images/yellow-stripes-line.png");
}

.box-leaderboard-ok-button {
  width: 100%;
}

.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 {
  font-family: "header", -apple-system, BlinkMacSystemFont;
  padding: 0 0.5em 0 0.45em;
  font-size: 1.16em;
  font-weight: 300;
  color: #f7ec13;
  text-align: left;
}

.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;
  text-align: left;
  padding-left: 0.9em;
  /*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-subheader a {
  color: #ef7a00;
  /*text-shadow: 2px 2px #000;*/
}
.box-leaderboard-header {
  background-color: #3d3d3d;
  font-family: "header", -apple-system, BlinkMacSystemFont;
  font-weight: 800;
  text-align: center;
  font-size: 2em;
  text-transform: uppercase;
  color: white;
  -webkit-text-fill-color: white;
  padding: 0.7em 0.7em 0.7em 0.7em;
}

.box-leaderboard-subheader {
  font-size: 0.8em;
  margin: 0.8em;
  padding: 0.5em;
}

.box-leaderboard-footer {
  margin: 0.4em;
  font-size: 1.1em;
  text-align: center;
}

.box-leaderboard-subheader {
  margin: 0.4em;
  font-size: 1.2em;
  text-align: center;
}

.box-leaderboard-contents {
  margin: 0.5em;
  font-size: 1em;
}

.box-leaderboard-close {
  text-align: right;
  background-image: url("images/close.png");
  background-size: cover;
}

.span_2_of_10_leaderboard .box-leaderboard-score {
  padding-left: 0.9em !important;
}

/* LOGIN */

.box-login {
  color: #231f20;
  font-size: 0.9em;
  margin: 1em;
  padding: 0.5em;
  overflow-y: none;
}

.box-login-header {
  text-align: center;
  font-size: 2em;
  color: white;
  -webkit-text-fill-color: white;
  background-color: #003557;
  font-family: "header", -apple-system, BlinkMacSystemFont;
  font-weight: 800;
  /* border-bottom: 1px solid #ccc; */
  margin: 0.35em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  padding-top: 0.3em;
}

.box-login-subheader {
  font-size: 0.8em;
  margin: 0.8em;
}

.box-login-footer {
  font-size: 1.1em;
}

.box-login-contents {
  margin: 0.5em;
}

.box-login-close {
  width: 24px;
  height: 24px;
  text-align: right;
  float: right;
  background-image: url("images/close.png");
}

/* for register/login/reset password forms*/
.popup-fullscreen {
  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#popup-game-access {
  background: #ffc45c;
  overflow-y: auto;
}
/* REGISTER */

.box-register {
  /*background: #ffc45c;*/
  /*background-image: url("images/bg.png");*/
  color: #231f20;
  font-size: 0.9em;
  margin: 1em;
  padding: 0.5em;
  overflow: none;
}

.box-register-header {
  text-align: center;
  font-size: 2em;
  color: white;
  -webkit-text-fill-color: white;
  background-color: #003557;
  border: 3px solid #f29533;
  -moz-border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  border-radius: 0.3em;
  font-family: "header", -apple-system, BlinkMacSystemFont, "Martel Sans";
  font-weight: 800;
  margin: 0.35em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  padding-top: 0.3em;
}

img.box-register-header-image {
  width: 100% !important;
  margin-top: 5px;
}

.box-register-subheader {
  font-size: 0.8em;
  margin: 0.8em;
}

.box-register-footer {
  font-size: 1.1em;
}

.box-register-contents {
  margin: 0.5em;
}

.box-register-close {
  position: relative;
  bottom: 0px;
  width: 286px;
  height: 46px;
  display: block;
  margin: auto;
  background-image: url("images/close-button.png");
  background-size: cover;
}
#game-access-code {
  text-transform: uppercase;
}
input[type="text"],
input[type="password"],
input[type="number"],
select,
select.valid {
  min-height: 30px;
  margin-top: 0.2em;
  margin-bottom: 0.5em;
  width: 100%;
  font-size: 1.2em;
  border: none;
  -webkit-border-radius: 0.2em;
  background: #fdfff2;
  color: #231f20;
  /* #662d90; */
  -moz-border-radius: 5px;
  border-radius: 5px;
  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;
  font-family: "default", -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;
}

.box-register-note {
  font-size: 0.8em;
  margin-top: 0.5em;
  font-family: "default", -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;
}

.box-register-terms {
  font-size: 1em;
  padding-top: 0.5em;
  padding-bottom: 2em;
}

/* 
.register-submit input {
    width: 40%;
    margin-left: 30%;
    margin-right: 30%;
} */

input[type="submit"] {
  margin-top: 0.3em;
  margin-bottom: 0.2em;
  width: auto;
  font-size: 1.5em;
  background-color: #f7ec13;
  color: #333333;
  border: 3px solid #f7ec13;
  -moz-border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  border-radius: 0.3em;
  padding: 0.2em 1em;
  font-family: "header", -apple-system, BlinkMacSystemFont;
  position: relative;
  left: 50%;
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

input[type="submit"]:hover,
.button:hover {
  -webkit-appearance: none;
  background: #fff756;
  text-decoration: none;
}

.button {
  text-decoration: none;
  margin-top: 0.3em;
  margin-bottom: 0.2em;
  width: auto;
  font-size: 1.5em;

  background-color: #f7ec13;
  color: #333333;
  -moz-border-radius: 0.3em;
  -webkit-border-radius: 0.3em;
  border-radius: 0.3em;
  padding: 0.2em 1em;
  font-family: "header", -apple-system, BlinkMacSystemFont;
  position: relative;
  left: 50%;
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  display: inline-block;
  text-align: center;
  text-shadow: 0px 0px rgba(0, 50, 103, 0.5);
}

/* 
.register-submit input {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25em;
    padding: 0.7em 1.2em;  
} */

/* REGISTER */

.box-reset-password {
  color: #231f20;
  font-size: 0.9em;
  margin: 1em;
  padding: 0.5em;
}

.box-reset-password-header {
  text-align: center;
  font-size: 2em;
  -webkit-text-fill-color: white;
  color: white;
  background-color: #003557;
  font-family: "header", -apple-system, BlinkMacSystemFont;
  font-weight: 800;
  /* border-bottom: 1px solid #ccc; */
  margin: 0.35em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  padding-top: 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.1em;
  margin: 0;
  padding-top: 0.4em;
}

.box-reset-password-contents {
  margin: 0.5em;
}

.box-reset-password-close {
  width: 24px;
  height: 24px;
  text-align: right;
  float: right;
  background-image: url("images/close.png");
}

/* POPUP */

.box-popup {
  background: #333333;
  color: #f4eddf;
  font-size: 1em;
  margin: 1em;
  width: 60%;
  margin-left: 20%;
  padding-bottom: 0.5em;
}

.box-popup-header {
  text-align: center;
  font-size: 1.7em;
  color: #333333;
  -webkit-text-fill-color: #333333;
  background-color: #f7ec13;
  font-family: "header", -apple-system, BlinkMacSystemFont;
  font-weight: 800;
  /* border-bottom: 1px solid #ccc; */
  /*margin: 0.35em;*/
  margin-bottom: 0.5em;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
}

.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("images/close.png");
}

.box-leaderboard-entry {
  font-size: 1em;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #777777;
  opacity: 1;
  /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #777777;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #777777;
}

@media only screen and (max-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: 1em;
    }

    .box-register-footer {
        font-size: 1em;
    }

    .box-register-tos-agree {
        font-size: 1em;
    }

    .box-reset-password-footer {
        font-size: 1em;
    } */
}
