body {
	display: flex;
	
	background-color:#222222;
	height:100%;
	margin:0px;
	margin-top:1em;
}

#background {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	color: #111111;
	display: inline-block;
	z-index: -10000;
	position: fixed;
	word-break: break-all;
	top: 0;
	transform: rotate(14deg);
	margin: -50%;
	font-family: consolas;
}

.hljs {
	overflow: hidden;
	background: none !important;
	display: inline !important;
	padding: 0 !important;
	font-family: consolas !important;
}

.noselect {
    /* Disable text selection in background */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently not supported by any browser */
}

#wrapper {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#padding-top {
	flex: 1;
	min-height: 25px;
}

#padding-bottom {
	flex: 3;
}


#main {
	display: flex;
	flex-direction: column;
	
	color: #FF8000;
	background-color: #000000;
	font-family: sans-serif;
	font-size: 12px;

	border-style: solid;
	border-width: 1px;
	border-color: #FF8000;

	width: 86%;
	min-width: 320px;
}


@media only screen and (max-width: 800px) {
	#main {
		width:100%;
		left:0%;
	}
}


#title {
/*	background-image:url("img/code.png");*/
/*	display: flex; */
	position: relative;
	width:100%;
	height:96px;
	border-bottom-style:solid;
	border-color:#FF8000;
	border-width:1px;
	overflow: hidden;
}
#valid {
	position:absolute;
	right:0px;
	margin:3px;
}
#title div.inner {
	display: flex;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	overflow: hidden;
	height: 100%;
}
#title div.support {
	display: none;
	float: right;
	border-left: 1px solid #ff8000;
	background-color: black;
	height: 96px;
}
#title div.support div {
	display: inline-block;
	
	vertical-align: 13px;
	font-size: 20px;
	transform: rotate(270deg);
	width: 22px;
	white-space: nowrap;
}
#title div.support a {
	line-height: 0;
}
#title div.codeline {
    writing-mode: vertical-lr;
	transform: rotate(194deg);
	font-size: 11px;
	width: 13px;
}

#title div.codeline pre {
	margin: 0;
}

#menu {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	
	border-top: 1px solid black;
	border-left: 1px solid black;
	
	background-color:#FF8000;
}
#menu > .button {
	text-decoration: none;
	text-align: center;
	color: #FFE6BF;
	background-color: #FF8000; 
	font-weight: bold;
	font-size: 18px;
	padding: 0px 5px 0px 3px;
	
	border-style: none solid solid none;
	border-width: 1px;
	border-color: black;

	flex-grow: 1;
}
#menu > .button:hover {
	color:#000000;
	background-color:#FFCC80;
}
#menu > .button.selected {
	background-color:black;
	color:#FF8000;
}

#content {	
	border-top-style:solid;
	border-color:#FF8000;
	border-width:1px;

	margin-bottom:3em;
	
	min-height:100ex;
}

.inner-content {
	margin-top:3px;
	margin-left:10px;
	margin-right:5px;
	margin-bottom:5px;
}

#footer
{
	border-top-style:solid;
	border-color:#FF8000;
	border-width:1px;
	
	padding:2px 2px 0px 2px;
}

h1
{
	font-size:17px;
}

h2
{
	font-size:13px;
	font-style:italic
}

.section
{
	margin-bottom:2em;
}
.sectiontext
{
	margin-left:3em;
}

.download
{
	color:#99FF00;
	background-color:green;
	text-decoration:none;
	font-size:20px;
	padding:2px 5px 2px 3px;
	border-color:#99FF00;
	border-style:solid;
	border-width:1px;
}
.download:hover
{
	color:black;
	background-color:#99FF00;
}


img.cimage
{
	border-style:solid;
	border-width:1px;
	border-color:#FF8000;
}
img.cimage:hover
{
	border-color:#99FF00;
}

li
{
	font-size:12px;
}
.biglist
{
	font-size:15px;
	margin-bottom: 1em;
}

.citem
{
	margin-left:1em;
	vertical-align:50%;
}
.citem.nomargin {
	margin-left: 0;
	vertical-align: 50%;
}

.debug
{
	border-style:solid;
	border-width:1px;
	border-color:red;
}

img.gallery
{
	border-style:solid;
	border-width:1px;
	border-color:#FF8000;

	width:12%;

	margin:1%;
}

img.gallery:hover
{
	border-color:#99FF00;
}


.galleryframe
{
	margin: auto;
}

.viewcontent {
	margin:5px;
}

.viewpanel
{
	float:right;
	width:25%;
	
	color:grey;
}

.exif {
	margin:1em;
}

div.controls {
	position:relative;
	margin:1em;
}

span.controls {
	margin:5px;
}

/* RESTRICTED ACCESS */
.restricted_background {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;    
}

.restricted_content {
	border-style:solid;
	border-color:#FF8000;
	border-width:5px;
	
	background-color:black;
	
	padding:2em;
	
	width:40em;
	
	margin: 10em auto;
	
	color:#FF8000;
	text-align:center;
}

.restricted_content h1 {
	font-size:2em;
	font-weight:bold;
	margin:0px;
}

.restricted_content p {
	margin: 1em 0px 0.2em 0px;
}

.restricted_content input {
	border-style:solid;
	border-width:2px;
	border-color:#FF8000;
	
	color:#FF8000;
	background-color:lightgray;
	text-align:center;
	
	width:30em;
}

/* Image directory listing */
.logout {
	border-style:solid;
	border-color:#FF8000;
	border-width:1px;
	
	margin-top:1em;
	margin-left:10px;
	margin-right:10px;
	margin-bottom:0px;
	
	border-bottom-width:0px;
	padding:1px;
}

.listing {
	border-style:solid;
	border-color:#FF8000;
	border-width:1px;
	
	color:#FF8000;
	margin-top:0px;
	margin-left:10px;
	margin-right:10px;
	margin-bottom:1em;
	
	padding: 0.5em;
}

.listing a {
	margin: 0.1em;
	display:inline-block;
}

/* Image show */
.image_show_back {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	
/*	border-color:blue;
	border-style:solid;
	border-width:5px;*/
}

.image_show_container {
	border-style:solid;
	border-color:#FF8000;
	border-width:1px;
	
	height:90%;
	padding:1px;
	
	margin-top:0px;
	margin-left:10px;
	margin-right:10px;
	margin-bottom:0em;
}

.image_show_image {
	width:100%;
	height:100%;
}

.lbutton {
	float:right;
}

.previewlink
{
	color:#99FF00;
	text-decoration:none;
	font-size:8px;
	padding:2px;
	margin:0.5em !important;
	border-color:#99FF00;
	border-style:solid;
	border-width:1px;
	
	width:128px;
	height:128px;
}
.previewlink:hover
{
	color:black;
	background-color:#99FF00;
}

/* Image show footer */
.image_footer {
	color:#FF8000;
	font-size:9px;
	
	border-style:solid;
	border-color:#FF8000;
	border-width:1px;
	
	/*margin-top:1em;*/
	margin-left:10px;
	margin-right:10px;
	margin-bottom:0px;
	
	
	border-top-width:0px;
	padding:1px;
}

.gallery_year {
	margin-bottom: 10px;
}

#gallery-wrapper .gallery {
	border: none !important
}

.none {
	display: none;
}
