@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Raleway:400,700,800&display=swap');


/* Theming */

.common-theme {
	--button-color:        #2350e6; /*#2f6fff*/
	--button-hover-color:  #204db2; /*#2b63e6*/
	--button-active-color: #204db2; /*#2658cc*/
	--button-text-color:   #ffffff;

	--background-half:     #808080;
	
	--text-button-color:   var(--button-color);

	--link-color:          #4285f4;
	
	--font-family:         Noto Sans, Helvetica, Arial, sans-serif;
	--branded-font-family: Raleway, Helvetica, Arial, sans-serif;
	--font-size:           0.875rem /*14px*/;

	/* HACK: On mobile, set to 100% in order to keep everything on screen
	         (see app.jsx)
	*/
	--height-fix:          auto;
	--height-fix-holder:   100vh;
}

.dark-theme {
	--background-base:     #202026;
	--background-midstep:  #282834;
	--background-fullstep: #363646;
	--background-twostep:  #4f4f60;

	--textcolor:           #c8c8c8;
	--reverse-textcolor:   #000000;

	--selected-color:      #405080;
	
	--text-button-color:   #3a8bef;

	--scrollbar-color:     var(--background-half) var(--background-base);
	
	--file-icon-outline:   0px;
}

.light-theme {
	--background-base:     #ffffff;
	--background-midstep:  #f8f8f8;
	--background-fullstep: #e8e8e8;
	--background-twostep:  #cdcdcd;
	
	--textcolor:           #000000;
	--reverse-textcolor:   #c8c8c8;

	--selected-color:      #b3d8ff;

	--scrollbar-color:     auto;

	--file-icon-outline:   0.5px;
}


@media screen {

/* Standard element styling */

html {
	scroll-behavior: smooth;
	height: var(--height-fix);
}

body {
	color: var(--textcolor) !important;
	background: var(--background-base) !important;
	height: var(--height-fix);
}

#root {
	height: var(--height-fix);
}

a {
	color: var(--link-color);
	font-variant: normal;
	font-weight: normal;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* pseudo-link styling */
.link {
	color: var(--link-color);
	font-variant: normal;
	font-weight: normal;
	text-decoration: none;
}

.link:hover {
	text-decoration: underline;
	cursor: pointer;
}

@supports (scrollbar-width: auto) {
	.scrollbar {
		scrollbar-color: var(--scrollbar-color);
	}
	.MuiDialog-scrollBody {
		scrollbar-color: var(--scrollbar-color) !important;
	}
}

/* Safari */
@supports selector(::-webkit-scrollbar) {
	.scrollbar::-webkit-scrollbar {
		width: 10px;
		height: 10px;
		background: var(--background-base);
	}
	.scrollbar::-webkit-scrollbar-thumb {
		background: var(--background-half);
	}
	.MuiDialog-scrollBody::-webkit-scrollbar {
		width: 10px;
		height: 10px;
		background: var(--background-base);
	}
	.MuiDialog-scrollBody::-webkit-scrollbar-thumb {
		background: var(--background-half);
	}
}


/* General */

.visible {
	visibility: visible;
}

.hidden {
	visibility: hidden;
}

.disabled-control {
	pointer-events: none !important;
	opacity: 0.5 !important;
}

.text {
	font-family: var(--font-family);
	font-weight: 400;
}

.branded-text {
	font-family: var(--branded-font-family);
	font-weight: 400;
}

.small-text {
	font-size: 0.75rem /*12px*/;
}

.bold {
	font-weight: 700;
}

.italic {
	font-style: italic;
}

.underlined {
	text-decoration: underline;
}

.center {
	text-align: center;
}

.valign-middle {
	vertical-align: middle;
}

.full-height {
	height: 100%;
}
.full-height-footer {
	height: calc(100% - 40px);
}

.smooth-scroll {
	scroll-behavior: smooth;
}

.no-select {
	user-select: none;
	-webkit-user-select: none;
}


/* Custom elements */

.holder {
	height: var(--height-fix-holder);
	display: flex;
	flex-direction: column;
	overflow: clip;
}

.content {
	flex-grow: 1;
	overflow: clip;
	width: 100vw;
}

.background-dark {
	background-color: var(--background-base);
}

.background-midstep {
	background-color: var(--background-midstep);
}

.background-fullstep {
	background-color: var(--background-fullstep);
}

.fadein {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.5s linear;
}

.fadeout {
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s 0.5s, opacity 0.5s linear;
}

.icon-svg {
	/* Similar to MaterialUI icons */
	fill: currentColor;
	stroke: currentColor;
}


/* Custom controls */

.attn-button {
	background-color: var(--button-color);
	border: none;
	color: white;
	padding: 8px 20px 8px;
	height: 2.35rem;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem /*16px*/;
	white-space: nowrap;
	display: inline-block;
	margin: 2px 2px;
	border-radius: 8px;
	cursor: pointer;
}

.attn-button:hover {
	background-color: var(--button-hover-color);
}

.attn-button:active {
	background-color: var(--button-active-color);
}

.auth-text {
	font-family: var(--branded-font-family);
	font-size: 1.25rem /*20px*/;
	line-height: 1.3em;
	text-align: center;
}

.auth-error-info {
	font-size: 10pt;
	opacity: 0.5;
}

}  /* @media screen */


/* Mobile */

/* @media (width <= 480px) {
	html {
		font-size: 100%;
	}
} */
