/* Modern CSS Reset */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 1rem;
	background: #f8f8f8;
	color: #222;
	min-height: 100vh;
	line-height: 1.6;
}

/* CSS Variables for theme */
:root {
	--primary-bg: #222;
	--primary-fg: #C0E73D;
	--header-bg: #333;
	--header-fg: #CCC;
	--accent: #C0E73D;
	--border-radius: 8px;
}
/* PAGE TOP */
/* Header using flexbox */
#pageTop {
	background: var(--header-bg) url(headerSliver.png) repeat-x;
	color: var(--header-fg);
	height: 90px;
}
#pageTop > #pageTopWrap {
	width: 90%;
	margin: 0 auto;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#pageTopLogo {
	height: 90px;
	width: 108px;
	display: flex;
	align-items: center;
}
#pageTopRest {
	flex: 1;
	height: 90px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
#menu1, #menu2 {
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
#menu1 > div, #menu2 > div {
	margin-top: 8px;
	padding: 4px;
}
#menu1 a, #menu2 a {
	color: var(--header-fg);
	text-decoration: none;
	margin: 0 16px;
	transition: color 0.2s;
}
#menu1 a:hover, #menu2 a:hover {
	color: var(--accent);
}
/* PAGE MIDDLE */
/* Main content area */
#pageMiddle {
	width: 90%;
	margin: 0 auto;
	min-height: 60vh;
	background: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	padding: 2rem;
}
/* PAGE BOTTOM */
#pageBottom {
	background: #666;
	padding: 2rem;
	font-size: 0.9rem;
	color: #CCC;
	text-align: center;
	border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Responsive design */
@media (max-width: 800px) {
	#pageTop > #pageTopWrap, #pageMiddle {
		width: 98%;
		padding: 0.5rem;
	}
	#pageTopRest {
		width: 100%;
	}
}

@media (max-width: 500px) {
	#pageTop {
		height: auto;
	}
	#pageTopLogo {
		width: 64px;
		height: 64px;
	}
	#pageMiddle {
		padding: 0.5rem;
	}
}