:root {
	color-scheme: light dark;	
	--regular_width: 600px; --photos_width: 920px; --favorites_width: 800px;
}

:root {	
	--background_start_color: rgba(250,250,250,1); --background_end_color: rgba(255,255,255,1); --background_header_color: #ffffff; --separator_color: #eaeaea;
	--menu_color: #888888; --menu_selected_color: #000000; --menu_background_color: linear-gradient(30deg, #f4f4f4, #fafafa);
	--text_color: #000000; --text_lighter_color: #555555; --text_darker_color: #666666;
	--text_note_color: #666666; --text_note_link_color: #444444; --text_note_link_hover_color: #000000;	
	--link_color: #667d94; --link_hover_color: #86add3;
	--pagination_inactive_color: #cccccc; --pagination_current_color: #000000; --pagination_link_color: #444444; --pagination_link_hover_color: #000000; --pagination_link_background_color: #eeeeee;
	
	--thumbnail_shadow: 0 10px 15px rgba(0,0,0,0.12);
	--rss_file: url("img/rss_black.svg");
	--table_light_color: #f4f4f4; --table_dark_color: #eeeeee;
	
	--button_color: #f4f4f4; --button_text_color: #444444; --button_text_hover_color: #000000; --button_hover_color: #eeeeee; --button_shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
	--toolbar_text_color: #555555; --toolbar_button_text_color: #ffffff; --toolbar_button_color: #aaaaaa; --toolbar_button_hover_color: #999999; --toolbar_button_shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
	
	:root {
		--background_start_color: rgba(18,18,18,1); --background_end_color: rgba(2,2,2,1); --background_header_color: #000000; --separator_color: #282828;
		--menu_color: #888888; --menu_selected_color: #ffffff; --menu_background_color: #181818;
		--text_color: #ffffff; --text_lighter_color: #cccccc; --text_darker_color: #aaaaaa;
		--text_note_color: #888888; --text_note_link_color: #999999; --text_note_link_hover_color: #cccccc;
		--link_color: #667d94; --link_hover_color: #86add3;
		--pagination_inactive_color: #444444; --pagination_current_color: #ffffff; --pagination_link_color: #cccccc; --pagination_link_hover_color: #ffffff; --pagination_link_background_color: #333333;

		--thumbnail_shadow: 0 0 30px rgba(255,255,255,0.03);		
		--rss_file: url("img/rss_white.svg");
		--table_light_color: #222222; --table_dark_color: #111111;
		
		--button_color: #202020; --button_text_color: #bbbbbb; --button_text_hover_color: #dddddd; --button_hover_color: #282828; --button_shadow: 0 1px 1px rgba(255, 255, 255, 0.15);
		--toolbar_text_color: #cccccc; --toolbar_button_text_color: #cccccc; --toolbar_button_color: #333333; --toolbar_button_hover_color: #555555; --toolbar_button_shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
	}
}


@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-Variable.woff2') format("woff2"); font-weight: 1 999; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Variable.woff2') format("woff2"); font-weight: 1 999; }
@font-face { font-family: 'OxygenMono'; src: url('fonts/OxygenMono-Regular.woff2') format("woff2"); font-weight: 400; }


body {
	margin: 0 auto; padding: 0;
	text-align: center;	
	/*-webkit-text-size-adjust: none;*/
	background-color: var(--background_start_color);
	background: linear-gradient(180deg, var(--background_start_color), var(--background_end_color) 480em);
	font-family: 'Inter', 'Helvetica Neue', Helvetica, sans-serif; font-size: 10pt; line-height: 1.6em; font-weight: normal;	
	color: var(--text_color);
}


/* HEADER */


#header_container {
	background-color: var(--background_header_color);
	border-bottom: 0.5px solid var(--separator_color);
}

#header {
	margin: 0 auto; width: 78%;
	-webkit-user-select: none; user-select: none;
	cursor: default;
}

nav {
	margin: 0; /*padding: 54px 0 40px;*/
	padding: 0 0 32px;
	font-family: 'Montserrat'; font-weight: 600; font-size: 10pt;
}

nav ul { margin: 0; padding: 0; }
nav li { display: inline-block; margin: 0; }

nav a { 
	display: block;
	margin: 0;
	/*padding: 5px 9px 4px; */
	padding: 58px 9px 12px;
	text-decoration: none;
	border-radius: 4px;
	letter-spacing: 0.4px;
	/*transition: all .2s ease-in-out;*/
	color: var(--menu_color);
}

nav a.current { color: var(--menu_selected_color); }
nav a:hover { color: var(--menu_selected_color); background: var(--menu_background_color); /*transform: rotate(-8deg);*/ }


/* INTRO */


#intro h1 { 
	margin: 0 auto; padding: 0; max-width: 400px; text-align: center;
	font-family: 'Montserrat'; font-weight: 500; font-size: 34px; font-weight: normal; line-height: 1.2em; 
	color: var(--text_color);
}

.about #intro h1, .posts #intro h1, .post #intro h1, .photos #intro h1, .archive #intro h1 { max-width: 300px; }

#intro h1 span { font-family: 'Montserrat'; font-weight: 600; }
#intro a { color: var(--link_color); text-decoration: none; }

#peek {
	height: 73px; margin-top: 42px;
	background: url('img/about.png') no-repeat bottom 0px center; background-size: 250px 73px;
}

#latest { margin: 50px 0 0 0; }
#latest h4 { font-size: 14pt; }
#latest h4 a { color: var(--text_color); text-decoration: none; }
#latest h4 a:hover { color: var(--text_color); text-decoration: underline; }
#latest p.info { font-size: 11pt; color: var(--text_lighter_color); }
#latest .archive { margin: 0 0 1.4em 0; }


#latest_new { margin: 50px 0 0 0; }
#latest_new h4 { font-size: 14pt; }
#latest_new h4 a { color: var(--text_color); text-decoration: none; }
#latest_new h4 a:hover { color: var(--text_color); text-decoration: underline; }
#latest_new p.info { font-size: 11pt; color: var(--text_lighter_color); }
#latest_new .archive { margin: 0 0 1.4em 0; }

#latest_photos img { margin: 8px; object-fit: cover; }


/* MAIN */


#main_container {
	width: 85%; margin: 0 auto;
}

#main {
	max-width: var(--regular_width); margin: 70px auto 50px;
	font-size: 12pt; line-height: 1.6em;
	/*background-color: rgba(255,0,0,0.05);*/
}

#main a { color: var(--link_color); text-decoration: underline; transition: all .1s ease-in-out; }
#main a:hover { color: var(--link_hover_color); text-decoration: underline; }

#main p.note { font-size: 10pt; color: var(--text_note_color); line-height: 1.6em; }
#main p.note a { color: var(--text_note_link_color); }
#main p.note a:hover { color: var(--text_note_link_hover_color); }

#main h2 { margin: 20px 80px 54px; padding: 0; font-family: 'Inter'; font-weight: 700; font-size: 18pt; line-height: 1.2em; }

#main_header { font-size: 11pt; color: var(--text_lighter_color); margin: 0 0 -0.4em 0; padding: 0; line-height: 1.9em; }

#main #board { margin: 0; padding: 0; text-align: left; font-size: 11.5pt; line-height: 1.9em; color: var(--text_lighter_color); }
#main #board_title { text-align: center; margin: 0 0 2em 0; }
#main #board_title h2, h3 { margin: 0; padding: 0; }
#main #board_title h2 { margin-bottom: 2px; text-transform: uppercase; font-size: 17px; }
#main #board_title h3 { text-transform: uppercase; font-size: 10px; letter-spacing: 2px; font-family: 'Montserrat'; font-weight: 400; var(--text_lighter_color); }
#main #board_info { margin-top: 16px; text-align: center; text-transform: uppercase; font-size: 10px; letter-spacing: 2px; font-family: 'Montserrat'; font-weight: 400; color: color: var(--text_lighter_color); }
#main #board_info span::before { content: '–'; margin-right: 8px; }
#main #board_info span::after { content: '–'; margin-left: 8px; }

#main article { margin: 64px 0 0 0; padding: 0 0; }

#main article .title { margin: 0; }
#main article .title h2 { margin: 0 80px 54px; padding: 0; font-family: 'Inter'; font-weight: 700; font-size: 18pt; line-height: 1.2em; }
#main article .title h3 { margin: -52px 0 45px 0; padding: 0; font-size: 8pt; letter-spacing: 2px; font-family: 'Montserrat'; font-weight: 400; color: var(--text_note_color); text-transform: uppercase; }
#main article .title a { text-decoration: none; color: var(--text_color); }
#main article .title a:hover { text-decoration: underline; } 
#main article .title span { margin: 0; padding: 0; font-size: 9pt; letter-spacing: 2px; font-weight: normal; color: var(--text_note_color); text-transform: uppercase; }
#main article .title span + h2 { margin-top: 4px; }
#main article .title h3:before { content: '–'; margin-right: 8px; }
#main article .title h3:after { content: '–'; margin-left: 8px; }

#main article .body { 
	margin: 0 0 50px;
	text-align: left;
}

#main article p { 
	margin: 1.5em 0; padding: 0;
	line-height: 1.7em; font-weight: normal;
}

#main article strong { font-weight: 600; }

#main article a.lightbox { display: block; /* background-color: rgba(255,0,0,0.08); */ }
#main article a.lightbox img { transition: transform .15s ease-in-out; }
#main article a.lightbox:hover img { transform: scale(1.02); }

#main article p img { margin-bottom: 0em; }

#main article img { display: block; margin: 2em auto 1.5em; width: 100%; border-radius: 6px; -webkit-user-select: none; user-select: none; }
#main article img.portrait { width: 66.66%; }
#main article img.square { width: 80%; }


#main article p.caption { 
	margin: -0.8em 30px 2.2em;
	font-size: 10.5pt; line-height: 1.5em; font-weight: normal; text-align: center; color: var(--text_note_color); letter-spacing: 0.3px;
	font-style: italic;
}


/*#main article a.video::before {
	position: absolute;
	display: block;
	width: inherit;
	text-align: center;
	content: url("img/play.svg");
	background: rgba(255,0,0,0.1);
	z-index: 10;
}
*/

#main article a.video::before { 
	position: absolute;
	content: '';
	display: inline-block;
	margin: 0; padding: 0;
	width: 60px; height: 60px;
	background: url("img/play.svg") no-repeat center;
	background-size: 26px 26px;
	z-index: 10;
}

/*
#main article a.video:before { 
	position: absolute;
	content: "";
	display: inline-block;
	margin-top: 5px;
	width: 600px; height: 338px;
	padding: 0;
	background: url("img/play.svg") no-repeat center;
	background-size: 50px 50px;
	z-index: 10;
}
*/

#main article h2,h3,h4,h5,h6 { margin: 1.8em 0 1.6em; font-family: 'Inter'; font-weight: 600; }

#main article h2 { font-size: 17pt; }
#main article h3 { font-size: 15pt; }
#main article h4 { font-size: 14pt; }
#main article h5 { font-size: 12pt; }
	
#main article ul { margin: 0; padding: 0; }
#main article li { margin: 0.9em 0 0 1em; padding: 0; line-height: 1.7em; list-style-type: square; }

#main article code { font-family: 'OxygenMono'; font-size: 10.5pt; letter-spacing: -0.8px; color: var(--text_lighter_color); }

#main article sup { font-size: 7.5pt; vertical-align: top; position: relative; top: -3px; margin-left: -1px; font-weight: 500; }
#main article sup a { text-decoration: none; font-weight: 500; }

#main article span.ext { display: inline; margin-left: 1px; vertical-align: top; position: relative; top: -3px; font-weight: 600; font-size: 6pt; color: var(--text_lighter_color) }
#main article span.ext:after { content: '\2197'; }

#main article .side { float: right; margin: 7px 0 6px 28px; padding: 0; width: 32%; }
#main article .side:after { content: ''; clear: both; }
#main article .side img { margin: 0; padding: 0; }
#main article .side p.caption { margin: 8px 0 10px 0; font-size: 10pt;}

#main .more { margin: 2.5em 0 0 0; text-align: center; color: var(--text_lighter_color); }
#main .more p { margin: 2em 0 0px 0; font-size: 10.5pt; line-height: 1.5em; }
#main .more a { font-size: 10.5pt; text-decoration: none; margin-right: 14px; }
#main .more a:hover { text-decoration: underline; }
#main .more a:after { position: absolute; content: "\2192"; font-size: 10pt; padding: 1px 0 0 3px; text-decoration: none; }

#main article #more { display: block; position: relative; top: -18em; visibility: hidden; }

#main article p.note { font-size: 10pt; color: var(--text_note_color); }
#main article p.note strong { display: inline-block; width: 12px; font-size: 9pt; margin-right: 10px; }

#main article .note_group { margin: 1.5em 0 1.55em; }
#main article .note_group p { margin: 0; }


/* PHOTOS */


.photos #main { max-width: var(--photos_width); /*background-color: rgba(255,0,0,0.05);*/ }
.post.photos #main { max-width: var(--regular_width); }

#photos #thumbnails {
	margin-top: 44px;
	-webkit-user-select: none; user-select: none;
	/*background-color: rgba(255,0,0,0.05);*/
}

#photos .thumbnail {
	display: inline-block;
	width: 27%;
	vertical-align: middle;
	margin: 14px 12px;
	/*background-color: rgba(255,0,0,0.08);*/	
}

#photos .thumbnail.landscape { padding: 4.5% 0 4.1%; }
#photos .thumbnail.portrait img { width: 67%; }
#photos .thumbnail.square img { width: 80%; }

#photos .thumbnail img {
	width: 100%;
	margin: 0 0 2px 0;
	border-radius: 4px;
	box-shadow: var(--thumbnail_shadow);
}

#photos .thumbnail a { margin: 0; padding: 0; }
#photos .thumbnail a img { transition: transform .15s ease-in-out; }
#photos .thumbnail a:hover img { transform: scale(1.03); }

#photos .thumbnail p.title { margin: 0; padding: 2px 0 0 0; font-size: 9pt; line-height: 1.5em; font-weight: normal; text-align: center; color: var(--text_darker_color); font-style: italic; }
#photos .thumbnail p.title a { color: var(--text_darker_color); text-decoration: none; }
#photos .thumbnail p.title a span { display: inline-block; margin-left: 2px; color: var(--text_lighter_color); position: relative; top: -4px; font-size: 70%; font-weight: 600; line-height: 8px; font-style: normal; }
#photos .thumbnail p.title a:hover { color: var(--text_color); text-decoration: underline; }


/*
#photos .thumbnail a { margin: 0; padding: 0; }
#photos .thumbnail a img { transition: transform .15s ease-in-out; }
#photos .thumbnail a:hover img { transform: scale(1.03); }

#photos .thumbnail p.title { margin: 2px 0 0 0; font-size: 9pt; line-height: 1.5em; font-weight: normal; text-align: center; color: var(--text_darker_color); font-style: italic; }
#photos .thumbnail p.title a { color: var(--text_darker_color); text-decoration: none; }
#photos .thumbnail p.title a:hover { color: var(--text_color); text-decoration: underline; }
#photos .thumbnail p.title a span { display: inline-block; margin-left: 2px; color: var(--text_lighter_color); position: relative; top: -4px; font-size: 70%; font-weight: 600; line-height: 8px; font-style: normal; }
#photos .thumbnail p.date { margin: 0; font-size: 7.5pt; line-height: 1.5em; font-weight: normal; text-align: center; color: var(--text_darker_color); }

#photos .thumbnail:hover .title { color: #ff0000; font-weight: 550; letter-spacing: 0.3px; }
*/


.stream #main { max-width: var(--photos_width); /*background-color: rgba(255,0,0,0.05);*/ }
.stream #photos .thumbnail { width: 22%; }



/* FAVORITES */


.games #main { max-width: var(--favorites_width); }
.movies #main { max-width: var(--favorites_width); }
.books #main { max-width: var(--favorites_width); }

.games #main_header, .movies #main_header, .books #main_header { margin-inline: 20%; /* background-color: rgba(255,0,0,0.05); */ }

#favorites p { margin-right: 0; margin-left: 0; }

#favorites { 
	margin: 60px 0 0 0;
	text-align: left; 
}

#favorites h3 {
	margin: 2em 0 1em;
}

#favorites ul {
	width: 100%;
	margin: 0; padding: 0;
	list-style-type: none;
	display: inline-grid;
	grid-gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(calc(100%/6), 1fr));	
} 

#favorites ul.snes, #favorites ul.n64 { grid-template-columns: repeat(auto-fill, minmax(calc(100%/5), 1fr)); }

#favorites ul li { margin: 0; padding: 0; display: table; }
#favorites ul img {
	display: table-cell;
	width: 100%;
	border-radius: 4px;
	/*box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);*/
	box-shadow: var(--thumbnail_shadow);
}


/* ARCHIVE */


#main .archive h4 { font-family: 'Inter'; font-weight: 600; font-size: 15pt; }
#main .archive p { margin: 0.4em 0; font-size: 7.5pt; text-transform: uppercase; color: var(--text_lighter_color); line-height: 2em; }
#main .archive span { font-size: 7.5pt; letter-spacing: 1.3px; font-family: 'Montserrat'; font-weight: 400; color: var(--text_lighter_color); }
#main .archive a { font-size: 11pt; margin-left: 7px; text-transform: none; color: var(--text_color); text-decoration: none; }
#main .archive span.info { font-size: 6pt; position: relative; top: -6px; margin-left: 4px; }
#main .archive a:hover { text-decoration: underline; }


/* PAGINATION */


#pagination {
	margin: 40px 0 2px; padding: 0;
	color: #999999;
	font-family: 'Montserrat', sans-serif; font-weight: 600;
	font-size: 12px;
	text-align: center;
	text-transform: uppercase;
}

/*#pagination span.label { color: #999999; }
#pagination span.page { margin: 0; padding: 0 20px; color: #000000; font-size: 14px; }*/

#pagination span.inactive { margin: 0; padding: 4px 7px; color: var(--pagination_inactive_color); }
#pagination p { margin: 0 0 5px 0; padding: 0; }
#pagination a { margin: 0; padding: 4px 7px; color: var(--pagination_link_color); text-decoration: none; }
#pagination a:hover { color: var(--pagination_link_hover_color); background-color: var(--pagination_link_background_color); text-decoration: none; border-radius: 3px; }

#pagination #previous_page { display: inline-block; text-align: right; width: 200px; }
#pagination #current_page { display: inline-block; margin: 0; padding: 0 20px; color: var(--pagination_current_color); font-size: 16px; }
#pagination #next_page { display: inline-block; text-align: left; width: 200px; }


/* BUTTON */

a.button { border-radius: 6px; color: var(--button_text_color); text-decoration: none; padding: 5px 10px 4px; background-color: var(--button_color); box-shadow: var(--button_shadow); }
a.button:hover { color: var(--button_text_hover_color); background-color: var(--button_hover_color); text-decoration: none; box-shadow: var(--button_shadow); }


/* RSS */


div.rss { margin: 0; padding: 0; font-size: 10pt; line-height: 1em; -webkit-user-select: none; user-select: none; }
div.rss p { display: inline-block;	padding-left: 20px; background: var(--rss_file) no-repeat 2px 0px; background-size: 12px 12px; }
div.rss a { color: var(--text_lighter_color); text-decoration: underline; }
div.rss a:hover { color: var(--text_color); text-decoration: underline; }


/* FOOTER */


footer { 
	margin: 0; padding: 10px 0 64px;
	color: var(--text_note_color); font-size: 9pt; line-height: 1.7em;
	-webkit-user-select: none; user-select: none;	
}

footer p.rss { display: inline-block;	margin: 8px 0 0 0; padding: 0; padding-left: 20px; background: var(--rss_file) no-repeat 4px 5px; background-size: 10px 10px; }

footer a { color: var(--text_lighter_color); text-decoration: underline; }
footer a:hover { color: var(--text_color); text-decoration: underline; }


/* MOBILE SUPPORT */


@media only screen and (max-width: 800px) {
	body { font-size: 11pt; }
	#header { width: 90%; }
	nav { font-size: 11pt; }
	footer { margin: 0 10%; font-size: 11pt; }
	#main_container { width: 90%; }
	#main { font-size: 13pt; }
	#main #board { font-size: 12pt; }
	#main article .title h2 { margin-left: 5%; margin-right: 5%; }
	#main article p.note { font-size: 11.5pt; }
	#main article p.caption { margin: -0.5em 0 2em; font-size: 11.5pt; }
	#main article .side { float: none; margin: 0 auto; text-align: center; width: 50%; }
	#main article .side p.caption { font-size: 11pt; }
	#photos p { margin: 0 10%; font-size: 12pt; }
	#photos .thumbnail { width: 40%; }
	#favorites ul { grid-template-columns: repeat(auto-fill, minmax(calc(100%/5), 1fr)); }
	#favorites ul.snes, #favorites ul.n64 { grid-template-columns: repeat(auto-fill, minmax(calc(100%/4), 1fr)); }
	.games #main_header, .movies #main_header, .books #main_header { margin-inline: 15%; }
}

@media only screen and (max-width: 600px) {
	#photos .thumbnail { width: 60%; }		
	#favorites ul { grid-template-columns: repeat(auto-fill, minmax(calc(100%/4), 1fr)); }
	#favorites ul.snes, #favorites ul.n64 { grid-template-columns: repeat(auto-fill, minmax(calc(100%/3), 1fr)); }	
	.games #main_header, .movies #main_header, .books #main_header { margin-inline: 10%; }
}


/* TOOLBAR */


#toolbar { display: block; position: fixed; width: 100%; margin: 0; float: right; text-align: right; pointer-events: none; }
#toolbar p { margin: 0; padding: 12px 8px 6px; font-size: 8pt; color: var(--toolbar_text_color); }
#toolbar a { font-size: 8pt; font-weight: medium; letter-spacing: 0.3pt; text-decoration: none; text-transform: uppercase; margin: 0 4px 0 4px; padding: 5px 8px 4px; border-radius: 4px; color: var(--toolbar_button_text_color); background-color: var(--toolbar_button_color); pointer-events: auto; box-shadow: var(--toolbar_button_shadow); }
#toolbar a:hover { background-color: var(--toolbar_button_hover_color); }


/* STATUS */


.status table {
	font-size: 10pt;
	width: 100%;
	margin: 3em 0;
	border-spacing: 1px;
	color: var(--text_lighter_color);
}

.status table tr th:first-child { text-align: left; padding: 2px 10px; }
.status table tr th span { font-weight: normal; }
        
.status table tr.last { font-weight: 500; color: var(--text_color); }
.status table tr:nth-child(even) { background-color: var(--table_light_color); } 
.status table tr:nth-child(odd) { background-color: var(--table_dark_color); } 
        
.status table td { margin: 0; padding: 2px 10px; border: 0;  }
.status table td:first-child { text-align: left; }

.status h4 { margin: 0; padding: 0; font-weight: normal; color: var(--text_lighter_color); font-size: 10pt; }
