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/roboto-regular.ttf");
}

@font-face {
  font-family: "header";
  src: url("fonts/roboto-bold.ttf");
}

#div-form {
  max-width: 960px;
  max-height: 540px;
  width: 53vw;
  height: 30vw;
  background-color: #ffc45c;
  background-size: cover;
  margin: 1em auto;
}

::-webkit-scrollbar {
  background: white;
  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: #000000;
  margin: 1em;
  padding: 1em;
  overflow-y: none;
}

.box-exit-form form {
  margin: auto;
  /* left: 30%; */
  /* width: 30%; */
}

/* LEADERBOARD */

.box-leaderboard {
  background: white;
  color: #000000;
  margin: 1em;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.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: -apple-system, BlinkMacSystemFont, "header";
  padding: 0 0.5em 0 0.45em;
  font-size: 1.16em;
  font-weight: 300;
  color: #000000;
}

.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-subheader a {
  /* color: #f99c06; */
  /*text-shadow: 2px 2px #000;*/
}

.box-leaderboard-header {
  background-color: none;
  font-family: -apple-system, BlinkMacSystemFont, "header";
  font-weight: 800;
  text-align: center;
  font-size: 2em;
  text-transform: uppercase;
  color: #6f4193;
  -webkit-text-fill-color: #6f4193;
  padding: 0.5em 0.5em 0.5em 0.5em;
  position: relative;
}

.box-leaderboard-subheader {
  font-size: 0.8em;
  margin: 0.8em;
}

.box-leaderboard-footer {
  margin: 0.4em;
  font-size: 14px;
  text-align: center;
}

.box-leaderboard-subheader {
  margin: 0.4em;
  font-size: 1em;
  text-align: center;
}

.box-leaderboard-contents {
  margin: 0.5em;
  flex: 1;
  overflow-y: auto;
}

.box-leaderboard-header,
.box-leaderboard-footer,
.box-leaderboard-navigation {
  flex-shrink: 0; /* prevents shrinking */
  flex-grow: 0; /* prevents growing */
}

.box-leaderboard-close {
  text-align: right;
  background-image: url("images/close.png");
}

.span_2_of_10_leaderboard .box-leaderboard-score {
  padding-left: 1.4em !important;
}

/* LOGIN */

.box-login {
  color: #000000;
  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: #043d60;
  font-family: -apple-system, BlinkMacSystemFont, "header";
  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: 14px;
}

.box-login-contents {
  margin: 0.5em;
}

.box-login-close {
  width: 24px;
  height: 24px;
  text-align: right;
  float: right;
  background-image: url("images/close.png");
  margin: 20px;
}

.box-login-close-leaderboard {
  position: absolute;
  top: 0;
  right: 0;
}

/* for register/login/reset password forms*/
.popup-fullscreen {
  background-color: white;
  background-repeat: repeat;
  overflow: auto;
}

#popup-game-access {
  background: #ffc45c;
  overflow-y: auto;
}

/* REGISTER */

.box-register {
  background: white;
  color: #7b7b7b;
  height: 100%;
  font-size: 0.95em;
  margin-top: 10%;
  margin-bottom: 0px;
  padding: 1.2em;
  overflow: auto;
  /* margin: 0.7em; */
  /* margin: 10%; */
  border-radius: 50px;
  border: 4px solid #ffffff;
}

.box-register-header {
  text-align: center;
  font-size: 2em;
  color: rgb(112, 64, 148);
  font-family: -apple-system, BlinkMacSystemFont, "header", "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-header2 {
  font-size: 20px;
  color: #1f1f1f;
  font-weight: bold;
  text-align: center;
}

.box-register-contents {
  margin: 0.5em;
}

.box-register-close {
  width: 24px;
  height: 24px;
  text-align: right;
  float: right;
  background-image: url("images/close.png");
}

#game-access-code {
  text-transform: uppercase;
}

.asterisk {
  color: #4fc7f3;
}

.float-left {
  float: left;
  padding-left: 2%;
  padding-right: 2%;
  width: 45.9%;
  margin-top: 20px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
  min-height: 40px;
  margin-top: 0.2em;
  font-weight: lighter;
  margin-bottom: 0.5em;
  width: 100%;
  font-size: 1.5em;
  border: 0px solid #ccc;
  /* -webkit-border-radius: 0.2em; */
  background: rgb(231, 231, 231);
  color: #000000;
  /* #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: -apple-system, BlinkMacSystemFont, "default", Arial, Helvetica, sans-serif;
}

.box-register-note {
  font-size: 0.8em;
  margin-top: 0.5em;
  font-family: -apple-system, BlinkMacSystemFont, "default", 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"],
.button {
  width: 230px;
  height: 60px;
  text-align: center;
  float: center;
  color: white;
  background-color: #6f4193;
  font-size: 21px;
  border: none;
}

input[type="submit"]:hover,
.button:hover {
  -webkit-appearance: none;
  color: white;
  background-color: rgb(148, 77, 202);
  text-decoration: none;
}

input[type="submit"]:disabled,
.button:disabled {
  background-color: rgb(126, 99, 147);
}

.button a {
  text-decoration: none !important;
}

.box-register-submit,
.box-register-footer {
  display: flex;
  justify-content: center;
}

/* 
.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: #000000;
  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: #043d60;
  font-family: -apple-system, BlinkMacSystemFont, "header";
  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: 14px;
  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-header {
  text-align: center;
  font-size: 2em;
  color: #6f4193;
  -webkit-text-fill-color: #6f4193;
  /* background-color: #043d60; */
  font-family: -apple-system, BlinkMacSystemFont, "header";
  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-header-red {
  text-align: center;
  color: #c53333;
  -webkit-text-fill-color: #c53333;
  /* background-color: #043d60; */
  font-family: -apple-system, BlinkMacSystemFont, "header";
  /* 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;
  color: #000000;
  -webkit-text-fill-color: #000000;
  font-weight: 800;
}

.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: #b4a891;
  opacity: 1;
  /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #b4a891;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #b4a891;
}

@media screen and (orientation: landscape) {
  .box-img {
    display: none;
  }
}

img.box-register-header-image {
  width: 100% !important;
  margin-top: 5px;
}

.register-submit {
  display: flex;
  justify-content: center;
}

.register-down {
  display: flex;
  justify-content: center;
}

.register-submit input.button {
  /* font-size: 1.5em; */
  /* border-radius: 12px; */
  /* color: white !important; */
  /*border: 2px solid #7affff;*/
  /* background: #2a28db; */
}

.box-register-subheader {
  font-size: 0.8em;
  margin: 0.8em;
}

.box-register-footer {
  font-size: 1em !important;
  display: flex;
  justify-content: center;
  /*color: white;*/
}

.box-register-footer a {
  /*color: #ff0fea;*/
}

.box-register-contents {
  margin: 0.5em;
}

.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;
}

.box-register-form-dropdown {
  margin-top: 0.2em;
  margin-bottom: 0.5em;
  width: 100%;
  font-size: 1em;
  font-weight: bold;
  /* border: 1px solid #ccc; */
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  /* border-radius: 3px; */
  padding: 0.55em;
  -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: 2em;
  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;
  display: flex;
  justify-content: center;
  /*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;
}

h1,
h2 {
  color: #ffffff;
  font-size: 1.2em;
}

h1 {
  text-align: center;
}

ul,
ol {
  margin-left: 20px;
}

/* POPUP */

.box-popup {
  background: white;
  color: #7d7d7d;
  text-align: center;
  font-size: 1em;
  margin: 1em;
  padding: 35px;
  border-radius: 20px;
}

.box-popuptos {
  /* background: rgb(0, 0, 0); */
  color: #6f4193;
  margin: 1em;
  padding: 0.5em;
  overflow-y: auto;
  border-radius: 10px;
}
.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;
  margin-bottom: 1em;
}

.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: 1em;
  max-height: 100%;
  position: relative;
}

#forgot-password {
  font-size: 0.85em;
}

.iframe {
  height: 90%;
  width: 100%;
  /* max-height: 90%; */
  overflow-y: auto;
  margin-bottom: 0.5em;
}

/*
.login-submit {
    margin: 0.2em;
}
*/

@media only screen and (max-width: 500px) {
  .box-register-header {
    font-size: 1.5em;
  }

  .box-register-header2 {
    font-size: 15px;
  }

  .box-register {
    font-size: 0.8em !important;
    padding: 20px !important;
    /* margin-top: 10% !important; */
    height: 80% !important;
  }

  .material-checkbox {
    font-size: 12px !important;
  }

  .iframe {
    height: 87%;
  }

  .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;
  }

  .box-leaderboard-contents {
    height: 63vh;
  }

  .g-recaptcha {
    margin-top: 1em;
    transform: scale(0.77);
    -webkit-transform: scale(0.77);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }

  .box-register {
    margin: 5%;
  }
}

@media only screen and (max-height: 500px) {
  .overlay_span_middle {
    transform: scale(0.85);
  }

  .box-register-header {
    font-size: 1.5em;
  }

  .iframe {
    height: 62vh;
  }

  .box-login-header {
    font-size: 1em;
  }

  .box-reset-password-header {
    font-size: 1em;
  }

  .box-leaderboard-contents {
    height: 50vh;
  }

  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;
  }

  .box-register {
    margin: 5%;
    padding: 20px !important;
  }
}

@media only screen and (max-height: 400px) {
  .overlay_span_middle {
    transform: scale(0.8);
  }
  .box-register {
    margin: 5%;
  }
}

@media only screen and (max-height: 300px) {
  .overlay_span_middle {
    transform: scale(0.65);
    margin-top: -5%;
  }
  .box-register {
    margin: 5%;
  }
}

@media only screen and (max-height: 270) {
  .overlay_span_middle {
    transform: scale(0.55);
  }
  .box-register {
    margin: 5%;
  }
}

#box-register,
#box-login,
#box-reset-password {
  background-color: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  overflow: auto;
}

/* LOADER */
.newtons-cradle {
  --uib-size: 50px;
  --uib-speed: 1.2s;
  --uib-color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--uib-size);
  height: var(--uib-size);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
}

.newtons-cradle__dot {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 25%;
  transform-origin: center top;
}

.newtons-cradle__dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 25%;
  border-radius: 50%;
  background-color: var(--uib-color);
}

.newtons-cradle__dot:first-child {
  animation: swing var(--uib-speed) linear infinite;
}

.newtons-cradle__dot:last-child {
  animation: swing2 var(--uib-speed) linear infinite;
}

@keyframes swing {
  0% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }

  25% {
    transform: rotate(70deg);
    animation-timing-function: ease-in;
  }

  50% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
}

@keyframes swing2 {
  0% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }

  50% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }

  75% {
    transform: rotate(-70deg);
    animation-timing-function: ease-in;
  }
}

.overlay-background {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10003;
  display: none;
}
/* start custom checkbox */
.material-checkbox {
  display: block;
  align-items: center;
  font-size: 14px;
  /* color: #000000; */
  cursor: pointer;
}

.material-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  border: 1px solid #a1a1a1;
  /* border-radius: 4px; */
  transition: all 0.3s;
}

#checkbox-table tr {
  vertical-align: top;
}

.material-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background-color: #00509e;
  border-color: #0077b6;
}

.material-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.material-checkbox input[type="checkbox"]:focus ~ .checkmark {
  box-shadow: 0 0 0 2px #b0e0e6;
  /* Updated to a light blue shade */
}

.material-checkbox:hover input[type="checkbox"] ~ .checkmark {
  border-color: #00bfff;
  /* Updated hover color to brighter blue */
}

.material-checkbox input[type="checkbox"]:disabled ~ .checkmark {
  opacity: 0.5;
  cursor: not-allowed;
}

.material-checkbox input[type="checkbox"]:disabled ~ .checkmark:hover {
  border-color: #4d4d4d;
}
/* end custom checkbox */
.box-leaderboard-entry-highlighted {
  background-color: #dceefb;
}
