:root {
    /* --main-background: rgba(26, 26, 24, 0.95); */
    --main-background: rgba(33, 56, 63, 0.95);
    --main-yellow: #FFE500;
    --accent-yellow: #f4c431;
    --accent-red: #ff0000;
    --accent-mid-grey: #b3b3b3;
    --accent-light-grey: #eeedee;
    --accent-light-blue: #78cada;
    --accent-dark-blue: #21383f;
}

@font-face {
    font-family: 'ZillaSlab';
    src: url('/static/assets/fonts/ZillaSlab-Regular.ttf') format('truetype')
}

html {
    overscroll-behavior: none;
}

p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    margin-top: 10px
}

p,
h1,
h2,
h3,
h4,
label,
strong,
figcaption,
.login-text,
.instruction-header {
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: transparent url("/static/assets/img/main_background.webp") no-repeat fixed center;
    background-size: cover;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 100%;
    hyphens: auto;
    cursor: none;
}

a {
    text-decoration: none;
}

#body-main-content-container {
    width: 100%;
    height: 100svh;
    top: 0;
    left: 0;
    position: fixed;
    justify-content: center;
    vertical-align: middle;
}

/* START Button styling */
button {
    -webkit-user-select: none;
    user-select: none;
    font-family: inherit;
    font-weight: bolder;
    min-width: 100px;
}

#button-collection {
    width: 100%;
    height: 100%;
    min-height: 40px;
    display: grid;
    grid-auto-flow: column;
    grid-column-gap: 25px;
    margin-top: auto;
}

.submit-button {
    background-color: var(--main-yellow);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    gap: 8px;
    font-size: large;
}

.submit-button:hover {
    background-color: var(--accent-yellow);
    transition: background-color 0.5s;
}

/* END Button styling */
#body-content-container {
    position: relative;
    display: flex;
    justify-content: center;
    height: 80%
}

.login-container-wrapper {
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
}

.login-container {
    background-color: var(--main-background);
    color: white;
    /* padding: 15px;
     */
    height: 70svh;
    width: 80%;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(61, 21, 21, 0.1);
    text-align: center;
    border: 2px solid var(--main-yellow);
    overflow: auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-text {
    -webkit-user-select: none;
    user-select: none;
    font-size: 24px;
    margin-top: 0;
    font-weight: 600;
}

#login-container-content {
    height: 90%;
    display: flex;
    overflow: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--main-yellow) transparent;
}

#login-text-container {
    margin-top: 25px
}

#button-collection-left,
#button-collection-right,
#form-action-left {
    display: flex;
    align-items: center;
    height: 100%;
}

#button-collection-left {
    justify-content: left;
    width: 100%;
}

#button-collection-right {
    justify-content: right;
    width: 100%;
}

#login-container-content::-webkit-scrollbar-track {
    background-color: transparent;
}

#login-container-content::-webkit-scrollbar-track {
    background-color: var(--main-yellow);
}

/* START Header and Footer Styling */
#header-container {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: var(--main-background);
}

.header-content {
    border-bottom: 2px solid var(--main-yellow);
    align-items: center;
}

.header-content,
.footer-content {
    box-sizing: border-box;
    margin: 0;
    display: flex;
    justify-content: center;
    height: 10%;
    background-color: var(--main-background);
    color: #fff;
}

.welcome-content {
    display: flex;
    height: 100%;
    align-items: center;
}

#header-logo {
    align-self: center;
    height: 100%;
    max-width: 300px;
    margin: auto;
}

.logo-fill-yellow {
    fill: var(--main-yellow);
    fill-rule: nonzero;
}

.footer-content {
    border-top: 2px solid var(--main-yellow);
}

.footer-links {
    display: flex;
    width: 100%;
    justify-content: center;
}

.submit-button {
    width: 100% !important;
}

.submit-login {
    width: 100%;
    justify-content: center;
    display: flex;
    margin-top: 15px;
}

.login-logout-icon {
    height: 0.8em;
    margin-left: 10px;
    aspect-ratio: 1;
}

#footer-first-row {
    align-self: center;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 0 20px;
}

#footer-first-row h1,
#header-welcome h1 {
    font-family: ZillaSlab, Arial, Helvetica, sans-serif;
    font-size: 40px;
    text-transform: uppercase;
    margin: 0 20px 0 0;
    color: var(--accent-light-blue);
}

.footer-form {
    width: 100%;
}

input {
    outline: none;
}

/* START Input Styles */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
select {
    width: 100%;
    padding: 0 10px 0 10px;
    height: 35px;
    /* margin-bottom: 10px; */
    border: 2px solid var(--main-yellow);
    border-radius: 10px;
    box-sizing: border-box;
    -moz-appearance: none;
    -webkit-appearance: none;
}

input[type="text"]:not([disabled]):hover,
input[type="password"]:not([disabled]):hover,
input[type="email"]:not([disabled]):hover,
input[type="number"]:not([disabled]):hover,
input[type="tel"]:not([disabled]):hover {
    border: 2px solid var(--accent-yellow);
    transition: border 0.5s;
}

input:active, input:focus {
    border: 2px solid var(--accent-light-blue) !important;
    transition: border 0.5s !important;
}

input:disabled {
    color: whitesmoke;
    background-color: var(--main-background);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
}

.label-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    /*cursor: pointer;*/
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    /*cursor: pointer;*/
    height: 0;
    width: 0;
}

.checkbox-replacer {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: var(--accent-light-grey);
}

.label-container:hover input ~ .checkbox-replacer {
    background-color: var(--accent-mid-grey);
}

.label-container input:checked ~ .checkbox-replacer {
    background-color: var(--accent-light-blue);
}

.checkbox-replacer:after {
    content: "";
    position: absolute;
    display: none;
}

.label-container input:checked ~ .checkbox-replacer:after {
    display: block;
}

.label-container .checkbox-replacer:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* END Input Styles */
/* START Notification styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: -350px;
    max-height: 50%;
    min-width: 250px;
    width: 300px;
    max-width: 300px;
    transition: right 0.3s ease-in-out;
    z-index: 9999;
}

#notification {
    position: relative;
    background-color: var(--main-background);
    border: 2px solid var(--accent-yellow);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    -webkit-user-select: none;
    user-select: none;
    padding: 10px 20px 30px;
}

.notification-progress-container {
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    border-radius: 10px;
}

.notification-progress {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #007bff;
    transition: width 0.2s ease-in-out;
    /* Smooth width transition */
    border-radius: 5px;
}

img {
    user-select: none;
    user-drag: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

/* END Notification styles */
@media only screen and (max-width: 1100px) {
    #header-welcome {
        display: none;
    }
}

@media only screen and (max-width: 520px) {

    .welcome-content {
        max-width: 300px;
        width: 70%;
    }

    .language_text {
        display: none;
    }
}

@media (max-height: 439px) {
    .submit-button {
        height: 85%;
    }
}
@media (min-height: 440px) {
    .submit-button {
        height: 55%;
    }
}

.progress-wrapper {
    width: 75%;
    height: 10px;
    background-color: var(--accent-dark-blue);
    border-radius: 5px;
    overflow: hidden;
    margin: auto;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--accent-light-blue);
    transition: width 0.3s ease;
}

#home-button {
    background-size: 30px;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NzYgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0iTTU3NS44IDI1NS41YzAgMTgtMTUgMzIuMS0zMiAzMi4xbC0zMiAwIC43IDE2MC4yYzAgMi43LS4yIDUuNC0uNSA4LjFsMCAxNi4yYzAgMjIuMS0xNy45IDQwLTQwIDQwbC0xNiAwYy0xLjEgMC0yLjIgMC0zLjMtLjFjLTEuNCAuMS0yLjggLjEtNC4yIC4xTDQxNiA1MTJsLTI0IDBjLTIyLjEgMC00MC0xNy45LTQwLTQwbDAtMjQgMC02NGMwLTE3LjctMTQuMy0zMi0zMi0zMmwtNjQgMGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJsMCA2NCAwIDI0YzAgMjIuMS0xNy45IDQwLTQwIDQwbC0yNCAwLTMxLjkgMGMtMS41IDAtMy0uMS00LjUtLjJjLTEuMiAuMS0yLjQgLjItMy42IC4ybC0xNiAwYy0yMi4xIDAtNDAtMTcuOS00MC00MGwwLTExMmMwLS45IDAtMS45IC4xLTIuOGwwLTY5LjctMzIgMGMtMTggMC0zMi0xNC0zMi0zMi4xYzAtOSAzLTE3IDEwLTI0TDI2Ni40IDhjNy03IDE1LTggMjItOHMxNSAyIDIxIDdMNTY0LjggMjMxLjVjOCA3IDEyIDE1IDExIDI0eiIgZmlsbD0iI0ZGRTUwMCIvPjwvc3ZnPg==") no-repeat 75%;
    position: absolute;
    right: 0;
    margin-right: 20px;
    width: 40px;
    height: 30px;
}