/* dynax.at look for small static sites (lucena.cc, ehrhardt.cc, elektropico.com) on base.css: header, a content
   card and a footer at the bottom of the page; phones get a full-width card. A page sets only what it does differently. */
@import url(../base.css);

:root {
	--card-light: rgba(255,255,255,0.3);
	--card-dark: rgba(60,60,60,0.1);
}
html, body {
	padding: 0;
	height: 100%;
}

#container {
	min-height: 90%;
	position: relative;
	padding-bottom: 100px;
}
#header {
	font-family: "Offside", sans-serif;
	padding: 20px;
	line-height: 0.9;
}
#header table {
	margin: auto;
}
#body {
	width: 60%;
	font-size: 13px;
	padding: 40px;
	margin: auto;
	border: 1px solid;
	border-color: var(--card-dark) var(--card-light) var(--card-light) var(--card-dark);
	border-radius: 20px;
	overflow: auto;
}
#footer {
	font-family: "Offside", sans-serif;
	font-size: 60%;
	text-align: center;
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 60px;
}

/* phones: the card fills the width, images shrink, the footer follows the content but stays at the bottom;
   "html body" outranks the page's own #body/#footer settings */
@media (max-width: 600px) {
	#container {
		display: flex;
		flex-direction: column;
		min-height: 100%;
		padding-bottom: 0;
	}
	html body #body {
		width: auto;
		margin: 0 12px;
		padding: 20px;
	}
	#body img, #footer img {
		max-width: 100%;
		height: auto;
	}
	html body #footer {
		position: static;
		height: auto;
		margin-top: auto;
		padding: 20px 0;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--card-light: rgba(255,255,255,0.08);
		--card-dark: rgba(0,0,0,0.3);
	}
}
