* {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 23px;
	color: #767676;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	background-color: #020202;
}
video, img {
	max-width: 100%;
	height: auto;
}
.center {
	text-align: center;
}

.page {
	min-height: 100%;
	display: flex;
	flex-direction: column;
}
.header {
	padding: 0.2rem;
	height: 2.5rem;
	border-bottom: solid #323232 2px;
	background-color: #111;
}
.body {
	flex: 1;
}
.footer {
	height: 2.5rem;
	border-top: solid #323232 2px;
	background-color: #111;
}
.center-content {
	align-items: center;
	margin: auto;
	padding: 1rem;
}

.login_box {
	display: inline-block;
	float: right;
    width: 40px;
    margin: 0.15rem;
}
.login_box img {
	border: none;
	border-radius: 50%;
}

.photo_container {
	display: inline-block;
}
.photo_title {
	text-align: right;
	margin: 15px 15px 0 0;
}
.photo_title a {
	text-decoration: none;
}
.photo_title a:hover {
	color: #939393;
}

.switch {
	position: relative;
	display: inline-block;
	width: 6rem;
	height: 3.5rem;
}

.switch input {
	display: none;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #411;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 2.5rem;
	width: 2.5rem;
	left: 0.5rem;
	bottom: 0.5rem;
	background-color: #A22;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-color: #2196F3;
	background-color: #170;
}

input:focus + .slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
	-webkit-transform: translateX(2.5rem);
	-ms-transform: translateX(2.5rem);
	transform: translateX(2.5rem);
	background-color: #3D0;
}

/* Rounded sliders */
.slider.round {
	border-radius: 2rem;
}

.slider.round:before {
	border-radius: 50%;
}

.server_on {
	color: #3D0;
}
.server_off {
	color: #A22;
}
.server_busy {
	color: #992;
}

.light-switches {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
.light-switch-border {
	margin: 0.25rem;
	flex: 1;
	user-select: none;
	flex-basis: 340px;
	max-width: 480px;
}
.light-switch {
	border: solid 1px #444;
	overflow: hidden;
}
.light-switch-button {
	width: 25%;
	height: 44px;
    padding: 0.5rem 0.25rem;
    text-align: center;
	float: left;
	border: solid 1px #444;
	background: #222;
	color: #fff;
	cursor:pointer;
    font-size: 0.67rem;
    white-space: nowrap;
}
.light-switch-button:hover {
	background: #fff;
	color: #222;
	font-weight: bold;
}
.light-switch-name {
	padding: 0.25rem 1rem;
	font-size: 0.77rem;
	font-weight: bold;
	color: #ccc;
}
.on {
	background: #eed;
	color: #000;
}

.on .light-switch-name {
	color: #000;
}