/**
 * 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;	
}

body {
	height: 100%;
	margin: 0;
    padding: 0;	
    font-family: Avenir, Calibri, Helvetica, Arial, sans-serif; 
}

#all {
	height: 100vh;
}

header {
	background-color: #666;
	color: #d2d2d2;
	
	/*padding: 10px;*/
	width: 100%;
	height: 55px;
	
	overflow: hidden; 
	text-align: center;
	
	position: absolute;
	top: 0;
	left: 0;
}

section {
	display: -webkit-flex;
	display: flex;
	display: -moz-flex;

	overflow: auto; 

	height: calc(100vh - 55px);
	width: 100%;

	position: absolute;
	top: 55px;
	left: 0;
}

nav {
	background-color: lightgrey;
	brightness: 2;
	border-right: 1px solid darkgrey;
	
	/*min-height: calc(100vh - 55px);*/
	
	font-size: 16px;
	
	position: relative;
	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; 
}

article {
	-webkit-flex: 5;
	-ms-flex: 5;
	flex: 5;
	background-color: #f1f1f1;
	padding: 0;
	position: relative;
}

.mainPanel {
	height: 100%;
	width: 100%;
	background-color: white;
	overflow: auto;
	position: absolute;
}

#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;
}

.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);
}

.dialogTable {
	width: 100%;
}

#createNameInput {
	width: 100%;
}

/* For selectize elements */
.option {
	width: fit-content;
	min-width: 100%;
	white-space: nowrap;
}
