/* Soviet Awards theme: colours and header carried over from the vBulletin style */
body {
	background: #5A0F10;
	color: #000;
}
a:link,
a:visited,
a:hover,
a:active {
	color: #663300;
}

/* Header: logo on the old dark red, with the old header buttons on the right */
#logo {
	background: #5A0F10;
	border-bottom: 0;
	padding: 6px 0 10px 0;
}
#logo .wrapper {
	overflow: hidden;
}
#logo .logo_link {
	float: left;
}
#logo .header_buttons {
	float: right;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}
#logo .header_buttons img {
	display: block;
	border: 0;
}
#logo .header_buttons a.snd_button {
	display: block;
	width: 160px;
	height: 40px;
	background: url(../../../images/soviet/snd_button.gif) no-repeat;
}
#logo .header_buttons a.snd_button:hover {
	background-image: url(../../../images/soviet/snd_button_hover.gif);
}
#logo ul.top_links {
	clear: both;
	margin: 0 5px 0 0;
	padding-top: 6px;
}
#logo ul.top_links a:link,
#logo ul.top_links a:visited,
#logo ul.top_links a:hover,
#logo ul.top_links a:active {
	color: #CFC89C;
}

#panel .upper {
	background: #582E2E;
	border-top: 1px solid #7F6A3C;
	border-bottom: 1px solid #3a1e1e;
}
#content {
	background: #fff;
}

/* Tables */
/* vBulletin's brown tborder only showed as cell gridlines; in MyBB the
   tborder background shows behind posts, so keep it white with a brown edge */
.tborder {
	background: #fff;
	border: 1px solid #7F6A3C;
}
.thead {
	background: #CFC89C;
	color: #582E2E;
	border-bottom: 1px solid #7F6A3C;
}
.thead a:link,
.thead a:visited,
.thead a:hover,
.thead a:active {
	color: #660000;
}
.tcat {
	background: #582E2E;
	color: #fff;
	border-top: 1px solid #7F6A3C;
	border-bottom: 1px solid #3a1e1e;
}
.tcat a:link,
.tcat a:visited,
.tcat a:active {
	color: #fff;
}
.tcat a:hover {
	color: #FFFF00;
}
.trow1 {
	background: #F9F9F9;
}
.trow2 {
	background: #DFDFDF;
}
.tfoot {
	background: #660033;
	color: #999933;
	border-top: 1px solid #7F6A3C;
}
.tfoot a:link,
.tfoot a:visited,
.tfoot a:hover,
.tfoot a:active {
	color: #CCCCCC;
}

/* Footer text sits on the dark red background */
#footer .lower,
#footer .lower #current_time {
	color: #CFC89C;
}
#footer .lower a:link,
#footer .lower a:visited,
#footer .lower a:hover,
#footer .lower a:active {
	color: #fff;
}

/* eBay listings above the footer (ebay_items plugin): a forum box with a grid of cards */
.ebay_items {
	margin-top: 10px;
}
.ebay_items .thead strong {
	vertical-align: middle;
}
.ebay_items .ebay_logo {
	height: 22px;
	width: auto;
	vertical-align: middle;
}
.ebay_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}
.ebay_items a.ebay_item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #DFDFDF;
	padding: 8px;
	color: #000;
	text-decoration: none;
}
.ebay_items a.ebay_item:hover {
	border-color: #7F6A3C;
	box-shadow: 0 1px 4px rgba(88, 46, 46, 0.25);
}
.ebay_item_image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 140px;
	margin-bottom: 6px;
}
.ebay_item_image img {
	max-width: 100%;
	max-height: 140px;
}
.ebay_item_title {
	font-size: 12px;
	line-height: 1.3;
	color: #663300;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}
.ebay_items a.ebay_item:hover .ebay_item_title {
	text-decoration: underline;
}
.ebay_item_price {
	margin-top: 6px;
	font-weight: bold;
	color: #582E2E;
}

/* AdSense banners (forum_ads plugin) */
.forum_ad {
	text-align: center;
	margin: 0 0 12px 0;
	overflow: hidden;
}

/* "Home" link to the main site, first in the top menu (MyBB's icon sprite has no home icon) */
#logo ul.top_links a.home {
	background-image: none;
	padding-left: 0;
}

/* Popular Threads box on the forum home page (popular_threads plugin) */
.popular_threads ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2 320px;
	column-gap: 20px;
}
.popular_threads li {
	break-inside: avoid;
	padding: 5px 0;
	border-bottom: 1px solid #DFDFDF;
}
.popular_threads li > a {
	font-weight: bold;
}
.popular_threads .smalltext {
	display: block;
	color: #666;
	font-size: 11px;
}

/* Attached pictures shown full size in posts, shrunk to fit the post width */
a.attachment_full {
	display: inline-block;
	max-width: 100%;
	margin: 0 8px 8px 0;
	vertical-align: top;
}
img.attachment {
	max-width: 100%;
	height: auto;
	border: 1px solid #DFDFDF;
}
a.attachment_full:hover img.attachment {
	border-color: #7F6A3C;
}
