/* SLOVENERGO – statická verzia webu */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #fff;
	background: #20201e url(../img/bg.png) center top no-repeat;
}

a { color: #fff; text-decoration: underline; }
a:hover { text-decoration: none; }

img { border: 0; max-width: 100%; height: auto; }

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: 16px;
	top: 16px;
	z-index: 10;
	padding: 6px 10px;
	background: #fff;
	color: #000;
}

/* ---------- layout ---------- */

#container {
	position: relative;
	left: -2px; /* the artwork in bg.png is 2 px left of centre */
	width: 766px;
	margin: 0 auto;
}

#header {
	height: 135px;
	margin: 0;
}
#header a {
	display: block;
	width: 400px;
	height: 135px;
}
#header img { display: none; }

#panel {
	position: relative;
	min-height: 440px;
	padding: 20px 22px 24px;
	/* the panel artwork from the page background, then plain green if the text is longer */
	background: #12a203 url(../img/panel.png) left top no-repeat;
}

#panel.home { padding: 0; }

/* ---------- navigation ---------- */

#bar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-top: 6px;
}

#menu ul {
	display: flex;
	width: 640px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid #129603;
}
#menu li { flex: 1 1 0; }
#menu a {
	display: block;
	height: 30px;
	line-height: 28px;
	text-align: center;
	text-decoration: none;
	color: #fff;
	font-size: 12px;
	border-radius: 0 0 64px 64px / 0 0 26px 26px;
}
#menu a:hover,
#menu a:focus-visible,
#menu a.active {
	background: #13a103;
}

#languages {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 6px 18px 0 0;
	list-style: none;
}
#languages a {
	display: block;
	line-height: 0;
	opacity: .75;
}
#languages a:hover,
#languages a.active { opacity: 1; }

#footer {
	padding: 50px 0 30px;
	text-align: center;
	color: #8a8c89;
	font-size: 12px;
}
#footer a { color: #8a8c89; text-decoration: none; }
#footer a:hover { text-decoration: underline; }

/* ---------- content ---------- */

.content { text-align: justify; }
.content::after { content: ""; display: block; clear: both; }

.content h2 {
	margin: 0 0 12px;
	font-size: 17px;
	text-transform: uppercase;
	text-align: left;
}
.content h3 {
	margin: 18px 0 6px;
	font-size: 13px;
	text-transform: uppercase;
	text-align: left;
}
.content p { margin: 0 0 12px; }
.content ul { margin: 6px 0 14px; padding-left: 25px; list-style: square; }
.content table { border-collapse: collapse; margin: 0 0 14px; text-align: left; }
.content td { padding: 2px 12px 2px 0; vertical-align: top; }

.home-link {
	float: right;
	margin-left: 12px;
	font-size: 12px;
}

.side-images {
	float: right;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px 18px;
}
.side-images img,
.side-images a {
	display: block;
}
.side-images img {
	padding: 5px;
	background: #fff;
	border: 2px solid #bfbfc0;
}

.address { margin: 0 0 10px; }

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 30px;
}

/* homepage slogan */
.slogan {
	position: absolute;
	top: 186px;
	left: 78px;
	margin: 0;
}
.slogan img { display: block; }

/* ---------- lightbox ---------- */

.lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 16px;
	background: rgba(0, 0, 0, .85);
	cursor: zoom-out;
}
.lightbox-overlay img {
	max-height: 85vh;
	padding: 6px;
	background: #fff;
}
.lightbox-overlay p { margin: 10px 0 0; text-align: center; }

/* ---------- small screens ---------- */

@media (max-width: 800px) {
	body { background: #20201e url(../img/tile.png); }

	#container {
		left: 0;
		width: auto;
		padding: 0 16px;
	}

	#header { height: auto; }
	#header a { width: auto; height: auto; }
	#header img { display: block; max-width: 300px; width: 75%; margin: 0 auto; }

	#panel {
		min-height: 0;
		padding: 18px 16px 20px;
		background: #12a203 url(../img/panel.png) center top / 100% auto no-repeat;
	}
	/* homepage keeps the panel proportions so the slogan sits on the artwork as on desktop */
	#panel.home { padding: 0; aspect-ratio: 766 / 440; background-size: 100% 100%; }

	.slogan { top: 42.3%; left: 10.2%; width: 76.4%; }
	.slogan img { width: 100%; }

	#bar { flex-direction: column-reverse; align-items: stretch; }
	#languages { justify-content: flex-end; padding: 0 0 8px; }
	#menu ul { width: auto; flex-wrap: wrap; }
	#menu li { flex: 1 1 33%; }

	.content { text-align: left; }
	.side-images { flex-direction: row; float: none; margin: 0 0 14px; max-width: 420px; }
	.side-images > * { flex: 1 1 0; min-width: 0; }
	.side-images img { width: 100%; padding: 3px; }
	.contact-grid { grid-template-columns: 1fr; }
	.content table { width: 100%; }
}

@media (max-width: 480px) {
	#menu li { flex: 1 1 50%; }
}
