:root {
    --rootColor: rgb(0, 0, 25);

    --white95: color-mix(in srgb, var(--rootColor) 5%, white 95%);
    --white85: color-mix(in srgb, var(--rootColor) 15%, white 85%);
    --white75: color-mix(in srgb, var(--rootColor) 25%, white 75%);
    --white65: color-mix(in srgb, var(--rootColor) 35%, white 65%);
    --white50: color-mix(in srgb, var(--rootColor) 50%, white 50%);
    --white35: color-mix(in srgb, var(--rootColor) 65%, white 35%);
    --white25: color-mix(in srgb, var(--rootColor) 75%, white 25%);
    --white15: color-mix(in srgb, var(--rootColor) 85%, white 15%);
    --white5: color-mix(in srgb, var(--rootColor) 95%, white 5%);

    --transparent95: color-mix(in srgb, var(--rootColor) 5%, transparent 95%);
    --transparent85: color-mix(in srgb, var(--rootColor) 15%, transparent 85%);
    --transparent75: color-mix(in srgb, var(--rootColor) 25%, transparent 75%);
    --transparent65: color-mix(in srgb, var(--rootColor) 35%, transparent 65%);
    --transparent50: color-mix(in srgb, var(--rootColor) 50%, transparent 50%);
    --transparent35: color-mix(in srgb, var(--rootColor) 65%, transparent 35%);
    --transparent25: color-mix(in srgb, var(--rootColor) 75%, transparent 25%);
    --transparent15: color-mix(in srgb, var(--rootColor) 85%, transparent 15%);
    --transparent5: color-mix(in srgb, var(--rootColor) 95%, transparent 5%);

    --danger: #f44336;
    --warning: #e18c28;
    --progress: #2196F3;
    --success: #4CAF50;
    --purple: #c800ff;
    --pink: #ff00c8;
    --teal: #009688;
    --lime: #91a009;
    --indigo: #3f51b5;
    --cyan: #00ffff;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bluish: #4d5f9a;

    --header-height: 4.5rem;
    --footer-height: 2.5rem;

    --content-max-width: 1200px;
    --box-border-radius: 0.5rem;
    --box-border: 1px solid var(--white75);
}

* {
    box-sizing: border-box;
    color: var(--rootColor);
    font-family: Inter, Helvetica, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    font-size: 13px;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background-color: var(--white95);
    gap: 1rem;
}

header,
main,
footer {
    display: flex;
    width: 100%;
    padding: 0 5%; 
}

header > *,
main > *,
footer > * {
    max-width: var(--content-max-width);
    width: 100%;
}

header > .row,
header > .column,
main > .row,
main > .column,
footer > .row,
footer > .column {
    gap: 0.75rem;
}

header,
footer { flex-direction: row; }

header * { color: var(--white95) !important; }

header { background-color: var(--white5); height: var(--header-height); }
main { flex: 1; flex-direction: column; }
footer { background-color: var(--white50); height: var(--footer-height); }

h1,h2,h3,h4,h5,p { margin: 0; padding: 0; }

.loading-wheel {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: block;
}

.loading-wheel.light {
    border: 4px solid var(--white35);
    border-top: 4px solid var(--white65);
}

.loading-wheel.dark {
    border: 4px solid var(--white5);
    border-top: 4px solid var(--white25);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button {
    padding: 0.5rem 0.75rem;
    background-color: var(--white5);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.1s ease;
    border: none;
    box-shadow: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    flex-shrink: 0;
}

.button,
.button * { color: var(--white85); }

.button.material-symbols-outlined {
    padding: 0 !important;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    font-size: unset;
    font-size: 22px;
    font-weight: unset;
}

.button:focus,
.button:hover { background-color: var(--white25); color: var(--white95); }

.button .loading-wheel {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

a:link,
a:visited {
    color: color-mix(in srgb, var(--success) 75%, var(--rootColor) 25%);
    transition: all 0.1s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

a:link:hover,
a:visited:hover,
a:link:active,
a:visited:active { color: color-mix(in srgb, var(--success) 50%, var(--rootColor) 50%); }

a.sublink {
    color: gray !important;
    font-size: 0.85rem;
    font-style: italic;
}

a.button {
    color: var(--white85);
}

a.button:hover {
    color: var(--white95);
}

.clean {
    color: var(--white25) !important;
    padding: 0 !important;
    margin: 0 !important;
}

button.clean {
    border: none !important;
    transition: 0.1s all ease;
    cursor: pointer !important;
}

button.clean:focus,
button.clean:active,
button.clean:hover { background-color: transparent !important; color: var(--white15) !important; }

button.clean.danger { color: var(--danger) !important; }

button.clean.danger:focus,
button.clean.danger:active,
button.clean.danger:hover { color: color-mix(in srgb, var(--danger) 75%, var(--rootColor) 25%) !important; }

button.clean.warning { color: var(--warning) !important; }

button.clean.warning:focus,
button.clean.warning:active,
button.clean.warning:hover { color: color-mix(in srgb, var(--warning) 75%, var(--rootColor) 25%) !important;
}

button.clean.success { color: color-mix(in srgb, var(--success) 75%, var(--rootColor) 25%) !important;
}

button.clean.success:focus,
button.clean.success:active,
button.clean.success:hover { color: color-mix(in srgb, var(--success) 50%, var(--rootColor) 50%) !important;
}

.button.smallpadding { padding: 0.2rem 0.35rem; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="file"],
textarea,
.textarea {
    background-color: var(--transparent85);
    color: var(--white5);
    border: 1px solid var(--transparent65);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    transition: background-color 0.1s, border-color 0.1s, color 0.1s;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="file"]:hover,
textarea:hover,
.textarea:hover {
    background-color: var(--transparent75);
    border-color: var(--transparent50);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="file"]:focus,
textarea:focus,
.textarea:focus {
    outline: none;
    background-color: var(--white85);
    border-color: var(--white35);
    color: var(--white15);
}

.textarea {
    resize: vertical;
    min-height: 4rem;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: inline-block;
    width: 100%;
}

.textarea span {
    display: flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 0.1rem;
    line-height: 1;
}

.textarea img { display: block; }

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--transparent65);
    width: 22px;
    height: 22px;
    margin-right: 0.25rem;
    transition: accent-color 0.1s;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked { accent-color: var(--white50); }

input[type="file"] {
    color: var(--white35);
    background-color: var(--transparent85);
    border: none;
    display: flex;
    align-content: center;
    padding: 0.25rem 0.5rem;
}

input[type="file"]::file-selector-button {
    background-color: var(--transparent65);
    color: var(--white85);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.1s;
}

input[type="file"]::file-selector-button:hover { background-color: var(--transparent50); }

input[type="checkbox"] { width: 16px; height: 16px;}

input[type="date"],
input[type="time"],
input[type="datetime-local"] { padding: 0.5rem; }

textarea { width: 100%; }

input:disabled,
textarea:disabled {
    background-color: var(--transparent95);
    color: var(--white50);
    border-color: var(--transparent85);
    cursor: not-allowed;
    opacity: 0.6;
}

.dropzone {
    border: 2px dashed var(--transparent75);
    padding: 0.5rem;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    flex-wrap: wrap;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--transparent85);
    color: var(--white5);
    padding: 0.55rem 1rem;
    border: 1px solid var(--transparent65);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 19' fill='black'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px;
    padding-right: 1.5rem !important;
}

select.smallpadding { padding: 0.2rem 0.35rem; padding-left: 0.5rem; }
select:hover { background-color: var(--transparent85); }
select:focus { border-color: var(--progress); }
select::-ms-expand { display: none; }

:target { outline: inherit !important; }
::-webkit-scrollbar { width: 12px; height: 12px;}
::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); border-radius: 6px;}
::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }
::-webkit-scrollbar-track { background-color: var(--scrollbar-track); border-radius: 6px;}

/* styling */

.row,
.column,
.wrap {
    display: flex;
}

.row { flex-direction: row; }
.column { flex-direction: column; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.inline { display: inline-flex !important; }

/* elements */

.box {
    display: flex;
    flex-direction: column;
    border: var(--box-border);
    border-radius: var(--box-border-radius);
}

.box-header,
.box-footer {
    color: var(--white35);
    background-color: var(--white85);
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.box-header { border-radius: var(--box-border-radius) var(--box-border-radius) 0 0; font-weight: 700; }
.box-footer { border-radius: 0 0 var(--box-border-radius) var(--box-border-radius); }
.box-body {
    color: var(--white5);
    background-color: var(--white95);
    padding: 2rem 1.25rem;
}

main > .box {
    width: 100%;
}

.imgcont {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: unset;
    width: unset;
    height: unset;
}

.imgcont img {
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
}