/* General */

div#main-container {
	margin-top: 1em;
	margin-bottom: 1em;
	/* padding-left: 0em;
	padding-right: 0em; */
}

#index-banner {
	max-width: 100%;
}

@media (min-width: 300px) {
	/* Add new navbar breakpoint to make Special Drinks menu more visible (instead of hiding it in collapsed burger menu) */
    .navbar-expand-xs {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-xs .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-xs .dropdown-menu {
        position: absolute;
    }

    .navbar-expand-xs .nav-link {
        padding-right: 1.0rem;
        /*padding-left: .5rem;*/
    }

    .navbar-expand-xs > .container {
        flex-wrap: wrap;
    }

    .navbar-expand-xs .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-xs .navbar-toggler {
        display: none;
    }
}

@media(max-width: 575px) {
	h1 {
		font-size: 1.8rem;
	}
	#ingredients-container {
		padding-bottom: 12em !important;
	}
}

.spaced-buttons button.btn, .spaced-buttons a.btn {
	margin: 0 5px 5px 0;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Drink Configurator */

#scroll-hint {
	display: none;
	position: absolute;
	text-align: center;
	width: 100%;
	left: 0;
	top: 90vw;
	z-index: 2;
}
#scroll-hint a {
	font-size: 200%;
	color: white;
}

@media(max-width: 767px) {
	#visu-container {
		/*position: sticky;*/
		top: 0px;
		margin-left: 0px;
	}
	#ingredients-container {
		margin-left: 5px;
	}
	#submit-bar {
		position: fixed;
		bottom: 0;
		padding: 30px;
		background: rgba(255,255,255,0.8);
		z-index: 10;
	}
	#submit-bar p {
		text-shadow: 0 0 5px #fff;
	}
}
#visu-container {
	position: relative;
}
#wizard-row #visu-container {
	height: 100%;
	position: sticky;
	top: 10px;
}
#visu-container svg {
	width: 100%;
}
#visu-container div#alc-display {
	position: absolute;
	left: 0;
	width: 100%;
	top: 90px;
	color: gray;
	font-size: 2em;
	text-align: center;
	padding: 0 20%;
}
#ingredients-container {
	background: rgba(255,255,255,0.5);
	border-radius: 5px;
	padding-bottom: 1em;
}
#ingredients-container ul {
	list-style: none;
	padding-left: 0;
}
#ingredients-container ul ul {
	padding-left: 1em;
}
#ingredients-container li {
	margin: 0 0 0.2em 0;
}
#ingredients-container div.btn-group {
	width: 100%;
}
#ingredients-container a:hover {
	background-color: #9d9fa1;
}
#ingredients-container a.plus {
	width: 80%;
	text-align: left;
}
#ingredients-container a.minus::before {
	content: '–';
	float: left;
	font-weight: bold;
}
#ingredients-container a.plus::before {
	content: '+';
	float: right;
	font-weight: bold;
}
#ingredients-container li.used-ingredient a {
	background-color: #ddffcc;
	border-color: #55ff00;
}
#ingredients-container li.used-ingredient a:hover {
	background-color: #ddffcc;
	border-color: #55ff00;
}
.ingredient ellipse, .ingredient path {
	stroke: #000000;
	stroke-width: 1px;
	stroke-opacity: 0.3;
}

.drink-code {
	border: 1px solid #bbb;
	border-radius: 3px;
	padding: 1vw;
	font-size: 8vmin;
	text-align: center;
}

.drink-price {
	border: 1px solid #bbb;
	border-radius: 3px;
	padding: 1vw;
	font-size: 8vmin;
	text-align: center;
	margin: 0.5em 0;
}

.keyboard-help-right {
	position: absolute;
	top: -50px;
	right: 0;
	border: 1px dashed silver;
	padding: 4px;
	background: rgba(255,255,255,0.8);
}

/* drink-visu-bubbles */
.bubbles {
	height: 100%;
	width: 100%;
	top: 0%;
	left: 0%;
	margin: 0px;
	padding: 0px;
	/*border: 3px dashed gray;*/
	position: absolute;
}
.bubbles div {
	height: 4%;
	aspect-ratio: 1;
	border: 3px solid rgba(150, 150, 150, 0.3);
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	position: absolute;
	/*animation: 4s linear infinite;*/
}
/*div .bubble-reflection {
	height: 20%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	position: absolute;
	top: 20%;
	right: 20%;
}*/
@keyframes bubbles-animate {
	0% {
		transform: scale(0) translateY(0) rotate(180deg);
		opacity: 1;
	}
	100% {
		transform: scale(0.6) translateY(-900%) rotate(300deg);
		opacity: 0;
	}
}

/* Container visu */
#container-visu-container {
	margin-left: auto;
	margin-right: auto;
}

#container-visu-container > svg {
	width: 100%;
	height: 100%;
}

#svg-cont-container .container ellipse {
	stroke: #000000;
	stroke-width: 1px;
	stroke-opacity: 0.3;
	fill: none;
	transition: stroke 0.1s ease-in-out;
}
#svg-cont-container .container ellipse.level-warning {
	stroke: #ffdd00;
	stroke-width: 3px;
	stroke-opacity: 0.6;
	fill: #ffdd00;
	fill-opacity: 0.3;
}
#svg-cont-container .container ellipse.level-danger {
	stroke: #ff0000;
	stroke-width: 3px;
	stroke-opacity: 0.6;
	fill: #ff0000;
	fill-opacity: 0.3;
}
#svg-cont-container .container ellipse.level-invalid {
	stroke: #000000;
	stroke-width: 3px;
	stroke-opacity: 1;
	fill: #000000;
	opacity: 0.3;
}
#svg-cont-container .container text.container-no {
	text-anchor: middle;
	dominant-baseline: central;
	font-size: 64px;
	opacity: 0.3;
}
#svg-cont-container .container text.container-level {
	text-anchor: middle;
	dominant-baseline: central;
	font-size: 32px;
}
#svg-cont-container .container text.container-name {
	text-anchor: middle;
	dominant-baseline: central;
	font-size: 22px;
	fill: #333;
	-webkit-filter: drop-shadow( 0px 0px 2px #FFF );
	filter: drop-shadow( 0px 0px 2px #FFF );
}
#svg-container {
	transition: opacity 0.5s ease-in-out;
}

/* Order list */
div.order-right div {
	display: inline-block;
	margin-left: 0.5em;
}
div.order-buttons {
	min-width: 5.5em;
}
span.order-drinkalias {
	margin: 0 0.1em 0 1em;
	text-decoration: underline;
}
span.order-drinkid {
	margin: 0 1em 0 0.1em;
}
span.order-drinkid:not(:empty)::before {
	content: '(';
}
span.order-drinkid:not(:empty)::after {
	content: ')';
}

/* Bartender visu */
.remove-container-padding {
	margin-left: -15px;
	margin-right: -15px;
}

.bartender-drink-alias {
	/* font-size: 400%; */
}
.bartender-ingredient-name {
	font-size: 1.25em;
	font-weight: 700;
}
.bartender-ingredient-volume {
	font-size: 1em;
}
#signals {
	font-size: 48px;
}
#bartender-ingredients > div {
	margin-bottom: 1em;
}
#orders_list.bartender-order-list {
	min-height: 10em;
	display: flex;
}

/* Waiter ingredients */
#waiter-ingredients, #waiter-price, #bartender-price {
	position: absolute;
	background: rgba(255,255,255,0.5);
	padding: 0.5em;
	font-size: 200%;
	border-radius: 0.2em;
}
#waiter-ingredients {
	right: 5%;
	top: 35%;
}
#waiter-price, #bartender-price {
	right: 0;
	font-size: 500%;
}
#waiter-ingredients ul {
	list-style: none;
}
#waiter-ingredients ul li span.ingr-name {

}

#order_pad_price {
	font-size: 300%;
	text-align: right;
}

/* Session drinks */
#session-drinks {
	list-style: none;
	padding-left: 0;
}

#session-drinks > li {
	margin-bottom: 1em;
}

.session-drink-ingredients {
	font-size: 130%;
}

#session-drinks .card-title {
	font-size: 200%;
}

/* Messages */
#user-alerts {
	position: fixed;
    z-index: 1;
    opacity: 0.8;
    background-color: #fff;
    width: 100%;
    padding: 15px;
    font-size: 200%;
    bottom: 0;
    left: 0;
}

/* Icons */

.ico {
	width: 1em;
	height: 1em;
	display: inline-block;
	background-size: contain !important;
}

.ico-glass {
	background: url(icon-glass-white.svg);
}

.ico-glass-black {
	background: url(icon-glass.svg);
}

/* Floating list items */
.floating-list li {
	transition: all 0.4s ease-out;
	max-height: 6em;
	overflow: hidden;
}
.floating-list li.hidden {
	max-height: 0;
	padding: 0;
	border-width: 0;
}

/* bartender order list */
.bartender-order-waiter {
	height: 100%;
}

.bartender-order-list {
	overflow-x: hidden;
	white-space: nowrap;
	direction: rtl;
	text-align: right;
	line-height: 1.2;
}
.bartender-order-list.floating-list > div {
	transition: all 0.4s ease-out;
	min-width: 10em;
	max-width: 10em;
	overflow: hidden;
	white-space: normal;
	direction: ltr;
	display: inline-block;
	padding: 0;
	text-align: left;
}
#orders_list_head > div {
	text-align: center;
	height: 4em;
	vertical-align: bottom;
	background: linear-gradient(white, transparent);
}
#orders_list_head > div > span {
	position: relative;
	top: 2em;
}
.bartender-order-list.floating-list > div > div {
	margin: 0;
	min-width: 10em;
	max-width: 10em;
	padding: 0.2em;
}
.bartender-order-list.floating-list > div::-webkit-scrollbar {
	display: none;
}
.bartender-order-list.floating-list > div.hidden {
	max-width: 0;
	min-width: 0;
}

/* label print page */
.label-container-number {
	font-size: 320%;
}
.label-ingredient-name {
	font-size: 170%;
}
.label-height {
    height: 40mm;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.label-position {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}
.labelBorder {
     border-style: solid;
     border-color: rgba(0, 0, 255, 0.1);
}
.label-qr-subtitle-small {
    text-align: center;
    font-size: 140%;
}
.label-qr-subtitle-large {
    text-align: center;
    font-size: 280%;
}

/* Event editor */
div.event-editor div.ev-container {
	margin-bottom: 30px;
}
div.event-editor div.ev-container span.container-id {
	display: inline-block;
	padding: 5px 15px;
	background: silver;
	font-size: 200%;
	color: white;
}
div.event-editor div.selected span.container-id {
	display: inline-block;
	padding: 5px 15px;
	background: silver;
	font-size: 200%;
	color: white;
}
div.event-editor div.ev-container span.container-ingredients {
	flex: 1;
	vertical-align: middle;
}
div.event-editor div.ev-container span.container-ingredients .badge {
	margin: 5px;
}

/* Self service */
body#self-service, html.self-service {
	text-align: center;
	height: 100%;
	overflow: hidden;
	font-size: 2vw;
}

.self-service-customer {
	transition: height 1s;
}

.self-service-customer .carousel {
	height: 100%;
}

body#self-service > div {
  position: relative;
}

body#self-service > .primary-alone {
	height: 100%;
}

body#self-service > .primary-not-alone {
	height: 70%;
}

body#self-service > .secondary {
	height: 30%;
	font-size: 0.5rem;
}

body#self-service > .secondary h1 {
	font-size: 1.5rem;
}

body#self-service h1, body#self-service h2 {
	color: #FFF;
}

body#self-service h1 {
	font-size: 3.5rem;
}

body#self-service h2 {
	font-size: 1.3rem;
}

body#self-service .alert-style {
	font-size: 2rem;
	margin: 0 1.5rem;
	padding: 1.5rem;
	color: rgb(255, 255, 255);
	background-color: #7c00007a;
}

body#self-service .icon-style {
	margin: 2rem 1rem;
}

body#self-service .text-darker {
	color: #bbb;
}

body#self-service > .hidden {
	height: 0%;
}

body#self-service .carousel-inner {
	height: 100%;
}

body#self-service .carousel-inner .hideable {
	opacity: 1;
	transition: opacity font-size margin padding 0.2s;
}

body#self-service .carousel-inner .hidden {
	opacity: 0;
	font-size: 0;
	margin: 0;
	padding: 0;
}

body#self-service .carousel-item {
	padding-top: 4em;
	height: 100%;
}

body#self-service .step-scan-code {
	background: #000;
	background-image: url("selfservice-bg-1.jpg");
	background-repeat: no-repeat;
	background-position: 50% 50%;
}
body#self-service .step-put-glass {
	background: #000;
	background-image: url("selfservice-bg-2.jpg");
	background-repeat: no-repeat;
	background-position: 50% 50%;
}
body#self-service .step-start {
	background: #000;
	background-image: url("selfservice-bg-3.jpg");
	background-repeat: no-repeat;
	background-position: 50% 50%;
}
body#self-service .step-prod {
	background: #000;
	background-image: url("selfservice-bg-6.jpg");
	background-repeat: no-repeat;
	background-position: 50% 50%;
}
body#self-service .step-take-glass {
	background: #000;
	background-image: url("selfservice-bg-4.jpg");
	background-repeat: no-repeat;
	background-position: 50% 50%;
}

body#self-service .cam-preview {
	transition: max-height 1s;
}
body#self-service .primary-alone .cam-preview {
	max-height: 50vh;
}

body#self-service .secondary .cam-preview {
	max-height: 10vh;
}

body#self-service .cam-preview.hidden {
	max-height: 0vh;
}

body#self-service .next-customer {
	opacity: 0;
	transition: opacity font-size margin padding 0.2s;
	font-size: 0rem;
	margin: 0;
	padding: 0;
}

body#self-service .secondary .next-customer {
	opacity: 1;
	color: #ffffff;
	font-size: 2.5rem;
	margin: 0 0 0 1em;
	padding: 0;
}

body#self-service .secondary-waiting {
	font-size: 2rem;
}

body#self-service .drink-visu-overlay {
	position: absolute;
	z-index: 1;
	width: 100vw;
	bottom: 0;
	text-align: center;
}

body#self-service .drink-visu-overlay {
	transition: max-height 1s, max-width 1s, height 1s, width 1s, opacity 1s ease 0.5s;
	opacity: 0;
}
body#self-service .drink-visu-overlay.visible {
	opacity: 1;
}
body#self-service .primary-alone .drink-visu-overlay img {
	max-height: 60vh;
	max-width: 50vw;
}
body#self-service .primary-not-alone .drink-visu-overlay img {
	max-height: 40vh;
	max-width: 40vw;
}
body#self-service .secondary .drink-visu-overlay img {
	max-height: 20vh;
	max-width: 10vw;
}
