body { background: #f7f8fa; }

#header {
	background: #FFF;
	box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
}
#topheader {
	display: table;
	width: 100%;
}
#topheader > * {
	display: table-cell;
	padding: 0.5em 0;
	vertical-align: middle;
}
#topheader > *:nth-child(1) { 
	padding-right: 1em;
	width: 160px; 
}
#topheader > *:nth-child(2) { text-align: right; }
#showmobilemenu { 
	display: none;
	margin-right: 20px;
	vertical-align: 2px; 
}
#showmobilemenu i { 
	font-size: 1.8em; 
	vertical-align: -3px;
}
#logo {
	display: inline-block;
	height: auto;
	width: 200px;
}
#notification i {
	font-size: 35px;
	margin-right: 0.5em;
}
#logout i { font-size: 35px; }
#loginbtn {
	background: #66bb6a;
	box-sizing: border-box;
	padding: 12px;
	min-width: 0;
}
#loginbtn:hover { background: #00527b; }
#nav-container { background: #ea5d1d; }
#nav ul { display: table; }
#nav > ul > li {
	display: table-cell;
	position: relative; z-index: 1;
	vertical-align: middle;
}
#nav > ul > li + li { border-left: 1px solid transparent; }
#nav ul li a { 
	color: #FFF; 
	display: block;
	font-size: 1.2em;
	padding: 0.775em 1.25em;
	white-space: nowrap;
}
#nav ul li a > i {
	margin-left: 5px; margin-right: -8px; margin-top: -4px;
	vertical-align: -6px;
}

#nav li.active > a, #nav li:hover > a { 
	background: #00527b; 
	text-decoration: none;
}
#nav ul ul {
	background: #FFF;
	box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
	display: none;
	font-size: 0.95em;
	position: absolute; z-index: 1; left: 0; top: 52px;
}
#nav ul ul li + li { margin-top: 1px; }
#nav ul ul a { 
	border-left: 4px solid transparent; border-right: 4px solid transparent;
	color: #001722;
	padding-top: 0.75em; padding-bottom: 0.5em;
	text-transform: uppercase;
}
#nav ul ul li.active > a, #nav ul ul a:hover {
	background: rgba(214, 125, 117, 0.25);
	border-left-color: #ea5d1d;
}

#main { 
	font-size: 0.95em;
	margin-top: 40px;
}
#article {
	background: #FFF;
	border-radius: 1px;
	box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
	min-height: 200px;
	margin-top: 20px; margin-bottom: 20px;
	padding: 1.65em;
}
#article > *:first-child { margin-top: 0; }
#article > *:last-child { margin-bottom: 0; }

#article .mediumform { max-width: 1200px; }
#article .smallform { max-width: 900px; }

#article .box {
	background: #f7f8fa;
	box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2);
	padding: 1em;
}
#article .box h2 { margin-top: 0; }
#article .box .field input, #article .box .field select { background: #f7f8fa!important; }

#overview-container { 
	display: table;
	min-height: calc(100vh - 300px);
	width: 100%;
}
#overview-container > * {
	display: table-cell;
	vertical-align: top;
}
#overview-preview {
	padding-left: 30px;
	width: 500px;
}
#overview-preview.fixed > div { 
	position: fixed; top: 10px;
	width: 500px;
}
#overview-preview .video-container { overflow: visible; }
#overview-preview .video-container iframe { 
	min-height: calc(100vh - 300px);
	overflow: visible;
}
@media screen and (max-width: 1300px) {
	#overview-preview { display: none; }
}

#card-container-filter { text-align: right; }
#card-container-filter > * { 
	display: inline-block; 
	width: 100%; max-width: 300px;
}

#add-container { margin: 2em 0 20px; }
#add-container a { 
	background: none;
	border: 1px dashed #CCC;
	color: #9cabba;
	padding: 1rem; 
}
#add-container a:hover { border-color: #9cabba; }

.mdc-card, #add-container a {
	box-sizing: border-box;
	box-shadow: 0 0.5px 1px 0 rgba(0,0,0,0.2);
	width: 100%;
}
.mdc-card { 
	background: #f7f8fa;
	min-height: 250px;
	padding: 2rem;
}
.mdc-card.inactive { text-decoration: line-through; }
.mdc-card:hover, #add-container a:hover { background: #fafdff; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.2); }
.mdc-card.nopadding { padding: 0; }
.mdc-card + .mdc-card { margin-top: 20px; }
.mdc-card h2 { margin-top: 0; }
a.mdc-card, .mdc-card a {
	color: #001722;
	text-decoration: none;
}
.mdc-card.minmalistic {
	min-height: 0; 
	padding: 0;
}
.mdc-card.minmalistic > .liketable > * {
	box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; 
	padding: 1rem;
	max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mdc-card.minmalistic > .liketable > *.controlcol { 
	text-align: center;
	width: 60px; min-width: 60px;
}
.mdc-card.minmalistic .controlcol a:hover { color: #ea5d1d; }

@media screen and (min-width: 601px) {
	#nav > ul > li:hover > ul { display: block; }
	#nav ul li:hover > a > i {
		-moz-transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		transform: rotate(180deg);
	}
}
@media screen and (max-width: 600px) {
	
	#logo { max-width: 90px; }
	#logout i { font-size: 25px; }
	#notification i {
		font-size: 25px;
	}
	
	#showmobilemenu { display: inline-block; }
	
	#nav {
		background: #ea5d1d;
		height: calc(100vh - 48px);
		margin-top: 0;
		overflow-y: auto; overflow-x: hidden;
		padding: 0;
		position: fixed; z-index: 2; top: 48px; left: -600px;;
		transition: left 0.5s ease-in-out; -webkit-transition: left 0.5s ease-in-out; -moz-transition: left 0.5s ease-in-out; -o-transition: left 0.5s ease-in-out;
		width: 100%;
	}
	body.mobilemenu #nav { left: 0; }
	body.showmobilemenu #main { display: none; }
	#nav ul li a { font-size: 1.15em; }
	#nav ul, #nav > ul > li { display: block; }
	#nav > ul > li + li {
		border-left: none;
		margin-top: 1px; 
	}
	#nav ul ul { position: relative; top: auto; }
	#nav > ul > li.active > ul { display: block; }
	#nav > ul > li > a { position: relative; z-index: 1; }
	#nav > ul > li > a i { 
		position: absolute; z-index: 1; right: 1.25em; top: 58%;
		transform: translateY(-50%);
	}
	#nav > ul > li.active > a i {
		-moz-transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		transform: rotate(180deg);
		top: 34%;
	}
	#nav ul ul a { padding-left: 1.75em; }
	
	h1, .likeh1 { 
		font-size: 1.8em;
		line-height: 1em;
		margin-bottom: 1.3em;
	}
}