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("../media/fonts/opinionpro-regular.otf") format("opentype");
}

@font-face {
    font-family: "default-light";
    src: url("../media/fonts/opinionpro-light.otf") format("opentype");
}

/*@font-face {
    font-family: "header";
    src: url("fonts/gotham-bold.ttf") format("truetype"),
        url("fonts/gotham-bold.woff") format("woff"),
        url("fonts/gotham-bold.eot") format("embedded-opentype"),
        url("fonts/gotham-bold.eot?#iefix") format("embedded-opentype"),
        url("fonts/gotham-bold.otf") format("opentype");
}*/

@font-face {
    font-family: "header";
    src: url("../media/fonts/opinionpro-bold.ttf") format("truetype"),
        url("../media/fonts/opinionpro-bold.woff") format("woff"),
        url("../media/fonts/opinionpro-bold.eot") format("embedded-opentype"),
        url("../media/fonts/opinionpro-bold?#iefix") format("embedded-opentype"),
        url("../media/fonts/opinionpro-bold.otf") format("opentype");
}

#div-form {
    max-width: 960px;
    max-height: 540px;
    width: 53vw;
    height: 30vw;
    background-color: #ffc45c;
    background-size: cover;
    margin: 1em auto;
}

::-webkit-scrollbar {
/*    background: #fdfff2;*/
/*    border: 1px solid #dbdbdb;*/
display: none;
}

/* 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: #ffffff;
    color: #572381;
    margin: 1em;
    display: flex;
    flex-direction: column;
}

.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: #572381;
}

.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: #572381;
    /*text-shadow: 2px 2px #000;*/
}

.box-leaderboard-header {
    font-family: -apple-system, BlinkMacSystemFont, "header";
    font-weight: 800;
    text-align: center;
    font-size: 2em;
    color: #572381;
    -webkit-text-fill-color: #572381;
    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: 1.1em;
    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/close2.png");
}

.span_2_of_10_leaderboard .box-leaderboard-score {
    padding-left: 1.4em !important;
}

/* LOGIN */

.box-login {
    color: #ffffff;
    font-size: 0.9em;
    margin: 1em;
    padding: 0.5em;
    overflow-y: none;
}

.box-login-header {
    text-align: left;
    font-size: 2em;
    color: white;
    -webkit-text-fill-color: white;
/*    background-color: #043d60;*/
    font-family: -apple-system, BlinkMacSystemFont, "header", "Martel Sans";
    font-weight: 800;
    margin: 0.35em;
    margin-bottom: 0.2em;
    padding-bottom: 0em;
    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: 32px;
    height: 32px;
    text-align: right;
    float: right;
    background-image: url("images/close.png");
}

#box-login-close-leaderboard {
    width: 32px;
    height: 32px;
    text-align: right;
    float: right;
    background-image: url("images/close2.png");
}

/* for register/login/reset password forms*/
.popup-fullscreen {
    background-color: #f2f2f2;
    background-repeat: repeat;
    overflow: auto;
}

#popup-game-access {
    background: #ffc45c;
    overflow-y: auto;
}

/* REGISTER */

.box-register {
    /*background: #ffc45c;*/
    /*background-color: #f2f2f2;*/
    color: #ffffff;
    font-size: 0.9em;
    margin: 1em;
    padding: 0.5em;
    overflow: none;
}

.box-register-header {
    text-align: left;
    font-size: 2em;
    color: white;
    -webkit-text-fill-color: white;
/*    background-color: #043d60;*/
    font-family: -apple-system, BlinkMacSystemFont, "header", "Martel Sans";
    font-weight: 800;
    margin: 0.35em;
    margin-bottom: 0.2em;
    padding-bottom: 0em;
    padding-top: 0.3em;
}

.box-register-header-small{
    text-align: left;
    font-size: 1em;
    color: white;
    -webkit-text-fill-color: white;
/*    background-color: #043d60;*/
    font-family: -apple-system, BlinkMacSystemFont, "default-light", "Martel Sans";
    font-weight: 300;
    margin: 0.35em;
    margin-left: 0.7em;
    margin-top: 0em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    padding-top: 0em;
}

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 {
    width: 32px;
    height: 32px;
    text-align: right;
    float: right;
    background-image: url("images/close.png");
}

#game-access-code {
    text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    min-height: 30px;
    margin-top: 0.2em;
    margin-bottom: 0.5em;
    width: 100%;
    font-size: 1.2em;
    border: 0px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    -webkit-border-radius: 0em;
    background: rgba(0,0,0,0);
    color: #ffffff;
    /* #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-light", 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"] {
/*    margin-top: 0.3em;
    margin-bottom: 0.2em;
    width: auto;
    font-size: 1.5em;
    background-color: #ee4433;
    color: #fff;
    border: 3px solid #490602;
    -moz-border-radius: 0.3em;
    -webkit-border-radius: 0.3em;
    border-radius: 0.3em;
    padding: 0.2em 1em;
    font-family: -apple-system, BlinkMacSystemFont, "header";
    position: relative;
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);*/
    font-family: -apple-system, BlinkMacSystemFont, "default-light";
    font-size: 0.8em;
    width: auto;
    color: #572381;
     margin-top: 0.3em;
     padding: 0.4em 1.2em;
     -moz-border-radius: 0.3em;
    -webkit-border-radius: 0.3em;

}

input[type="submit"]:hover,
.button:hover {
/*    -webkit-appearance: none;
    background: #ee8833;
    text-decoration: none;*/
}

.button {
/*    text-decoration: none;
    margin-top: 0.3em;
    margin-bottom: 0.2em;
    width: auto;
    font-size: 1.5em;

    background-color: #ee4433;
    color: #fff;
    border: 3px solid #490602;
    -moz-border-radius: 0.3em;
    -webkit-border-radius: 0.3em;
    border-radius: 0.3em;
    padding: 0.2em 1em;
    font-family: -apple-system, BlinkMacSystemFont, "header";
    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: #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: 1.1em;
    margin: 0;
    padding-top: 0.4em;
}

.box-reset-password-contents {
    margin: 0.5em;
}

.box-reset-password-close {
    width: 32px;
    height: 32px;
    text-align: right;
    float: right;
    background-image: url("images/close.png");
}

/* POPUP */

.box-popup {
    background-color: #ffffff;
    background-repeat: repeat;
    color: #572381;
    font-size: 1em;
    margin: 1em;
}

.box-popup-header {
    text-align: center;
    font-size: 2em;
    color: #572381;
    -webkit-text-fill-color: #572381;
    background-color: #ffffff;
    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-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: 32px;
    height: 32px;
    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;
    margin-left: 0em;
    font-size: 0.8em;
    font-weight: 100;
    font-family: -apple-system, BlinkMacSystemFont, "default-light", Arial, Helvetica;

    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #b4a891;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #b4a891;
}

@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;
    } */
}

#box-register,
#box-login,
#box-reset-password {
/*    background-color: #f2f2f2;*/
/*    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);*/
    position: relative; /* Ensure the container has a positioning context */
    overflow: visible; 
}

/* 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: flex;
    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: 2px solid #000000;
    border-radius: 4px;
    transition: all 0.3s;
}

.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;
}

.box-leaderboard-footer span {
    font-size: 0.8em;
}

#anonPin {
    font-size: 0.9em;
    font-weight: bold;
}


.logo-top-right {
    position: fixed;
    top: 4.3%;
    right: 2.3%;
    z-index: 1000; /* Ensures it's on top */
}

.logo-top-right img {
    display: block;
     margin-left: auto;
    max-width: 82%; /* Adjust size as needed */
    height: auto;
}

#logo-top-right-overlay {
    position: fixed;
    top: 4.3%;
    right: 2.3%;
    z-index: 99999; /* Ensures it's on top */
}

#logo-top-right-overlay img {
    display: block;
     margin-left: auto;
    max-width: 82%; /* Adjust size as needed */
    height: auto;
}

@media only screen and (hover: none) and (pointer: coarse) and (orientation: landscape) {
    .logo-top-right {
        position: fixed;
        top: 4.3%;
        right: 1.17%;
        z-index: 1000; /* Ensures it's on top */
    }

    .logo-top-right img {
        display: block;
         margin-left: auto;
        max-width: 38%; /* Adjust size as needed */
        height: auto;
    }

    #logo-top-right-overlay {
        position: fixed;
        top: 4.3%;
        right: 1.17%;
        z-index: 99999; /* Ensures it's on top */
    }

    #logo-top-right-overlay img {
        display: block;
         margin-left: auto;
        max-width: 38%; /* Adjust size as needed */
        height: auto;
    }

}

@media only screen and (hover: none) and (pointer: coarse) and (orientation: portrait) {
    .logo-top-right {
        position: fixed;
        top: 3.3%;
        right: 4.5%;
        z-index: 1000; /* Ensures it's on top */
    }

    .logo-top-right img {
        display: block;
         margin-left: auto;
        max-width: 67%; /* Adjust size as needed */
        height: auto;
    }

    #logo-top-right-overlay {
        position: fixed;
        top: 3.3%;
        right:4.5%;
        z-index: 99999; /* Ensures it's on top */
    }

    #logo-top-right-overlay img {
        display: block;
         margin-left: auto;
        max-width: 67%; /* Adjust size as needed */
        height: auto;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #23232329;
    color: white;
}

#okButton {
    display:block; 
    text-align:center;
    color : #572381;
}

#okButton:hover {
    background: none;
}