/*------------- 
	Standard
-------------*/

/*
	Light; 		Dark
	#48505F; 	#596170;
	#353F55; 	#48505F;
*/

body {
	background: url('images/background.jpg') repeat-y;
	background-color: #3F3F3F;
	margin: 0px;
	padding: 0px;
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-size : 12px;
	color: white;
	line-height: 18px;
}

h1 {
	margin: 0px;
	padding: 0px;
}

h2 {
	margin: 0px;
	padding: 0px;
}

h3 {
	margin: 0px;
	padding: 0px;
}

p {
	margin: 0px;
	padding: 0px;
}

.note {
	font-size: 11px;
}

.help li {
	padding: 0 0 .8em 0;
}


/*------------- 
	Ads
-------------*/

#squareAd {
	background: black;
	border: 1px solid #666666;
	padding: 5px;
	margin: 5px;
}

/*------------- 
	Gallery
-------------*/

.gallery_buttons {
	clear: both;
	padding: 5px;
}

.gallery_buttons img {
	padding: 5px 5px 0px 5px;
}

.image_buttons {
	float: left;
}

.album_buttons {
	float: right;
}

.gallery_album_light {
	border: 2px solid black;
	margin: 5px 0px 5px 0px;
	background: #596170;
}

.gallery_album_dark {
	border: 2px solid black;
	margin: 5px 0px 5px 0px;
	background: #48505F;
}

.album_thumbnail:link img {
	border: 1px solid gray;
}

.album_thumbnail:visited img {
	border: 1px solid gray;
}

.album_thumbnail:active img {
	border: 1px solid black;
	opacity: .8;
	filter:alpha(opacity=80);
}

.album_thumbnail:hover img {
	border: 1px solid black;
	opacity: .8;
	filter:alpha(opacity=80);
}

.image_link img {
        max-width: 800px;
}

.image_link:link img {
	border: 1px solid black;
}

.image_link:visited img {
	border: 1px solid black;
}

.image_link:active img {
	border: 1px solid gray;
}

.image_link:hover img {
	border: 1px solid gray;
}

.album_name {
	font-size: 16pt; 
	font-weight: bold;
	line-height: 1.2em;
	margin: 5px 0px 5px 0px;
}

.album_heading {
	font-size: 16pt; 
	font-weight: bold;
	line-height: 1.2em;
	margin: 0px 0px 10px 0px;
}

.displaying_text {
	clear: both;
	color: white;
	padding: 5px;
	font-size: 9pt;
	background: black;
	border: 1px solid gray;
	text-align: center;
}

.album_pagination {
	clear: both;
	padding: 0px 5px 5px 5px;
}

.album_clear {
	clear: both;
	width: 0px;
	height: 0px;
}

.display_album {
	position: relative;
}

.album_image_container {
	padding: 0px;
	text-align: left;
	margin: 3px;
}

.album_image {
	border: 2px solid black;
	padding: 5px;
	text-align: center;
	background: #353F55;
}

.album_image_title {
	font-size: 9pt;
}

.gallery_image_title {
	font-size: 9pt;
	padding: 5px;
}

.image_container {
	float: left;
	width: 100%;
	padding: 0px;
	text-align: left;
	margin: 3px AUTO;
}

/* Yes, this is a table. If I want to center this, I need to set a width.
But if I set a width, than images smaller than that width have fat-ass margins.
I could make this a float which resizes to fit its content... But you can't center floats.
I could *possibly* do the -50% relative container, +50% position trick but if I'm going to
have bad semantics, I may as well use a freaking table in the first place. CSS IS FAIL */

.yes_this_is_another_fucking_div_container {

}

.album_image_display {
	float: left;
	display: block;
/*
	This just doesn't fucking work in IE.	
	min-height: 150px;
*/
	max-width: 200px;
	border: 2px solid black;
	padding: 5px;
	margin: 3px;
	text-align: center;
	background: #353F55;
}

.album_bbcode_display {
	float: left;
	display: block;
	border: 2px solid black;
	padding: 5px;
	margin: 3px;
	text-align: center;
	background: #353F55;
}

.image_embed {
	margin: 15px AUTO;
}

.image_embed p {
	padding: 5px;
}

.image_thumbnail {
	padding-bottom: 3px;
}

.thumbnail_link:link img {
	border: 1px solid gray;
}

.thumbnail_link:visited img {
	border: 1px solid gray;
}

.thumbnail_link:active img {
	border: 1px solid black;
	opacity: .8;
	filter:alpha(opacity=80);
}

.thumbnail_link:hover img {
	border: 1px solid black;
	opacity: .8;
	filter:alpha(opacity=80);
}

.upload_tabs {
	margin: 10px 0px 0px 0px;
	padding: 0px;
}

.upload_tabs a {
	background: black;
	color: white;
	margin: 0px;
	padding: 5px 10px 5px 10px;
}

.upload_panel {
	background: #48505F;
	font-size: 11px;
	border: 2px solid black;
	margin: 2px 0px 0px 0px;
	padding: 5px;
}

.upload_input {
	margin: 0px;
	font-family: Tahoma;
	font-size : 8pt;
}

.upload_button {
	margin: 20px 10px 10px 100px;
}

.update_button {
	margin: 15px; 
}


/*------------- 
	General
-------------*/

.misc-headline {
	font-size: 9pt;
	font-weight: bold;
	padding: 5px;
	text-align: center;
}

.donor_container {
	width: 100%;
	float: left;
	text-align: center;
}

.donorinfo {
	float: left;
	height: 190px;
	width: 150px; 
	border: 1px solid black; 
	text-align: center; 
	padding: 0px;
	margin: 5px; 
	background: #48505F;
}

.donorinfo p {
	padding: 5px;
}

.keyword {
	font-variant: small-caps;
	font-weight: bold;
}

.warning {
	font-variant: small-caps;
	font-weight: bold;
	color: red;
}

.topictabs {
	border: 2px solid black;
	padding: 4px 3px 0px 3px;
	margin: 0 0 5px 0;
	display: flex;
	justify-content: space-around;
}

.topictabs a:link, .topictabs a:visited {
	padding: 0px;
	margin: 0px;
}

.topictabs a:hover, .topictabs a:active {
	padding: 0px;
	margin: 0px;
	opacity: 0.5;
	filter: alpha(opacity=50); /* For IE8 and earlier */
}

.infobox {
	color: white;
	padding: 5px;
	background: black;
	border: 1px solid gray;
	text-align: center;
	margin: 15px;
}

.errorbox {
	color: white;
	padding: 15px;
	background: black;
	border: 1px solid gray;
	text-align: left;
	margin: 15px;
}

.news-title {
	margin-top: 0px;
	padding: 0px;
	font-weight: bold; 
	font-size: 22px; 
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none; 
	line-height: 120%; 
	color: #FFFFFF;
}

.news-exclusive {
	background: url('images/codex_content.png') no-repeat;
	padding: 0px 0px 0px 57px;
	min-height: 29px;
	font-weight: bold;
	font-size: 22px;
	vertical-align: bottom; 
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none; 
	line-height: 120%;
}

.news-pinned {
	float: right;
	text-align: center;
}

.admin-links {
	line-height: 1.5em;
	font-variant: small-caps;
}

.selected_tab {
	border: 50px solid red;
}

.row-light {
	background: #48505F;
}

.row-dark {
	background: #3E465A;
}

.row-highlight {
	background: #3C0502;
}

/*------------- 
		Forms
-------------*/

textarea {
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px; 	
}

input .text {
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}

.form-label {
	font-size: 14px;
	font-weight: bold;
	font-variant: small-caps;
}

.form-field {
	padding: 5px 0px 10px 25px;
}

.form-title {
	width: 450px;
	height: 30px;
}

.form-summary {
	width: 450px;
	height: 400px;
}

.form-summary-short {
	width: 450px;
	height: 6em;
}

.form-tags {
	width: 450px;
	height: 45px;
}

.form-button {
	padding: 7px 15px;
	font-size: 14px;
}

.btn_submit {
	padding: 5px 15px;
	font-size: 16px;	
}


/*------------- 
		Die
-------------*/

.die_box {
	background: black; 
	border: 1px solid grey;	
	color: white;
	padding: 15px;
}

.die_title {
 	text-align: center; 
	font-variant: small-caps;
	color: #C00000;
}

.die_message {
	margin-top: 12px; 
	text-align: center; 
	padding: 0px; 
	font-size: 11pt; 
	font-variant: small-caps;
	color: white;
}

.die_info {
	color: white;
	font-variant: small-caps;
	font-weight: bold;
	text-align: right; 
	font-size: 10pt;
	vertical-align: top; 
}

.die_text {
	color: white;
	text-align: left;  
}

.white_line {
	border-bottom: 1px solid white;
	width: 100%;
	height: 1px;
	padding-top: 8px;
	margin-bottom: 3px;
}

/*------------- 
	Main
-------------*/

.main {
	clear: both;
}

.content {
<!--[if lte IE 6]>
	width: 100%;
<![endif]-->
	background: #48505F;
	border: 2px solid black;
	margin: 0px 0px 10px 0px;
	position: relative;
}

.content-inside {
	border: 2px solid #3F3F3F;
}

.content-header {
	overflow: hidden;
	background: url('images/panel-header.gif');
	width: AUTO;
	height: 24px;
	color: #AEBADC;
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 11pt;
	padding: 5px 0px 0px 0px;
	text-align: center;
}

.content-dark {
	background: #48505F;
	padding: 5px;
}

.content-light {
	background: #596170;
	padding: 5px;
}

.content-bottom {
	display: inline-block;
	width: 100%;
	background: #353F55;
	height: 10px;
	border-top: 1px solid #3F3F3F;
	border-bottom: 1px solid #3F3F3F;
}

.content-headline {
	padding: 1px;
	font-size: 14px;
}

.content-inside img {
	display: inline-block;
}


/*------------- 
	Panel
-------------*/

.panel {
	clear: right;
	width: 200px;
	background: #48505F;
	font-size: 11px;
	line-height: 1.2em;
	border: 2px solid black;
	margin: 0px 0px 10px 0px;
}

.panel_nowidth {
	background: #48505F;
	font-size: 14px;
	line-height: 1.2em;
	border: 2px solid black;
	margin: 0px 0px 10px 0px;
}

.panel-inside {
	border: 2px solid #3F3F3F;
}

.panel-header {
	background: url('images/panel-header.gif');
	height: 22px;
	color: #AEBADC;
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 12px;
	padding: 7px 0px 0px 0px;
	text-align: center;
}

.panel-light {
	background: #353F55; /* light #596170 */
	padding: 5px;
}

.panel-dark {
	background: #353F55; /* dark #48505F */
	padding: 5px;
}

.panel-ul {
	margin: 0px;
	padding: 0px 5px 15px 15px;
}

.panel-ul li {
	margin: 0px 0px 2px 0px;	
}

.panel-headline {
	font-size: 11px;
	font-weight: bold;
}

.center {
	text-align: center;
}

/*------------- 
	Header
-------------*/

.header {
	background: url('images/header-back.jpg');
	height: 80px;
}

.nav-bar {
	background: url('images/nav-bar.gif');
	height: 35px;	
}

.menu {
	float: left;
	font-variant: small-caps;
	font-size: 14px;
	font-family: Tahoma, Geneva, Arial, Helvetica, sans-serif;
	padding: 5px 5px 0px 5px;
	margin: 0px;
	font-weight: bold;
}

.search {
	position: absolute; 
	top: 80px; 
	right: 5px;
	padding: 0px;
}

/*------------- 
	Footer
-------------*/

.footer {
	clear: both;
	background: url('images/footer-back.jpg');
	height: 60px;
	padding: 0px;
	color: white;
	font-size: 9pt;
}

.privacy {
	float: left;
	padding: 22px 5px 12px 10px;
	margin: 0px;
}

.login {
	float: right;
	padding: 10px 10px 12px 10px;
	line-height: 1.6em;
	text-align: center;
}

.page_time {
	font-size: 9pt;
	width: 100%;
	text-align: center;
	padding: 10px;
	display: none;
}

/*------------- 
	Links 
-------------*/

a:link {
	color: #B3B3B3;
	text-decoration: none; 
}

a:visited {
	color: #B3B3B3;
	text-decoration: none; 
}

a:active {
	color : #929FB6;
	text-decoration: underline;
}

a:hover {
	color: #929FB6;
	text-decoration: underline;
}

.menu a:link {
	color: white;
	padding: 0px;
	text-decoration: none; 
}

.menu a:visited {
	color: white;
	padding: 0px;
	text-decoration: none; 
}

.menu a:active {
	color : #929FB6;
	padding: 0px;
	text-decoration: underline;
}

.menu a:hover {
	color: #929FB6;
	padding: 0px;
	text-decoration: underline;
}


/*-------------------------- 
	XenForo bb_code.css
		To ensure consistency between the layout of the post in the forums and on the news.
--------------------------*/
.content .bbImageWrapper {
    display: inline;
}

.bbCodeBlock
{
	margin: 0 5em 1em;
}

	.messageList.withSidebar .bbCodeBlock
	{
		margin-right: 0;
	}

	/* mini CSS reset */
	.bbCodeBlock pre,
	.bbCodeBlock blockquote
	{
		margin: 0;
	}
	
	.bbCodeBlock img
	{
		border: none;
	}

.bbCodeBlock .type
{
	font-size: 11px;
	font-family: @body.font-family;
	color: @primaryLight;
	padding: 3px 8px;
}

.bbCodeBlock pre,
.bbCodeBlock .code
{
	font-size: 11px;
	font-family: Consolas, 'Courier New', Courier, monospace;
	background-color: #353F55;
	padding: 5px;
	border: 1px solid #3F3F3F;
	word-wrap: normal;
	overflow: auto;
	line-height: 1.24;
	min-height: 30px;
	max-height: 500px;
	_width: 600px;
	direction: ltr;
}

.bbCodeBlock .code
{
	white-space: nowrap;
}

.bbCodeQuote
{
}

.bbCodeQuote .attribution
{
}

.bbCodeQuote blockquote
{
	font-size: 11px;
	background-color: #353F55;
	padding: 5px;
	border: 1px solid #3F3F3F;
}
/* fix embeds */
[data-s9e-mediaembed] iframe {
    border: none;
    width: 640px;
    height: 360px;
    max-width: 100%;
}
/* mobile layout */
@media (max-width: 800px), (any-hover: none) {
    * { box-sizing: border-box; } /* fix margins */
    table.main > tbody > tr {
        display: flex;
        flex-direction: column;
    }
    table.main > tbody > tr > td:nth-child(1) { order: 1; }
    table.main > tbody > tr > td:nth-child(2) { order: -1; }
    .panel { width: unset; }
    .content-inside img { max-width: 100%; }
    [data-s9e-mediaembed] iframe {
        width: 320px;
        height: 180px;
    }
    .search {
        position: fixed;
        top: 0;
        right: 0;
        margin-right: 284px;
        z-index: 9999;
    }
    .content-header {
        font-size: 18px;
        padding: 6px 0;
        height: auto;
    }
}
/* main nav menu */
* {
    box-sizing: border-box !important;
}
.codexTroll {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 135px;
    z-index: 1001;
    overflow-y: hidden;
    height: 171.3667px;
}

.codexTroll img[src="/system/templates/rexblue/images/troll/troll_25.png"] {
    /* don't cut off troll girl's stuff */
    height: 100%;
    width: auto;
}
.extraHeader {
    position: relative;
}

.cdx-nav-menu ul {
    background: url('/system/templates/rexblue/images/troll/btn_bkgrnd.png');
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdx-nav-menu ul {
    padding-left: calc(135px + 13px);
}

.cdx-nav-menu li {
    background: url("https://rpgcodex.net/system/templates/rexblue/images/troll/button4.png");
    background-repeat: no-repeat;
    padding: 0 13px;
    margin-left: -13px;
    text-align: center;
    width: 91px;
    height: 20px;
    min-width: 91px;
    max-width: 91px;
    min-height: 20px;
    max-height: 20px;
}

.cdx-nav-menu a {
    transform: scale(.75, 1);
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    text-transform: uppercase;
    top: 1px;
    position: relative;
    line-height: 0;
    font-size: 13px;
    font-size-adjust: ex-height 0.525;
    font-family: "Trebuchet MS","Open Sans",sans-serif;
    color: #e9e9e9;
    text-decoration: none;
}

.cdx-nav-menu a:hover {
    color: #fff;
}
.cdx-nav-menu::before {
    content: "";
    height: 7px;
    width: 100%;
    display: block;
    background: url('/system/templates/rexblue/images/troll/bkgrnd_topline.png');
}

.cdx-nav-menu::after {
    content: "";
    height: 8px;
    width: 100%;
    display: block;
    background: url('/system/templates/rexblue/images/troll/bkgrnd_bottomline.png');
}

.cdx-nav-menu ul:first-child::after {
    height: 3px;
    width: 100%;
    background: url('/system/templates/rexblue/images/troll/btn_separator.png');
    content: "";
}

.topLogo img {
    margin-left: 120px;
}

.topLogo {
    overflow-x: hidden;
    display: block;
}

.topBanners {
    position: absolute;
    bottom: 0px;
    right: 0;
    margin-bottom: -7px;
}

.topBanner {
    float: right;
    text-align: center;
    padding-right: 12px;
}

.p-nav, .p-sectionLinks {
    padding-left: 135px;
}

@media (max-width: 650px) {
    .codexTroll { display: none; }
    .cdx-nav-menu ul { padding: 0 calc(13px + 3px); }
    .p-nav, .p-sectionLinks { padding-left: 0; }
    .topLogo img {
        margin-left: 0;
        max-width: 100%;
        object-fit: contain;
    }
}

.nn-cmp-show { display: unset !important; }
.extrasOverContentBanner {
    text-align: center;
    max-width: 100%;
    min-width: 320px;
    overflow: hidden;
}
.extrasOverContentBanner img {
    height: auto !important;
    max-width: 100%;
}
@media (min-width: 650px) {
    .extrasFirstMessageBanner {
        float: right;
        margin-left: 15px;
    }
}
@media (min-width: 650px) {
    .extrasTLBanner {
        float: left;
        margin-left: 15px;
    }
}
@media (max-width: 850px) {
    .topBanners { display: none; }
}
/* end */
