/* (c) 2025, code written by Vladimir Laptev. Use it for understanding how things work. Images and other media can't be used without permission. */
/* Style: Old Sonic Web */

@font-face {
	font-family: SonicHud;
	src: url(oswmedia/sonic-1-hud-font.otf) format('opentype');
	font-style: normal;
	font-weight: normal;
}

* {
  box-sizing: border-box;
}

/* Main body of website */
body {
	max-width: 1000px;
	background-color: Black;
	background: url("oswmedia/spacebg.gif") no-repeat center fixed;
	background-size: cover;
	margin: 2.7vw auto;
	padding: 0;
	text-align: center;
	font-family: "Times New Roman", serif;
}

img {
	max-width: 100%;
}

a {
	color: white;
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
}

a:active {
	color: red;
	text-decoration: none;
}

/* Website's block */
.siteblock {
	width: 100%;
	max-height: 1500px;
	background-color: rgba(0, 0, 0, 0.75);
}

/* Banner in left corner */
#ban {
	margin-right: 50px;
}

#ban img {
	width: 15%;
	margin-bottom: -4px;
	padding: 0;
}

/* Top navigation panel */
nav {
	font-family: SonicHUD, Arial, sans-serif;
	color: white;
	background-color: blue;
	background-image: url("oswmedia/blockbg.gif");
	background-size: 54px 36px;
	margin: 0;
	padding: 0 0 6px;
	overflow: hidden;
}

/* Button on top navigation panel */
.topnavbut {
	display: inline-block;
	font-size: 18px;
	text-align: center;
	width: 122px;
	height: 22px;
	background-image: url("oswmedia/click/oswnavbut.gif");
	background-repeat: no-repeat;
	background-size: 122px 22px;
	margin: 8px 0 0 0;
	padding: 0;
	text-decoration: none;
	box-sizing: border-box;
}

/* Hovering over button on top navigation panel */
.topnavbut:hover:not(.tnbact) {
	color: yellow;
	background-image: url("oswmedia/click/oswnavbut_hover.gif");
}

/* Clicking button & currently active button on top navigation panel */
.topnavbut:active:not(.tnbact), .tnbact {
	color: red;
	background-image: url("oswmedia/click/oswnavbut_active.gif");
}

/* Main block of contents */
#contentBlock {
	float: left;
	width: 100%;
	height: 476px;
	overflow: auto;
	border: 3px solid #0024d8;
	text-align: left;
	font-size: 17px;
	color: white;
	padding: 16px;
}

#contentBlock p {
	margin: 0 0 12px 0;
}

/* Headers formatting */
h1 {
	font-family: SonicHud, Arial, sans-serif;
	font-size: 36px;
	color: yellow;
	margin: 0;
}

h2 {
	font-family: SonicHud, Arial, sans-serif;
	font-size: 24px;
	margin: 6px 0;
}

/* Divider formatting */
hr {
	border-top: 1px solid white;
}

/* Clearing after the website's block */
.siteblock::after {
	content: "";
	display: table;
	clear: both;
}

/* Website's footer */
#foot {
	background-color: blue;
	background-image: url("oswmedia/blockbg.gif");
	background-size: 54px 36px;
	padding: 7px;
	font-family: SonicHud, Arial, sans-serif;
	text-align: center;
}

#foot img {
	width: 182px;
	height: 44px;
	margin: 0 0 7px 0;
}

#tfWrap {
	width: 78%;
	font-size: 15px;
	color: white;
	background-color: rgba(0, 0, 0, 0.75);
	margin: auto;
	border: 3px ridge white;
}

#tfWrap p {
	margin: 5px;
}

#tfWrap span {
	font-size: 18px;
}

/* Page seen on tablet devices */
@media screen and (max-width: 1366px) {
	.topnavbut { font-size: 16px; width: 101px; }
}

/* Footer landscape mode fix */
@media screen and (max-width: 1200px) and (orientation: landscape) {
	#ban { margin-right: 4px; }
	nav { font-size: 12px; }
	.topnavbut { font-size: 16px; width: 100px;}
	#foot p { font-size: 14px; }
}

/* Page seen on mobile devices */
@media screen and (max-width: 600px) {
	#ban { margin-right: 7px; }
	#ban img { width: 30%; }
	nav { font-size: 14px; }
	.topnavbut { font-size: 16px; width: 100px;}
	#foot p { font-size: 12px; }
}