/* Layout
 ------------ */
* {
    /* Reset browsers default margin, padding and font sizes */
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}


/* Misc stuff */
img {
    border: none;
}

.gen {
    margin: 1px 1px;
    font-size: 1.2em;
}

.genmed {
    margin: 1px 1px;
    font-size: 1.1em;
}

.gensmall {
    margin: 1px 1px;
    font-size: 1em;
}

.titles {
    font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1.3em;
    text-decoration: none;
}

.error, table td .error {
    color: #FF0000;
}

.spacer {
    background-color: #f0f0f0;
}

hr  { height: 0px; border: solid #B8B8B8 0px; border-top-width: 1px;}

.pagination {
    padding: 4px;
    font-size: 1em;
    font-weight: bold;
}

/* Links
 ------------ */
a {
    color: #669900;
    text-decoration: none;
}

a:active,
a:visited {
    color: #669900;
    text-decoration: none;
}

a:hover {
    color: #7eb510;
    text-decoration: underline;
}

a.forumlink, a.forumlink:hover {
    font-weight: bold;
    font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
    font-size: 1.2em;
}

a.topictitle, a.topictitle:hover {
    margin: 1px 0px;
    font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1.2em;
}

a.topictitle, .postbody a {
    color: #669900;
}
a.topictitle:visited, .postbody a:visited {
    color: #669900;
}
a.topictitle:visited:hover, .postbody a:visited:hover {
    color: #7eb510;
}
a.topictitle:hover, .postbody a:hover {
    color: #7eb510;
}

.pm-notify-new, .pm-notify-unread {
    border: solid 1px #bed0de;
    background-color: #FFF;
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}
.pm-notify-new a, .pm-notify-new a:visited, .pm-notify-unread a, .pm-notify-unread a:visited { text-decoration: underline; }
.pm-notify-new, .pm-notify-unread:hover {
    border: solid 1px #bed0de;
}
.pm-notify-new { padding: 30px; }

/* Navigation buttons */
.navrow {
    height: 21px;
    overflow: hidden;
    text-align: center;
    font-size: 11px;
    padding: 4px;
}
* html .navrow { padding: 0; }
.navrow b, .navrow strong { font-weight: normal; }
.navrow a, .navrow a:visited {
    text-decoration: none;
}
.navrow a:hover {
    text-decoration: underline;
}

a.link-new, a.link-new:visited { color: #466300; }
a.link-new:hover, a.link-new:visited:hover { color: #7eb510; }

/* Content and tables */
.tablebg {
    border-left: solid 1px #bed0de;
    border-bottom: solid 1px #CFCFCF;
    background-color: #FFF;
}
.block .tablebg {
    border-left-width: 0;
    border-bottom-width: 0;
}

.row1, .row2, .row3, /* .legend, */ .forumrules, tr.row1 .row, tr.row2 .row, tr.row3 .row, .postbottom {
    border-right: solid 1px #bed0de;
    border-top: solid 1px #CFCFCF;
    background-color: #FFF;
    padding: 4px;
}
.post-top {
    background-color: #f0f0f0;
    font-size: 9px;
}
th {
    color: #525252;
    font-size: 11px;
    font-weight: bold;
    background-color: #e5e5e5;
    white-space: nowrap;
    padding: 0 5px;
    text-align: center;
    height: 26px;
    border-right: solid 1px #bed0de;
    border-top: solid 1px #cfcfcf;
}
/*
th a, th a:visited {
    color: #CCDFF0 !important;
    text-decoration: underline;
}
th a:hover {
    color: #FFF;
    text-decoration: underline;
}
*/
td {
    padding: 2px;
}
td.profile {
    padding: 4px;
}
.catdiv {
    height: 24px;
    padding: 0 3px;
    border-right: solid 1px #bed0de;
    border-top: solid 1px #cfcfcf;
    background-color: #e5e5e5;
}

.cat {
    height: 24px;
    padding: 0 3px;
    border-right: solid 1px #bed0de;
    border-top: solid 1px #cfcfcf;
    background-color: #e5e5e5;
    text-indent: 4px;
}
.cathead {
    background-color: #e5e5e5;
    height: 24px;
    padding: 1px 3px;
    border-right: solid 1px #bed0de;
    border-top: solid 1px #cfcfcf;
}


/* Table header */
caption {
    margin: 0;
    padding: 0;
    background: url(images/cap_top.gif) top left repeat-x;
    white-space: nowrap;
    height: 21px;
    text-align: left;
}
.cap-left {
    background: url(images/cap_left.gif) top left no-repeat;
}
.cap-right {
    background: url(images/cap_right.gif) top right no-repeat;
    height: 17px;
    padding-left: 19px;
    padding-top: 4px;
}
caption, caption h1, caption h2, caption h3, caption h4, caption span {
    font-size: 9px;
    font-weight: bold;
    color: #525252;
    text-transform: uppercase;
    font-family: Verdana;
    letter-spacing: 1px;
    padding: 0;
    margin: 0;
}
caption h1, caption h2, caption h3, caption h4, caption span {
    display: inline;
}
caption a, caption a:visited {
    color: #525252;
    text-decoration: underline;
}
caption a:hover {
    color: #000;
    text-decoration: underline;
}

.block-left {
    background: url(images/block_left.gif) top right repeat-y;
    padding: 0;
}
.block-left div {
    background: url(images/block_top_left.gif) top right no-repeat;
}

.block-right {
    background: url(images/block_right.gif) top left repeat-y;
    padding: 0;
}
.block-right div {
    background: url(images/block_top_right.gif) top left no-repeat;
}

.block-mid { padding: 0; }

.block-bot { background: url(images/block_bot.gif) top left repeat-x; padding: 0; }
.block-bot div { background: url(images/block_bot_left.gif) top left no-repeat; }
.block-bot div div { background: url(images/block_bot_right.gif) top right no-repeat; }

/* Footer */
#wrapfooter {
    text-align: center;
    color: #CCC;
    padding-top: 10px;
}

.copyright {
    color: #888;
    font-weight: normal;
    font-size: 9px;
    line-height: 1.2em;
}
.copyright a, .copyright a:visited {
    color: #AAA;
    text-decoration: underline;
}
.copyright a:hover { color: #FFF; }


/* Breadcrumbs */
p.breadcrumbs {
    margin: 0;
    padding: 0;
    float: left;
    color: #AAA;
    font-weight: bold;
    white-space: normal;
    font-size: 1em;
}
.rtl p.breadcrumbs {
    float: right;
}

p.datetime {
    margin: 0;
    padding: 0;
    float: right;
    white-space: nowrap;
    font-size: 1em;
}

.rtl p.datetime {
    float: left;
}

/* Index/viewforum */
.subforum.read {
    background: url(images/sub_old.gif) top left no-repeat;
    padding-left: 12px;
}
.subforum.unread {
    background: url(images/sub_new.gif) top left no-repeat;
    padding-left: 12px;
}
.legend {
    text-align: center;
    margin: 0 auto;
    padding: 2px;
}
.legend-viewforum {
    margin: 0;
    text-align: left;
}

.forumrules {
    padding: 4px;
    font-weight: normal;
    font-size: 1.1em;
    border-left-color: #AAA;
    border-top-color: #AAA;
    border-right-color: #CCC;
    border-bottom-color: #CCC;
    font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}
.forumrules h3 {
    color: #525252;
}

/* Post */
.postsubject {
    font-size: 12px;
    font-weight: bold;
    color: #669900;
}
td.postbottom {
    background-color: #f0f0f0;
    font-size: 10px;
    color: #D0D0D0;
    white-space: nowrap;
    padding: 2px;
    vertical-align: middle;
    border-right: solid 1px #bed0de;
    border-top: solid 1px #cfcfcf;
}
td.postbuttons { padding-top: 3px; }
.postdetails {
    color: #669900;
    font-size: 10px;
    text-align: left;
}
.postdetails b {
    color: #444;
    font-weight: normal;
}
.posterrank     { font-size: 9px; color: #669900; }
.posterprofile  { font-size: 10px; color: #444; }

.postauthor {
    color: #669900;
    font-size: 12px;
    margin-bottom: 3px;
    font-weight: bold;
}
.postauthor a, .postauthor a:visited { text-decoration: underline; }
.postonline { margin-bottom: 2px; }

.postreported, .postreported a:visited, .postreported a:hover, .postreported a, .postreported a:active {
    margin: 1px 0px;
    color: #525252;
    font-weight: bold;
}

.postapprove, .postapprove a:visited, .postapprove a:hover, .postapprove a, .postapprove a:active {
    color: #00FF00;
    font-weight: bold;
}

.postapprove img, .postreported img {
    vertical-align: bottom;
}

.postbody {
    font-size: 12px;
    line-height: 1.4em;
    margin: 3px 0;
}
.signature {
    font-size: 11px;
    color: #444;
    margin-top: 5px;
}
.signature .line { color: #666; }

.postbody li, ol, ul {
    margin: 0 0 0 1.5em;
}

.rtl .postbody li, .rtl ol, .rtl ul {
    margin: 0 1.5em 0 0;
}

.posthilit {
    background-color: #669900;
}

.postsubject {
    font-size: 12px;
    font-weight: bold;
    color: #669900;
}

.postbody a { text-decoration: underline; }

/* UCP */
.folder-current a, .folder-current a:visited {
    color: #000;
    font-weight: bold;
}
.folder-current a:hover { color: #000; }

td.pm_marked_colour { background: #525252; }
td.pm_marked_colour_left { border-left: solid 3px #525252; padding-left: 2px; }
td.pm_marked_colour_right { border-right: solid 3px #525252; padding-right: 2px; }

td.pm_replied_colour { background: #669900; }
td.pm_replied_colour_left { border-left: solid 3px #669900; padding-left: 2px; }
td.pm_replied_colour_right { border-right: solid 3px #669900; padding-right: 2px; }

td.pm_friend_colour { background: #007700; }
td.pm_friend_colour_left { border-left: solid 3px #007700; padding-left: 2px; }
td.pm_friend_colour_right { border-right: solid 3px #007700; padding-right: 2px; }

td.pm_foe_colour { background: #DD0000; }
td.pm_foe_colour_left { border-left: solid 3px #DD0000; padding-left: 2px; }
td.pm_foe_colour_right { border-right: solid 3px #DD0000; padding-right: 2px; }


/* Form Elements
 ------------ */
form {
    margin: 0px;
    padding: 0px;
    border: 0px;
}

textarea, select, .post, .btnbbcode, .btnmain, .btnlite, .btnfile, .helpline {
    font-weight: normal;
    font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
    color: #444;
    border: 1px solid #669900;
    background-color: #F0F0F0;
}

input {
    font-size: 1.1em;
    padding: 1px;
}
textarea {
    font-size: 1.3em;
    line-height: 1.4em;
    padding: 2px;
}
select {
    font-size: 1.1em;
    padding: 1px;
}

option {
    padding: 0 1em 0 0;
}

.rtl option {
    padding: 0 0 0 1em;
}

.post {
    border-style: solid;
    border-width: 1px;
}

.btnbbcode {
    font-size: 1.1em;
    border: 1px solid #444;
}
.btnbbcode:hover {
    border-color: #444;
    color: #669900;
}

.btnmain {
    font-weight: bold;
    cursor: pointer;
    padding: 1px 5px;
    font-size: 1.1em;
}

.btnlite {
    font-weight: normal;
    cursor: pointer;
    padding: 1px 5px;
    font-size: 1.1em;
}

.btnfile {
    font-weight: normal;
    padding: 1px 5px;
    font-size: 1.1em;
}

.helpline {
    background-color: transparent;
    color: #666;
    border-style: none;
}
#helpline { color: #666; }

* html textarea, * html select, * html .post, * html .btnmain, * html .btnlite, * html .btnfile {
    border-color: #666;
}
textarea:hover, select:hover, .post:hover, .btnmain:hover, .btnlite:hover, .btnfile:hover {
    border-color: #666;
}
textarea:focus, select:focus, .post:focus, .btnmain:focus, .btnlite:focus, .btnfile:focus {
    border-color: #525252;
    color: #000;
}

label:hover {
    color: #525252;
}

/* BBCode
 ------------ */
.attachtitle, .codetitle {
    margin: 10px 5px 0px 5px;
    padding: 2px 4px;
    border-bottom: solid 1px #e2e1e3;
    color: #444;
    font-size: 0.85em;
    font-weight: bold;
}

.attachcontent {
    margin: 0px 5px 10px 5px;
    padding: 5px;
    border-top: solid 1px #d3d2d6;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.4em;
/*  font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif; */
    color: #444;
}

.attachcontent {
    font-size: 0.85em;
}

.codecontent {
    direction: ltr;
    margin: 0px 5px 10px 5px;
    padding: 5px;
    border-top: solid 1px #d3d2d6;
    font-weight: normal;
    font-size: 11px;
    font-family: Monaco, 'Courier New', monospace;
    color: #444;
}

.codewrapper, .attachwrapper {
    clear: both;
    margin: 10px 5px;
    border: solid 1px #d3d2d6;
}
.codewrapper .codetitle, .attachwrapper .attachtitle {
    margin: 0;
    border-width: 0 0 1px 1px;
}
.codewrapper .codecontent, .attachwrapper .attachcontent {
    margin: 0;
    border-width: 0 0 0 1px;
}
.attachcontent, html>body .postbody {
    overflow: auto;
    overflow-x: auto;
}

.quotewrapper { margin: 5px 20px; }
td.quote-content {
    padding: 0;
    border-left: solid 1px #d3d2d6;
    border-top: solid 1px #d3d2d6;
    border-right: solid 1px #d3d2d6;
    background: url(images/quote_icon2.gif) bottom right no-repeat;
}
div.quote-content {
    background: url(images/quote_icon1.gif) top left no-repeat;
    padding: 5px 50px 10px 70px;
}
.quote-right { background: url(images/quote_right.gif) top left repeat-y; padding: 0; }
.quote-right div { background: url(images/quote_top_right.gif) top left no-repeat; }

.quote-footer { background: url(images/quote_bot.gif) top left repeat-x; padding: 0; }
.quote-footer div { background: url(images/quote_bot_left.gif) top left no-repeat; }
.quote-footer div div { background: url(images/quote_bot_right.gif) top right no-repeat; }
.quote-footer div div div { background: url(images/quote_bot_mid.gif) top center no-repeat; }

.syntaxbg {
    color: #FFF;
}

.syntaxcomment {
    color: #AAA;
}

.syntaxdefault {
    color: #FFF;
}

.syntaxhtml {
    color: #FFF;
}

.syntaxkeyword {
    color: #525252;
}

.syntaxstring {
    color: #669900;
}


/* More misc stuff */
h1 {
    font-family: "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
    font-weight: bold;
    font-size: 1.8em;
    text-decoration: none;
}

h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 1.5em;
    text-decoration: none;
    line-height: 120%;
}

h3 {
    font-size: 1.3em;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 120%;
}

h4 {
    margin: 0px;
    font-size: 1.1em;
    font-weight: bold;
}

p {
    font-size: 1.1em;
}

p.moderators {
    margin: 0px;
    float: left;
    color: #CCC;
    font-weight: bold;
}

.rtl p.moderators {
    float: right;
}

p.linkmcp {
    margin: 0px;
    float: right;
    white-space: nowrap;
}

.rtl p.linkmcp {
    float: left;
}

p.searchbar {
    padding: 2px 0;
    white-space: nowrap;
    height: 8px;
}

p.searchbar .btnlite {
    font-size: 1em;    
}

p.searchbarreg {
    margin: 0px;
    float: right;
    white-space: nowrap;
}

.rtl p.searchbarreg {
    float: left;
}

p.forumdesc {
    padding-bottom: 4px;
}

p.topicauthor {
    margin: 1px 0px;
}

p.topicdetails {
    margin: 1px 0px;
}
td.history-current, tr.row1 td.history-current, tr.row2 td.history-current {
    background: #DDD;
}

table.colortable td {
    padding: 0;
}

pre {
    font-size: 1.1em;
    font-family: Monaco, 'Courier New', monospace;
}

.nowrap {
    white-space: nowrap;
}

.username-coloured {
    font-weight: bold;
}

.sep {
    color: #888;
}


/* bugs */
@media all and (min-width: 0px)
{
    /* reset file input style for Opera - it changes only text color and border, but not bg color */
    .btnfile, .btnfile:hover, .btnfile:focus {
        border: none;
        background-color: #FFF;
        color: #000;
    }

}
