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");
}

@font-face {
    font-family: "viking";
    src: url("fonts/viking.ttf") format("truetype"),
        url("fonts/viking.woff") format("woff"),
        url("fonts/viking.eot") format("embedded-opentype"),
        url("fonts/viking.eot?#iefix") format("embedded-opentype"),
        url("fonts/viking.otf") format("opentype");
}

@font-face {
    font-family: "norse";
    src: url("fonts/norse.ttf") format("truetype"),
        url("fonts/norse.woff") format("woff"),
        url("fonts/norse.eot") format("embedded-opentype"),
        url("fonts/norse.eot?#iefix") format("embedded-opentype"),
        url("fonts/norse.otf") format("opentype");
}

@font-face {
    font-family: "norsebold";
    src: url("fonts/norsebold.ttf") format("truetype"),
        url("fonts/norsebold.woff") format("woff"),
        url("fonts/norsebold.eot") format("embedded-opentype"),
        url("fonts/norsebold.eot?#iefix") format("embedded-opentype"),
        url("fonts/norsebold.otf") format("opentype");
}



#div-form {
    max-width: 960px;
    max-height: 540px;
    width: 53vw;
    height: 30vw;
    background-color: #ffc45c;
    background-size: cover;
    margin: 1em auto;
}

/* Stylish thin scrollbar */
::-webkit-scrollbar {
    width: 18px;            /* slightly wider so it’s easy to click */
    background: #fdfff2;    /* scrollbar background */
}

/* Track */
::-webkit-scrollbar-track {
    background: #fdf8f2;    /* light cream track */
    border-radius: 4px;      /* rounded edges for style */
}

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
    background: #d9a966;    /* light brown/golden */
    border-radius: 4px;      /* rounded for easier grabbing */
    border: 2px solid #fdfff2; /* gives padding effect, easier to click */
}

/* Scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: #cfa453;    /* slightly darker on hover for feedback */
    cursor: pointer;        /* shows it's clickable */
}

.box-register-tos-agree {
    font-size:  clamp(0.6rem, 2.1vw, 1.6rem);    
}

.box-register-optin-agree {
     font-size:  clamp(0.6rem, 2.1vw, 1.6rem);    
}

.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: #d9a966;
        font-family:"norsebold", "Open Sans", "Helvetica Neue", Arial, sans-serif;

    color: #000000;
    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:"norsebold", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    padding: 0 0.3em 0 0.3em;
    font-size: 1.5em;
    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;*/
}

#leaderboard {
    background: rgba(169, 219, 212, 0); 
}

.box-leaderboard-header {
    background-color: #d9a966;
    font-family:"norsebold", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    font-size: 2.3em;
    text-transform: uppercase;
    color: black;
    -webkit-text-fill-color: black;
    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.01em;
    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-wrapper {
  width: clamp(320px, 80vmin, 900px);
  aspect-ratio: 3567 / 3240;
  
  background-image: url("images/signup-bg.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center; /* stick image to top */

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 10px auto 10px auto; /* space from top & bottom */
}

@media (min-width: 1024px) {
  .box-register-wrapper{
    transform: translateY(0%); /* move up by 10% of its own height */
  }
}

.box-register {
    /*background: #ffc45c;*/
    /*background-color: #f2f2f2;*/
    color: #000000;
    font-size: 0.9em;
    overflow: visible;

    width: 75%;
    margin: 0 auto;
}

@media (min-width: 1024px) {
  .box-register {
    transform: scale(1.05);
  }
}


.box-register-header {
    text-align: center;
    color: black;
/*    background-color: #043d60;*/
    font-family: "viking", -apple-system, BlinkMacSystemFont, "header", "Martel Sans";
     font-size: clamp(1rem, 1.6vw + 1.2vmin, 2.8rem);    
    margin-top: clamp(8px, 1vmin, 148px); 
}
@media (min-width: 1024px) {
    .box-register {
        transform: translateY(-30px);
    }
    .box-register-header {
     
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 1500px) and (max-height: 690px) {
    .box-register {
        transform: translateY(0px) scale(0.8);;
    }
    .box-register-header {
        margin-bottom: 0px;
    }
}

.box-register-sub-header{
    text-align: center;
    font-size: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
/*    margin-top: clamp(8px, 1.6vmin, 22px);*/
    color: black;
    font-family:  "norsebold", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
}

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-top: 0em;
}

.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"] {
    width: 100%;

    font-size: 1.1em;
    font-family: -apple-system, BlinkMacSystemFont, "default", Arial, Helvetica, sans-serif;

    /* Remove box look */
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 0;

    background: transparent;
    color: #ffffff;

    padding: 6px 0;

    box-sizing: border-box;

    /* Smooth animation like Bootstrap */
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Placeholder color (if used later) */
input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Focus state (pink underline animation) */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {

}

/* Optional disabled state */
input:disabled {
    border-bottom-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.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%;
} */

.register-submit {
  text-align: right;  /* aligns inline/inline-flex elements to the right */
}

.button {
  display: inline-flex;          /* flex to align text + image */
  align-items: center;
  justify-content: center;
  gap: 0.5em;                    /* space between text and image */
  font-size: clamp(1rem, 1.6vw + 1.2vmin, 2.8rem);             /* text size */
  font-family: "viking", -apple-system, BlinkMacSystemFont, "header", "Martel Sans";
  color: #000;                   /* black text */
  background: none;              /* no background */
  border: none;                  /* no border */
  padding: 0;                    /* remove default padding */
  cursor: pointer;
  text-decoration: none;

  margin-top: clamp(2px, 0.4vmin, 38px); /
}

/* Hover effect (optional: slightly darker text on hover) */
.button:hover {
/*  color: #111;*/
}

/* Icon on the right */
.button .button-icon {
  width: clamp(1.4rem, 1.4vw + 0.9vmin, 2rem); /* responsive size */
  height: auto;
  display: inline-block;
}


@media (min-width: 1024px) {
    .button {
        margin-top: 20px;
    }
}

/* 
.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: #f2f2f2;
    background-repeat: repeat;
    color: #000000;
    font-size: 1em;
    margin: 1em;
}

.box-popup-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-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: 1.3em;
}

::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: #54ab9c;
    padding: 35px;
    border-radius: 0px;
/*    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);*/
    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: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    padding-left: 8%;
    color: #000;
    font-family:  "norsebold", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
}

.material-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    width:  clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    min-width:  clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    height:  clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    margin-right: 8px;

    background-color: #ffffff; /* white box */
    border: 1px solid #000000; /* black border */
    border-radius: 0px;
}

.checkmark.checked {
    background-color: #ffffff;
    border-color: #000000;
}


.material-checkbox input[type="checkbox"]:checked~.checkmark {
    background-color: #fff;
    border-color: #0077B6;
}

.material-checkbox input[type="checkbox"]:checked~.checkmark:after {
    content: "";
    position: absolute;
    /* Position relative to checkbox size */
    top: clamp(1px, 0.15em, 3px);
    left: clamp(4px, 0.25em, 6px);

    /* Tick size scales with screen */
    width: clamp(2px, 0.15em, 4px);
    height: clamp(4px, 0.3em, 10px);

    border: solid #000;
    border-width: 0 clamp(1px, 0.1em, 2px) clamp(1px, 0.1em, 2px) 0;
    transform: rotate(45deg);
}

@media (min-width: 1024px) {
  .material-checkbox input[type="checkbox"]:checked ~ .checkmark {
        background-color: #fff;
        border-color: #0077B6;
    }

    .material-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
        content: "";
        position: absolute;

        /* Stable positioning */
        top: 0px;
        left: 4px;

        /* Clear tick size */
        width: 6px;
        height: 12px;

        border: solid #000;
        border-width: 0 3px 3px 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;
}
/* Base tooltip icon style */
.info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
  height: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
  cursor: pointer;
  margin-left: 1px;
  border: none;
  font-size: 0; /* hide any text inside */
  color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.info2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
  height: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
  cursor: pointer;
  margin-left: 1px;
  border: none;
  font-size: 0; /* hide any text inside */
  color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Different images for each icon */
.info {
  background-image: url('images/viking.png');
}

.info2 {
  background-image: url('images/info.png');
  top: 2px; /* only info2 needs slight vertical adjustment */
}

/* Tooltip bubble */
.info::after{
  content: attr(data-msg);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem); /* responsive text */
  white-space: normal;
  word-break: break-word;
  max-width: 250px;
  width: max-content;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Show tooltip on hover */
.info:hover::after{
  opacity: 1;
  pointer-events: auto;
}

.tos-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info2 {
  cursor: pointer;
}

.form-field {
    position: relative;
}

.form-field input {
    width: 50%;
    font-size: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    margin-top: clamp(2px, 1vmin, 22px);

    font-family:  "norsebold", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    
    background-color: #ffffff;      /* white background */
    color: #000000;                 /* black text */
    border: 2px solid #000000;      /* black border all around */
    border-radius: 0px;             /* optional: slightly rounded corners */
    
    box-sizing: border-box;
    padding: 0 0;

    display: inline-block;
}


.form-field input:focus {
    border-bottom-color: #000;
}

.register-text{
    width: 32%;
    padding-left: 10%;
    text-align: left;
    font-size: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    margin-top: clamp(8px, 1.6vmin, 22px);
    color: black;
    font-family:  "norsebold", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    display: inline-block;
}

label.error {
    display: none !important;
}
/*
.form-field label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    font-family:  "Open Sans", "Helvetica Neue", Arial, sans-serif;
    color: rgba(255, 255, 255, 1);
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
     text-shadow: 0px;
}

.form-field input:focus + label,
.form-field input.has-text + label {
  transform: translateY(-240%);
  font-size: 0.8em;
   color: rgba(255, 255, 255, 0.8);
   text-shadow: 0px;
}

.form-field input.no-text + label {
   color: rgba(255, 0, 0, 0.8);
   border-bottom-color: red;
   text-shadow: 0px;
}

.form-field input.has-text + label {
  color: rgba(255, 250, 255, 1);
   border-bottom-color: red;
   text-shadow: 0px;
}


label.error {
    display: none !important;
}

/*.form-field input:required:invalid {
    border-bottom-color: red;
}

.form-field input:focus:invalid {
    border-bottom-color: red;
}
*/

.checkmark-terms {
}

.checkmark-terms.error {
  color: red; /* text turns red on error */
    font-family:  "norsebold", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
}

.checkmark.error{
    position: relative;
    display: inline-block;
     width:  clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    min-width:  clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    height:  clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);
    margin-right: 8px;
    border: 1px solid #ff0000;
    border-radius: 0px;
    transition: all 0.3s;
}

.termsfooter{
    text-align: center;
    font-size: clamp(0.65rem, 0.8vw + 0.7vmin, 2.8rem);

}
/* Overlay */
.tos-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

/* Show */
.tos-modal.show {
  opacity: 1;
  visibility: visible;
}

/* Modal box */
.tos-modal-box {
  background: #1e1e2f;  /* keep dark theme */
  color: #eee;

  width: 90%;
  max-width: 800px;
  max-height: 70vh;

  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);

  transform: scale(0.9);
  transition: transform 0.25s ease;

  /* ✅ IMPORTANT for scroll layout */
  display: flex;
  flex-direction: column;

   font-family: Arial, Helvetica, sans-serif;
}

.tos-modal.show .tos-modal-box {
  transform: scale(1);
}

/* Header */
.tos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 18px;

  background: #2a2a40; /* nicer dark header */
  border-bottom: 1px solid #444;
}

.tos-header h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

/* Close button */
.tos-close {
  cursor: pointer;
  font-size: 30px;
  color: #aaa;
  transition: color 0.2s;
  padding: 4px 8px;   /* easier to tap */
}

.tos-close:hover {
  color: #fff;
}

/* Body */
.tos-body {
  padding: 16px;

  font-size: 14px;
  line-height: 1.5;
  color: #ccc;

  max-height: 50vh;
  overflow-y: auto;

}

/* Scrollbar (thick, no rounded track) */
.tos-body::-webkit-scrollbar {
  width: 24px;       /* thick scrollbar */
}

/* Track (background) */
.tos-body::-webkit-scrollbar-track {
  background: #2a2a40; /* flat color, no rounding */
  border-radius: 0;     /* remove rounding to avoid white showing */
}

/* Thumb (draggable part) */
.tos-body::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 12px;  /* keep thumb slightly rounded for style */
}

/* Links inside TOS modal */
.tos-body a {
  color: #1e90ff;          /* standard blue link color */
  text-decoration: underline;
  transition: color 0.2s;
}

.tos-body a:hover {
  color: #63b3ed;          /* lighter blue on hover */
}

.tos-body strong {
    color: white;
  font-weight: bold;   /* bold text */
}