/*
 * Copyright (C) 2021 omegazero.org
 *
 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
 * If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

:root{
	--topbar-color: black;
	--content-background-color-light: white;
	--content-background-color-dark: #333;
	--content-text-color-light: black;
	--content-text-color-dark: #eee;
	--topbar-height: 50px;
	--loader-height: 40px;
}


body{
	margin: 0px;
	background-color: var(--content-background-color-dark);
	color: var(--content-text-color-dark);
}


.logo{
	height: var(--topbar-height);
	padding: 3px;
	float: left;
}

.title{
	font-size: 30px;
	margin-left: 7px;
}


#content{
	position: absolute;
	top: var(--topbar-height);
	height: calc(100% - var(--topbar-height));
	width: 100%;
	display: flex;
	flex-direction: column;
}


#main{
	flex: 1 0 auto;
	width: 75%;
	margin-left: auto;
	margin-right: auto;
	padding: 3%;
	font-size: 15px;
}

#footer{
	text-align: center;
	padding: 20px;
	color: #777;
	font-size: 14px;
}

#footer a{
	color: inherit;
}

#footer a:hover{
	color: #aaa;
}


.loading-wrap{
	text-align: center;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
}

.loading-wheel{
	animation: spin_anim 1.5s linear infinite;
	border: .2em solid rgba(128, 128, 128, .2);
	border-top-color: rgb(128, 128, 128);
	display: block;
	width: var(--loader-height);
	height: var(--loader-height);
	border-radius: var(--loader-height);
	margin: 10px auto;
}

@keyframes spin_anim{
	from{
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to{
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

.error{
	color: red;
	font-weight: bold;
}

.help{
	cursor: help;
}


#header{
	margin-bottom: 20px;
}

.msgBox{
	--border-color: rgba(128,128,128,.5);
	padding: 15px;
	border: 1px solid var(--border-color);
}

.msgBox .hsep{
	background-color: var(--border-color);
}

#time{
	opacity: .5;
}

#time:after{
	content: " - ";
}

#statusSummary{
	font-weight: bold;
}

#statusSummary.starting{
	color: lightblue;
}

#statusSummary.maintenance{
	color: yellow;
}

#statusSummary.good{
	color: lightgreen;
}

#statusSummary.bad{
	color: orange;
}

#statusSummary.verybad{
	color: red;
}

.hsep{
	width: 100%;
	height: 1px;
	background-color: black;
	margin: 15px 0px;
}

.statusMsg{
	margin-top: 10px;
}

.statusMsgContent{
}


.category-title{
	font-size: 20px;
	padding: 5px;
	margin-top: 20px;
}

.entry{
	font-size: 15px;
	padding: 15px;
	overflow: hidden;
	text-align: left;
	background-color: rgba(128,128,128,.1);
	margin: 10px 0px;
	--loader-height: 25px;
}

.entry-pending{
	height: 63px;
}

.entry.compact{
	padding: 1px 15px;
	margin: 2px;
}

.entry.compact .currentStatus .visibility{
	display: inline-block;
}

.entry.compact .currentStatus .statusDetails{
	margin-left: 10px;
}

.entry.compact .loading-wheel{
	display: none;
}

.entry-pending.compact{
	height: 21px;
}

.entry .title{
	font-size: 16px;
	margin: 0;
}

.entry .subtitle{
	font-size: 12px;
	margin-left: 15px;
	opacity: .6;
}

.entry .currentStatus{
	font-size: 12px;
	float: right;
	text-align: right;
}

.entry .visibility{
	font-size: 15px;
	color: red;
	display: block;
}

.entry .visibility-high{
	color: lightgreen;
}

.entry .visibility-medium{
	color: yellow;
}

.entry .visibility-low{
	color: orange;
}

.entry .statusDetails{
	opacity: .5;
}


.uptime-value{
	color: #8888;
}

.history{
	margin-top: 7px;
}

.history .history-content{
	margin-top: 5px;
	display: flex;
	flex-direction: row;
	width: 100%;
}

.history .uptime-tile{
	display: inline-block;
	height: 12px;
	margin: 1px;
	background-color: #8888;
	flex: 1 0 auto;
}

.history .uptime-tile:hover{
	-webkit-filter: brightness(70%);
	filter: brightness(70%);
}

#hoverBox{
	display: none;
	position: fixed;
	z-index: 1;
	padding: 10px;
	background-color: #222;
}

#hoverBox .box-title{
	color: white;
}

#hoverBox .down-time{
}


@media (prefers-color-scheme: light){

	body{
		background-color: var(--content-background-color-light);
		color: var(--content-text-color-light);
	}
}

@media only screen and (max-width: 1000px){

	#main{
		width: 94%;
	}
}

@media only screen and (max-width: 1200px){

	.history .uptime-tile{
		margin: 0px;
		border-radius: 1px;
	}
}

