:root {
	/* Colours */
	--green: #009900;
	--mGreen: #22BB22;
	--lGreen: #33CC33;
	--lGrey: #F0F0F0;
	--logoGrey: #666666;

	/* Variables */
	--gaps: 4px;
}

/********/
/* BASE */
/********/

html {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
}

body {
	background-color: var(--lGrey);
	padding: 2vw;
	margin: 0;
	display: flex;
	justify-content: center;
}

h1 {
	color: var(--green);
	font-weight: 400;
}

a {
	color: var(--green);
	text-decoration: none;
}

a:hover {
	color: var(--lGreen);
	text-decoration: underline;
}
a:hover * {
	text-decoration: none;
}

img {
	color:var(--logoGrey);
}

#page {
	position: relative;
	max-width: 100vw;
	width: 80em;
	display: flex;
	flex-direction: column;
	background-color: transparent;
	filter: drop-shadow(0 0 3em var(--logoGrey));
	gap: var(--gaps);
	overflow: auto;
}

header {
	display: flex;
	align-items: stretch;
	width: 100%;
	gap: var(--gaps);
	flex-wrap: wrap;
}

#logo-container {
	flex: 1;
	width: inherit;
}

#logo {
	padding: 30px;
	min-width: 0;
}

nav {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--gaps);
	flex: 1;
}

nav a {
	padding: 20px;
	font-size: 1.5em;
	font-weight: bold;
	flex: auto;
	display: flex;
	justify-content: center;
}

#topsplit {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gaps);
}

/* Sidebar */

#sidebar {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: var(--gaps);
	text-align: center;
	flex: 1;
}

#lower-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--gaps);
	flex-grow: 1;
}

.sidebarelem {
	margin: 0;
	padding: var(--gaps);
	background-color: white;
}

#sidebarspacer {
	flex-grow: 1;
}

#calendar-wrapper {
	padding: 0.6em;
	display: flex;
	justify-content: center;
}
#calendar {
	position: relative;
	max-width: 40vw;
	height: min-content;
}
#calendar-base {
	position: relative;
	width: 100%;
	top: 0; left: 0;
}
#calendar-overlay {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
}

#hand {
	position: absolute;
	background-color: var(--logoGrey);
	width: 40%;
	height: 10px;
	border-radius: 5px;
	top: 50%;
	left: 50%;
	translate: -5px -5px;
	transform-origin: 5px 5px;
}

#date {
	font-size: 1.3em;
	white-space: nowrap;
}

/* main page */

main {
	background-color: white;
	flex: 9999;
	font-size: 1.2em;
	padding: 2em;
	min-height: 100vh;
	min-width: 60%;
}

#article-image {
	float: right;
	margin-left: 1em;
	margin-bottom: 1em;
	width: 50%;
	background-color: var(--lGrey);
	min-height: 20%
}

#article-title {
	font-size: 3.2em;
	margin-top: 0;
	margin-bottom: 0.5em;
}

#article-title-rule {
	margin-bottom: 2em;
}
.article-small-rule {
	border-top: 0px solid white;
}

/* footer */

.footerwrapper {
	background-color: white;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.footerelem {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5em;
	height: 2em;
}

#watermark {
	color: gray;
}


.blocklink {
	display: flex;
	justify-content: center;
	text-align: center;
	background-color: white;
}
.blocklink:hover {
	background-color: var(--lGrey);
}


.vfill {
	align-items: center;
	display: flex;
}



/* Food of the Week */

#fotw {
	overflow: hidden;
	padding: 0.5em
}

#fotwimg {
	float: right;
	min-width: 30%;
	max-width: 50%;
	margin: 0.5em;
}

#fotw h2 {
	margin-top: 0.5em;
}





#nutrition {
	float: right;
	background-color: var(--lGrey);
	width: 50%;
	padding: 1em;
	margin: 0 0 0.5em 1em;
	box-sizing: border-box;
}

#nutrition h3 {
	margin-top: 0;
}


#books {
	display: flex;
	/*padding: 1em;*/
	gap: 1em;
	flex-wrap: wrap;
}

.book {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	text-align: center;
	/*gap: 1em;*/
}

.book a {
	display: block;
	gap: 0.4em;
	display: flex;
	flex-direction: column;
	padding: 0.8em;
}
.book a:hover {
	background-color: var(--lGrey);
}

.book img {
	/* max-width: 100%; */
	max-height: 20em;
}

.bookname {
	/*color: var(--logoGrey);*/
}

.recipename {
	font-size: 1.1em;
}


#food-select {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gaps);
}

#food-select * {
	flex: 1;
	border: none;
	border-radius: var(--gaps);
	padding: var(--gaps);
}

#food-select select {
	min-width: 50%;
	text-overflow: ellipsis;
}

#food-select input {
	background: var(--mGreen);
	color: white;
	font-size: 1.1em;
	font-weight: bold;
	border-bottom: 2px solid var(--green);
	&:hover {
		background: var(--lGreen);
	}
	&:active {
		background: var(--green);
	}
}
