/*
 * Coachium - css/footer.css
 * - stylesheet for the program's footer
 *
 * Copyright (C) 2021-2023 Michal Procházka
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

footer {
	flex-shrink: 0;

	height: 100%;
	background-color: #6666ff;
	box-shadow: 0 0 5px rgba(0, 0, 0, .3);
	z-index: 1;

	overflow-y: scroll;
	overflow-x: hidden;

	transition: background-color .3s;
}

#footercontents {
	opacity: 0;
	display: flex;
	flex-direction: column;
	width: 160px;

	padding: 0 8px 8px 8px;
	height: calc(100% - 16px);

	transition: opacity .3s;
}

.sensorblock {
	flex-shrink: 0;

	color: black;
	display: flex;
	width: 160px;
	height: 128px;
	margin-top: 8px;
	margin-right: 8px;
	background-color: rgba(0, 0, 0, 0.2);
	text-align: center;
	flex-direction: column;
	justify-content: center;
	font-size: 16px;
	user-select: none;
}

.sensorblock > * {
	margin: 4px 0;
}

.sensorblock > *:first-child {
	font-weight: bold;
	font-size: 32px;
}

.port {
	background-color: rgba(255, 255, 255, .8);
	box-shadow: 0 0 8px rgba(0, 0, 0, .3);

	position: relative;
	transition: filter .3s, background-color .3s;
}

.port:hover {
	cursor: pointer;
	filter: brightness(85%);
}

.portcorner {
	position: absolute;
	left: 4px;
	top: 4px;
	font-size: 12px;
}

.portintelligenticon {
	height: 12px;
	width: 12px;
	display: inline-block;

	background:
		url("../assets/icons/intelligent.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.port progress {
	margin: 0 8px;
	width: calc(100% - 16px);
}
