/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
.dialog-theme-default .modal-dialog-overlay {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 0;
	z-index: 1000;
	
	background: rgba(0, 0, 0, 0.2);

	/* center .modal-dialog */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.dialog-theme-default .modal-dialog {
	position: absolute;
	top: 10%;
	
	background: white;
	box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.7);
}

.modal-dialog .modal-dialog-content {
	min-width: 20vw;
	max-width: 80vw;
	min-height: 20vh;
	max-height: 80vh;
	overflow: auto;
}

/* shift nested dialogs */

.dialog-theme-default .modal-dialog .modal-dialog {
	margin-top: 16px;
	margin-left: 16px;
}

.dialog-theme-default .modal-dialog .modal-dialog .modal-dialog {
	margin-top: 32px;
	margin-left: 32px;
}

.dialog-theme-default .modal-dialog .modal-dialog .modal-dialog .modal-dialog {
	margin-top: 48px;
	margin-left: 48px;
}

/* shift stacked dialogs */

.dialog-theme-default ~ .dialog-theme-default .modal-dialog {
	margin-top: 16px;
	margin-left: 16px;
}

.dialog-theme-default ~ .dialog-theme-default ~ .dialog-theme-default .modal-dialog {
	margin-top: 32px;
	margin-left: 32px;
}

.dialog-theme-default ~ .dialog-theme-default ~ .dialog-theme-default ~ .dialog-theme-default .modal-dialog {
	margin-top: 48px;
	margin-left: 48px;
}