/*
 * panel.css — everything inside the content panel: overlay typography, the
 * lists/buttons used by the HTML fragments, and the AES file-encryption form.
 *
 * Ported from the original ostyle.css. The #overlay block (sizing + typography)
 * is consolidated here so the panel owns all of its own styling; base.css no
 * longer also styles #overlay. Colours reference the base.css token set, plus
 * one panel-scoped token for the file-tool accent.
 */

:root {
	--color-filecrypt: #df474b;
}

#overlay {
	padding: 0 35px;
	text-transform: none;
	font-weight: normal;
	font-style: normal;
	font-size: 18px;
	min-height: 400px;
	min-width: 280px;
	text-align: justify;
}

#overlay h2 {
	font-size: 24px;
	font-style: normal;
	white-space: pre-line;
	font-weight: bold;
	color: var(--color-text);
	padding: 0 0 10px 0;
	text-shadow: none;
}

#overlay h2 > a {
	color: var(--color-text-dark);
}

#overlay h3 {
	font-size: 20px;
	font-style: normal;
	white-space: pre-line;
	font-weight: bold;
	color: var(--color-text);
	padding: 0 0 10px 0;
	text-shadow: none;
}

#overlay h3 > a {
	color: var(--color-text-dark);
}

#overlay p:not(.indented) {
	padding: 0 0 10px 0;
	text-align: justify;
}

#overlay .indented {
	padding: 0 0 10px 5px;
	text-align: justify;
}

#overlay .blacktext {
	color: var(--color-text);
}

#overlay .dotlist {
	list-style-type: disc;
	margin-left: 40px;
}

#overlay .numberlist {
	list-style-type: decimal;
	margin-left: 40px;
}

.buttoncanvas {
	padding: 0 0 20px 0;
}

.backbutton, .backbutton:link, .backbutton:visited {
	position: relative;
	top: 0;
	left: 0;
	cursor: pointer;
	color: var(--color-text-light);
	text-decoration: none;
	display: inline-block;
	padding: 4px 12px;
	font-family: 'PT Sans';
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	background-color: var(--color-surface-dark);
	border-radius: 2px;
}

.backbutton:hover {
	color: var(--color-text-light);
	background-color: rgba(0, 0, 0, 1);
}

/* AES file-encryption form. */
.filecryptgrp {
	display: block;
	text-align: justify;
	margin: 20px auto 0 auto;
	width: 270px;
	padding: 10px 45px;
	border-radius: 3px;
	border: 1px solid var(--color-filecrypt);
}

input[type="file"] {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

input[type="file"] + label {
	display: inline-block;
	cursor: pointer;
	width: 165px;
	padding: 5px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--color-filecrypt);
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	border-radius: 3px;
	border: 1px solid var(--color-filecrypt);
}

input[type="file"] + label:hover {
	background-color: var(--color-filecrypt);
	color: var(--color-text-light);
}

input[type="file"] + label svg {
	width: 1em;
	height: 1em;
	vertical-align: middle;
	fill: currentColor;
	margin-top: -0.25em;
	margin-right: 0.25em;
}

.passfield {
	display: block;
	width: 178.333px;
	padding: 1px 0 5px 0;
	text-align: right;
}

input[type="password"] {
	display: inline-block;
	width: 90px;
}

#decerr {
	display: none;
	padding: 0 0 10px 0;
	color: red;
	font-size: 11px;
}

.fcbutton {
	cursor: pointer;
	display: block;
	font-family: 'PT Sans Narrow';
	width: 120px;
	padding: 3px 0;
	font-size: 14px;
	font-weight: 700;
	background-color: var(--color-surface-dark);
	color: var(--color-text-light);
	border-width: 0;
	outline: 0;
	border-radius: 3px;
}

.fcbutton[disabled="disabled"], .fcbutton:disabled {
	cursor: default;
	background-color: gray;
}

.fcbutton:hover:enabled {
	background-color: var(--color-bg);
}

@media only screen and (orientation: portrait) and (max-width: 450px) and (max-height: 950px),
	only screen and (orientation: landscape) and (max-height: 450px) and (max-width: 950px) {
	#overlay {
		padding: 10px 15px 0 15px;
		text-transform: none;
		font-weight: normal;
		font-style: normal;
		font-size: 18px;
		text-align: justify;
	}

	#overlay h2 {
		white-space: normal;
	}

	#overlay h3 {
		white-space: normal;
	}

	#overlay p {
		padding: 0 0 10px 0;
		text-align: justify;
	}
}
