html, body {
	margin: 0;
	background: linear-gradient(0deg, white, lightskyblue, lightskyblue);
	background-attachment: fixed;
}

body {
	/*background-color: color-mix(in srgb, whitesmoke 80%, grey);*/
	font-family: sans-serif;
	margin-top: -3em;
}

input, textarea {
	border-radius: 5px;
}

iframe {
	border: none;
}

div {
	z-index: 2;
	position: relative;
}

.last {
	margin-bottom: 4em;
}

h1 {
	margin-left: 0.5em;
	padding-top: 0.5em;
	margin-bottom: 0%;
	margin-right: 5%;
	text-shadow: 0.1em  0.1em lightgrey;
}

hr {
	color: whitesmoke;
	width: 70%;
}

.main {
	--main-width: 50%;
	background-color: white;
	border-radius: 10px;
	width: var(--main-width); 
	margin-left: calc((100% - var(--main-width)) / 2 - 1.5em); 
	margin-right: calc((100% - var(--main-width)) / 2 - 1.5em); 
	margin-top: 4em;
	box-shadow: 1em 1em whitesmoke, 2em 2em lightgrey, 3em 3em color-mix(in srgb, grey, lightgrey);
}

.text {
	text-align: center;
	padding-bottom: 2em;
	padding-top: 1em;
	margin-left: 5%;
	margin-right: 5%;
	overflow: hidden; 
}

.inline-image {
	float: right;
	max-height: 100%;
	margin-left: 1em;
	margin-top: 0.5em;
	margin-bottom: 0.5em
}

object {
	background-color: white;
}

header {
	position: absolute;
	top: 1px;
}

footer {
	position: fixed;
	width: 100%;
	z-index: 1;
	bottom: 0;
}

#grass {
	width: 100%;
	position: inherit;
	bottom: 0;
}

#disabled {
	color: grey;
	opacity: 0.5;
	pointer-events: none
}

@media only screen and (min-width: 769px) {
	/* tablets and desktop */
	.main {
		--main-width: 50%;
	}
	ul {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.inline-image {
		width: 50%;
	}
	table {
		margin-bottom: -4em;
		margin-top: -4em;
	}

}

@media only screen and (max-width: 768px) {
	/* phones */
	.main {
		--main-width: 75%;
	}
	ul {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.inline-image {
		width: 75%;
	}
	table {
		margin-bottom: -2em;
		margin-top: -2em;
	}
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
	/* portrait phones */
	.main {
		--main-width: 85%;
	}
	ul {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
	}
	.inline-image {
		float: none;
		width: 100%;
		margin-left: 0;
	}
	table {
		margin-bottom: -2em;
		margin-top: -2em;
	}

}

.edit {
	background-color: yellow;
}

@media screen and (prefers-color-scheme: dark) {
	html, body {
		background: linear-gradient(0deg, black, darkslateblue, darkslateblue);
		background-attachment: fixed;
	}
	h1 {
		color: whitesmoke; 
		text-shadow: 0.1em  0.1em color-mix(in srgb, darkgray 70%, black);
	}
	input, textarea {
		background-color: darkslategray;
		border-color: #4F2F2F;
		color: white;
	}
	.main {
		background-color: darkslategray;
		box-shadow: 1em 1em #283d3d, 2em 2em #232e2e, 3em 3em #1d2424;
	}
	.text {
		color: white
	}
	#disabled {
		color: whitesmoke
	}
	a:visited {
		color: lightsalmon;	
	}
	a:link {
		color: peachpuff; 
	}
	a:active {
		color: greenyellow;
	}
	.edit {
		background-color: darkmagenta; 
	}
}

td {
	padding-right: 1em;
	text-align: left;
}

img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
}

.date {
	margin-right: 2em;
	margin-top: 0px;
	margin-bottom: 0px;
	color: gray;
	font-size: small;
	text-align: end;
}
