/* 
    Document   : contest_widget
    Created on : 9-Aug-2009, 3:14:34 PM
    Original Author     : MNM Team
    Description:
    Style the Contest Widget
*/

table.contest_table {
    border:0px;
    width:527px;
    font-size:0.9em;
}

table.contest_table tr td {
    border:0px;
    padding:0px;
    vertical-align:top;
}

table.contest_table tr td.contest_left_column {
    width:200px;
}

table.contest_table tr td.contest_left_column .contest_title {
    margin:0px 0px 5px 0px;
}

table.contest_table tr td.contest_left_column .contest_title a,
table.contest_table tr td.contest_left_column .contest_title a:link,
table.contest_table tr td.contest_left_column .contest_title a:active,
table.contest_table tr td.contest_left_column .contest_title a:visited {
    border:1px solid #D4D4D4;
    padding:5px;
    background-color:#E5E3D4;
    display:block;
    width:193px;
    height:100%;
    color:#000;
    text-decoration:none;
    margin-right:-1px;
    z-index:3;
    position:relative;
}

table.contest_table tr td.contest_left_column .contest_title a.contest_title_selected,
table.contest_table tr td.contest_left_column .contest_title a:hover {
    background-color:#fff;
    border-right:1px solid #fff;
}

table.contest_table tr td.contest_right_column {
    width:320px;
    border:1px solid #D4D4D4;    
}

table.contest_table tr td .contest_tab {
    float:left;
    margin-right:3px;    
    width:100px;
    font-size:0.8em;
    text-align:center;    
}

table.contest_table tr td .contest_tab:hover {
    cursor:pointer;
}

table.contest_table tr td .contest_tab a,
table.contest_table tr td .contest_tab a:link,
table.contest_table tr td .contest_tab a:visited,
table.contest_table tr td .contest_tab a:active,
table.contest_table tr td .contest_tab a:hover {
    display:block;
    text-decoration:none;
    color:#000;
    border:0px;
}

/*CONTEST ROUNDED CORNERS*/
.contest_tabb1, .contest_tabb2, .contest_tabb3, .contest_tabb4 {display:block; overflow:hidden;}
.contest_tabb1, .contest_tabb2, .contest_tabb3 {height:1px;}
/*border declaration*/
.contest_tabb2, .contest_tabb3, .contest_tabb4 {border-left:1px solid #D4D4D4; border-right:1px solid #D4D4D4;}
.contest_tabb1 {background:#D4D4D4;}
.contest_roundedgreytab {
    display:block;
    padding:3px;
    border:1px solid #D4D4D4;
    border-width:0px 1px 1px 1px;
    margin-bottom:-1px;
    z-index:3;
    height:20px;
    position:relative;
}

/*declare styling*/
.contest_tabb1 {margin:0 4px;}
.contest_tabb2 {margin:0 2px; border-width:0 2px;}
.contest_tabb3 {margin:0 1px;}
.contest_tabb4 {height:1px; margin:0 1px;}

/*background declaration*/
.contest_tabb2, .contest_tabb3, .contest_tabb4 {background:#E5E3D4;}
.contest_roundedgreytab {background:#E5E3D4;}

/*hover and selected state*/
table.contest_table tr td .contest_tab_selected .contest_tabb2,
table.contest_table tr td .contest_tab_selected .contest_tabb3,
table.contest_table tr td .contest_tab_selected .contest_tabb4,
table.contest_table tr td .contest_tab_selected .contest_roundedgreytab,
table.contest_table tr td div.contest_tab:hover .contest_tabb2,
table.contest_table tr td div.contest_tab:hover .contest_tabb3,
table.contest_table tr td div.contest_tab:hover .contest_tabb4,
table.contest_table tr td div.contest_tab:hover .contest_roundedgreytab {
    background:#fff;   
}
table.contest_table tr td .contest_tab_selected .contest_roundedgreytab,
table.contest_table tr td div.contest_tab:hover .contest_roundedgreytab {
    border-bottom:1px solid #fff;    
}

/*disable hover and selected state for 'disabled contest tab'*/
table.contest_table tr td div.contest_tab_disabled:hover .contest_tabb2,
table.contest_table tr td div.contest_tab_disabled:hover .contest_tabb3,
table.contest_table tr td div.contest_tab_disabled:hover .contest_tabb4,
table.contest_table tr td div.contest_tab_disabled:hover .contest_roundedgreytab {
    background:#E5E3D4;   
}
table.contest_table tr td div.contest_tab_disabled:hover .contest_roundedgreytab {
    border-bottom:1px solid #D4D4D4;
}
/*END CONTEST ROUNDED CORNERS*/

table.contest_table tr td .contest_tab_disabled {
    color:gray;
}

table.contest_table tr td .contest_tab_disabled:hover {
    cursor:auto;
}

table.contest_table tr td .contest_name {
    font-size:1.3em;
    font-weight:bold;
}

table.contest_table tr td .contest_data {
    margin:15px 0px;
    border-bottom:1px dotted #D4D4D4;
    padding-bottom:4px;    
}

table.contest_restrictions_table {
    border:0px;
}

table.contest_restrictions_table tr td {
    padding:3px;
    vertical-align:top;
}


table.contest_table tr td table.contest_data_table {
    border:0px;
    width:100%;
}

table.contest_table tr td table.contest_data_table tr td,
table.contest_table tr td table.contest_data_table tr th {
    padding:2px;
}

table.contest_table tr td table.contest_data_table tr th {
    border:0px;
    border-bottom:1px solid #000;
}

table.contest_table tr td table.highlight tr {
    background-color:none;
}

table.contest_table tr td table.highlight tr:hover {
    background-color:#ccc;
}

table.contest_table tr td input {
    font-size:0.9em;
}

table.large_contest_table tr td.contest_right_column div.right_col_content {
    /*height:450px;
    overflow:auto;*/
}

table.contest_table tr td.contest_tabs {
    height:30px;
    padding:0px;
}

table.contest_table tr td.contest_right_column div.right_col_content {
    height:auto;
    min-height:200px;
    margin:0px auto;
    width:300px;
}

table.small_contest_table tr td.contest_right_column div.right_col_content {
   margin:0px 4px;
   width:auto;
}

a.contest_link_button, a.contest_link_button:link, a.contest_link_button:visited, a.contest_link_button:active,
a.contest_link_button:hover{
    display:block;
    width:298px;
    height:18px;
    margin:2px 0px;
    color:#000;
    text-align:center;
    padding:5px 0px;
    font-weight:bold;
    text-decoration:none;
}

table.small_contest_table tr td.contest_right_column div.right_col_content a.contest_link_button,
table.small_contest_table tr td.contest_right_column div.right_col_content a.contest_link_button:link,
table.small_contest_table tr td.contest_right_column div.right_col_content a.contest_link_button:visited,
table.small_contest_table tr td.contest_right_column div.right_col_content a.contest_link_button:active
table.small_contest_table tr td.contest_right_column div.right_col_content a.contest_link_button:hover {
    width:100%;
}

a.contest_poster:link, a.contest_poster:visited, a.contest_poster:active,
a.contest_poster:hover {
    /*text-align:center;*/
   /* background-color:#7F7D6E;*/
    text-decoration:none;
    width:300px;
    margin:2px 0px;
    display:block;
}

a.contest_poster:hover {
    background-color:#a7a491;   
}

table tr td.green_box, table tr td.red_box, table tr td.empty_box {
    width:12px;
}

div.green_box, div.red_box, div.empty_box {
    width:10px;
    height:10px;
    border:1px solid #7F7D6E;   
    background-repeat:repeat-x;
}

div.green_box {
    background-image:url(../../images/game/structure/bar_green.gif);
}

div.red_box {
    background-image:url(../../images/game/structure/bar_red.gif);
}

div.empty_box {
    border-width:2px;
    width:7px;
    height:7px;
    background-color:transparent;
}