html {
	height: 100%;
}
body {
	background:black;
	color:#999;
	font-family:segoe ui, arial, verdana,sans-serif;
	height: 100%;
}

.noscroll {
    overflow-y: hidden;
}

a {
	text-decoration: none;
}
a:hover {
	color: orange;
}

header {
	background: #333;
	font-size:1.5em;
	padding: 5px;
	height: 27px;
	overflow: hidden;
}
footer {
	background: #333;
	border-top: 5px solid black;
	padding: 5px;
	height: 25px;
}

header a {
    white-space: nowrap;
    overflow: hidden;
}

header a .text {
    font-size: 2.3em;
    margin-top: -21px;
    display: inline-block;
    font-weight: bold;
    color: #333;
    text-shadow: 0px 0px 5px #ccc;
}

content {
	background: #333;
	display: block;
}

margin {
	max-width:900px;
	margin: auto auto;
	display: block;
}

gray {
	background: #333;
	display: block;
	/*min-height: calc(100% - 380px);*/
	min-height: calc(100% - 145px);
}

#agenda {
	min-height: 200px;
	display: flex;
	flex-flow: row wrap;
	background: #333;
}
#map {
	background: black;
	height: 300px;
	transition: opacity 300ms;
}
body.noscroll #map {
	opacity: 0.0;
}

.event_item {
    flex: 0 1 33%;
    transition: background,outline 300ms;
}

.event_item.active {
    outline: 8px solid #214f7b;
    background: #214f7b;
    z-index: 1;
}
.event_item info {
	padding: 5px;
	display: block;
}

.event_item name {
	color:#fff;
}

.event_item cover {
    max-height: 120px;
    overflow: hidden;
    display: block;
}

.event_item cover img {
	width: 100%;
}

.event_item time {
    background: rgba(0, 0, 0, 0.46);
    position: absolute;
    padding: 5px;
    color: #fff;
}

.event_item.weekend time {
    background: rgba(138, 46, 0, 0.8);
}

#event {
    background: #000;
    color: #fff;
    display: none;
    min-height: 300px;
    position: fixed;
    width: 100%;
    height: calc(100% - 37px);
    z-index: 10000;
    max-width: 900px;
    left: calc(50% - 450px);
    top: 37px;
}
#event .timerow {
    padding: 15px;
    display: block;
	color: #dc6123;
}
#event scrollable {
    overflow: auto;
    height: calc(100% - 78px);
    display: block;
}
#event .cover {
	display: block;
	width: 100%;
}
#event .map {
	float: right;
	padding: 20px 0px 20px 20px;
}
#event description {
    padding: 0px 20px;
    display: block;
    white-space: pre-wrap;
    margin-bottom: 50px;
}
#close_event {
	padding: 10px;
	outline: 2px solid #555;
	margin: 5px;
	background: #333;
	float: right;
}
#close_event:hover {
	color: orange;
}
#event links {
    padding: 20px;
    display: block;
}
#event h1 {
	font-size: 1.4em;
}
.fa.fa-facebook-square {
    color: #8cb7ff;
}

span.dpn {
    background: #aaa;
    border-radius: 4px;
    color: #333;
    overflow: hidden;
    height: 26px;
    display: inline-block;
    font-weight: bold;
    vertical-align: top;
}

.maximized #map {
	position: fixed !important;
	width: calc(100% - 300px);
	height: 100%;
	z-index: 1;
	margin-left: 300px;
}

.maximized gray {
	display: inline-block;
}

.maximized margin {
	max-width: 300px;
	margin: 0 auto;
}

.maximized .event_item {
	z-index: 10;
	flex: 0 1 100%;
	background: #333;
}
.maximized .event_item.active {
    outline: 0px;
    background: #214f7b;
    z-index: 1;
}
.maximized footer {
    max-width: 300px;
    height: auto;
}
.maximize_button {
	background: black;
	display: inline-block;
	margin: 0px 5px 0px 0px;
	cursor: pointer;
}

@media screen and (max-height: 400px) {
	#map {
		height: 200px;
	}
}

@media screen and (max-width: 760px) {
	.event_item {
		flex: 0 1 50%;
	}
}

@media screen and (max-width: 900px) {
	#event {
	    left: 0px;
	    top: 0px;
	    height: 100%;
	}
	#event .map {
		max-width: 50%;
	}
}

@media only screen and (max-width: 640px) {
	.event_item {
		flex: 0 1 100%;
	}
	.maximized margin {
		max-width: 200px;
		margin: 0 auto;
	}
	header {
		font-size: 1em;
	}
	header a .text {
	    margin-top: -17px;
	}
}