:root {
	--mdc-theme-primary: #4527A0;
}

body {
	margin: 0;
	padding: 0;
	background-color: #FFF;
	background-position: center;
	background-size: cover;
}

a {
	color: var(--mdc-theme-primary);
	text-decoration: none;
}

.main-panel > div > div:nth-child(2) {
	height: calc(100vh - 2*var(--mdc-layout-grid-margin-desktop, 24px));
	display: flex;
	width: 100%;
	align-items: center;
}

.content-panel {
	border: 1px solid #DDD;
	border-radius: 5px;
	width: 100%;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
	background-color: #FFF;
	transition: max-height 0.5s;
}

.content__header__image {
	height: 150px;
	width: 100%;
	display: block;
	padding-top: 20px;
	user-select: none;
	-moz-user-select: none;
	-webkit-user-select: none;
	pointer-events: none;
	transition: opacity 0.3s;
}

.content__body {
	padding: 20px;
	overflow: hidden;
}

.content-alert {
	position: absolute;
	border-radius: 5px 5px 0 0;
	transition: max-height 0.3s;
	padding: 0;
	overflow: hidden;
}

.content-alert > .mdc-layout-grid {
	padding: 0;
}

.content-alert__text {
	width: 100%;
	margin: 0;
	padding: 0;
	line-height: 30px;
	margin-left: 10px;
	font-family: Jost;
	font-size: 14px;
}

.content-alert__icon {
	vertical-align: middle;
	font-size: 20px;
	color: #FFF;
	line-height: 30px;
	margin-left: 10px;
}

.content-alert__close-button {
	float: right;
	margin-right: 10px;
	cursor: pointer;
	transition: color 0.2s;
}

.content-alert__close-button:hover {
	color: #DDD;
}

.content-alert--error {
	background-color: #CC0000;
}

.content-alert--error .content-alert__text,
.content-alert--error .content-alert__icon,
.content-alert--error .content-alert__close-button {
	color: #FFF;
}

.content-alert--error .content-alert__icon--success,
.content-alert--error .content-alert__icon--info {
	display: none;
}

.content-alert--info {
	background-color: #0000EE;
}

.content-alert--info .content-alert__text,
.content-alert--info .content-alert__icon,
.content-alert--info .content-alert__close-button {
	color: #FFF;
}

.content-alert--info .content-alert__icon--success,
.content-alert--info .content-alert__icon--error {
	display: none;
}

.content-alert--success {
	background-color: #00CC00;
}

.content-alert--success .content-alert__text,
.content-alert--success .content-alert__icon,
.content-alert--success .content-alert__close-button {
	color: #444;
}

.content-alert--success .content-alert__icon--info,
.content-alert--success .content-alert__icon--error {
	display: none;
}

.content-alert--hidden {
	max-height: 0 !important;
}

.content-alert--visible {
	max-height: 30px; /* This is just a placeholder; the real
													 max-height is set in common.js just
													 before the error is shown. This is to
													 support multi-line error messages.*/
}

.language-panel {
	position: fixed;
	right: 0;
	padding: 0;
	margin: 0;
	padding: 10px;
}

.language-panel__selector-button {
	border: 1px solid var(--mdc-theme-primary);
}

.language-panel__selector-button i {
	font-size: 20px;
}

.language-panel__selector-icon-button {
	color: var(--mdc-theme-primary);
	display: none;
}

#language-selector__drop-down {
	left: auto !important;
	right: 10px !important;
	top: 10px !important;
}

#language-panel__selector-form,
.translations {
	display: none;
	pointer-events: none;
}

.mobile {
	overflow-x: hidden;
}

.mobile .main-panel {
	padding: 0;
}

.mobile .mdc-layout-grid__cell--span-0-phone {
	display: none;
}

.mobile .main-panel > div > div:nth-child(2) {
	height: 100vh;
	width: 100vw;
}

.mobile .content-panel {
	min-height: 100%;
}

.mobile .language-panel__selector-icon-button {
	display: block;
}

.mobile .language-panel__selector-button {
	display: none;
}

.mdc-checkbox__background {
	border-color: var(--mdc-theme-primary) !important;
	background-color: var(--mdc-theme-primary) !important;
}

.mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate) ~ .mdc-checkbox__background {
	border-color: rgba(0,0,0,.54) !important;
	background-color: transparent !important;
}