﻿:root {
	--admin-color: rgba(0, 0, 0, 0.80);
	--cover-color: rgba(255, 255, 255, 0.80);
	--success-color: greenyellow;
	--admin-panel-top: 44px;
}

/* Override attributes */
body {
	margin: 0;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
	font-family: Calibri, Arial;
	overflow: auto;
	color: white;
	background-color: black;
	font-size: 18px;
}

input[type=text], input[type=password] {
	font-size: 20px;
	padding: 10px;
	margin: 0;
	border: black solid 1px !important;
	border-radius: 15px;
}

input[type=checkbox] {
	width: 30px;
	height: 30px;
}

h1 {
	margin: 0;
	padding: 0;
}

label {
	display: block;
	margin-top: 10px;
}

a {
	text-decoration: none;
}

button[type=submit] {
	border: none;
	background: transparent;
}

/* global styles */
.clickable {
	cursor: pointer;
}

.button {
	cursor: pointer;
	padding: 10px;
	font-size: 24px;
	color: black;
}

.white {
	color: white !important;
}

.scroll_to_top {
	margin-top: 10px;
	cursor: pointer;
}

	.scroll_to_top:last-child {
		margin-bottom: 20px;
	}

/* PageBackground */
.page_background {
	position: fixed;
	top: 0;
	left: 0;
	min-width: 100%;
	min-height: 100%;
	z-index: -1;
}

@media (min-aspect-ratio: 3/2) {
	.page_background {
		width: 100%;
	}
}

@media (max-aspect-ratio: 3/2) {
	.page_background {
		height: 100%;
	}
}

@media (max-aspect-ratio: 41/59) {
	.page_background {
		left: -75%;
	}
}

@media (max-aspect-ratio: 2/3) {
	.page_background {
		left: -120%;
	}
}

#hamburger_menu {
	display: none;
	background-color: var(--admin-panel-top);
	padding: 20px;
	font-size: 28px;
}

	#hamburger_menu i:first-child {
		color: var(--admin-color);
	}

#company_logo_panel img {
	position: fixed;
	top: 75px;
	left: 75px;
	max-height: 300px;
	max-width: 600px;
	z-index: 2;
	vertical-align: top;
}

/* Modal */
#myModal.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 3; /* Sit on top */
	padding-top: 100px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: var(--admin-color); /* Black w/ opacity */
}

/* Modal Content (image) */
#myModal .modal-content {
	margin: auto;
	display: block;
	height: 70%;
	border-radius: 10px;
}

/* Caption of Modal Image */
#myModal #caption {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
	text-align: center;
	color: #ccc;
	padding: 10px 0;
	height: 150px;
}

/* Add Animation */
#myModal .modal-content, #mymodal #caption {
	-webkit-animation-name: zoom;
	-webkit-animation-duration: 0.6s;
	animation-name: zoom;
	animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
	from {
		-webkit-transform: scale(0)
	}

	to {
		-webkit-transform: scale(1)
	}
}

@keyframes zoom {
	from {
		transform: scale(0)
	}

	to {
		transform: scale(1)
	}
}

/* The Close Button */
#myModal .close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
}

	#myModal .close:hover,
	#myModal .close:focus {
		color: #bbb;
		text-decoration: none;
		cursor: pointer;
	}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
	#myModal .modal-content {
		width: 100%;
		height: auto;
	}
}

/* Modal loading  */
#loading {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 240px;
	height: 240px;
	margin-top: -120px;
	margin-left: -120px;
	z-index: 3;
	display: none;
}

/* PageBlock unblock */
.unblock button {
	padding: 10px;
	border-radius: 20px;
	border: solid 1px black;
	background: white;
	margin-top: 10px;
	cursor: pointer;
}

/* AdminTools */
#admin_tools {
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	background-color: var(--admin-color);
	z-index: 3;
}

	#admin_tools img, #admin_tools input {
		margin-top: 9px;
	}

/* Mandantor */
#mandantor_panel {
	max-height: 70%;
	overflow-y: auto;
	position: fixed;
	top: var(--admin-panel-top);
	background-color: var(--admin-color);
	padding: 20px;
	width: 415px;
	z-index: 4;
}

	#mandantor_panel .background_preview_with_commands {
		display: inline-block;
	}

	#mandantor_panel .background_preview {
		max-width: 100px;
		max-height: 100px;
	}

	#mandantor_panel .delete_background_button {
		position: relative;
		left: -30px;
	}

	#mandantor_panel .logo_preview {
		max-height: 100px;
		max-width: 100px;
	}

	#mandantor_panel input[type=image] {
		margin-top: 10px;
	}

/* PageEditPanel */
#page_panel {
	position: fixed;
	top: var(--admin-panel-top);
	background-color: var(--admin-color);
	padding: 20px;
	z-index: 4;
}

	#page_panel input[type=image] {
		margin-top: 10px;
	}

/* MainMenu */
#main_menu {
	position: fixed;
	height: 50px;
	bottom: 50px;
	left: 0;
	right: 0;
	padding: 0;
	background-color: var(--cover-color);
	z-index: 3;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
}

	#main_menu.long {
		font-size: 14px;
	}

	#main_menu .menu_item {
		padding-left: 10px;
		padding-right: 10px;
		font-size: 20px;
		height: 50px;
		cursor: pointer;
		white-space: nowrap;
	}

		#main_menu .menu_item .lock {
			position: relative;
			font-size: 14px !important;
			padding: 0 !important;
			color: black;
		}

		#main_menu .menu_item a {
			display: inline-block;
			height: 50px;
			line-height: 50px;
			vertical-align: middle;
			color: black;
			text-decoration: none;
		}

		#main_menu .menu_item.current_page {
			background-color: rgba(0, 0, 0, 0.20);
		}

		#main_menu .menu_item:hover {
			background-color: rgba(0, 0, 0, 0.40);
			color: white;
		}

		#main_menu .menu_item img.hidden {
			position: relative;
			top: 8px;
		}

		#main_menu .menu_item.social img {
			margin-top: 9px;
			height: 32px;
			padding: 0 2px 0 2px
		}

	#main_menu #new_page_panel {
		position: fixed;
		bottom: 100px;
		background-color: rgba(255, 255, 255, 0.95);
		padding: 10px;
		color: black;
		border-radius: 5px;
	}

		#main_menu #new_page_panel div {
			padding: 5px;
			border-radius: 5px;
		}

			#main_menu #new_page_panel div:hover {
				background-color: rgba(0, 0, 0, 0.40);
			}

/* #text_page */
#text_page {
	color: black;
	padding: 20px;
	background-color: var(--cover-color);
	position: fixed;
	right: 25px;
	bottom: 125px;
	top: 75px;
	overflow-y: auto;
	width: 600px;
	border-radius: 20px;
}

	#text_page .top_shade {
		width: 640px;
		height: 50px;
		position: fixed;
		top: 75px;
		right: 25px;
		background: linear-gradient(to bottom, rgba(255,255,255,1) 0,rgba(255,255,255,0) 100%);
		z-index: 3;
		border-radius: 20px;
	}

	#text_page .bottom_shade {
		width: 640px;
		height: 50px;
		position: fixed;
		bottom: 125px;
		right: 25px;
		background: linear-gradient(to bottom, rgba(255,255,255,0) 0,rgba(255,255,255,1) 100%);
		z-index: 3;
		border-radius: 20px;
	}

	#text_page .commands {
		background-color: var(--admin-color);
		transition: background-color 0.5s linear;
	}

		#text_page .commands.saved {
			background-color: var(--success-color);
			transition: background-color 0.5s linear;
		}

		#text_page .commands img {
			vertical-align: middle;
		}

	#text_page .page_block_password {
		display: none;
		margin-top: 10px;
		margin-bottom: 10px;
	}

	#text_page .clipboard {
		color: black;
		transition: color 0.5s linear;
	}

		#text_page .clipboard.copied {
			color: var(--success-color);
			transition: color 0.5s linear;
		}

/* PageBlocks */
#page_block_area {
	margin-bottom: 20px;
}

/* Text page blocks */
#text_page .page_block.text .content table td {
	border-top: gray solid 1px;
	border-left: gray solid 1px;
	min-width: 10px;
	padding: 5px;
}

#text_page .page_block.text .content table tr td:last-child {
	border-right: gray solid 1px;
}

#text_page .page_block.text .content table tr:last-child td {
	border-bottom: gray solid 1px;
}

#text_page .content figure img {
	border-radius: 10px;
	cursor: pointer;
	max-width: 100%;
	max-height: 100%;
}

/* appointment text block */
.appointment table {
	margin-top: 15px;
	margin-bottom: 15px;
}

.appointment th, .appointment td {
	text-align: left;
	padding: 5px;
}

.appointment th {
	border-bottom: solid 1px black
}

.appointment td {
	font-weight: normal;
	padding-right: 20px;
}

/* price text block*/
.prices table {
	margin-top: 15px;
	margin-bottom: 15px;
}

.prices th, .prices td {
	text-align: left;
	padding: 5px;
}

.prices thead tr:first-child th {
	font-size: 22px;
	border-top: solid 1px black
}

.prices thead tr:last-child th {
	border-bottom: solid 1px black
}

.prices th.right, .prices td.right {
	text-align: right;
}

.prices td {
	font-weight: normal;
}

.prices td {
	white-space: nowrap;
}

/* TOC */
#toc .commands {
	margin-bottom: 5px;
}

.toc_entry {
	display: inline-block;
	margin-bottom: 5px;
	margin-right: 5px;
	background-color: var(--admin-color);
	color: white;
	padding: 5px;
	padding-left: 15px;
	padding-right: 15px;
	border-radius: 50px;
}

/* Files of page */
#page_files {
	margin-bottom: 20px;
}

	#page_files .list {
		margin-bottom: 10px;
	}

	#page_files img, #page_files input[type=image] {
		vertical-align: middle;
	}

/* Gallery */
#gallery_page_content input[type=image] {
	vertical-align: middle;
}

#gallery_preview {
	position: fixed;
	bottom: 0;
	left: 42px;
	right: 0;
	height: 50px;
	text-align: left;
	z-index: 3;
	background-color: rgba(255, 255, 255, 0.30);
}

	#gallery_preview nav {
		position: fixed;
		bottom: 0;
		height: 50px;
		z-index: 3;
		width: 42px;
		background-color: rgba(255, 255, 255, 0.70);
	}

		#gallery_preview nav img {
			margin-top: 10px;
		}

		#gallery_preview nav.left {
			left: 0;
			text-align: left;
		}

		#gallery_preview nav.right {
			right: 0;
			text-align: right;
		}

	#gallery_preview .preview_with_commands {
		display: inline;
	}

	#gallery_preview img.preview {
		display: inline-block;
		height: 50px;
		cursor: pointer;
		border-radius: 10px;
		/*filter: brightness(2.00);
		filter: contrast(160%);*/
		filter: sepia(100%);
	}

		#gallery_preview img.preview.current {
			box-shadow: 0px 0px 42px 7px rgba(0,0,0,0.75);
			filter: none;
		}

	#gallery_preview .preview_with_commands a i {
		position: relative;
		left: -40px;
		z-index: 6;
		top: -10px;
		color: red;
	}

#gallery_image_upload {
	position: fixed;
	bottom: 120px;
	right: 20px;
	background-color: var(--cover-color);
	color: black;
	padding: 20px;
	z-index: 3;
	border-radius: 10px;
}

#current_gallery_picture {
	position: fixed;
	top: 0;
	left: 0;
	min-width: 100%;
	min-height: 100%;
	z-index: 1;
}

#gallery_cover {
	background-color: var(--cover-color);
	height: 2000px;
	width: 100%;
	position: relative;
	top: -5px;
}

/* Login */
#login {
	text-align: center;
}

	#login input[type=image] {
		margin-top: 10px;
	}


/* Mobile styles*/
@media (min-aspect-ratio: 3/2) {
	#current_gallery_picture {
		width: 100%;
	}
}

@media (max-aspect-ratio: 3/2) {
	#current_gallery_picture {
		height: 100%;
	}
}

#engine {
	position: fixed;
	right: 50px;
	bottom: 5px;
	font-size: 10px;
	color: gray;
	font-style: italic;
}

	#engine a {
		color: gray;
		font-style: italic;
		text-decoration: none;
	}


@media screen and (max-width : 840px) {
	#hamburger_menu {
		display: inline-block;
	}

	#company_logo_panel {
		text-align: center;
		display: flex;
		justify-content: space-between;
		background-color: var(--cover-color);
		padding: 20px;
	}

		#company_logo_panel img {
			display: block;
			position: static;
			max-height: 100px;
			max-width: 100%;
			z-index: 3;
			text-align: center;
		}

	.page_block {
		text-align: center;
	}

	#main_menu {
		position: fixed;
		top: 100px;
		width: 100%;
		height: auto;
		display: none;
		z-index: 999;
		background-color: rgba(255, 255, 255, 0.90);
	}

		#main_menu .menu_item {
			text-align: center;
			border-bottom: solid 1px var(--admin-color);
		}

			#main_menu .menu_item a {
				min-width: 300px;
			}

	#text_page {
		left: 0;
		right: 0;
		width: auto;
		padding: 5px;
		bottom: auto;
		position: static;
		border-radius: 0;
		text-align: center;
	}

		#text_page p img {
			max-width: 100%;
		}

		#text_page .top_shade {
			display: none;
		}

		#text_page .bottom_shade {
			display: none;
		}

	#gallery_preview {
		position: static;
		background-color: var(--cover-color);
		text-align: center;
		top: auto;
		bottom: auto;
		height: auto;
	}

	#current_gallery_picture {
		position: static;
		background-color: var(--cover-color);
		top: auto;
		bottom: auto;
		width: 100%;
	}

	#gallery_preview nav.left {
		display: none;
	}

	#gallery_preview nav.right {
		display: none;
	}

	.content figure {
		float: none !important;
		margin: 0 !important;
		text-align: center !important;
		width: auto !important;
		max-width: none !important;
	}

		.content figure img {
			margin-left: auto;
			margin-right: auto;
		}

	.content ul {
		text-align: left;
	}
}
