/*
Theme Name: Stronghold 2 Heaven
Version: 1.0
Requires at least: 4.7
Requires PHP: 5.2.4
Author: HeavenGames
Description: Theme for Stronghold 2 Heaven.
*/
body {
	margin: 0;
	padding: 0;
    color: #E7FAF6;
    background:
        url(images/william2.jpg) no-repeat top left,
        url(images/left-stone.jpg) repeat-y top left,
        url(images/hgx_logo2.gif) no-repeat top right,
        #532600 url(images/planks.jpg);
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 10pt;
    line-height: 1.1;
}
/* Header: logo and banner */
header.site-header {
	height: 135px;
}

h1.site-logo, h1.site-logo a {
    width: 422px;
    height: 95px;
}
h1.site-logo {
	margin: 0;
    top: 15px;
    left: 152px;
    position: relative;
}
h1.site-logo a {
    background: url(images/sh2_masthead.png) no-repeat center center;
	display: block;
}
h1.site-logo a span {
	display: none;
}

.ad-banner-top {
    padding-top: 5px;
    padding-bottom: 10px;
}
.ad-banner-bottom {
    padding-top: 10px;
}
.ad-leaderboard, .ad-bottom {
    margin: auto;
}
@media screen and (min-width: 900px) {
    .ad-banner-top {
        padding-left: 172px;
    }
}
@media screen and (min-width: 750px) and (max-width: 900px) {
    .ad-leaderboard {
        margin-right: 0;
    }
}
.ad-skyscraper {
    margin: 0 0 10px;
}

/* Main area: sidebars and content */
#main {
    display: flex;
}
#left-bar {
    width: 200px;
    flex: none;
}
#right-bar {
    width: 165px;
    flex: none;
}
nav.main-nav {
    padding: 20px;
    background:
        url(images/left-top.jpg) no-repeat top center,
        url(images/left-bottom.jpg) no-repeat bottom center,
        #eaeaea url(images/left-nav.jpg) repeat-y top center;
}

main#site-content {
    flex: 1;
    overflow: auto;
    margin: 0 5px;
}
.main-content {
    padding: 17px;
    line-height: 1.2;
    background:
        url(images/bdr_trc.gif) no-repeat top right,
        url(images/bdr_tlc.gif) no-repeat top left,
        url(images/bdr_brc.gif) no-repeat bottom right,
        url(images/bdr_blc.gif) no-repeat bottom left,
        url(images/bdr_right.gif) repeat-y right top,
        url(images/bdr_left.gif) repeat-y left top,
        url(images/bdr_bottom.gif) repeat-x left bottom,
        url(images/bdr_top.gif) repeat-x left top;
}

.nav-trigger, .nav-trigger-label {
    display: none;
}

/* Footer */
.copyright {
    margin: 10px 0;
    font-size: 85%;
}

@media screen and (max-width: 749px) {
    #main {
        display: block;
    }
    #left-bar {
        width: auto;
    }
    #right-bar {
        display: none;
    }
    .main-nav {
        position: absolute;
        margin-left: -200px;
        transition: margin-left 0.5s;
        z-index: 10;
        width: 150px;
    }
    .nav-trigger + .nav-trigger-label:before {
        content: "Show ";
    }
    .nav-trigger:checked + .nav-trigger-label:before {
        content: "Hide ";
    }
    .nav-trigger:checked ~ .main-nav {
        margin-left: 0;
    }
    .nav-trigger-label {
        width: 127px;
        padding: 10px 16px;
        display: inline-block;
        color: #FFE4B5;
        font-weight: bold;
    }
    .nav-trigger-label:hover {
        cursor: pointer;
    }
}

@media screen and (max-width: 749px) {
    body {
        background: #24201B url(images/planks.jpg);
    }
    header.site-header {
        height: 90px;
    }
    
    h1.site-logo, h1.site-logo a {
        width: auto;
        max-width: 422px;
        height: 95px;
    }
    h1.site-logo {
        margin: 0 auto;
        position: static;
    }
    h1.site-logo a {
        background-size: contain !important;
        display: block;
    }
}

/* Content styles */
h1,h2,h3,h4,h5,h6 {
    color: #FFE4B5;
    font-family:  Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-bottom: 0px;
    padding-bottom: 0px;
    line-height: normal;
}

h1 {
    font-size: 150%;
}
h2 {
    font-size: 135%;
}
h3 {
    font-size: 125%;
}
h4 {
    font-size: 115%;
}
h5 {
    font-size: 105%;
}
h6 {
    font-size: 100%;
    font-style: italic;
}

a:link { color: #F4A460; text-decoration: none; }
a:visited { color: #F4A460; text-decoration: none; }
a:hover { color: #FFE4B5; text-decoration: underline; }

hr {
    border-top: 1px solid #D2B48C !important;
    border-bottom: none !important;
    clear: both;
}

blockquote {
    border: 1px solid #F4A460;
    padding: 5px;
}
.clear {
    clear: both;
}
.color {
    color: #FFE4B5;
}
.post.type-post {
    padding-left: 50px;
    background: url(images/newsicon.gif) no-repeat top left;
    margin-bottom: 1.5em;
}
.post.type-post h2 {
    font-weight: bold;
    font-size: 12pt;
    font-family: Tahoma, sans-serif;
    color: #FFE4B5;
}
.post.type-post .post-meta {
    margin: 0 0 1em 0;
    font-size: 8pt;
    color: #D2B48C;
}
.post.type-post p {
    margin: 0 0 0.5em;
}

/* Navigation styles */
nav.sidebar-nav {
    line-height: 1.3;
    font-size: 8pt;
}

nav.sidebar-nav h2 {
    font-size: 125%;
    margin: 10px 0 0 0;
}
nav.sidebar-nav h2 a:link,
nav.sidebar-nav h2 a:visited {
    color: #FFE4B5;
    text-decoration: none;
}
nav.sidebar-nav h2 a:hover {
    color: #F4A460;
    text-decoration: underline;
}

nav.sidebar-nav ul, nav.sidebar-nav li {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.sidebar-nav ul {
    margin-left: 5px;
}

nav.sidebar-nav a:link,
nav.sidebar-nav a:visited {
    color: #E7FAF6;
    text-decoration: none;
}
nav.sidebar-nav a:hover {
    color: #FFE4B5;
    text-decoration: underline;
}

.cherub { color: #59b20a; }
.angel { color: #dd3333; }
.seraph { color: #eda925; }
.vip { color: #3299CC; }

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1em;
}
.breadcrumbs .here {
    font-weight: bold;
}

/* Wordpress overrides */
/* Search button */
.wp-block-search .wp-block-search__button {
    padding: 0;
}

/* Table styling */
figure.wp-block-table {
    margin: 0;
}
figure.wp-block-table table {
    width: auto;
}
figure.wp-block-table table,
figure.wp-block-table tr,
figure.wp-block-table th,
figure.wp-block-table td {
    border: 1px solid #a0a0a0;
    border-collapse: collapse;
}
figure.wp-block-table td,
figure.wp-block-table th {
    padding: 1px 2px;
}

/* Custom tables */
th {
    text-align: left;
}
figure.wp-block-table.noborder table td, figure.wp-block-table.noborder table, figure.wp-block-table.noborder tr {
	border-width: 0;
	padding-top: 0;
	padding-bottom: 0;
}
figure.wp-block-table.noborder img {
    vertical-align: middle;
}

/* Images */
figure.aligncenter figcaption {
    text-align: center;
}
.wp-block-image {
    margin-left: 0;
    margin-right: 0;
}
/* Don't squash images on small widths */
.wp-block-image img {
    height: auto;
}

/* Advertisement */
.ad-leaderboard, .ad-bottom {
    width: 728px;
    height: 90px;
}
.ad-skyscraper {
    width: 160px;
    height: 600px;
}
@media screen and (max-width: 1120px) {
    .ad-bottom {
        width: 300px;
        height: 250px;
    }
}
@media screen and (max-width: 749px) {
    .ad-leaderboard {
        width: 300px;
        height: 250px;
    }
}

@media print {
    #left-bar { display: none }
    #right-bar { display: none }
    .ad-banner-wrap { display: none }
    header.site-header { height: auto }
    h1.site-logo, h1.site-logo a { width: auto; height: auto; background: none; }
    h1.site-logo a span { display: block; }
}
