@font-face {
	font-family: 'Proxima Nova';
	src: url('./proximanova.ttf');
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	margin: 20px;
	background-color: var(--color_bg);
	color: var(--color_txt);
	font-family: 'Proxima Nova';
	letter-spacing: 1px;
	font-size: 120%;
	display: flex;
	flex-direction: column;
	row-gap: 20px;
}

span {
	display: inline-block;
	width: fit-content;
}

a {
	color: var(--color_link);
	text-decoration: inherit;
	outline: none;
	transition: color 0.5s;
	cursor: pointer;
	user-select: none;
}

a:hover {
	color: var(--color_link_hover);
}

table, th, td {
	border: 1px solid white;
	border-collapse: collapse;
}

th, td {
	padding: 5px 10px;
}

table.no-border, table.no-border th, table.no-border td {
	border: 0 solid white;
}

input[type=text], textarea, input[type=number] {
	height: 1.5em;
	line-height: 1.2em;
	width: calc(100% - 12px);
	min-width: 256px;
	min-height: 1.5em;
	padding: 3px 6px;
	border: none;
	border-radius: 2px;
	font-family: 'Proxima Nova';
	letter-spacing: 1px;
	background-color: var(--color_input);
	color: var(--color_input_txt);
}

input[type=text]:focus, textarea:focus, input[type=number]:focus {
	outline: none;
	box-shadow: 0 0 5px red;
}

input[type=color] {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	padding: 0;
	border-radius: 5px;
	cursor: pointer;
}

input[type=color]::-webkit-color-swatch-wrapper {
	padding: 0;
}

input[type=color]::-webkit-color-swatch {
	border: none;
}

input[type=range] {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	background: var(--color_scrollbar_thumb_bg);
	height: 12px;
	border-radius: 6px;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	margin-top: 0px;
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	background-color: var(--color_scrollbar_track_bg);
	height: 12px;
	width: 12px;
	border-radius: 6px;
}

select {
	font: inherit;
	font-style: inherit;
	letter-spacing: inherit;
	font-size: 0.8em;
	outline: none;
}

.button-positive {
	width: fit-content;
	height: fit-content;
	border-radius: 5px;
	padding: 0 10px;
	color: var(--color_btn);
	/* transition: color 0.5s; */
	cursor: pointer;
	user-select: none;
}

.button-positive:hover {
	color: var(--color_btn_hover);
}

.button-positive-2 {
	width: fit-content;
	height: fit-content;
	border-radius: 5px;
	padding: 10px;
	color: var(--color_btn);
	/* transition: color 0.5s, outline 0.5s; */
	cursor: pointer;
	user-select: none;
	outline: 2px solid var(--color_btn);
}

.button-positive-2:hover {
	color: var(--color_btn_hover);
	outline: 2px solid var(--color_btn_hover);
}

.button-negative {
	width: fit-content;
	height: fit-content;
	border-radius: 5px;
	padding: 10px;
	background-color: var(--color_btn);
	/* transition: background-color 0.5s; */
	cursor: pointer;
	user-select: none;
}

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

.checkbox {
	width: 20px;
	height: 20px;
	border-radius: 5px;
	color: var(--color_btn);
	outline: 2px solid var(--color_btn);
	cursor: pointer;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.checkbox:hover {
	color: var(--color_btn_hover);
	outline: 2px solid var(--color_btn_hover);
}

.checkbox.selected::after {
	content: '✔';
	font-size: 15px;
}

.content-container-vertical {
	display: flex;
	flex-direction: column;
	row-gap: 20px;
}

.content-container-horizontal {
	display: flex;
	justify-content: space-evenly;
	column-gap: 20px;
}

.content-header {
	line-height: 50px;
	font-size: 30px;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.content-header-2 {
	line-height: 40px;
	font-size: 20px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

[contenteditable=true] {
	cursor: text;
	outline: none;
}

[contenteditable=true]::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color_txt);
  transform-origin: bottom right;
  transition: background-color 0.5s, transform 0.25s ease-out;
}

[contenteditable=true]:focus::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

[placeholder]:empty::before {
    content: attr(placeholder);
}

[placeholder]::placeholder {
	color: var(--color_txt2);
}

.content-text {
	padding: 0 20px;
	line-height: 30px;
	text-align: justify;
}

.content-caption {
	padding: 0 20px 10px;
	text-align: justify;
	line-height: normal;
	font-size: small;
	align-self: center;
}

.content-image img {
	max-width: 100%;
}

.content-table {
	padding: 0 20px;
}

.content-table table {
	width: 100%;
}

.content-break-vertical {
	width: 100%;
	height: 64px;
}

.content-break-horizontal {
	height: 100%;
	width: 64px;
}

.content-divider-vertical {
	height: 100%;
	width: 0.2em;
	border-radius: 0.1em;
	background-color: var(--color_txt);
}

.content-divider-horizontal {
	width: 100%;
	height: 0.2em;
	border-radius: 0.1em;
	background-color: var(--color_txt);
}

.content-line-centered {
	width: 100%;
	display: flex;
	column-gap: 5px;
	align-items: center;
}

.content-line-centered::before, .content-line-centered::after {
	content: '';
	flex-grow: 1;
	background-color: var(--color_txt);
    height: 2px;
}

/* Don't use this. Use [.popup] below. */
.popup-bounding {
	display: flex;
	position: fixed;
	justify-content: center;
	align-items: center;
	pointer-events: none;
	top: 0;
	left: 0;
	z-index: 97;
	width: 100vw;
	height: 100vh;
	background-color: var(--color_popup_bg);
}

.popup {
	display: flex;
	flex-direction: column;
	row-gap: 20px;
	align-items: center;
	z-index: 98;
	background-color: var(--color_bg);
	padding: 20px;
	margin: 20px;
	max-height: calc(100vh - 80px);
	max-width: calc(100vw - 80px);
	border-radius: 10px;
	background-clip: padding-box;
	overflow-y: auto;
}

.popup .content-container-vertical {
	display: flex;
	min-width: auto;
	flex-direction: column;
	row-gap: 20px;
}

#toast-popup, #hover-popup {
	position: fixed;
	border-radius: 5px;
	color: var(--color_toast_txt);
	background-color: var(--color_toast_bg);
	border: 2px solid var(--color_toast_border);
	max-width: 200px;
	padding: 10px;
	z-index: 99;
	user-select: none;
}

#bottom-bar {
	position: fixed;
	z-index: 50;
	bottom: 20px;
	right: 20px;
	height: 30px;
	width: calc(100% - 40px);
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	column-gap: 20px;
	pointer-events: none;
}

#bottom-bar > * {
	pointer-events: auto;
	user-select: none;
	filter: var(--color_svg);
	height: 100%;
}

#bottom-bar > *:hover {
	filter: var(--color_svg_hover);
	cursor: pointer;
}

/* Better to copy this to exported website */
#loading {
	display: flex;
	position: fixed;
	justify-content: center;
	align-items: center;
	top: 0;
	left: 0;
	z-index: 100;
	width: 100vw;
	height: 100vh;
	background: var(--color_bg);
	cursor: wait;
}



*::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: var(--color_scrollbar_track_bg);
}

*::-webkit-scrollbar {
	height: 12px;
    width: 12px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: var(--color_scrollbar_thumb_bg);
}

*::-webkit-scrollbar-thumb:hover {
	background-color: var(--color_scrollbar_thumb_bg_hover);
}

::-webkit-scrollbar-corner {
	opacity: 0;
}