@charset "UTF-8";

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

	/* colors */
	--c-main-bg: #0f4a65;
	--c-banner-bg: #fed518; /* #ecdfa2;  #abe5ea; */
	--c-panel-title: #740606; /* text color */
	--c-panel-bg-color: wheat; /* background color */
	--c-input-bg-color: rgb(255, 237, 203);
}

body {
	position: relative;
	font-size: 14px;
	color: #222222;
 	background-color:var(--c-main-bg);
}

/* 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; }
.menu {
	position: absolute; 
	right: 32px; 
	display: flex; 
	max-width: 960px;
}
.autoplay .menu {
	display: none;
}
.menu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
    overflow-x: hidden;
	-webkit-transition: all 250ms ease;
  	transition: all 250ms ease;
  }

.menu li {
	position: relative;
	padding: 8px;
	margin-bottom: 7px;
	background-color: rgba(254, 213, 24, 0.5); /* #ecdfa2; #8de; */
	color: #e0f3c0;
}

.menu li:hover {
  background-color: rgba(254, 213, 24, 0.85);
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.menu ul > li {
    display: inline-block;
    /* https://stackoverflow.com/questions/15710701/horizontal-list-items */
}

.menu a {
 color: #222222;
 text-decoration: none;
 font-size: 18px;
}

.menu-widget {
	top:-16px; 
	display: none;
	font-size:16px;
	cursor:pointer;
}

.menu .user-profile {              /* user profile button in the menu header.php */
	color: rgba(0,0,0,0);
	background-color: rgba(0,0,0,0);
	border-style: none;
	width: 42px;
	height: 16px;
	background-image: url( /assets/images/buttons/userprofile.png );
	background-repeat: no-repeat;
	background-position: 4px 0;
	background-size: 18px 18px;
}
.menu .signin {              /* the signin/out button in the menu header.php */
	color: rgba(0,0,0,0);
	background-color: rgba(0,0,0,0);
	border-style: none;
	width: 48px;
	height: 16px;
	background-image: url( /assets/images/buttons/signin96.png );
	background-repeat: no-repeat;
	background-position: 4px 0;
	background-size: 18px 18px;
}
.menu a:hover.signin {
	width: 42px;
	background-image: url( /assets/images/buttons/signin96G.png );
}
.menu .signin.signed-in {              /* the user is signed in */
	background-image: url( /assets/images/buttons/signout96.png );
}
.menu a:hover.signed-in {
	background-image: url( /assets/images/buttons/signout96R.png );
}

.signin-text { display: none; }
.signin-text: hover {  color: blue; }

.menu-list.open {
	width: 100%;
}

main.df {
	margin-left: 12px;
	margin-right: 12px;
}

div.panel-container {
	margin-top: 12px;
	display:flex;
}

.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: 48px;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	color: var(--c-panel-bg-color);
}

@media only screen and (max-width: 920px) {
	.header {
		height: 64px;
	}
	.menu-widget {
		display: inline-block;
		position: absolute;
		right: 12px;
		top: 8px;
		width: 64px;
	}
	.menu-list {
		display: none;
	}
	.menu-list.open {
		position: absolute;
		top: 52px;
		width: 326px;
		right: -18px;
		padding-top: 24px;
		padding: 12px;
		display: flex;
		flex-flow: column;
		background-color: rgba(15, 74, 101, 0.85);
		z-index: 12; /* otherwise occluded by the canvas! */
	}

	.menu ul > li {
		background-color: rgba(254, 213, 24, 0.85);
		display: inline-block;
		padding: 24px;
		border-radius: 8px;
	 }

	.menu a {
		color: var(--c-panel-title);
		text-decoration: none;
	}

	.menu .signin {
		height: 38px;
		width: 64px;
		background-size: 24;
		background-position: 0 -2px;
	}
}

@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;
	}
}

@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 {
		height: 100%;
		position: fixed;
		overflow: scroll;
		-webkit-overflow-scrolling: touch;
	}
	body.toy {
		overflow: hidden;
	}
	.header {
		height: 42px;
	}
  	.menu { 
		max-width: 75%;
  	}
	.menu-list.open {
	}
  	
	.menu-widget {
		right: 0;
		width: 12px;
		top: -2px;
	}
	.menu-widget-text {
		display: none;
	}
	main.df {
		margin-left: 0;
		margin-right: 0;
	}
	.center-container {
		min-height: 432px;
	}
	.footer.short {
		display: none;
	}
}
