/* MEYER RESET
http://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
nav,
table, caption, tbody, tfoot, thead, tr, th, td,
input, label {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    color: #222;
    color: inherit;
    vertical-align: baseline;
    background: transparent;
}
body {
    line-height: 1;
    font-family: Arial, sans-serif;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
    border-collapse: collapse;
    border-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
    /*font-family: Georgia, Times, "Times New Roman", serif;*/
}

/**************************
**                       **
**     project styles    **
**                       **
**************************/

body {
    color: #222;
    overflow-y: scroll;
    background-color: #eee;
    background-image: url('background.jpg');
    background-repeat: repeat;
    background-position: top center;
    font-size: 0.8em;
}
a {
    text-decoration: none;
    color: #34f;
}
a.active, a.active:hover,
a:hover {
    color: #800;
    text-decoration: underline;
}
a.active.imagelink, a.active.imagelink:hover,
a.imagelink:hover {
    text-decoration: none;
}
/* misc */
#container {
    width: 90%;
    margin: 0 auto;
}

/*****************************************
**                                      **
**         fiddly css3 properties       **
**                                      **
*****************************************/
.footer,
/* topnav */
.text_content_wrapper, #topnav {
    background-color: #ddd;
    background-image: linear-gradient(left , rgb(255,255,255) 0%, rgb(221,221,221) 15%, rgb(221,221,221) 85%, rgb(255,255,255) 100%);
    background-image: -o-linear-gradient(left , rgb(255,255,255) 0%, rgb(221,221,221) 15%, rgb(221,221,221) 85%, rgb(255,255,255) 100%);
    background-image: -moz-linear-gradient(left , rgb(255,255,255) 0%, rgb(221,221,221) 15%, rgb(221,221,221) 85%, rgb(255,255,255) 100%);
    background-image: -webkit-linear-gradient(left , rgb(255,255,255) 0%, rgb(221,221,221) 15%, rgb(221,221,221) 85%, rgb(255,255,255) 100%);
    background-image: -ms-linear-gradient(left , rgb(255,255,255) 0%, rgb(221,221,221) 15%, rgb(221,221,221) 85%, rgb(255,255,255) 100%);

    background-image: -webkit-gradient(
        linear,
        left top,
        right top,
        color-stop(0.0, rgb(255,255,255)),
        color-stop(0.15, rgb(221,221,221)),
        color-stop(0.85, rgb(221,221,221)),
        color-stop(1.0, rgb(255,255,255))
    );

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
/* typical inset rounding and shadowing */
#topnav,
.footer,
.text_content_wrapper {
    -webkit-box-shadow: 0px 0px 8px #222;
    -moz-box-shadow: 0px 0px 8px #222;
    box-shadow: 0px 0px 8px #222;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    filter:alpha(opacity=90); 
    -moz-opacity: 0.9; 
    opacity: 0.9; 
}

/* elements on the page that need rounding/shadowing */
/* these don't
#clan_trophies,
#clan_header > div */ {
    -webkit-box-shadow: 0px 0px 10px #888;
    -moz-box-shadow: 0px 0px 10px #888;
    box-shadow: 0px 0px 10px #888;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    filter:alpha(opacity=90); 
    -moz-opacity: 0.9; 
    opacity: 0.9; 
}
/* slightly larger and darker rounding/shadowing, eg error messages...? */
#errors,
#messages {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0px 5px 20px #555;
    -moz-box-shadow: 0px 5px 20px #555;
    box-shadow: 0px 5px 20px #555;
}
/* massive bigred rounding */
input[type=submit].bigred,
form#login_form > fieldset > input[type=submit],
.signup_text a {
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    -webkit-box-shadow: 0px 5px 20px #555;
    -moz-box-shadow: 0px 5px 20px #555;
    box-shadow: 0px 5px 20px #555;
}

::-moz-selection{ background: #aaa; color:#fff; text-shadow: none; }
::-webkit-selection{ background: #aaa; color:#fff; text-shadow: none; }
::selection { background:#aaa; color:#fff; text-shadow: none; }

/**************************
**                       **
**       Navigation      **
**                       **
**************************/

#container > .navigation {
  position: relative;
  z-index: 200;
}
/*
 * Using #topnav not .navigation because of possible 2ndary navigation at a later date, and don't want topnav styles to apply there as well
 * */
#topnav {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    height: 60px;
    margin-top: 10px;
}
/* because of ie's amazing expanding box trick * /
#topnav, #topnav ul.main {
  z-index: 99;
    overflow: hidden;
}
/* maybe not. */
#topnav h1 {
    display: none;
}
#topnav .main {
    width: 100%;
    margin-left: 30px;
}
#topnav .main > li {
  /* Any li in main can be a label for a submenu */
    position: relative;
    float: left;
    width: auto;
    margin: 5px;
    margin-top: 15px;
    line-height: 30px;
    text-align: center;
}
#topnav .main > li.first {
    margin: 0px;
    margin-top: 5px;
}
#topnav .main > li.first > a {
    background: url(vivid_divider2.png) no-repeat top left;
    display: block;
    width: 100px;
    height: 51px;
}
#topnav .main > li.first img {
    display: none;
}

#topnav .main li a {
    color: #555;
    padding-right: 10px;
    padding-left: 10px;
    display: block;
    text-decoration: none;
}
#topnav .main > li > a.active, #topnav .main > li > a.active:hover,
#topnav .main > li > a:hover {
    color: #000;
    background-color: #ccc;
    -webkit-box-shadow: inset 0px 0px 2px #222;
    -moz-box-shadow: inset 0px 0px 2px #222;
    box-shadow: inset 0px 0px 2px #222;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
#topnav .main > li.first > a.active,
#topnav .main > li.first > a.active:hover,
#topnav .main > li.first > a:hover {
/* if we don't want the home to have a highlight */
    background-color: #ddd;
    background-color: transparent;
    background: url(vivid_divider2.png) no-repeat bottom left;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
/*    */
}

/*******
submenus
********/
#topnav .main li ul {
  background-image: url(menu-arrow.png);
  background-repeat: no-repeat;
  background-position: 25px 0;
  padding-top: 5px;
  position: absolute;
  display: none;
  width: 150px;
}
/* Also, if the position of the arrow is wrong, put a class on it :) */
#topnav .main li.longer ul {  background-position: 30px 0;  }
#topnav .main li.shorter ul {  background-position: 20px 0;  }
/* add more with more numbers at the end as necessary */
#topnav .main li.longer1 ul {  background-position: 27px 0;  }
#topnav .main li.shorter1 ul {  background-position: 22px 0;  }

#topnav li:hover ul {
  display: block;
}
/* Specificity in case we decide we want to add 2ndary menus */
#topnav .main > li > ul > li {
  /* line height is inherited from .main > li */
  background-color: #555;
  background-image: url(blacktransparent.png);
  background-repeat: no-repeat;
  text-align: left;
}
#topnav .main > li > ul > li > a {
  border-top: 1px solid #444;
  color: #fff;
}
#topnav .main > li > ul > li.first a {
  border-top: 0;
}
#topnav .main > li > ul > li > a:active,
#topnav .main > li > ul > li > a.active:hover,
#topnav .main > li > ul > li > a:hover {
    background-color: #666;
}

/**************************
**                       **
**      title styles     **
**                       **
**************************/

.hcenter {
    clear: both;
    text-align: center;
    /* space between nav and title */
    margin-top: 2.5em;
}

/* The texts around the logo itself */
.logotitles
{
    color: #000;
}

.logotitles h1 {
    font-size: 2.6em;
}
.logotitles h2 {
    font-size: 2em;
}
.logoimage {
    margin: -1em;
}

/* The text below the logo on the front page. */
.title_text {
    margin: 1.75em;
    font-weight: bold;
    font-size: 1.25em;
    clear: both;
    text-align: center;
}

/**************************
**                       **
**     signup styles     **
**                       **
**************************/

/* space between title and rest of content */
/*  locate space here to avoid future margin collapse */
.content_bulk {
  /* not sure if position is needed for z-index, but ie would probably complain anyway */
    position: relative;
    z-index: 1;
    margin-top: 1em;
}

.signup_text {
    text-align: center;
    width: 170px;
    margin: 0 auto;
}
.signup_text p {
    height: 60px;
    line-height: 60px;
}
.signup_text a {
    font-size: 1.4em;
    display: block;
    display: block;
    text-decoration: none;
    color: #fff;
    background-color: #a00;
}
.signup_text a:hover,
.signup_text a.active,
.signup_text a.active:hover {
    color: #fff;
    background-color: #c22;
}

/**
 Messages and errors
 (those that come, e.g. when you fail to log in
 */

#errors
{
    margin: 5px;
    padding: 5px;
    background-color: #f55;
}
#messages
{
    margin: 5px;
    padding: 5px;
    background-color: #5ff;
}

/**************************
**                       **
**    body text styles   **
**                       **
**************************/

.text_content_wrapper {
    /* space between the main content and the element before - eg signup button */
    margin-top: 3.0em;
    padding-top: 1px;
    padding-bottom: 30px;
}
.text_content {
    margin: 35px 30px 0 30px;
    line-height: 1.5em;
}
.text_content p {
    margin-bottom: 10px;
}
.text_content h1 {
    font-size: 200%;
    line-height: 1.5em;
    margin-bottom: 10px;
}
.text_content h2 {
    font-size: 150%;
    line-height: 1.5em;
    margin-bottom: 10px;
}
.text_content.non_top_post {
    margin-top: 0;
}
.text_content.non_top_post:before {
    content: url(divider.png);
    width: 114px;
    display: block;
    margin: 0 auto;
    margin-top: 20px;
}

/**************************
**                       **
**      scoreboard       **
**                       **
**************************/

.greytable { /* replaces .scorelisting table and #accountlist */
    font-size: 85%;
    border-collapse: collapse;
    width: 100%; /* there's an inline style here.. */
    text-align: left;
    vertical-align: middle;
    margin: 10px 0;
}
table.misc,
.greytable.misc { /* override width:100% */
    width: auto;
}
.greytable th {
    text-align: left;
    padding-right: 20px;
    padding-left: 3px;
}
.greytable #cell1 td,
.greytable #cell2 td
{
    border: 1px solid black;
    padding-right: 10px;
    padding-left: 3px;
    vertical-align: middle;
}
.greytable #cell1 td
{
    background-color: #ccc;
}
.greytable #cell2 td
{
    background-color: #bbb;
}

.greytable #cell1 td.chart,
.greytable #cell2 td.chart
{
    background-color: inherit;
    border: 0;
    padding-left: 1em;
}
.greytable #cell1 td.table_number,
.greytable #cell2 td.table_number
{
    text-align: right;
    padding-right: 0.25em;
    padding-left: 0.5em;
}
.greytable #cell1 td.table_date,
.greytable #cell2 td.table_date
{
    text-align: center;
    padding-right: 0.5em;
    padding-left: 0.5em;
}
/* next two declarations are probably deprecated */
.greytable input[type="text"]
{
    width: 6em;
    margin: 3px 3px 3px 3px;
    padding: 0;
}
.greytable select
{
    font-size: 100%;
}
.greytable #cell1 td.dllink,
.greytable #cell2 td.dllink
{
    text-align: center;
    width: 1em;
    padding-right: 0.25em;
    padding-left: 0.25em;
}

/**************************
**                       **
**      small forms      **
**                       **
**************************/

.smallform {
  margin-bottom: 10px;
}
.smallform label,
.smallform input,
.smallform select {
    margin-right: 10px;
    float:left;
}
.smallform input,
.smallform select,
.smallform label,
.smallform input[type=submit] {
  margin-top: 10px;
  height: 30px;
}
.smallform select {
  padding: 0;
}

.smallform input {
  padding: 5px 5px 5px 5px;
  height: 20px;
}

.smallform input[type=submit] {
  padding: 5px 10px;
  margin-left: 0;
}
/* cascading from label...maybe? or maybe i should make label into #login label and #register label */
.smallform label {
  margin-left: 0;
  width: auto;
  line-height: 30px;
  clear: none;
}


/**************************
**                       **
**      /home styles     **
**                       **
**************************/

.account-clan {
  margin-top: 10px;
}


/**************************
**                       **
**      form styles      **
**                       **
**************************/
/* add form#login_form (>) in front of each line and you're set */
fieldset {
    width: 400px;
    margin: 0 auto;
    /* to avoid margin collaspe with submit button below */
    padding-bottom: 1px;
}
/* not needed
fieldset > div {
    overflow: hidden;
}
*/
.form_msg,
input,
label {
    margin-top: 5px;
    margin-left: 10px;
    display: block;
    float: left;
    height: 20px;
    line-height: 20px;
}
label {
    width: 120px;
    clear: both;
    text-align: right;
}
input {
    padding: 1px;
    width: 120px;
    background-color: #fff;
    border: 1px inset #eee;
}
.form_msg {
    width: 120px;
    color: red;
    font-size: 85%;
}
input[type=submit] {
    padding: 5px 10px;
    height: auto;
    line-height: auto;
    width: auto;
    background-color: #bbb;
    border: 1px outset #eee;
}
/* use this class on a submit button if you would like it to be big and red. */
input[type=submit].bigred,
form#login_form > fieldset > input[type=submit] {
    padding: 0;
    height: 50px;
    width: 120px;
    float: none;
    margin: 0 auto;
    margin-top: 20px;
    border: 0;
    font-size: 1.4em;
    text-decoration: none;
    color: #fff;
    background-color: #a00;
}
input[type=submit].bigred:hover,
input[type=submit].bigred.active:hover,
input[type=submit].bigred.active:hover,
form#login_form > fieldset > input[type=submit]:hover,
form#login_form > fieldset > input[type=submit].active,
form#login_form > fieldset > input[type=submit].active:hover {
    cursor: pointer;
    color: #fff;
    background-color: #c22;
}

/**************************
**                       **
**     footer styles     **
**                       **
**************************/

.footer {
    height: auto;
    margin: 20px 0;
    padding-bottom: 1px;
}
.footer ul {
    text-align: center;
}
.footer h3 {
    font-size: 1.2em;
}
.footer img {
    padding: 0px;
    margin: 0px;
}
.footer li {
    display: inline-block;
    text-align: left;
    margin: 10px;
}
.footer_column li {
    display: block;
}
.footer_column a {
    margin: 0px;
    padding: 0px;

}
#flattr img,
a#flattr {
    vertical-align: baseline;
    margin-top: 0.6em;
}


/**************************
**                       **
**      tabular data     **
**    (currently only    **
**      table#clans      **
**   and table#servers)  **
**                       **
**************************/
.prettytable,
/* /clans */
#clans,
/* /servers */
#servers {
    width:100%;
    font-size: .9em;
}
table.prettytable th,
/* specificity override for padding */
#clan_page table.clan_members tr/*<--extraspecific*/ th,
table#clans th,
table#servers th {
    text-align: left;
    border-bottom: 4px double #aaa;
    padding: 8px;
}
.prettytable th,
.prettytable td,
#clans th,
#clans td,
#servers th,
#servers td {
    padding: 5px 8px;
}
.prettytable tr,
#clans tr,
#servers tr {
    border-bottom: 1px solid #ccc;
}

/* tables for competition score entries */
th.competition_value {
    width: 10em;
}
th.competition_placing {
    padding-left: 3px;
    padding-right: 3px;
    width: 3em;
}

/**************************
**                       **
**   clan page display   **
**                       **
**************************/

#clan_header {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

#clan_header > div,
#clan_header > h1 {
    margin-bottom: 0;
    height: 50px;
    line-height: 50px;
}

#clan_header > h1 {
    line-height: 50px;
    width: auto;
    text-align: center;
    float: left;
}
/* the group of right hand things */
#clan_header > div {
    border-left: 1px solid #ccc;
    float: right;
    padding: 0 20px;
    text-align: center;
}
/* links only - no spans here please */
#clan_header > div a {
    display: block;
}
#clan_header > div a:hover {
    background-color: #dadada;
    text-decoration: none;
}
/**************************
**                       **
** Display trophy images **
** (everywhere, not just **
**    on trophy page)    **
**                       **
**************************/

/* 
structure for a trophy cabinet:

.trophy_cabinet
  h3
  ul
    li
      .trophyleft
      .trophyright
- all a's to have .imagelink
- all img's to have no inline styles
*/
.trophycabinet {
    padding-top: 1px;/* for margin collapse */
    margin-bottom: 30px;
}

ul.trophypage > li > img,
.trophycabinet img {
    height: 35px;
    width: 35px;
}

/* exception for clan page trophies */
#clan_trophies .trophyicon {
    margin-left: 5px;
    margin-top: 5px;
    background: #eee;
    display: inline-block;
    width: 50px;
    height: 50px;
}


/* vertically align text and images */
.trophycabinet .trophyleft {
    vertical-align: middle;
}
.trophycabinet .trophyright {
    width: 90%;
}
/* exception for /user/name..bleh */
/* text cabinet, as in the text is the fixed info and the images are expandable */
.text_cabinet.trophycabinet .trophyleft {
    width: 20%;
}
.text_cabinet.trophycabinet .trophyright {
  /* quick fix for i dunno what's happening with that a height */
    margin-bottom: 0px;
    width: 75%;
}
.trophycabinet .trophyleft,
.trophycabinet .trophyright {
    display: inline-block;
    vertical-align: middle;
}
/* finer-grained display styles */
.trophycabinet .trophyright, .trophycabinet .trophyleft {
    margin: 5px 0px 5px 5px;
}
.trophycabinet h2,
.trophycabinet h3 {
    line-height: 2.5em;
}
.trophycabinet h2,
.trophycabinet h3 {
    margin-bottom: 0;
    border-bottom: 3px double #bbb;
}
.trophycabinet .endofcabinetrow,
.trophycabinet > ul li {
    border-bottom: 1px solid #ccc;
}

/**************************
**                       **
**      trophy page      **
** (partially obsolete   **
**     - please use      **
** .trophy_cabinet where **
**        possible)      **
**                       **
**************************/

/* give dots to trophy lists */
ul.trophypage {
    list-style: disc;
}
ul.trophypage > li {
    margin-top: 5px;
}
/* vertically align text and images */
li.multiline > img {
    vertical-align: middle;
}
li.multiline > span {
    display: inline-block;
    vertical-align: middle;
    width: 500px;
}

/**************************
**                       **
**     helper styles     **
**                       **
**************************/

.clear {
    display: block;
    clear: both;
}
#end_of_content_spacer {
    height: 30px;
}
#small_content_spacer {
    height: 15px;
}
#tiny_content_spacer {
    height: 5px;
}
.center {
    text-align: center;
}
.flat {
    height: 0;
}

.small_print {
    font-size: 0.9em;
}
