#body-overview, #body-overview a {
	background: none;
	background-color: #ccc;
	color: #fff;
	overflow: hidden;
}

#calendar-events {
	position: absolute;
	right: 0;
	z-index: 1000;
	background-color: #686464;
	width: 40%;
	border: 5px solid white;
	display: none;
}

#calendar-events .event-icon {
	position: absolute;
	width: 100px;
	height: 100px;
}

#calendar-events .event-category {
	font-size: 50px;
	margin-left: 100px;
	background-color: #056c05;
	text-align: right;
}

#calendar-events .event-event {
	font-size: 120px;
	margin-left: 100px;
}

#last-call {
	position: absolute;
	top: 0;
	right: 20px;
}

fieldset label {
	font-size: 30px;
}

.device-im-value {
	position: relative;
	font-size: 30px;
	line-height: 40px;
	padding-bottom: 4px;
	min-height: 47px;
}

.device-im-value span {
    vertical-align: middle;
}

.device-im-value span.device-id {
	left: 4px;
	position: absolute;
	font-size: 8px;
	top: 23px;
}

.device-im-value img {
	max-width: 40px;
    vertical-align: middle;
}

.device-im-value img.device-control {
	max-width: 60px;
}

#right-panel button.device-control {
	/*width: 100%;*/
}

.device-not_reachable {
	opacity: 0.5;
	border: 2px solid red;
	border-radius: 50%;
}

button.device-control-sub {
	font-size: 0.7em;
	padding: 5px 10px;
}

button.device-on {
	background-color: green;
}

button.device-off {
	background-color: red;
}

div.fullscreen {
	display: none;
	background-color: #ccc;
	text-align: center;
	z-index: 99;
	position: fixed;
	height: 100%;
	width: 100%;
	left: 0;
	top: 0;
}

#dia-folders li {
	list-style: none;
}

#dia-folders {
	display: none;
	top: 0;
	position: absolute;
	margin: auto;
	background-color: #a3ccf5;
	border-radius: 5px;
	padding: 5px;
	left: calc(50% - 200px);
	font-size: 30px;
	overflow: scroll;
	max-height: 95%;
}

#diashow > .dia-hint {
	position: absolute;
	top: 1em;
	left: 45%;
}

#diashow {
	background-color: #c7edb1;
}

#diashow img.landscape {
	width: 100%;
	height: auto;
}

#diashow img.portrait {
	width: auto;
	height: 100%;
}

#sleep {
	display: none;
	width: 105%;
	height: 105%;
	position: absolute;
	top: -5px;
	left: -5px;
	background-color: black;
	z-index: 999;
	color: #8d8b8b;
	font-weight: bold;
	text-align: center;
}

#sleep #cur-time {
	font-size: 300px;
}

#sleep #sleep-footer {
	width: 100%;
	position: absolute;
	bottom: 1em;
}

#sleep #sleep-fotter-inner {
	text-align: center;
}

#sleep #sleep-footer, #sleep button {
	font-size: 50px;
}

#sleep button {
	background-color: #ccc;
}

#sleep #sleep-footer img {
	max-width: 40px;
}

#sleep .btn_WZ_Power_1.device-on {
	display: none;
}

.frameOfSign[value="tagesschau"] .glowing_sign {
	left: calc(50% - 200px);
}

.sleep-footer2 .weather-container {
	font-size: 50px;
}

@media screen and (orientation:landscape) {
	#on-the-left {
		width: 20em;
	}
	
	#right-panel {
		font-size: 30px;
		position: absolute;
		right: 0;
		top: 1em;
		width: 60%;
	}

	.weather-container .weather-info {
		position: absolute;
		color: rgb(62, 61, 61);
		display: block;
		top: 0;
		right: 0;
	}
	
	#right-panel .weather-temp {
		font-size: 70px;
	}
	
	.weather-icon {
		width: 70px;
		margin-top: -10px;
		margin-bottom: -10px;
	}
}
/* desktop: 1920 x 962 */

/* mobile: 450 x 729 */
@media (max-width: 800px) {
	fieldset label {
		font-size: 20px;
	}
	
	.device-im-value {
		font-size: 20px;
		line-height: 30px;
	}
	
	.device-im-value img {
		max-width: 30px;
	}
}

/* Kindle: 1072 x 1272 */
@media (min-height: 1200px) {
	fieldset label {
		font-size: 40px;
	}
	
	.device-im-value {
		font-size: 40px;
		line-height: 60px;
	}
	
	.device-im-value img {
		max-width: 50px;
	}
	
	.log-history {
		max-width: 1000px;
		#word-wrap: break-word;
		#white-space: normal;
		#font-size: 0.8em;
		overflow-x: auto;
	}
}}