/* Alert */

div.alert {
	position: absolute;
	color: var(--background);
	padding: 1em;
	left: 12%;
	right: 12%;
	bottom: 3em;
	max-width: 1024px;
	margin: 0 auto;
	border-radius: .5em;
	box-shadow: 0.15em 0.15em 0.7em rgb(0 0 0 / 10%);
	background: var(--primary-color);
	opacity: 0;
	transition: opacity .3s ease-out;
	will-change: opacity;
	display: none;
}

div.alert.show {
	display: block;
}

div.alert:not(div.alert-buttons) {
	text-align: center;
}

div.alert.visible {
	opacity: 1;
}

div.alert-container {
	display: flex;
	flex-direction: row;
}

div.alert-text {
	font-weight: bold;
	width: 100%;
}

div.alert-buttons div.alert-text {
	padding-top: .3em;
	width: 60%;
}

div.alert-text i {
	opacity: .85;
	margin-right: .5em;
}

div.alert-text a {
	font-weight: normal;
	text-decoration: underline;
	margin-left: .5em;
}

div.alert-button {
	width: 20%;
}

div.alert-button .button {
	color: var(--background);
	background: var(--box-background-light);
	text-shadow: .1em .1em 0 var(--primary-color);
	margin-bottom: 0;
	margin-left: 1em;
}

@media (max-device-width: 768px) {
	div.alert-container {
		flex-direction: column;
		text-align: center;
	}

	div.alert-buttons div.alert-text {
		margin-bottom: 1em;
	}

	div.alert-text a {
		display: block;
		margin-left: 0;
		margin-top: .25em;
	}

	div.alert-buttons div.alert-text,
	div.alert-buttons div.alert-button {
		width: 100%;
	}

	div.alert-button .button {
		margin-left: 0;
		margin-bottom: 1em;
	}

	div.alert-button:last-child .button {
		margin-bottom: 0;
	}
}

/* Button */

.button {
	color: var(--secondary-color);
	text-align: center;
	text-transform: uppercase;
	font-size: .8em;
	font-weight: 700;
	padding: .5em 1em;
	margin-bottom: 1em;
	border: none;
	border-radius: .3em;
	text-decoration: none;
	background: var(--secondary-background-light);
	display: block;
	cursor: pointer;
}

.button span {
	color: var(--primary-color);
}

.button i {
	margin-right: .5em;
	margin-left: .5em;
}

.button.attention {
	color: var(--background) !important;
	background: var(--primary-color) !important;
}

.button.attention i {
	color: var(--background) !important;
}

.button.tertiary {
	color: var(--tertiary-color);
	background: var(--tertiary-background-light);
}

.button.primary.solid {
	color: var(--box-background);
	background: var(--primary-color) !important;
}

.button.error.solid {
	color: var(--box-color) !important;
	background: var(--error-color) !important;
}

html.light .button.error.solid {
	color: var(--background) !important;
}

/* Form */

input, select, textarea {
	font: inherit;
	color: inherit;
	width: 100%;
	padding: .5em 1em;
	border-radius: .3em;
	border: 1px solid var(--primary-background-light);
	background: var(--box-background-focus);
}

input:focus, select:focus, textarea:focus {
	border-color: var(--secondary-color);
}

textarea {
	overflow: -moz-scrollbars-none;
	-ms-overflow-style: none;
}

textarea::-webkit-scrollbar {
	display: none;
}

select {
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

input::placeholder, select::placeholder, textarea::placeholder, select:invalid {
	color: var(--primary-color-light);
}

button {
	font-family: inherit;
}

button[disabled] {
	opacity: .5;
}