@import url("/assets/css/vars.css");

html, body {
	margin: 0;
	padding: 0;
	background-color: var(--blue);
	font-family: monospace;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-size-adjust: none;
}

body {
	min-height: 100vh;
	display: grid;
	grid-template-rows: min-content 1fr min-content;
}

/*********************
       LAYOUT
*********************/

#wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	align-items: center;
	/* padding: 30px 0; */
}

footer,
#head {
	width: var(--width);
}


footer {
	margin-top: -25px;
}
footer > div { text-align: center; }

header {
	text-align: center;
	color: var(--black);
}

header > h1 { margin-top: 0; }
header > h3 { margin-bottom: 0; }

#content {
	width: var(--width);
	display: flex;
	margin-bottom: 30px;
}

/* #content > * { margin-bottom: auto; } */

#left {
	margin-top: 9px;
	display: flex;
	min-width: 150px;
	max-width: 150px;
	/* min-width: 10.2em; */
	height: calc(100% - 21px);
}

#left > nav {
	display: block;
	width: 100%;
	padding: 15px 7px !important;
	height: calc(100% - 25px);
}

#logo {
	width: 100%;
	display: block;
	top: 0;
	margin: -25px auto -10px !important;
}

#left ul,
#left li {
	list-style: none;
	padding: 0;
	margin: 0;
	text-indent: 0;
}

.left-links {
	display: block;
	width: 100%;
	margin: 2px 0;
}

.left-links > li > a {
	display: block;
	width: 100%;
}

#left-buttons {
	padding-bottom: 10px !important;
}

#left-buttons > li {
	text-align: center;
}

#right {
	width: var(--width-right);
	min-width: var(--width-right);
	max-width: var(--width-right);
	display: flex;
	flex-direction: column;
	margin-left: 25px;
	height: calc(100% - 20.5px) !important;
}



#main > div {
	margin-top: 14px;
	max-height: calc(100% - 25px) !important;
	height: calc(100% - 25px) !important;
}
#main {
	width: var(--width-right);
	height: 100%;
	margin-bottom: 0px !important;

	/* margin-left: 22px !important; */
}

#bottom { width: var(--width) }

#remark42 {
	display: block;
	z-index: 10;
	float: right !important;
	width: calc(var(--width-right) + 5px + 30px - 5px );
	/* height: calc(100% - 10px) !important; */
	margin-left: -15px;
	margin-right: 15px !important;
	margin-bottom: 1px !important;
}

/* #remark42 > iframe {
	height: 1000px !important;
} */

#touhous {
	margin-top: 15px;
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: nowrap;
	width: var(--width);
	text-align: right;
	overflow: hidden;
	text-overflow: clip;
	white-space: nowrap;
}

.title {
	margin: 0 auto 20px;
	text-align: center;
	font-size: 35px;
}

.subtitle {
	width: 100%;
	text-align: left;
	font-size: 20px;
	font-weight: 500;
	text-justify: newspaper;
	margin-bottom: 5px;
}

.title_s {
	margin-bottom: 3px;
}

.tags {
	display: inline;
}

.table-name {
	width: 5.5em;
	vertical-align: top;
}


.code-comparison {
	table-layout: fixed;
	width: 100%;
}

code.comparison {
	font-size: 14px !important;
}

.image {
	max-width: min(100%, calc(var(--width-right) - 4em - 2px));
	border-color: var(--black);
	border-width: 13px;
	object-fit: contain;
}

.image-center {
	max-width: min(100%, calc(var(--width-right) - 4em - 2px));
	border-color: var(--black);
	border-width: 13px;
	object-fit: contain;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* .code-comparison > .code-toolbar {
	width: 100px !important;
} */

/*********************
        STYLE
*********************/

.text { hyphens: auto; }

.hoverable { text-decoration: none; }

a.btn-light {
	text-decoration: none;
	color: var(--red);
}
a.btn-light:focus,
a.btn-light:hover {
	text-decoration: none;
	color: var(--white);
	background-color: var(--red);
}

a.btn-blue {
	text-decoration: none;
	color: var(--dblue);
}
a.btn-blue:focus,
a.btn-blue:hover {
	color: var(--white);
	background-color: var(--dblue);
}

a.nostyle {
	color: var(--black);
	text-decoration: none;
}

.box {
	margin-bottom: 30px;
	box-shadow: 11px 14px 0px var(--bblack);
	background-color: var(--white);
	align-self: center;
	justify-self: center;
	position: relative;
}

.inner {
	border: 1px solid var(--bblack);
	margin: 15px 7px;
	padding: 15px 20px;
	color: var(--black);
	box-sizing: border-box;
}

#article-nav { width: 100%; }
#article-nav >* td { width: 50%; vertical-align: top; }
#article-nav >* td:nth-child(2) { text-align: right; }

#article-nav >* h3 {
	margin-top: 0px;
	margin-bottom: 2px;
	text-decoration: none;
}
#article-nav >* a {
	text-decoration: none;
	color: var(--black);
}
#article-nav >* div > a:hover { color: var(--bwhite); }
#article-nav >* h3 > a:hover { text-decoration: underline; }


/* h2 { text-align: center; } */

h5 {
	font-weight: lighter;
	font-style: italic;
}

a.bigref {
	display: inline-block;
	font-size: 2em;
	color: var(--dblue);
	text-decoration: none;
}

a.bigref ~ h2 {
	display: inline-block;
	line-break: strict;
}

a.bigref ~ h2::after {
	display: block;
}

a.ref {
	display: inline-block;
	font-size: 1.17em;
	color: var(--dblue);
	margin-top: 20px;
}

a.ref ~ p {
	margin-top: 5px;
}

a.ref:hover {
	text-decoration: none;
	color: var(--white) !important;
	background-color: var(--dblue) !important;
}

a.ref ~ h3 {
	display: inline;
	line-break: strict;
	margin-bottom: 0px;
	margin-top: 20px;
}

a.ref ~ h3::after {
	display: block;
}

.button { text-decoration: none; }
.button::before { content: "<"; }
.button::after { content: ">"; }

article p {
	margin-bottom: 3px;
}

article ul {
	list-style: symbols("-");
}

article ul {
  margin: 0;
	list-style-type: none;
}

article ul > li {
  text-indent: -15px;
}

article ul > li:before {
  content: "- ";
  text-indent: -5px;
}

/* article a.ref {
	display: block;
	width: 100%;
} */

article h2 {
	display: block;
	margin-left: auto;
	width: 100%;
	text-decoration: underline;
	float: right;
	right: 0;
}

article h2 > a::after {
	content: "\00B6";
	float: left;
	position: absolute;
	left: 0;
}
