:root {
	--primary-color: white;
	--light-color: #FDB0D0;
	--secondary-color: #F0570C;
	--secondary-color-darker: #a13c0a;
	--secondary-color-lighter: #f18752;
	--background-color: #1F2A44;
	--background-light-color: #3f598c;
	--error-background-color: #961616;
	--border-width: 7px;
	--footer-background-img: url(/res/bg-footer.jpg);
	--loading-spinner-img: url(/res/loading-spinner.svg);
}

body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	width: 100vw;
	height: 100vh;
	padding: 0px;
	margin: 0px;

	color: var(--primary-color);
	background-color: var(--background-color);
	background-image: var(--footer-background-img);
	background-position: center bottom;
    background-repeat: no-repeat;
	font-family: Nunito Sans;
}

.scroll {
	overflow: scroll;
}

.flex-row {
	display: flex;
	flex-direction: row;
}

.flex-column {
	display: flex;
	flex-direction: column;
}

.flex-center {
	justify-content: center;
	align-items: center;
}

.flex-align-center {
	align-items: center;
}

.flex-align-end {
	align-items: end;
}

.flex-justify-center {
	justify-content: center;
}

.w100 {
	width: 100%;
}

.h100 {
	height: 100%;
}

.text-large {
	font-weight: 900;
	font-size: 2rem;
	letter-spacing: .1rem;
}

.text-medium {
	font-weight: 700;
	font-size: 1.2rem;
}

.text-center {
	text-align: center;
}

.text-secondary {
	color: var(--light-color);
}

.text-button {
	display: flex;
	align-items: center;
	justify-content: center;
	
	width: 3rem;
	height: 3rem;

	padding: 5px;
	border-radius: 100%;

	font-size: 3rem;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;

	color: var(--primary-color);
	background-color: var(--secondary-color);

	flex-shrink: 0;
}

.text-button:active {
	background-color: var(--secondary-color-darker);
}

.text-button.disabled {
	cursor: default;
	opacity: 0;
}

.backdrop-dark {
	backdrop-filter: brightness(0.4);
}

.header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;

	width: 100%;
	padding: 15px;
	box-sizing: border-box;

	font-size: 1.8rem;
	font-weight: 800;

	color: var(--secondary-color);
}

.title {
	font-style: italic;
}

.header-bar .title {
	margin-right: 10px;
	color: var(--primary-color);
}

.content {
	padding: 10px;
	box-sizing: border-box;

	display: flex;
	flex-direction: column;

	width: 100%;
	height: 100%;
}

.pdf-wrapper {
	display: flex;

	justify-content: center;
	align-items: center;

	position: relative;
	width: 100%;
	height: 100%;
}

#pdf {
	display: block;
	position: absolute;
	max-height: 100%;
	max-width: 100%;
	box-shadow: 
		var(--border-width)
		var(--border-width)
		0px 0px
		var(--secondary-color);

	background: var(--primary-color);
	background-image: var(--loading-spinner-img);
	background-position: center;
	background-size: 48px;
	background-repeat: no-repeat;
}

.modal-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	width: 100vw;
	height: 100vh;
	top: 0px;
	left: 0px;
	background: #000000B0;
}

.modal {
	display: flex;
	flex-direction: column;
	
	gap: 20px;
	padding: 20px;

	background: var(--background-color);
	box-shadow: 
		var(--border-width)
		var(--border-width)
		0px 0px
		var(--secondary-color);
	box-sizing: border-box;

	min-width: 320px;
	min-height: 180px;
	
	max-width: 50vw;
	max-height: 90vh;
}

.modal div {
	box-sizing: border-box;
}

.modal .title {
	width: 100%;
	text-align: center;
}

.modal .body {
	flex: 1;
	height: 100%;
	gap: 15px;
}

.modal .buttons {
	display: flex;
	gap: 15px;
	width: 100%;
	justify-content: space-evenly;
	align-items: center;
}

.modal .buttons button {
	width: 100%;
}

.footer {
	padding: 15px;
	box-sizing: border-box;
	font-weight: 900;
}

button, input[type=button] {
	border: none;
	padding: 10 15px;
	text-transform: uppercase;
	color: var(--primary-color);
	background-color: var(--secondary-color);
	cursor: pointer;
}

button:active, input[type=button]:active {
	background-color: var(--secondary-color-darker);
}

input[type=text], input[type=password], select {
	border: none;
	padding: 10 15px;
}

.error-toast {
	position: absolute;
	bottom: 0px;
	width: 100%;
	padding: 15px;
	box-sizing: border-box;
	text-align: center;
	background-color: var(--error-background-color);
}

a {
	color: var(--secondary-color-lighter);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}