/* Design and programming by CrisC */

/***** GENERAL *****/
* {
    box-sizing: border-box;
}
body {
	color: #ededed;
	background-color: black;
    font-family: sans-serif;
    font-size: calc(9px + 0.6vh);
}
a:link, a:visited {
	color: #a4e6eb;
	text-decoration: none;
}
hr {
    border: 1px dotted #666;
    margin-bottom: 15px;
	margin-right: 15px;
}
sup, sub {
    font-size: 80%;
	height: 0;
    line-height: 1px;
    position: relative;
    vertical-align: baseline;
	bottom: 1ex;
}
h3 {
	margin-top: 2px;
}
em {
	color: #bbb;
}
button {
	cursor: pointer;
}
#d_wrapper {
    display: flex;
    justify-content: center;
}
#d_content {
	background-color: #222;
	border: 1px solid #555;
	padding: 0;
	width: 100%;
    max-width: 1240px;
}
#d_main {
	padding: 10px 31px 10px 24px;
	transition: filter 0.5s;
}
#t_header {
    background: #444 none repeat scroll 0 0;
    border: 1px solid black;
    border-collapse: collapse;
    font-family: "Times New Roman",Times,serif;
	font-size: 4vw; /* IE11 */
    font-size: 4vmax;
    font-variant: small-caps;
    line-height: 0.8em;
    margin: 0 auto;
    /* max-width: 1024px; commented 2020.07 */
    table-layout: fixed;
    text-align: center;
    text-shadow: 0.2vw 0.2vw 0.1vw black;
    width: 100%;
}
#t_menu {
	font-size: 75%;
	line-height: 0.9em;
}
#t_menu a {
	color: #bbb;
	display: block;
	text-decoration: none;
}
#t_home a {
	color: #777;
	text-decoration: none;
}
#t_home .small {
	color: #777;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	font-size: 35%;
	line-height: 1em;
	text-shadow: 0.1em 0.1em 0.1em black;
	margin-bottom: 0.1em;
}
#t_header td {
	border: 1px solid black;
}
#t_menu td:hover, td.active {
	background: #666;
}
#d_tagcloud a {
  background-color: #444;
  padding: 2px 6px;
  border-radius: 12px;
  line-height: 2em;
}
#d_tagcloud a:hover {
  background-color: #666;
  transition: all 0.3s;
}
#d_results img {
	image-rendering: crisp-edges;
	image-rendering: -moz-crisp-edges; /* Firefox */
	image-rendering: -o-crisp-edges; /* Opera */
	image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming)*/
	-ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
}
#d_footer {
	border-top: 1px solid #888;
	text-align: center;
}
.flag {
	vertical-align: middle;
}
.sticky {
	position: sticky;
	top: 0;
	background-color: rgba(34, 34, 34, 0.7);
	z-index: 4;
}
.info {
	font-style: oblique;
}
.red {
	color: red !important;
}
.fix {
	display: block;
	clear: both;
}
.hidden, .admin {
	display: none;
}

/***** ALERT SCREENS *****/
#d_loading {
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #222;
	color: white;
	z-index: 14;
}
#d_loader {
    border: 12px solid #eee;
    border-top: 12px solid black;
    border-radius: 50%;
    width: 100px;
    height: 100px;
	animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#d_mobile {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 12;
	transform: translate(-50%, -50%);
	background-color: grey;
	text-align: center;
	padding: 10px;
	border: 1px solid white;
	width: 60%;
	box-shadow: 0 0 60px 15px black;
}


/***** LEFT MENU *****/
#d_shader {
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	visibility: hidden;
	background:	repeating-linear-gradient(-45deg, rgba(48, 48, 48, 0.65), rgba(48, 48, 48, 0.65) 6px, rgba(48, 48, 48, 0.7) 6px, rgba(48, 48, 48, 0.7) 12px);
	opacity: 0;
	transition: opacity 1s;
	z-index: 8;
	cursor: url("close_r_32px.png") 16 16, crosshair;
}
#d_shader.active {
	visibility: visible;
	opacity: 1;
	transition: opacity 1s;
}
#d_wrapper.blur {
	filter: blur(4px);
}
#d_menu_left {
	width: 290px;
	position: fixed;
	background-color: darkgrey;
	color: black;
	left: -258px;
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	transition: all 0.5s ease-out;
	z-index: 10;
}
#d_menu_left.open {
	transform: translate(265px, -50%);
	box-shadow: 0 0 12px 2px white;
}
#d_filter {
	padding: 4px;
	background-color: lightgrey;
	margin-right: 32px; /* important */
}
#d_filter select {
	width: 95%;
	margin: 3px;
}
#d_filter input[type=text] {
	width: 93%;
	margin: 3px;
}
#d_filter button {
	font-size: 120%;
	background-color: lightblue;
	border: 1px solid darkgrey;
	display: block;
    margin: 6px auto 1px;
	padding: 4px;
}
select.active, input.active {
	color: red;
	border: 1px solid transparent;
	box-shadow: 0 0 4px 1px red;
}
select option {
	color: black; /* buggy in Firefox */
}
option.default {
	color: lightgrey !important; /* buggy in Firefox */
}
option#o_selected {
	color: red !important; /* buggy in Firefox */
}
#d_label {
	font-size: calc(24px + 0.1vmin);
	width: 1.2em;
	letter-spacing: 0.25em;
	line-height: 0.9em;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	word-wrap: break-word;
	float: right;
}
#s_filter_x {
	color: red;
}


/***** RIGHT SIDE MENU *****/
#d_menu_right {
	position: fixed;
    right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	font-size: calc(36px + 0.5vmin);
}
.right_menu {
    background-color: white;
    color: black;
    cursor: pointer;
    display: flex;
	align-items: center;
    height: 1em;
	width: 1em;
    padding-left: 2px;
	margin-bottom: 3px;
    transition: opacity 1s ease 0s;
	opacity: 0.4;
}
.right_menu:hover {
	opacity: 1 !important;
}
.right_menu a {
	color: black;
}
#d_audio audio {
	display: none;
	margin: 2px;
	color: black;
	position: fixed;
	right: 1em;
	transition: all 1s;
}
#d_com a {
	padding-bottom: 5px;
	font-size: 90%;
}
/* fullscreen fixes for IE & Chrome  */
body:-ms-fullscreen {
	overflow: auto;
}
:-ms-fullscreen .right_menu {
	margin-right: 17px;
}
:-webkit-full-screen {
	background-color: black;
}


/***** SIMPLE IMAGE LAZYLOAD *****/
#d_fullsize .container {
	position: relative;
	float: left;
}
#d_fullsize img {
	display: block;
	background-repeat: no-repeat;
	background-size: 100%;
	opacity: 1;
	transition: opacity 0.5s ease-in;
}
#d_fullsize img.transparent {
	opacity: 0;
}
#d_fullsize .description {
	clear: left;
}
.spin {
	opacity: 0;
	display: block;
	z-index: 10;
	position: absolute;
	top: calc(50% - 30px);
	left: calc(50% - 30px);
	border: 8px solid #eeeeee;
	border-top: 8px solid #000000;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
	animation-play-state: paused;
	transition: opacity 1s;
}
.spactive  {
	opacity: 0.5;
	animation-play-state: running;
}


/***** COMMENTS *****/
#d_respond ol {
    list-style: outside none decimal;
	padding-left: 20px;
}
#d_respond li {
	border: 1px solid #444;
	padding: 10px 10px 0 10px;
	margin: 5px;
	border-radius: 5px;
}
#d_respond li.odd {
	background-color: #111;
}
#d_respond li.even {
	background-color: #333;
}
#d_respond .author {
    color: #787878;
	font-weight: bold;
}
#d_respond .author_date {
	border-bottom: 1px dotted #444;
	margin-bottom: 5px;
}
#d_respond label {
	font-weight: bold;
}
#d_respond input, #d_respond textarea {
	background-color: grey;
	border: 1px solid black;
}
#d_respond input:focus, #d_respond textarea:focus {
	background-color: lightgrey;
}
#d_respond textarea {
	padding: 5px;
	width: 95%;
    overflow: visible; /* for IE11 */
}
#d_respond :required {
  box-shadow: 0 0 8px lightgreen;
}


/***** SCREEN SIZE OPTIMIZATION *****/
@media only screen and (max-width: 1024px), only screen and (max-device-width: 1024px) {
	/* make image scale horizontally to screen size (responsive horizontally) */
	#d_fullsize img {
		max-width: 100%;
		height: auto;
	}
}

@media only screen and (max-height: 640px), only screen and (max-device-height: 640px) {
	/* make image scale vertically to viewport (responsive vertically) */
	/* this can cause some problems with images lazyload, so keep this disable unless necessary */
	#d_fullsize img {
		max-height: 100vh;
		width: auto; /* or use ... object-fit: contain; */
	}
	#d_mobile {
		/* display: inline; */
	}
	#d_previous, #d_next {
		color: darkgreen;
		animation: anim_next_prev 3s linear 5s 10;
	}
	@keyframes anim_next_prev {
		100% { opacity: 1; }
	}
	.sticky {
		position: static;
	}
	#s_sticky {
		display: none;
	}
	#t_header {
		font-size: 5vmax;
	}
}

/* android default browser compatibility */
@supports not (transform: translate(0,0)) {
	#d_mobile, #d_fullscreen {
		display: none;
	}
	#d_menu_left, #d_menu_right {
		margin-top: -150px;
	}
	#d_menu_left.open {
		margin-top: -150px;
		left: 10px;
	}
}

/* android default browser compatibility */
@media screen and (orientation:portrait) {
	#t_header {
		position: sticky;
	}
}

/* hdpi screens */
@media only screen and (min-width: 2048px), only screen and (min-device-width: 2048px) {
	#t_header {
		font-size: 3vmax;
	}
}

/* if display scale > 1.25dpi and screen width > 1366px */
/*
@media only screen and (min-resolution: 120dpi) and (min-device-width: 1366px) {
    #d_wrapper {
		transform: scale(0.8);
		transform-origin: center top;
	}
}
@media only screen and (min-resolution: 144dpi) and (min-device-width: 1366px) {
    #d_wrapper {
		transform: scale(0.667);
		transform-origin: center top;
	}
}
*/