
/* --- general --- */

body, p, li, h1, h2, h3, h4, h5, h6, input, textarea, select, [contenteditable=true],
	.mdc-text-field__input, .mdc-floating-label {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 16px;
}
p { margin: 0; }
p, li { line-height: 1.5em; }
h1 { font-size: 28px; font-weight: bold; margin: 0 0 0.5em; }
h2 { font-size: 22px; font-weight: bold; margin: 0 0 0.5em; }
h3 { font-size: 18px; font-weight: bold; margin: 0 0 0.5em; }
[contenteditable=true],
.mdc-text-field, .mdc-text-field:not(.mdc-text-field--disabled) {
	background-color: rgba(168, 148, 203, 0.75);
	box-shadow: inset 0px 0px 6px 0px rgba(0,0,0,0.75);
}
input:focus, textarea:focus, [contenteditable=true]:focus {
	outline: none;
}
hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}
a {
	text-decoration: none;
}

/* --- var --- */

@media screen and (min-width: 601px), screen and (min-height: 601px) {
	:root {
		--header-h: 48px;
		--bt-margin: 16px;
		--bt-size: 56px;
	}
}

@media screen and (max-width: 600px), screen and (max-height: 600px) {
	:root {
		--header-h: 24px;
		--bt-margin: 0px;
  		--bt-size: 48px;
	}
}

/* --- app --- */

body {
	overflow: hidden;
}
.app {
	display: flex;
}
.app form {
	margin-block-end: 0;
}
.app>header {
	display: flex;
	flex-direction: row;
	height: var(--header-h);
	width: 100%;
	z-index: 1;
	background-color: white;
	transition: height 0.2s ease;
}
	.app>header button {
		height: var(--header-h);
		width: var(--header-h);
		overflow: hidden;
	}
	.app>header #logo {
		margin-right: auto;
	}
	.app>header h1 {
		height: auto;
		overflow: hidden;
		white-space: nowrap;
	}
	@media screen and (min-width: 601px), screen and (min-height: 601px) {
		.app>header button {
			padding: 6px;
		}
		.app>header button i.material-icons,
		.app>header button i.material-icons-outlined {
			font-size: 36px;
			position: relative;
			top: 0;
		}
		.app>header h1 {
			margin: 10px;
		}
	}
	@media screen and (max-width: 600px), screen and (max-height: 600px) {
		.app>header button {
			padding: 0;
		}
		.app>header button i.material-icons,
		.app>header button i.material-icons-outlined {
			font-size: 28px;
			position: relative;
			top: -2px;
		}
		.app>header h1 {
			margin: 0;
		}
	}
	.app>header #help {
		margin-left: auto;
	}

.app>section {
	position: absolute;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: calc(100% - var(--header-h));
	top: var(--header-h);
	z-index: 0;
	background: linear-gradient(to right, #c6b8df 0%,#886db7 100%);
	transition: height 0.2s ease, top 0.2s ease;
}
	.app>section .ttl {
		color: white;
		text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.75);
	}
	.app>section .out {
		width: 85%;
		overflow: visible;
		display: flex;
		flex-direction: column;
	}
	.app>section .box {
		width: 100%;
		overflow: auto;
		padding: 12px;
		border-radius: 12px;
		background-color: white;
		box-sizing: border-box;
	}
	.app>section .lst {
		padding: 0;
		text-align: center;
	}
	.app>section .lst .elt {
		min-width: 32px;
		min-height: 32px;
		overflow: auto;
		margin: 4px;
		padding: 12px;
		border-radius: 12px;
		background-color: white;
		box-sizing: border-box;
		display: inline-block;
	}

.app .modal {
	position: absolute;
	display: none;
	left: 0; top: 0;
	width: 100%; height: 100%;
	background-color: black;
	opacity: 0.2;
	z-index: 1;
}
.app .menu {
	z-index: 2;
}
.app .draft {
	opacity: 0.33;
}

@media screen and (min-width: 601px), screen and (min-height: 601px) {
	.app>section .out {
		max-width: calc(100% - 176px);
		max-height: calc(100% - 176px);
	}
}

@media screen and (max-width: 600px), screen and (max-height: 600px) {
	.app>section .out {
		max-width: calc(100% - 96px);
		max-height: calc(100% - var(--header-h));
	}
}

/* --- mobile --- */

@media screen and (min-width: 601px) {
	.app .desk { }
	.app .mobi { display: none !important; }
}

@media screen and (max-width: 600px) {
	.app .desk { display: none !important; }
	.app .mobi { }
}

/* --- buttons --- */

.app .mdc-fab { background-color: #886db7; }
.app .mdc-fab { width: var(--bt-size); height: var(--bt-size); }
.app .mdc-fab.bt { background-color: transparent; }
.app .mdc-fab.tl { position: fixed; top: calc(var(--header-h) + var(--bt-margin)); left: var(--bt-margin); }
.app .mdc-fab.tr { position: fixed; top: calc(var(--header-h) + var(--bt-margin)); right: var(--bt-margin); }
.app .mdc-fab.bl { position: fixed; bottom: var(--bt-margin); left: var(--bt-margin); }
.app .mdc-fab.br { position: fixed; bottom: var(--bt-margin); right: var(--bt-margin); }
.app .mdc-fab.mr { position: fixed; top: calc(50% - var(--header-h)/2); right: var(--bt-margin); }
