/****
 * DIALOGS
 ***/

 dialog {
	inset: 0;
	z-index: 100;
	display: block;
	background-color: black;
	color: white;
	border: none;
	border-radius: 15px;
	min-width: 280px;
	max-width: 420px;
	box-sizing: border-box;
	padding: 0px;
	transition: opacity .5s;
	animation: slide-out-up 0.5s forwards cubic-bezier(.25,0,.3,1);
}

dialog[open] {
    animation: slide-in-up 0.5s forwards cubic-bezier(.25,0,.3,1);
}

dialog:not([open]) {
    pointer-events: none;
	opacity: 0;
}

@keyframes slide-in-up {
	from {
		transform: translateY(-100%);
	}
}

@keyframes slide-out-up {
	to {
		transform: translateY(-100%);
	}
}

dialog form {
	padding: 30px;
}

dialog button {
	border: none;
	background-color: white;
	color: black;
	min-width: 130px;
	padding: 10px 20px;
	font-weight: bold;
	font-size: large;
}

dialog button:hover {
	filter: brightness( 85% );
	cursor: pointer;
}

dialog button.dialog-button-primary {
	background-color: var(--button-color);
	color: var(--button-text-color);
}

dialog input[type="text"] {
	width: 100%;
	padding: 5px 10px;
	box-sizing: border-box;
	box-shadow: none;
	outline: none;
}

dialog input[type="text"]:focus {
	border-color: var(--button-color);
	box-shadow: none;
	outline: none;
}

dialog .buttons-container {
	display: flex;
	justify-content: space-evenly;
	flex-direction: row-reverse;
	margin-top: 30px;
	gap: 15px;
}

dialog h2 {
	font-size: 1.45em;
	color: white;
	padding: 0px;
	margin: 0px;
}

dialog::backdrop {
	background-color: black;
	opacity: 0.4;
}
