@charset "UTF-8";

*{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;

	/* color constants */
	--c-main-bg: #0f4a65;
	--c-menu-blue: #70d0ff;
	--c-main-bg-color: rgb(252, 242, 173);
	--c-banner-bg: #fed518; /* banner background */
	--c-banner-blue: rgb(80,160,220);
	--c-banner-text: white;
	--c-panel-title: #740606; /* text */
	--c-panel-bg-color: rgb(252,242,173); /* background */
	--c-input-bg-color: rgb(255, 250, 222);
	--c-hidden-color: rgba(252,242,173,0.25);
}

body {
	font-family: "Arial", "Monaco", "Times";
	position: relative;
	font-size: 14px;
	color: #222222;
 	background-color:var(--c-main-bg);
}

/* ---- Migration to df.com */

.outer-wrapper {
	max-width: 960px;
	min-width: 720px;
	margin-left:auto;
	margin-right:auto;
}
body.toy .outer-wrapper {
	max-width: 720px;
	min-width: 680px;
}
body.toy .banner img.title { display: none; }

.banner {
	position:relative;
	justify-content: center;
	height: 178px;
	align-items: center;
}
body.toy .banner {
	height: 108px;
}
.banner .top {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 96px;
	z-index: 1;
}
.banner img.badge {
	position: absolute;
	left: 0;
	top: 0;
	cursor: pointer;
}
.banner img.badge:hover {
	left: -1px;
	top: -1px;
}
.banner img.title {
	position: absolute;
	left: 128px;
	top: 12px;
}
.banner .bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 112px;
	background-color: var(--c-banner-blue);
	border: 1px solid #222;
 	border-radius: 6px 6px 0 0;

}
body.toy .banner .bottom { height: 32; }

.banner .strip {
	display:flex;
	margin-top: 8px;
	margin-left: 42px;
}

/* https://www.w3.org/Style/Examples/007/evenodd.en.html 
https://www.w3schools.com/cssref/sel_nth-child.php
   we can use this to hide some of the cels, when we shrink the strip
*/
.strip div:nth-child(even) { display: none }
.strip div:nth-child(odd) { background: #222; }
.strip div:nth-child(10) { display: flex; }
.strip div:nth-child(12) { display: flex; }
.strip .cel {
	margin: 2px;
	height: 88px;
	width: 76px;
	background: #333;
	cursor: pointer;
	display: flex;
   justify-content: center;
   align-items: center;
}
.strip .cel:hover {
	margin: 1px;
	height: 90px;
	width: 78px;
	background: rgba(0,0,0,0.5);
	z-index: 2;
}
.strip .cel.first:hover {
	z-index: 2;
}
.strip .cel img { width: 72px; height: 72px;}

.strip .cel img:hover { z-index: 2;}

/* ---- End of migration to df.com */

/* https://stackoverflow.com/questions/3319219/html-label-widths-want-fixed-but-it-keeps-auto-sizing-according-to-text */
.header {
	display: flex;
	background-image: url(/assets/images/header.png);
 	background-color: var(--c-banner-bg);
	color: #740606; /* #852; */
	padding: 12px;
	height: 96px;
	margin-left: 12px;
	margin-right:12px;
}
.header.autoplay {
	position: relative;
	background-image: none;
 	background-color: transparent;
	color: transparent;
	padding: 0;
}
.header.autoplay > *{
	display: none;
}
.overlay {
	display: none;
	position: absolute;
	width:100%;
	height:100%;
	z-index:11;
}
.header.autoplay .overlay {
	display: block;
}
.header .title {
	font-size: 32px;
	height: 34px;
	background-color: rgba(254, 213, 24, 0.5);
/*  background-color: rgba(237, 224, 161, 0.5); */
	border-radius: 4px;
}
.header.autoplay span { display: none; }

h1 {
	font-weight: 300;
}

.strip .title {
position: absolute;
top: -14px;
left: 142px;
}


main {
	display: flex;
	width: 100%;
	min-height: 320px;
	border: 1px solid #222;
 	border-radius: 0 0 6px 6px;
	background-color: var(--c-main-bg-color);
	font-weight: lighter;
	font-style: normal;
	font-size: 14px;
}
main .content {
	width: 75%;
	margin: 0;
	padding: 28px;
	margin-bottom: 4px;
	margin-right: 12px;
	color: #333;
}
main .content h2 {
font-size: 28px;
font-weight: 100;
}
main .content h3 {
font-size: 24px;
font-weight: 100;
margin-top: 54px;
margin-bottom: 12px;
}

main .sidebar {
	width: 220px;
	border-left: 1px solid #222;
	padding-top: 12px;
	padding-left: 12px;
}

main.blog {
	padding-left: 48px;
	padding-right: 12px;
	height: 95%;
	max-height: 1056px;
	overflow-y: scroll;
}

div.panel-container {
	margin-top: 12px;
	width: 100%;
}

.panel {
	position: relative;
	max-width: 680px;
	margin-right: 12px;
	color: var(--c-panel-title);
	background-color: var(--c-panel-bg-color);
	border-radius: 6px;
}

.center-container {
	top:100px;
	margin-left: auto;
	margin-right: auto;
	min-height: 640px;
	max-width: 960px;
	overflow: auto;	
/* 
	background-color: var(--c-panel-bg-color); /* #fbe6cf; */
 */
	border-radius: 6px;
}
h2 {
	font-weight: 300;
	font-size: 24px;
}
h3 {
	font-weight: 300;
	font-size: 22px;
}
div.left {
 float:left
}

/* links */

a:link {
}

a:visited 
{
 text-decoration: none;
}

a:hover 
{
 text-decoration: underline;
}

a:active {
}

a.inactive
{
 text-decoration: none;
}

button {
	color: #555;
	background-color: #999;
	width: 86px;
	height: 24px;
	border-radius: 12px;
	border: 1px solid black;
	cursor: pointer;
}

.highlight{
	background:#e62;
	border:15px solid #000;
	padding:50px;
	margin-top:25px;
}

.refresh {
	display: inline-block; 
	transform: rotate(60deg); 
	font-size: 16px;
	color: gray;
}
.refresh:hover {
	text-decoration: none;
	color: black;
	cursor: pointer;
}
.refresh.waiting:hover {cursor: not-allowed;}


/* footer -> at the bottom of the page (with  bit of space) */
.footer {
/* 
	position: absolute;
	bottom: 0;
 */
	width: 100%;
	height: 48px;
	color: var(--c-panel-title);
	text-align: center;
	font-size: 12px;
	padding: 15px;
	cursor:  pointer;
}

.footer.short {
	bottom:0;  /* required if the screen is shorter than the contents */
}

.footer-text {
	position: relative;
	padding-top: 12px;
	height: 40px;
	text-shadow: #000 1px 2px 2px;
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
	color: var(--c-panel-bg-color);
	background-color: rgba(0,0,0,0.125);
}

@media only screen and (max-width: 920px) {
	.outer-wrapper {
		width: 95%;
		min-width: revert;
	}
	body.toy .outer-wrapper {
		width: 95%;
		min-width: revert;
	}
	.header {
		height: 64px;
	}
	.banner img.title { display: none; }

}

@media only screen and (max-width: 680px) {
	.header {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
	.header .title {
		height: 28px;
		font-size: 22px;
		font-weight: revert;
	}
	.center-container {
		top:100px;
		min-height: 540px;
	}
	body.toy .outer-wrapper {
		width: 100%;
	}
}

@media only screen and (max-width: 480px) {
  /* For phones: */
  /* https://ishwar-rimal.medium.com/fixing-that-address-bar-issue-in-mobile-browsers-once-and-for-all-8c283fc88e56 */
  /* https://web.dev/articles/fullscreen#fake_it_auto-hide_the_address_bar */
	html {
		overflow: hidden;
		width: 100%;
	}
	body {
		position: fixed;
		height: 100%;
		width: 100%;
		left: -6px;
		overflow: scroll;
		-webkit-overflow-scrolling: touch;
	}
	body.toy {
		overflow: hidden;
	}
	.header {
		height: 42px;
	}
  	.menu { 
		max-width: 75%;
  	}
  	
	.menu-widget {
		right: 0;
		width: 12px;
		top: -2px;
	}
	.menu-widget-text {
		display: none;
	}
	.center-container {
		min-height: 432px;
	}
	.footer.short {
		display: none;
	}
}

@media only screen and (max-width: 410px) {
	.menu-list.open {
		width: 272px;
	}
}