/* I need to put some order in there… */

@font-face {
  font-family: OpenDyslexic;
  src: url('/frAZE/resources/OpenDyslexic/OpenDyslexic-Regular.otf');
}

@font-face {
  font-family: OpenDyslexic;
  src: url('/frAZE/resources/OpenDyslexic/OpenDyslexic-Bold.otf');
  font-weight: bold;
}

@font-face {
  font-family: OpenDyslexic;
  src: url('/frAZE/resources/OpenDyslexic/OpenDyslexic-Italic.otf');
  font-style: italic;
}

@font-face {
  font-family: OpenDyslexic;
  src: url('/frAZE/resources/OpenDyslexic/OpenDyslexic-BoldItalic.otf');
  font-weight: bold;
  font-style: italic;
}


html, body {
	margin: 0;
	padding: 0;
	line-height: 1.5;
}

b {
	font-weight: bold;
}

i, cite {
	font-style: italic;
}

i[title*="Pronoms"] {
	position: relative;
	text-decoration: underline dashed #666;
}

.pronouns-popup {
	display: block;
	position: absolute;
	top: 1.2em;
	font-style: normal;
	border: 2px solid #000;
	background-color: #FFF;
	padding: 2px;
	font-size: 0.9em;
}

button {
	cursor: pointer;
}

.small-caps {
	font-variant: small-caps;
}

#scroll-to-top {
	position: fixed;
	right: 5px;
	bottom: 5px;
	text-decoration: none !important;
	color: #000 !important;
	height: auto;
	width: 1.4em;
	text-align: center;
}

.green-frame {
	border: 2px #3A4 solid;
	background-color: #9E7;
}

.purple-frame {
	border: 2px #606 solid;
	background-color: #FBF;
}

.maxwidth {
	max-width: 900px;
	box-sizing: border-box;
}

#banner {
	display: block;
	height: 120px;
	background: no-repeat center url('/frAZE/images/banner.png'), linear-gradient(0deg,
		rgb(102,0,102) 0%,
		rgb(102,0,102) 33%,
		rgb(170,170,170) 34%,
		rgb(170,170,170) 65%,
		rgb(170,221,119) 66%,
		rgb(170,221,119) 100%
	);  /* For local testing */
	border-bottom: 1px solid #666;
}

#main-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin: 10px auto;
	text-align: center;
}

#main-nav > * {
	margin: 5px 15px;
	font-size: 0.85em;
}

#options-button {
	padding: 4px;
}

#options-button:hover {
	border-style: inset;
}

#options-panel {
	display: none;
	position: relative;
	margin: 20px auto;
	padding: 0 20px;
	border-width: 4px;
	text-align: center;
}

.close {
	position: absolute;
	top: 5px;
	right: 5px;
	background-color: #FFF;
	border: 2px solid #000;
	padding: 4px;
	font-size: 0.8em;
}

.close:hover {
	border-style: inset;
}

#reset-options {
	background-color: #FFF;
	border: 2px solid #000;
	padding: 4px;
	margin-bottom: 20px;
	font-size: 0.9em;
}

#reset-options:hover {
	border-style: inset;
}

.option {
	text-align: left;
}

.option > * {
	vertical-align: middle;
}

.option input[type='number'] {
	min-width: 25px;
	width: 4em;
	font-size: 0.9em;
	text-align: right;
}

.option input[type='range'] {
	-webkit-appearance: none;
	appearance: none;
	background-color: #FEF;
	border-radius: 5px;
	vertical-align: middle;
}

.option select, .option option {
	font-size: 0.9em;
}

#announcement {
	border-width: 4px;
	padding: 0 10px;
	margin: 0 auto 20px;
	text-align: center;
	font-size: 0.9em;
}

main, section {
	padding: 5px;
}

#issue-index-nav {
	display: inline-block;
	margin: 2em 0;
	text-align: left;
}

a:not(#banner) {
	text-decoration: underline #606 solid;
	color: #000;
}

a:not(#banner):visited {
	color: #666;
	text-decoration: underline #3A4 solid;
}

a:not(#banner):hover {
	text-decoration: underline #606 double;
}

a:not(#banner):visited:hover {
	text-decoration: underline #3A4 double;
}

#flex {
	position: relative;
	display: flex;
	flex-direction: row;
}

article {
	flex: 3 2 auto;
	vertical-align: top;
	margin: 15px auto;
	margin-bottom: 0;
	padding: 0 15px;
}

article h1 {
	text-align: center;
	margin-bottom: 0;
}

.subtitle, .author {
	margin-top: 0;
	font-size: 0.9em;
	text-align: center;
	font-weight: normal;
	font-style: italic;
}

article h2 {
	font-size: 1.2em;
	margin-top: 3em;
}

article h3:not(:first-of-type) {
	margin-top: 3em;
}

#themes {
	text-align: center;
	padding: 5px;
	margin-bottom: 3em;
}

.foreword {
	margin: 0 auto;
}

#footnotes {
	border-top: 2px solid #9E7;
	margin-top: 20px;
	padding: 20px;
	font-size: 0.8em;
}

article img {
	max-width: 100%;
	max-height: 90vh;
	display: block;
	margin: auto;
}

hr[data-sep] {
	border: none;
}

hr[data-sep]::after {
	content: "⎯⎯ " attr(data-sep) " ⎯⎯";
	color: #666;
}

ul {
	list-style: url('/frAZE/images/spade.svg') outside;
}

ul > li > ul {
	list-style: url('/frAZE/images/arrow.svg') outside;
}

ul > li > ul > li > ul {
	list-style: url('/frAZE/images/agender.svg') outside;
}

li.nostyle {
	list-style: none;
}

li {
	margin: 5px 0;
}

.center {
	text-align: center;
}

.alinea {
	text-indent: 2em;
}

.alinea-double {
	text-indent: 4em;
}

.inside-alinea {
	margin-left: 2em;
}

.top-space {
	margin-top: 3em;
}

table {
	border-collapse: collapse;
}

th, td {
	border: 1px solid #606;
	padding: 2px 5px;
}

th {
	background-color: #9E7;
}

figcaption {
	color: #666;
	font-size: 0.9em;
}

#hide-menu {
	position: absolute;
	top: 0;
	right: 10px;
	padding: 2px;
	padding-right: 6px;
}

#hide-menu:hover {
	border-style: inset;
}

#hide-menu > * {
	cursor: pointer;
	vertical-align: middle;
}

aside {
	/*flex: 2 3 auto;*/
	flex: 2 300px;
	min-width: 300px;
	vertical-align: top;
	margin-right: 15px;
	margin-top: 70px;
	margin-bottom: 0;
	border-left: 2px solid #606;
}

aside > * {
	margin-left: 15px;
}

#bio {
	padding: 3px;
	margin-bottom: 20px;
	font-size: 0.9em;
}

#bio p:last-of-type {
	margin-bottom: 0;
}

.grey {
	color: #666;
}

#issue-nav {
	margin-bottom: 40px;
}

#issue-nav ul {
	margin-top: 2px;
}

#issue-nav .current {
	font-weight: bold;
}

footer {
	padding: 1em;
	font-size: 0.8em;
	border-top: 2px #606 solid;
	text-align: center;
}

div:not(#flex) + footer {
	margin-top: 40px;
}

@media (max-device-width: 800px) {
	#main-nav, #flex {
		flex-direction: column;
	}

	#announcement {
		margin-bottom: 0;
	}

	#hide-menu {
		display: none;
	}

	aside {
		min-width: 100%;
		margin: 20px 0;
		padding: 10px;
		border-left: 0;
		border-top: 2px solid #606;
	}

	aside > * {
		margin-left: 0;
	}
}
