:root {
	--metaThemeColor: #434343;
	--metaThemeColorDarkMode: #000;
	--lightTextColor: #fff;
	--darkTextColor: #000;
	--lightmodeBackgroundColor: #fff;
	--darkmodeBackgroundColor: #000;
	accent-color: var(--metaThemeColor);
}

body {
	display: block;
	margin: 0;
	padding: 0;
	border: none;
	-webkit-text-size-adjust: none;
	-ms-text-size-adjust: none;
	text-size-adjust: none;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-size: 0.33cm;
	font-family: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, Lucida Sans, Lucida Grande, Lucida Sans Unicode, HelveticaNeue-Light, HelveticaNeue, Helvetica, Arial, Verdana, sans-serif, caption, noto, 'Segoe UI Emoji', 'Segoe UI Symbol', 'emoji', 'Apple Color Emoji','EmojiSymbols', 'Symbola';
	-ms-word-break: break-all;
	word-break: break-all;
	word-break: break-word;
	overflow-wrap: break-word;
	word-wrap: break-word;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;
	counter-set: inside-cell-no outside-cell-no;
	//scroll-snap-type: y proximity;
	padding-bottom: 124px;
	color: var(--lightTextColor);
	background-color: var(--darkmodeBackgroundColor);
}

a, a:visited {
	color: #3391ff;
}

template {
	display: none;
}

#display {
	display: block;
	width: 100%;
	height: 100%;
	overflow: auto;
	border: 0;
	padding: 0;
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
}

#main {

}

input[type="file"].button {
	position: relative;
    text-indent: 100px;
	text-indent: 8em;
	overflow: hidden;
}

input[type="file"].button::file-selector-button {
	display: inline-block;
	appearance: none;
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	border-top-right-radius: 2px;
	border-bottom-right-radius: 2px;
	border: 0;
	background-color: #252525;
	color: #ffffff;
	
	font-size: 12px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
	text-decoration: none;
	
	transition-property: color, background-color, border, transform;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
}

input[type="file"].button:hover::file-selector-button, input[type="file"].button:focus::file-selector-button {
	background-color: #ffffff;
	color: #252525;
}

.button:disabled, .button[disabled], .button[hidden], input[type="file"].button:disabled::file-selector-button {
    color: rgba(0,0,0,0.7);
    border-color: rgba(0,0,0,0.7);
}

input[type="file"].button:disabled::file-selector-button {
	color: #fff;
	background-color: rgba(0,0,0,0.7);
}

.toast {
	display: block;
	position: fixed;
	bottom: 2px;
	right: 10px;
	height: 2em;
	z-index: 2;
	
	font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 8px;
    color: #ffffff;
    border: 4px solid #252525;
	background-color: #252525;
	
    backface-visibility: hidden;
    width: auto;
    max-width: 100%;
    max-width: calc(100% - 60px);
    border-radius: 8px;
	
	transition-property: transform, opacity;
    transition-duration: 0.5s;
	
	touch-action: none;

	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-o-user-select: none;
	user-select: none;

	nav-index: -1;
	-moz-user-focus: ignore;
	user-focus: ignore;
	-moz-user-input: none;
	user-input: none;
}

.toast:not([hidden]){
	transform: translate3d(0,0,0);
	opacity: 1;
}

.toast[hidden] {
	transform: translate3d(0,calc(2em + 20px + 4px),0);
}

.toast[hidden="until-found"] {
	opacity: 0.1;
}

.toast[hidden="hidden"] {
	opacity: 0;
	
	pointer-events: none;
}

.toast:hover {
	opacity: 0.25;
}

.code {
	display: block;
    background-color: #000000;
    color: #ffffff;
    font-family: monospace;
    height: 120px;
    width: 80%;
    margin: 0 auto;
    overflow: auto;
	
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
	
	white-space: pre-wrap;
	
    box-sizing: border-box;
    border-style: solid;
    border-width: 12px;
    border-radius: 8px;
    border-color: #000000;
}

section.menu-container {
    position: relative;
	padding-bottom: 32px;
}

section.menu-container ul#our-menu {
    display: block;
    box-sizing: border-box;
    border-style: dashed;
    border-width: 4px;
    border-radius: 8px;
    border-color: #252525;
    margin: 0 auto;
    margin-top: 8px;
    margin-bottom: 18px;
    width: calc(100% - 1em);
	padding: 20px;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.loading-dialog {
	background: none;
    border: none;
	overflow: hidden;
	opacity: 0;
	transform: translate3d(0,0,0);
	
	color: var(--lightTextColor);
	background-color: transparent;
}

.loading-dialog[open] {
	opacity: 1;
	animation: fade-in 150ms;
}

.loading-dialog .loading-gear {
	fill: currentColor;
	animation-duration: 3s;
	animation-name: rotate;
	animation-iteration-count: infinite;
}

.loading-dialog .loading-gear path {
	fill: currentColor;
}

.loading-dialog::backdrop {
	background-color: rgb(0 0 0 / 20%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loading-dialog .logger {
	display: block;
    width: 100%;
    height: 1000px;
    position: relative;
}

dialog[open], dialog::backdrop {
	animation: fade-in 200ms;
}

.tool-ui {
	border-radius: 4px;	
	//background-color: rgba(255,255,255,0.9);
    box-shadow: 0 4px 30px rgb(0 0 0 / 10%);
    border: 1px solid rgb(0 0 0 / 30%);
	padding: 4px;
	z-index: 9;
}

.note {
	position: sticky;
    z-index: -1;
    top: 10px;
    left: 100%;
    float: right;
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
}

#app-title {
	background-color: transparent;
}

#app-title svg, #app-title svg path {
	fill: currentColor;
}

#tools {
	position: fixed;
	bottom: 6px;
	left: 6px;
	height: 100px;
	max-width: calc(100% - 8px);
	transition-duration: 1s;
    transition-property: transform,opacity;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

#tools h3 {
	margin: 0;
}

#how-to {
    margin: 0 auto;
    width: 20%;
    text-align: left;
	overflow: auto;
}

#how-to ul {
	padding-inline-start: 2em;
}

#how-to th {
    text-align: left;
}

#how-to td {
    font-family: monospace;
	font-size: 1.1em;
}

@media all and (display-mode: standalone) {
	body {
		overscroll-behavior: none;
	}
}