/* Gehoert zu JavaScript/Dist/one-time-modal.js - siehe dort fuer Verwendung. */

dialog[data-one-time-modal] {
	/* Zentrierung explizit statt sich auf den (durch Bootstraps Reset teils
	   ueberschriebenen) UA-Standard von <dialog> zu verlassen. */
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	max-width: 32rem;
	width: calc(100% - 2rem);
	max-height: calc(100% - 2rem);
	overflow: auto;
	padding: 1.5rem;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

dialog[data-one-time-modal]::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

dialog[data-one-time-modal][open] {
	animation: one-time-modal-in 0.25s ease-out;
}

@keyframes one-time-modal-in {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: none; }
}

dialog[data-one-time-modal] [data-modal-close] {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
