/**
 * Styles for the Notes application frontend.
 *
 * (C) Thomas Weber 2021 tom-vibrant@gmx.de
 * 
 * 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/>.
 */


* {
	box-sizing: border-box;
}

html {
	height: 100%;
	margin: 0;
    padding: 0;	
    overflow: hidden;
}

body {
	height: 100%;
	margin: 0;
    padding: 0;	
    font-family: Avenir, Calibri, Helvetica, Arial, sans-serif; 
    background-color: white;
    overflow: hidden;
}

#all {
	height: 100vh;
	overflow: hidden;
}

header {
	background-color: #666;
	color: #d2d2d2;
	
	/*padding: 10px;*/
	width: 100%;
	height: 55px;
	
	overflow: hidden; 
	text-align: center;
	
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
}

section {
	display: -webkit-flex;
	display: flex;
	display: -moz-flex;

	overflow: auto; 

	height: calc(100vh - 55px);
	width: 100%;

	position: absolute;
	top: 55px;
	left: 0;
	z-index: 10;
}

nav {
	background-color: lightgrey;
	/*brightness: 2;*/
	/*border-right: 1px solid darkgrey;*/
	/*border: 1px solid darkgrey;*/
	
	/*min-height: calc(100vh - 55px);*/
	
	font-size: 16px;
	
	overflow: hidden;
	
	/* Dragging on mobiles always does weird text selection stuff if the following is omitted: */
	user-select: none; /* supported by Chrome and Opera */
   -webkit-user-select: none; /* Safari */
   -khtml-user-select: none; /* Konqueror HTML */
   -moz-user-select: none; /* Firefox */
   -ms-user-select: none; /* Internet Explorer/Edge */
   -webkit-touch-callout: none; 
}

.navFloating {
	position: relative;	
}

.navFixed {
	position: absolute;
	z-index: 100;
}

article {
	-webkit-flex: 5;
	-ms-flex: 5;
	flex: 5;
	background-color: #f1f1f1;
	padding: 0;
	/*border: 1px solid white;*/
}

.articleFloating {
	position: relative;	
}

.articleFixed {
	position: absolute;
	z-index: 90;
}

.footer {
	width: 100%;
	height: 40px;
	
	overflow: hidden; 
	
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 100;
	
	background: #f4f4f4;
	
	display: grid;
	justify-content: space-evenly;
	grid-auto-flow: column;
	column-gap: 5px;
	grid-template-columns: repeat( 5, minmax(1px, 1fr) );
	
	border-top: 1px solid #c7c7c7;
}

.mainPanel {
	height: 100%;
	width: 100%;
	background-color: white;
	overflow: auto;
	position: absolute;
}

#contentContainer {
	z-index: 10;	
}

#editor {
	z-index: 20;
}

#popupContainer {
	position: absolute;
	top: 10px;
	left: 50%;
	z-index:1000;
}

#popup {
	position: relative; 
	left: -50%;
	text-align: center;
	padding: 6px 6p;
}

#teaser {
	padding: 10px 0px 0 20px;
}

.buttonDisabled {
	opacity: 0.5;
	cursor: default;
}

.editorNavButtons {
	position: absolute;
	left: 10px;
	z-index: 99999;	
}

.editorNavButton {
	margin: 5px;
}

.editorLinkButtons {
	position: absolute;
	right: 20px;
	z-index: 99998;	
}

.editorLinkButton {
	margin: 5px;
}

.editorLinkButton:hover {
	background: lightgrey !important;
}

.roundedButton {
	cursor: pointer;
	background-color: white;
	text-align: center;	
	border-radius: 100px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.footerButton {
	cursor: pointer;
	text-align: center;
	color: #555;
}

.footerButton:before {
	position: relative;
	top: 50%;
	transform: translate(0, -50%);
	display: block;
}

.dialogTable {
	width: 100%;
}

#createNameInput {
	width: 100%;
}

/* For selectize elements */
.option {
	width: fit-content;
	min-width: 100%;
	white-space: nowrap;
}

/* ====================== Presentation Mode ========================= */

#setlistContainer {
	height: 100%;
	width: 100%;
	position: absolute;
	z-index: 100;
	overflow: hidden;
}

#setlistContent {
	height: 100%;
	z-index: 100;
	position: absolute;
}

.setlistItem {
	height: 100%;
	position: absolute;
	z-index: 100;
}

.setlistPdfCanvas {
	height: 100%;
	width: 100%;
}

#presentationModeOverlay {
	height: 100%;
	width: 100%;
	position: absolute;
	z-index: 200;
}

#presentationModeOverlayLeft {
	height: 80%;
	width: 30%;
	left: 0px;
	bottom: 0px;
	position: absolute;
	overflow: hidden;
	cursor: pointer;
}

#presentationModeOverlayRight {
	height: 80%;
	width: 30%;
	right: 0px;
	bottom: 0px;
	position: absolute;
	overflow: hidden;
	cursor: pointer;
}


#presentationModeInfoLeft {
	position: absolute;
	left: 0px;
	bottom: 0px;
	width: 30%;
	text-align: left;
	
	white-space: nowrap;                   
    overflow: hidden;
	text-overflow: ellipsis;
	margin-left: 5px;
}

#presentationModeInfoMiddle {
	position: absolute;
	right: 35%;
	bottom: 0px;
	width: 30%;
	text-align: center;
	text-decoration: underline;
	text-transform: uppercase;
	
	white-space: nowrap;                   
    overflow: hidden;
	text-overflow: ellipsis;
}

#presentationModeInfoRight {
	position: absolute;
	right: 0px;
	bottom: 0px;
	width: 30%;
	text-align: right;
	
	white-space: nowrap;                   
    overflow: hidden;
	text-overflow: ellipsis;
	direction: rtl;

	margin-right: 5px;
}

.setlistAttachmentTeaserContainer {
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;

	background-color: gray;

	position: absolute;
}

.setlistAttachmentTeaser {
	font-weight: bold;
	font-size: 20px;
	
	color: white;

	position: absolute;
	top: 50%;
	left: 0;

	width: 100%;
	text-align: center;
}