/*
 * Coachium - css/main.css
 * - main program stylesheet
 *
 * 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/>.
 */

@font-face {
	font-family: "CoachiumDefaultFont"; /* If I put "Ubuntu" in here, some browsers will try to be smart and load their own version of the font */
	font-style: normal;
	font-weight: normal;
	src:
		local(""),
		url("../assets/ubuntu_normal.woff2") format("woff2");
}

@font-face {
	font-family: "CoachiumDefaultFont";
	font-style: normal;
	font-weight: bold;
	src:
		local(""),
		url("../assets/ubuntu_thicc.woff2") format("woff2");
}

html {
	opacity: 0;
	transition: opacity .3s;
	background-color: #FFF;
}

html,body {
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

body {
	font-family: "CoachiumDefaultFont", sans-serif;
	font-size: 16px;
	background:
		url("../assets/wallpaper.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	flex-direction: column;
}

header {
	padding: 32px;
	background-color: #6666ff;
	height: 192px;
	box-shadow: 0 0 5px rgba(0, 0, 0, .3);
	color: white;
	z-index: 2;

	transition: height .3s, padding .3s, background-color .3s;
}

input {
	box-sizing: border-box;
	font-family: CoachiumDefaultFont;
	font-size: 18px;
}

select {
	font-family: CoachiumDefaultFont;
	font-size: 18px;
}

textarea {
	font-family: CoachiumDefaultFont;
	font-size: 18px;
}

#headercontents {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;

	opacity: 1;
	transition: opacity .3s;
}

#introimg {
	height: 80px;
	user-select: none;
}

canvas {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
}

.canvasstack {
	position: relative;
	width: 100%;
	height: 100%;
}

.connectbutton {
	width: calc(907 / 200 * 80px - 16px);
	height: 16px;
	background-color: rgba(255, 255, 255, .8);
	border-radius: 9999px;
	padding: 8px;
	margin: auto;
	margin-top: 24px;
	box-shadow: 0 0 8px rgba(0, 0, 0, .3);
	cursor: pointer;
	user-select: none;
	transition: background-color .2s;
	color: black;
	text-align: center;
}

.connectbutton:hover {
	background-color: rgba(255, 255, 255, .5);
}

#statusmsg {
	text-align: center;
	font-weight: bold;
	flex: 1;
}

#introerrmsg {
	font-weight: bold;
	opacity: 0;
	transition: opacity .3s;
}

#initialheader {
	flex: 1;
	text-align: right;
}

main {
	flex-grow: 1;
	min-height: 0;
	z-index: 0;
	background-color: #FFF;
	opacity: 0;

	display: flex;
	flex-direction: row;

	transition: opacity .3s;
}

.maindisplay {
	flex-grow: 1;
}

progress {
	width: 100%;
}

a {
	color: black;
}

.infomsg {
	margin: 8px;
}

#table table {
	margin-top: 16px;
	border-bottom-width: 0 !important;
}

#table td, #table th {
	padding: 4px;
	text-align: left;
}

#table th {
	position: sticky;
	top: 0;
	background-color: #EEE;
	border-top-width: 2px !important;
}

#table table, #table td, #table th {
	border-style: solid;
	border-color: black;
	border-width: 0 1px 2px 1px;
	border-spacing: 0;
	border-collapse: separate;
}

.centercontainer {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	column-gap: 16px;
}

* {
	transition: flex .3s;
}

/* Dragula-dependent settings */

.gu-mirror {
	cursor: grabbing;
	position: fixed !important;
	margin: 0 !important;
	z-index: 9999 !important;
	opacity: 0.8;
}

.gu-hide {
	display: none !important;
}

.gu-unselectable {
	-webkit-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
}

.gu-transit {
	opacity: 0.5;
}
