/*
Media queries in this document:
(max-width: 1048px)
(max-width: 779px)
(min-width: 1049px)
*/

/* dev */
div {
	/*border: 1px dotted lightgray;*/
}
.mobile #togglemobile {
	background-color: lime;
}
/* Disable this button when development is done */
/*#togglemobile { display: none; }*/
/*@media (orientation: portrait) {
	body {
		background-color: orange;
	}
}*/

/* common stuff */
.content {
	line-height: 1.4em;
}
body {
	/*min-width: 320px;*/
	margin: 0px;
	padding: 0px;
	font-family: Arial, Helvetica, sans-serif;
}
.hide {
	display: none;
}
#root {
	width: 100%;
}
button, #btnmore {
	cursor: pointer;
}
.center { text-align: center; }

/*@font-face {
	font-family: 'FontAwesome';
	src: url('../style/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=4.2.0');
	src: url('../style/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'),
		url('../style/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'),
		url('../style/font-awesome-4.7.0/fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'),
		url('../style/font-awesome-4.7.0/fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');
	font-weight: normal;
	font-style: normal;
}*/
q {
	display: block;
	font-size: 0.8em;
	font-style: italic;
}
q::before, q::after { display: none; }

.vid {
	width: 320px;
	display: block;
	margin: 3em 1.5em;
}
.vid:hover, .vidlink img:hover {
	cursor: pointer;
	opacity: 0.6;
	/*border: 1px solid black;*/
	/*margin: 47px 23px 47px 23px;*/
	/*border-radius: 16px;*/
}
iframe {
	border: none;
}

div.img {
	text-align: left;
}
div.img > p {
	display: inline-block;
	text-align: center;
}

.slackchannel {
	font-weight: bold;
	text-decoration: underline;
	color: black;
}
.slackinline {
	height: 20px;
	position: relative;
	top: 4px;
}
#dlcourseplan {
	display: none;
	/*position: absolute;*/
	/*opacity: 0;*/
	/*z-index: -5;*/
}



/* lightbox used when viewing videos */
.lightbox {
	position: fixed;
	margin: 0px;
	height: 100%;
	width: 100%;
	/*opacity: 0.2;*/
	background-color: rgba(0, 0, 0, 0.75);
	text-align: center;

	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 500;
}
.lightbox > * {
	position: absolute;
	display: block;
	width: 700px;
	height: 480px;  /* 500 240 */
	/*background-color: #fff;*/
	background: none;
	top: 10%;
	opacity: 1.0;
	z-index: 501;
}

.lightbox iframe {
	display: block;
	margin-left: auto;
	margin-right: auto;
	/*width: 640px;
	height: 320px;*/
	left: calc(50% - 39.0625%);
	/*top: 0px;*/
}

.iFrame {
	display: block;
	margin-left: auto;
	margin-right: auto;
	/*width: 640px;
	height: 320px;*/
	left: calc(50% - 39.0625%);
	/*top: 0px;*/
}

.lightbox img {
	max-width: 400px;
}


.filler {
	display: inline-block;
}


.scrolltop {
/*	margin-left: 0px;
	margin-right: 0px;*/
}

/* footer */
footer {
	/*margin: auto;*/
	/*margin-top: 20px;*/
	margin: 20px 0px 0px 0px;
	padding: 32px 64px 32px 64px;
	/*margin: 20px 3% 10px 3%;*/
	/*background-color: #EEF6F7;*/
	background-color: #ddd;
	font-size: 0.8em;
	text-align: center;
}



/* big picture with caption (jumbotron) */
.bigpicture {
	width: 100%;
	min-height: 200px;
	/*border: 1px solid green;*/
	position: relative;
	text-align: center;
}

.bigpicture > img:first-child {
	/*background-size: cover;*/
	position: relative;
	left: 0px; top: 0px;
	width: 100%;
	height: auto;
	z-index: -5;
	text-align: center;
}
.bigpicture > img:last-child {
	position: absolute;
	top: -24px;

	/* 724x251 */
	/*height: 140px;*/
	width: 30%;
}

/* Icon to toggle mobile - not used at the moment */
.mobicon {
	position: absolute;
	/*display: inline-block;*/
	display: none;
	text-align: right;
	padding-right: 4px;
	padding-top: 4px;
	right: 0px;
	top: 0px;
	z-index: 2;
}
.mobicon img { width: 50%; }
.mobicon img:hover { cursor: pointer; }
#togglemobile { display: none; }

@media (min-width: 1049px) {
	.mobicon img {
		height: 41px;
		width:  41px;
	}
}


@media (max-width: 1048px) {
	main > div {
		margin-left: 5%;
		margin-right: 5%;
	}

	.bigpicture {
		top: 0px;
		margin-bottom: 10px;
	}
	.bigpicture > img:last-child {
		margin-top: 0px;
		top: 0px;
		min-width: 229px;
		left: calc(50% - 114px);
	}
	.bigpicture > img:first-child {
		min-width: 780px;
	}
	/*body {
		overflow-x: hidden;
		overflow-y: scroll;
	}*/
	.smenu {
		display: block;
		position: absolute;
		top: 0px;
		left: 0px;
		padding: 0px; margin: 0px;
		width: 100vw;
		max-width: 100%;
		/*background-color: silver;*/
		opacity: 0.9;
		z-index: 500;
	}
	.smenu img {
		padding: 20px 10px 10px 20px;
	}
	.smenu span {
		padding: 20px 10px 10px 20px;
		color: #B04F4F;
	}
	.menu label, .smenu label {
		font-size: 3em;
	}
	.smenu input[type="checkbox"] { opacity: 0; }
	.smenu label:hover, .smenu .menu:hover { cursor: pointer; }
	.smenu input[type="checkbox"]:checked ~ .menu { display: block; }
	.smenu .menu {
		display: none;
		background-color: #B04F4F;
		/*max-width: 100vw;*/
		/*padding-left: 20%;*/
		color: white;
		font-weight: bold;
		font-size: 1.5em;
		padding: 12px 10px 12px 20%;
		z-index: 50;
		border-bottom: 1px solid #832D2D;
	}
	.smenu .menu:last-child {
		border-bottom: none;
	}
	.smenu .menu:hover {
		background-color: #602121;
		/*font-style: italic;*/
	}
	.smenu .selected {
		background-color: #832D2D;
	}
}
.bigpicture .bg2 { display: none; }

@media (max-width: 779px) {
	.bigpicture > img:first-child {
		display: none;
	}
	.bigpicture .bg2 {
		display: block;
		background: url("../img/topplist_799.jpg");
		 /*center top;*/
		height: 142px;
		width: 100%;
		overflow: hidden;
		background-position: top;
		/*background-color: red;*/
		z-index: 5555;
	}
	.smenu span {
		padding: 20px 10px 10px 20px;
		color:#B04F4F;
	}
	/*body {background-color: lime;}*/
}
@media (min-width: 1049px) {
	.content main > div {
		margin: 0px 100px;
	}

	.bigpicture > img:last-child {
		margin-top: 32px;
		left: calc(50% - 181px);
	}
	.bigpicture {
		top: 50px;
		margin-bottom: 60px;
	}
	.bigpicture > img:last-child {
		margin-top: 32px;
		left: calc(50% - 181px);
	}
	.smenu {
		display: none;
	}
}
