:root {
    --c-primary: #005aff;
    --c-primary-light: #0b68ff;
    --c-accent: #22B14C;
    --c-bg: #fefefe;
    --c-text: #222;
    --c-text-opposite: #eee;
    --c-secondary: #008;
	--sidebar-width: 250px;
}

@font-face {
	font-family: CustomFont;
	src: url("/assets/CustomFont.ttf");
}

html, body {
	margin: 0px;
	padding: 0px;
	font-family: CustomFont;
	font-size: 18px;
	box-sizing: border-box;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
    background: var(--c);
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
    /* height: 100vh;
    width: 100%; */
}

body {
	overflow: auto !important;
	position: initial;
}

.text-logo {
    padding: 30px;
    background: linear-gradient(to bottom, var(--c-secondary), var(--c-primary));
    max-height: 190px;
    height: auto;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
	margin: 0px;
}

.text-logo span {
    font-weight: bold;
    width: 100%;
    display: block;
    color: white;
}

.text-logo span.upper {
    line-height: 1;
    color: #00B2FF;
    font-size: clamp(2rem, 8vw, 5rem);
}

.text-logo span.lower {
    line-height: 1.4;
    color: #22B14C;
    font-size: clamp(1rem, 4vw, 2rem);
}

@media (max-width: 300px) {
    .text-logo {
        display: none;
    }
}

.loader {
	visibility: visible;
	opacity: 1;
	position: absolute;
	top: 50px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	background: #fff;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-content: center;
	justify-content: center;
	align-items: center;
    transition: visibility 0.3s, opacity 0.3s linear;
	box-sizing: border-box;
	padding: 32px;
}

.loader.full {
    top: 0px;
}

.loader.closed {
	visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s linear;
}

.loader .loader-text {
	text-align: center;
	font-size: 1.3rem;
}

.loader .loader-element {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 6px solid #0000;
    border-radius: 50%;
    border-color: rgb(0, 143, 0) #0000;
    animation: l16 1s infinite linear;
    margin-bottom: 21px;
}
.loader .loader-element::before, .loader .loader-element::after {    
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
}
.loader .loader-element::before {
    border-color: #05f #0000;
    animation: inherit; 
    animation-duration: .5s;
    animation-direction: reverse;
}
.loader .loader-element::after {
    margin: 10px;
}

@keyframes l16 { 
    100% {transform: rotate(1turn)}
}

@keyframes rotation {
    0% {transform: rotate(0deg)}

    100% {transform: rotate(360deg)}
}

.loader .loader-element.std {
    all: initial;
	width: 60px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: 
	radial-gradient(farthest-side,#1080ff 94%,#0000) top/12px 12px no-repeat,
	conic-gradient(#0000 30%,#1080ff);
	-webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 12px),#000 0);
    mask: radial-gradient(farthest-side,#0000 calc(100% - 12px),#000 0);
	animation: rotation 1s infinite linear;
    margin-bottom: 21px;
}

a {color: #007bff;}

.error-page {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 32px 16px;
	text-align: center;
}

.error-page .error-image {
	background-image: url(https://img.icons8.com/color/120/error--v1.png);
	width: 120px;
	height: 120px;
	background-size: cover;
	background-repeat: no-repeat;
	border: 0px;
	display: inline-block;
	margin-bottom: 32px;
}

.error-page .error-text {
	font-weight: 600;
	font-size: 1.8rem;
	color: #e00;
	margin-bottom: 21px;
}

.error-page .error-message {
	font-size: 1.3rem;
	color: var(--c-text);
}

.page {
    display: flex;
    min-height: 100%;
    min-width: 100%;
    flex-direction: column;
}

.header {
	position: sticky;
	top: 0px;
	box-sizing: border-box;
	height: 50px;
	width: 100%;
	background: var(--c-primary);
	z-index: 1;
	text-align: center;
	margin: 0px;
	line-height: 1;
}

.header .logo {
	background-image: url("/assets/logo60x60.png");
    background-size: cover;
	width: 50px;
    height: 50px;
	float: left;
}

.header .navbar {
	float: left;
	height: 100%;
    font-size: 0;
	box-sizing: border-box;
}

.header .navbar button {
	font-family: inherit;
	border: none;
	margin: none;
	float: left;
	height: 100%;
	padding: 11px 16px;
	box-sizing: border-box;
	background: transparent;
	color: white;
	font-size: 1.3rem;
	text-align: center;
	cursor: pointer;
    transition: .3s;
}

.header .navbar button.active {
	background-color: var(--c-bg);
    color: var(--c-text);
    pointer-events: none;
}

.header .navbar button:hover {
	background: rgba(255, 255, 255, 0.2);
    transition: .2s;
}

.header .navbar.right {
	float: right;
}

.header .small-text {
	margin: auto;
	display: none;
	font-size: 1.3rem;
	font-weight: bold;
	height: 100%;
	box-sizing: border-box;
	padding: 12px;
	color: var(--c-text-opposite);
}

.content {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    background: var(--c-bg);
    flex: 1;
}

.footer {
    width: 100%;
    height: fit-content;
    box-sizing: border-box;
    background: #eee;
    color: #555;
    text-align: center;
    padding: 16px;
}

.footer-brand {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.footer-legal {
    font-size: 1.1rem;
    color: #666;
}


.hamburger {
    display: none;
    font-size: 1.8rem;
}

.sidebar {
    position: fixed;
    top: 0;
    left: calc(-1*var(--sidebar-width));
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--c-primary-light);
    transition: left 0.4s ease-in-out;
    z-index: 5;
    overflow-y: auto;
    padding-top: 50px;
}

.sidebar-content {
    text-align: center;
}

.sidebar .sidebar-content .page-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
	color: var(--c-text-opposite);
}

.sidebar .sidebar-content button {
	font: inherit;
    background-color: transparent;
    border: none;
    color: var(--c-text-opposite);
    font-size: 1.3rem;
    padding: 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s, padding-left 0.3s ease;
}

.sidebar .sidebar-content button.active {
    background-color: var(--c-bg);
	color: var(--c-text);
    padding-left: 20px;
}

.sidebar .sidebar-content button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

@keyframes slideIn {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media screen and (max-width: 500px) {
    .header .navbar {
        float: right;
    }

    .hamburger {
        display: block;
    }

    .header .navbar button:not(.hamburger) {
        display: none;
    }

    .sidebar {
        left: calc(-1*var(--sidebar-width));
    }

    .sidebar.open {
        left: 0;
		box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.2);
    }

	.header .small-text {
		display: inline-block;
	}
}