/**
	* General
	**/

body {
	font-family: Verdana, "Lucida Grande", Tahoma, Helvetica, sans-serif;
	background-color: rgb(245, 244, 238);
	color: rgb(70, 70, 70);
}

header,
#main {
	max-width: 100%;
	width: 62em;
}

header {
	margin: auto;
	font-family: Georgia;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

header a {
	text-decoration: none;
}

header h1 {
	border-right: 1px solid rgb(100, 100, 100);
	padding-right: 25px;
	padding-top: 30px;
	padding-bottom: 50px;
	font-size: 3.2em;
	margin: 5px 0;
}

header .header-description {
	border-bottom: 1px solid rgb(100, 100, 100);
	padding-bottom: 5px;
	margin-left: 25px;
	margin-bottom: 5px;
	text-align: center;
	font: Georgia, Times, serif;
}

header .header-container-right {
	display: flex;
	flex-direction: column;
}

header .language-selector {
	display: flex;
	justify-content: center;
	gap: 5px;
}

header .language-selector img {
	width: 20px;
	border: 1px solid black;
}

#main {
	margin: auto;
	border: solid 1px rgb(180, 180, 140);
	background-color: rgb(252, 251, 246);
	margin-bottom: 15px;
}

#main-fullscreen {
	margin: auto;
	border: solid 1px rgb(180, 180, 140);
	background-color: rgb(252, 251, 246);
	margin-bottom: 45px;
}

h1 {
	margin: 0;
	color: rgb(0, 50, 70);
}

h2 {
	color: rgb(140, 20, 0);
}

h3 {
	color: rgb(140, 20, 0);
	font-size: 18px;
}

#page-title {
	margin-bottom: 20px;
	text-align: center;
}

footer {
	text-align: center;
	margin-bottom: 35px;
	color: #878787;
}

footer a {
	color: #878787;
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

/* So that it (somewhat) works on smartphones... */
@media only screen and (max-width: 1080px) {

	header,
	#main {
		max-width: 90% !important;
	}

	header h1 {
		border-right: none !important;
		text-align: center !important;
		padding-right: 0 !important;
	}

	header p {
		margin-left: 0 !important;
	}
}

/**
	* Menu
	**/

.menu {
	background-color: #dcdcd2;
	display: flex;
	flex-direction: row-reverse;
	margin-bottom: 0;
	height: 50px;
}

.menu a {
	padding: 10px;
	color: rgb(140, 20, 0);
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
}

.menu a:hover,
.menu a.current-page {
	background-color: #fcfbf6;
}

@media only screen and (max-width: 1080px) {
	.menu {
		flex-direction: column-reverse;
		text-align: center;
		height: unset;
	}
}

/**
	* Calendar
	**/

.calendar {
	width: 100%;
}

.calendar .header {
	background-color: #464646;
	color: white;
	font-weight: bold;
	display: flex;
	text-align: center;
	height: 50px;
}

.calendar .header .nav {
	width: 50px;
	border: 1px solid black;
	line-height: 50px;
	vertical-align: middle;
	text-decoration: none;
	color: white;
	font-size: 24px;
}

.calendar .header .nav:hover {
	background-color: #656363;
}

.calendar .header .title {
	flex-grow: 1;
	border: 1px solid black;
}

.calendar .header .title h2 {
	margin-top: 2px;
	line-height: 50px;
	vertical-align: middle;
	color: white;
}

.calendar .weekdays {
	background-color: #464646;
	color: white;
	font-weight: bold;
	display: flex;
	text-align: center;
}

.calendar .weekdays div {
	flex-grow: 1;
	width: 100%;
	padding: 5px;
	border: 1px solid black;
}

.calendar .row {
	display: flex;
}

.calendar .day-container {
	flex-grow: 1;
	text-align: center;
	display: flex;
	flex-direction: column-reverse;
	min-height: 175px;
	width: 100%;
	border: 1px solid black;
	position: relative;
}

.calendar .day-number {
	position: absolute;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	top: 50%;
	font-size: 48px;
	color: white;
	font-weight: bold;
	margin: auto;
	z-index: 0;
}

.calendar .day-number.empty {
	color: gray;
}

.today .day-number {
	color: red;
}

.calendar .day-container.today {
	border: 1px solid red !important;
}

.calendar .day-container .event-container {
	flex-grow: 1;
	padding: 10px;
	overflow: hidden;
	background-color: #dcc83c;
	border-top: 1px dotted black;
	display: flex;
	font-size: 10px;
	text-align: center;
	color: black;
	text-decoration: none;
}

.calendar .event-container:hover {
	background-color: #fce545 !important;
}

.calendar .day-container.empty {
	background-color: #8c8c8c;
}

.calendar .day-container .event-container .title {
	z-index: 1;
	position: relative;
	width: 100%;
	bottom: 0;
}

.calendar .day-container .event-container.manyevent-container {
	background-color: #847507 !important;
}

.calendar .day-container .event-container.manyevent-container .manyevents-title {
	height: 100%;
	width: 100%;
	top: 50px;
	color: white;
	font-size: 14px;
}

.calendar .day-container .event-container:hover {
	background-color: #f2e271;
}

.calendar .modal {
	position: fixed;
	top: 10%;
	left: 0;
	right: 0;
	margin: auto;
	width: 600px;
	border: 1px solid black;
	background-color: #fcfbf6;
	padding: 15px;
	z-index: 999;
	display: hidden;
}

.calendar .modal-container {
	border: 1px solid black;
}

.calendar .modal-header {
	display: flex;
	justify-content: space-between;
}

.calendar .modal-close-button {
	width: 40px;
	margin-top: -40px;
}

.calendar-actions {
	padding: 25px 25px 10px 25px;
	display: flex;
	justify-content: space-between;
	gap: 4px;
}

.calendar-actions a {
	color: black;
}

#main-fullscreen .day-container {
	min-height: 275px !important;
}

.desktop-calendar {
	display: block;
}

.mobile-calendar {
	display: none;
}

.mobile-calendar .weekday-container {
	writing-mode: vertical-lr;
	text-orientation: mixed;
	background-color: #464646;
	color: white;
	font-weight: bold;
	border: 1px solid black;
	width: 50px;
	text-align: center;
	line-height: 50px;
	vertical-align: middle;
}

.mobile-calendar .weekseparator {
	height: 40px;
	background-color: #464646;
}

@media only screen and (max-width: 1080px) {
	.calendar-actions {
		flex-direction: column;
	}

	.desktop-calendar {
		display: none;
	}

	.mobile-calendar {
		display: block;
	}
}

/**
	* Links & buttons
	**/

button,
input[type="submit"],
input[type="reset"] {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

.button {
	border-radius: 2px;
	padding: 4px;
	background-color: #e9e9ed;
	border: 1px solid #000;
	color: black;
	text-decoration: none;

}

.button:hover {
	background-color: #c0c0c0;
}

.text-link {
	text-decoration: underline;
	color: black;
}

.text-link:hover {
	text-decoration: none;
}

.page-content a {
	color: black;
}

/**
 * Events
 **/

.event-title {
	margin-bottom: 0px;
}

.event-metadata {
	display: flex;
	gap: 15px;
}

/**
 * Forms.
 **/

form {
	padding-top: 10px;
	padding-bottom: 10px;
}

form .flex {
	display: flex;
	gap: 10px;
	width: 100%;
}

.inline-form {
	display: flex;
	gap: 10px;
}

.form-control {
	padding-top: 5px;
	padding-bottom: 5px;
	width: 100%;
}

.form-control .field {
	width: 100%;
}

.form-control .label {
	font-weight: bold;
}

.form-control .errors {
	color: red;
}

trix-editor {
	background-color: white;
}

/**
 * Misc
 **/

.width-90 {
	display: inline-block;
	width: 90px;
}

.width-full {
	width: 100%;
}

.event-list {
	padding: 15px;
}

.homepage-announcement {
	padding-left: 20px;
	padding-right: 20px;
	margin-bottom: 0;
}

.page-content {
	padding-left: 25px;
	padding-right: 25px;
}