@keyframes dialogfade {
	from { opacity: 0; transform: scale(0.7); }
	to { opacity: 1; transform: scale(1); }
}

/* Notifications */

#notifications {
	position: fixed;
	top: 0;
	left: calc(50% - 15em);
	width: 30em;

	padding: 0.5em;
	text-align: center;
	z-index: 100;
	pointer-events: none;
}

.notification {
	display: block;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	pointer-events: all;

	width: 100%;
	max-height: 20em;
	padding: 0.1em 0 0.1em 0;
	margin-bottom: 0.5em;

	opacity: 1;
	box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
	font-size: 2em;
	border-top: 2px solid;
	border-bottom: 2px solid;

	transition: 0.125s max-height, 0.25s padding, 0.25s opacity, 0.25s margin-bottom;
}

.notification.animate {
	max-height: 0;
	padding: 0;
	opacity: 0;
	margin-bottom: 0;
}

.notification.hidden {
	max-height: 0;
	padding: 0;
	opacity: 0;

	transition: 1s max-height, 2s padding, 2s opacity;
}

.notification.negative {
	background: linear-gradient(to right, rgba(45, 10, 10, 0.5) 0%, rgba(45, 10, 10, 1) 30%, rgba(45, 10, 10, 1) 70%, rgba(45, 10, 10, 0.5) 100%) !important;
	box-shadow: 0px 8px 8px rgba(13, 3, 3, 0.8), inset 0 -32px 32px -32px, rgba(13, 3, 3, 0.8) !important;
	color: #F0BCBC !important;
	text-shadow: 0px 0px 3px #0D0303 !important;
	border-color: rgba(211, 60, 60, 0.8) !important;
}

.notification.negative::selection {
	background-color: #F0BCBC !important;
	color: #2D0A0A !important;
}

.notification.negative::-moz-selection {
	background-color: #F0BCBC !important;
	color: #2D0A0A !important;
}

/* Dialogs */

.dialog-container {
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 80;
	overflow-y: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dialog-container.animate {
	animation: fadein 0.5s;
}

.dialog-container.hidden {
	animation: fadein 0.5s reverse;
}

.dialog {
	width: 40em;
	text-align: left;

	border: 2px solid;

	border-image: linear-gradient(145deg, #FFAA22 0%, #FA9A00 60%, #D38200 100%) 1;
	color: #FFAA22;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.6);
}

.dialog.animate {
	animation: dialogfade 0.3s;
}

.dialog.hidden {
	animation: dialogfade 0.5s reverse;
}

.dialog-icon {
	display: inline-block;
}

.dialog-header {
	font-family: "Header";
	border-bottom: 2px solid;
	height: 21px;
	line-height: 21px;

	border-image: linear-gradient(to right, #FFAA22 0%, #FA9A00 60%, #D38200 100%) 1;
	background: linear-gradient(to right, rgba(255, 170, 34, 1) 20%, rgba(14, 9, 0, 0.8) 100%);
	color: #0E0900;
}

.dialog-inner {
	position: relative;

	padding: 0.5em;

	background-color: rgba(14, 9, 0, 0.8);
}

.dialog-text-block {
	display: inline-block;

	width: calc(100% - 96px - 0.5em);
	vertical-align: top;
	margin-left: 0.5em;
}

.dialog-text-title {
	font-size: 2em;
	font-family: "Bold";
}

.dialog-text {
	font-size: 1.25em;
	margin-left: 1em;

	color: #E68E00;
}

.dialog-buttons {
	width: 100%;
	margin: 0.5em -0.5em -0.5em -0.5em;
	padding: 0.5em;
	border-top: 2px solid;
	text-align: right;

	background-color: rgba(3.5, 2.25, 0, 0.6);
}

.dialog-button {
	position: relative;
	display: inline-block;
	text-align: center;

	border: 2px solid;

	font-size: 1.5em;
	cursor: pointer;
	padding: 0 0.5em;

	margin-left: 0.5em;

	border-color: #FFAA22;
	filter: brightness(70%);

	transition: 0.3s filter;
}

.dialog-button:hover, 
.dialog-button.confirm {
	filter: brightness(100%);
}

.dialog-button:active {
	background-color: #FFAA22;
	color: #0E0900;
}

/* -- Error -- */

.dialog.error {
	border-image: linear-gradient(145deg, #D33C3C 0%, #BD2B2B 60%, #9D2424 100%) 1;
	/* color: #??????; */
}

.dialog.error .dialog-header {
	border-image: linear-gradient(to right, #D33C3C 0%, #BD2B2B 60%, #9D2424 100%) 1;
	background: linear-gradient(to right, rgba(211, 60, 60, 1) 20%, rgba(211, 60, 60, 0) 100%);
	color: #0D0303;
}

/* -- Storage -- */

.dialog.storagepop .dialog-inner {
	height: 32vh;
	overflow-y: auto;

	padding: 0;

	background-color: rgba(10.5, 6.75, 0, 0.8);
}

.dialog.storagepop .storage-item {
	max-height: 16em;
	padding: 0.5em;
	opacity: 1;

	border-bottom: 1px solid;

	transition: 0.3s max-height, 0.3s padding-top, 0.3s padding-bottom, 0.3s opacity;
}

.dialog.storagepop .storage-item.hidden {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
}

.dialog.storagepop .storage-name {
	display: inline-block;

	font-family: "Bold";
	font-size: 2em;
}

.dialog.storagepop .storage-desc {
	display: inline-block;
	margin-left: 1em;

	vertical-align: -25%;
	font-size: 1em;
}

.dialog.storagepop .storage-desc-secondary {
	color: rgba(255, 170, 34, 0.8);
}

.dialog.storagepop .delete-cookie-button {
	cursor: pointer;
	border-bottom: 1px dotted;

	color: rgba(255, 170, 34, 1);
}

.dialog.storagepop .dialog-buttons {
	margin: 0;
	width: calc(100% - 1em);
}

.dialog-container ::selection {
	background-color: #FFAA22 !important;
	color: #0E0900 !important;
}

.dialog-container .dialog-header::selection {
	background-color: #0E0900 !important;
	color: #FFAA22 !important;
}

.dialog-container .dialog-header ::selection {
	background-color: #0E0900 !important;
	color: #FFAA22 !important;
}

.dialog-button:active::selection {
	background-color: #0E0900 !important;
	color: #FFAA22 !important;
}

.dialog-container ::-moz-selection {
	background-color: #FFAA22 !important;
	color: #0E0900 !important;
}

.dialog-container .dialog-header::-moz-selection {
	background-color: #0E0900 !important;
	color: #FFAA22 !important;
}

.dialog-container .dialog-header ::-moz-selection {
	background-color: #0E0900 !important;
	color: #FFAA22 !important;
}

.dialog-button:active::-moz-selection {
	background-color: #0E0900 !important;
	color: #FFAA22 !important;
}

/* Color specific */

/* -- Blue -- */

[data-color="blue"] .notification {
	background: linear-gradient(to right, rgba(14, 21, 44, 0.5) 0%, rgba(14, 21, 44, 1) 30%, rgba(14, 21, 44, 1) 70%, rgba(14, 21, 44, 0.5) 100%);
	color: #B3BFE8;
	/* text-shadow: 0px 0px 3px #B3BFE8; */
	/* box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5), inset 0 -32px 32px -32px rgba(149, 166, 222, 0.6); */
	border-color: rgba(149, 166, 222, 0.6);
}

/* -- Orange -- */

[data-color="orange"] .notification {
	background: linear-gradient(to right, rgba(26, 19, 8, 0.5) 0%, rgba(26, 19, 8, 1) 30%, rgba(26, 19, 8, 1) 70%, rgba(26, 19, 8, 0.5) 100%);
	color: #FFAA22;
	border-color: #FFAA22;
}
