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/gotham-book.ttf") format("truetype"),
        url("fonts/gotham-book.woff") format("woff"),
        url("fonts/gotham-book.eot") format("embedded-opentype"),
        url("fonts/gotham-book.eot?#iefix") format("embedded-opentype"),
        url("fonts/gotham-book.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");
}

#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;
}

/* 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: #0d0d0d;
    color: #ffffff;
    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: #ffffff;
}

.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: #a50806;
    /*text-shadow: 2px 2px #000;*/
}

.box-leaderboard-header {
    background:
        linear-gradient(
            to bottom,
            #d40000 0%,
            #a30000 45%,
            #7a0000 100%
        );
    font-family: -apple-system, BlinkMacSystemFont, "header";
    font-weight: 800;
    text-align: center;
    font-size: 2em;
    text-transform: uppercase;
    color: white;
    -webkit-text-fill-color: white;
    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/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: 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");
}

.box-login-close-leaderboard {
    position: absolute;
    top: 0;
    right: 0;
}

/* 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: #000000;
    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: #043d60;
    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-footer {
    font-size: 1.1em;
}

.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;
}

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: 1px solid #ccc;
    -webkit-border-radius: 0.2em;
    background: #fdfff2;
    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"] {
    margin-top: 0.3em;
    margin-bottom: 0.2em;
    width: auto;
    font-size: 1.5em;
    background-color: #a50806;
    color: #fff;
    border: 2px solid #ffffff;
    -moz-border-radius: 1px;
    -webkit-border-radius: 1px;
    border-radius: 5px;
    padding: 0.5em 1em;
    font-family: -apple-system, BlinkMacSystemFont, "header";
    position: relative;
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

input[type="submit"]:hover,
.button:hover {
    -webkit-appearance: none;
    background: #ab1513;
    text-decoration: none;
}

.button {
    text-decoration: none;
    background-color: #a50806;
    color: #ffffff;
    border:1px solid #ffffff;
    border-radius: 4px;

    width: auto;
    font-size: 1.5em;
    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: 24px;
    height: 24px;
    text-align: right;
    float: right;
    background-image: url("images/close.png");
}

/* POPUP */

.box-popup {
    background-color: #0d0d0d;
    background-repeat: repeat;
    color: #ffffff;
    font-size: 1em;
    margin: 1em;
}

.box-popup-header {
    text-align: center;
    font-size: 2em;
    color: white;
    -webkit-text-fill-color: white;
    background:
        linear-gradient(
            to bottom,
            #d40000 0%,
            #a30000 45%,
            #7a0000 100%
        );

    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: 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 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);
    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;
    }
}

/* ── BOXING DARK THEME ── */

#box-register,
#box-login,
#box-reset-password {
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85);
    padding: 10px;
    overflow: auto;
}

.box-register,
.box-login,
.box-reset-password {
    color: #ffffff;
}

/* FIGHT FOR GLORY header */
.box-register-header,
.box-login-header,
.box-reset-password-header {
    background: none;
    background-color: transparent;
    -webkit-text-fill-color: unset;
    text-align: center;
    padding: 0.8em 0.5em 0.6em;
    margin: 0;
    border: none;
}

.ffg-title {
    font-family: -apple-system, BlinkMacSystemFont, "header", Arial, sans-serif;
    font-size: 1.3em;
    font-weight: 900;
    font-style: bold;
    color: #ffffff;
    line-height: 1;
}

.ffg-glory {
    font-family: -apple-system, BlinkMacSystemFont, "header", Arial, sans-serif;
    font-size: 2.8em;
    font-weight: 900;
    font-style: italic;
    color: #ee2222;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 0 24px rgba(238, 34, 34, 0.45);
}

.ffg-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "default", Arial, sans-serif;
    font-size: 0.6em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.06em;
    margin-top: 0.5em;
}

/* Icon-wrapped input fields */
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    transition: border-color 0.15s;
}

.input-icon-wrap:focus-within {
    border-color: rgba(238, 68, 51, 0.55);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.input-icon-wrap input[type="text"],
.input-icon-wrap input[type="password"] {
    background: transparent;
    border: none;
    color: #ffffff;
    margin: 0;
    padding: 0.55em 0.5em 0.55em 0;
    flex: 1;
    min-height: 36px;
    font-size: 1em;
    border-radius: 0;
    box-shadow: none;
}

.input-icon-wrap input[type="text"]::placeholder,
.input-icon-wrap input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-icon-wrap input[type="text"]:focus,
.input-icon-wrap input[type="password"]:focus {
    outline: none;
}

/* Full-width submit button */
.button-fullwidth {
    left: 0 !important;
    transform: none !important;
    -ms-transform: none !important;
    width: 100% !important;
    display: block !important;
    font-size: 1.2em;
    padding: 0.5em 1em;
    box-sizing: border-box;
    letter-spacing: 0.05em;
}

/* Footer links on dark background */
.box-register-footer,
.box-login-footer,
.box-reset-password-footer {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1em;
    text-align: center;
    margin: 1em 0em;
}

.box-register-footer a,
.box-login-footer a,
.box-reset-password-footer a,
#forgot-password {
    color: #a50806;
}

/* Checkbox on dark background */
.material-checkbox {
    color: rgba(255, 255, 255, 0.65);
}

.material-checkbox a {
    color: #a50806;
}

.checkmark {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Guest row */
.box-register-guest {
    display: flex;
    align-items: center;
     justify-content: center; 
     gap: 4%; /* spacing between span and button */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65em 0.5em 0.3em;
    margin-top: 0.5em;
}

.guest-text {
    color: rgba(255, 255, 255, 1);
    font-size: 1em;
    font-weight: bold;

}

.button-guest {
    background-color: #a50806;
    color: #ffffff;
    border:1px solid #ffffff;
    border-radius: 4px;
    padding: 0.3em 0.9em;
    font-family: -apple-system, BlinkMacSystemFont, "header", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.88em;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: background-color 0.15s;
}

.button-guest:hover {
    background-color: #ab1513;
    text-decoration: none;
}

.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: #ffffff;
    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 #ffffff;
    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: #00B8D9;
    color: #000000;
}

#captcha-container-register{
    margin-top: 2em
}

.button-guest {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    min-width: 10%;
    width: 20%;
    height: 30px;
    padding: 0 40px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #d40000 0%,
            #a30000 45%,
            #7a0000 100%
        );

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.15),
        inset 0 10px 20px rgba(255,80,80,0.25),
        inset 0 -10px 20px rgba(0,0,0,0.35),
        0 0 12px rgba(255,0,0,0.35);

    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "header";
    font-size: 1em;
    font-weight: bold;
}

.button-guest:hover {
    filter: brightness(1.15);
}

.button-guest:active {
}

input[type="submit"] {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #d40000 0%,
            #a30000 45%,
            #7a0000 100%
        );

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.15),
        inset 0 10px 20px rgba(255,80,80,0.25),
        inset 0 -10px 20px rgba(0,0,0,0.35),
        0 0 12px rgba(255,0,0,0.35);

    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "header";
    font-size: 2em;
    font-weight: bold;
}

.register-submit:hover {
    filter: brightness(1.15);
}