/*
 */

html, body {
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: #330;
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: fixed;
	background-color: #300;
	/* background-image: url(/static/images/knit.jpg); */
	vertical-align: middle;
    /* font-family: Georgia, "Times New Roman", Times, serif; */
    font-family: "Trebuchet MS",Arial,sans-serif;
}

.fl {
  float: left;
}

.fr {
  float: right;	
}

.cb {
	clear: both;
}

a, .navdd {
	color: #413C20;
}

img {
  border: none;
  vertical-align: middle;
}

.small {
  font-size: 12px;	
}

.top {
  vertical-align: top;	
}

.fw {
	width: 16px;
}

.off {
	opacity: 0.3;
}

.page_controls, .undo_controls, .global_controls {
	margin: 10px;
	border: 1px grey solid;
}

.control {
	height: 16px;
	display: block;
}

a.favourite, a.notfav, a.seen, a.unseen, a.unblocked, a.blocked, a.prog_blocked, a.prog_unblocked, 
a.watchlisted, a.unwatchlisted, a.pg_toggle_open, a.pg_toggle_closed, a.undo, span.True, span.False {
/*        width: 16px; */
        height: 16px;
        border: 0 none;
        display: block;
/*        opacity: 1; */
        background-repeat: no-repeat;	
        background-position: center;
}


/* .rating-controls {
  display: none;
} */

a.favourite {background-image: url(/static/images/heart.png);}
a.notfav {background-image: url(/static/images/heart-empty.png);}
a.unblocked, span.True {background-image: url(/static/images/close.png);}
a.blocked, span.False {background-image: url(/static/images/cross.png);}
a.prog_unblocked, span.True {background-image: url(/static/images/close.png);}
a.prog_blocked, span.False {background-image: url(/static/images/cross.png);}
a.watchlisted {background-image: url(/static/images/tick.gif);}
a.unwatchlisted {background-image: url(/static/images/cross.png);}
a.seen {background-image: url(/static/images/tickcheck.png);}
a.unseen {background-image: url(/static/images/emptycheck.png);}
a.list_view {background-image: url(/static/images/listview.png);}
a.pic_view {background-image: url(/static/images/picview.png);}
a.undo {background-image: url(/static/images/undo.png);}
a.global {background-image: url(/static/images/globe-on.png);}
a.notglobal {background-image: url(/static/images/globe.png);}

a.pg_toggle_closed {
	background-image: url(/static/images/closed.png);
}

a.pg_toggle_open {
	background-image: url(/static/images/open.png);
}

a.pg_notoggle {
	background-image: none;
}


.hidden {
	display: none;
}

.blocked_tile .get_pic, tr.blocked_tile {
	background-color: #AAA;
}

.shown {
	display: table-row;
}

/* Programme listings - unblocked show up as a cross that gets heavier when you hover over it */
a.prog_unblocked {
        background-image: url(/static/images/close.png);
        opacity: 0.5;
}

a.prog_blocked {
        background-image: url(/static/images/bin.png);
        opacity: 0.5;
}

a.blocked:hover, a.prog_blocked:hover {
        background-image: url(/static/images/tick.gif);
        opacity: 0.5;
}

a.notfav:hover {
        background-image: url(/static/images/heart.png);
        opacity: 0.5;
}

a.favourite:hover {
        background-image: url(/static/images/heart-empty.png);
        opacity: 1;
}

a.unblocked:hover, a.prog_unblocked:hover {
        background-image: url(/static/images/close-dark.png);
		opacity: 1;
}

a.watchlisted:hover {
        opacity: 0.5;
        background-image: url(/static/images/cross.png);
}


a.seen:hover, a.unseen:hover {
	opacity: 0.5;
	background-image: url(/static/images/tickcheck.png);
}

a.favourite span, a.notfav span {
        display: none;
}

.ads {
  vertical-align: top;
  text-align: center;
  padding-bottom: 10px;
  padding-top: 10px;
  clear: both;
}

/* Tables */
.grid {
	width: 100%;
	clear:both;
    font-size: 14px;
}

.grid table, .prog_table table {
	border-collapse:collapse;
	padding: 2px;
}

.grid th {
	font-weight:bold;
	border-bottom-width: 1px;
	border-bottom-color: #615929;
	border-bottom-style: solid;
	text-align: left;
}

.grid th.follow {text-align:center}
.grid th.favourite {text-align:center}
.grid th.episodes {text-align:center}
.grid th.watch {text-align: center}
.grid .remove {
  /* Set the width so that there is space for the rating controls */
  width: 16px;
  min-height: 26px;
}

th.expires { width: 10%; }
th.programme { width: 30%; padding-left: 10px;}
td.programme {padding-left: 10px;}
th.seen, th.watchlist {
	width: 7%;
	text-align: center;
}

th.channel { width: 15%; }

.grid tr.odd {
	background-color:#EEE;
}

.grid tr {
  height: 26px;
}

.grid tr:hover {
  /* background-color: #BBBBBB; */
  background-color: #FFF;
}

.grid tr.header:hover {
  background-color: transparent;
}

/* .grid tr:last-child td {
	border-bottom-color:#615929;
	border-bottom-style:solid;
	border-bottom-width:1px;
} */

.grid a, .prog_table a {
	text-decoration:none
}

.grid a:hover, .prog_table a:hover {
	color:#603;
	text-decoration:underline
}

.grid img, .prog_table img {
  vertical-align: text-top;
	border: 0;
	}

/* Header */

#header {
	background-color: #FFF;
	background-position: center;
	margin: 8px auto;
  padding: 0px 10px 5px 10px;
  clear: both;
}

#page_title {
  float: left; 
  clear: left;
}

#page_title a {
  text-decoration: none;    
}

#headerdescription {
  position: relative;
  top: -5px;
  left: 50px;
  margin-top: 0;
  margin-bottom: 0;
}

#header td {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: normal;
    padding: 10px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    line-height: 100%;
    color: #666666;
}

#header h1 {
    color: #330;
    font-size: 52px;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: normal;
    margin-top: 10px;
    margin-left: 10px;
    margin-bottom: 0;
}

td.wizard_button {
  vertical-align: top;
  padding: 20px 0 0 0;
  font-size: 16px;
  max-width: 200px;
  white-space: nowrap;
}

#pageLogin {
  float: right;
  clear: right;
  padding: 10px 0 0 0;
  font-size: 16px; 
  white-space: nowrap;
  height: 51px;
  min-width: 450px; 
/*  text-align: right; */
}

.button, a.wizard_button, #undo_block a {
  border-color: #330;
  border-style: solid;
  border-width: 1px;
  background-color: #edeef0;
  text-decoration: none;
  padding: 2px 5px;
  color: #330;
}

a.wizard_button:hover, #undo_block a:hover, a.button:hover, a.sign_in_button:hover {
  color: #CFBF66;
}

#welcome {
  padding : 4px 10px 8px 0px;
  margin: 5px;
}

.button {
    color: #330;
    padding: 3px 10px 7px 10px;
    margin: 5px;
    height: 14px;
    position: relative;
    float: right;
    clear: right;
    font-size: 16px;
    display: block;
}

#block_unblock {
    float: right;
    clear: right;
    display: inline;
    padding: 15px 10px;
    position: relative;
	}
	
.span_button span{
    padding: 5px 8px 4px 8px;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #FFF;
    display: inline;
    border-color: #330;
    border-style: solid;
    border-width: 1px;
}

.button a:hover {
  color: #40001A;
  opacity: 0.5;
}

.spacer {
    border: 0;
    width: 1px;
    height: 1px;
    margin-right: 5px;
    margin-left: 10px;
}

#block_unblock a.unblocked, #block_unblock a.blocked {
    display: inline;
}

#announce {
    padding: 15px 10px;
    margin: 0;
    display: block;
}

#announce p, #announce a, .announce {
    font-size: 20px;
    font-weight: normal;
    background-color: #40001a;
    color: #FFF;
    padding: 5px 8px 4px 8px;
    display: inline;
    text-decoration: none;
}

#unavailable {
	background-color: #DDD;
	}

#available {
  clear: left;
}

#available h2, #available p, #unavailable h2, #unavailable p {
	margin: 5px 5px;
}

/* Page */

#page {
	margin: auto;
}

/* Content */

#content, #wide_content {
	background: #e0e0e0;
	border: 10px solid #FFFFFF;
	margin: 0px auto 10px auto;
}

#content {
	float: right;
	width: 730px;
    min-height: 540px;
}

#wide_content {
	float: right;
    min-height: 540px;
    width: 950px;
}

.padded {
	padding: 0 10px 10px 10px;
}

.full_padded {
	padding: 10px;
}

.almost_full_width {
	width: 910px;
	clear: both;
}

table.almost_full_width {
	width: 930px;
}

.almost_full_width tr {
	vertical-align: top;
}

#notable, .notable {
  margin: 0;
  font-weight: normal;
  font-size: 16px;
  clear: left;
  float: left;
  width: 100%;
}

/* div.notable {
  margin-bottom: 10px;
}*/

#notable, .notable p {
	font-size: 16px;	
}

#notable, .notable li {
	font-size: 16px;
}

.right_side_ads {
  float: right;
  clear: right;
}

.help_text {
	padding: 0 10px 10px;
	font-weight: normal;
	font-size: 16px;
  clear: left;
  float: left;
}

.help_tip {
  min-width: 25px;
  height: 25px;  
  position: relative;
}

.help_tip a {
  position:absolute; 
  width: 25px;
  min-height: 25px;
  background-image: url(/static/images/help.png);
  background-repeat: no-repeat;
  background-position: left top;
}

.help_tip_text, .notable .help_tip_text {
  display: none; 
  margin: 0 0 0 25px;
  font-size: 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.help_tip a:hover .help_tip_text {
  display: inline;
}

.dashboard {
    clear: left;
	font-size: 14px;
}

.dash_box {
	vertical-align: top;
	background-color: #FFFFFF;
	padding: 10px;
	min-height: 150px;
}

.white_rounded {
	background-color: #FFFFFF;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.white_rounded form td, .white_rounded form {
	padding-top: 5px;
}

.shim {
	width: 10px;
	height: 10px;
	display: block;
	float: left;
}

.next_to {
    margin-right: 10px;
}

.last_row {
	margin-bottom: 10px;
}

.dashboard h2 {
	font-size: 18px;
	padding: 5px 0;
	}
	
#warning {
	background-color: #FFFFFF;
	color: #40001A;
	padding: 10px 15px;
	margin: 10px 0px;
	}

div.full_box {
	width: 910px;
	clear: both;
}

div.half_box {
	width: 440px;
	float: left;
}

div.half_width {
	width: 460px;
	float: left;
}

.page_title_block {
	padding: 10px 10px 15px;
	font-weight: normal;
	font-size: 16px;
    clear: left;
   float: left;
}

.page_title_block p {
	font-size: 16px;
    display: inline;
	margin: 5px 0 0 0;
}

.page_title_block li {
	font-size: 16px;
}

#helpblock h1, #legal h1 {
	margin: 0;
	padding: 0 10px 5px 30px;
	background: url(/static/images/img05.gif) no-repeat 0px 2px;
	font-size: 24px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: normal;
	color: #40001A;
}
	
.title {
	margin: 0;
	font-size: 18px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: normal;
	color: #40001A;
	clear: left;
}

h1.title {
	margin: 0;
	padding: 0 10px 5px 30px;
	background: url(/static/images/img05.gif) no-repeat 0px 2px;
	font-size: 24px;
/*  display: inline; */
}

.subtitle {
	margin: 0;
	font-size: 20px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: normal;
	color: #40001A;
	padding: 10px 5px;
}

#notable tr, #login-form tr {
	vertical-align: top;
	background-color: #FFFFFF;
	margin: 0 10px;
}

#notable td, #login-form td {
	padding: 5px 10px;
}

.button_div {
	text-align: center;
	padding: 20px;
}

.fieldhelp {
	text-align: left;
}

.tableform {
  text-align: left;
  clear: left;
  font-size: 16px;
/*  margin: 10px; */ 
}

.tableform th {
	vertical-align: text-top;
	margin: 10px;
}

#undo_block {
	margin: 10px 10px 0 10px;
	font-size: 14px;	
  float: right;
  padding: 0;
  height: 41px;
  max-width: 350px;
  max-height: 41px;
  overflow: hidden;
  white-space: nowrap;
}

#undo_block a {
	font-weight: bold;
  text-decoration: none;	
  padding: 10px;
  display: block;
	background-color: #40001A;
  color: #FFFFFF;
  overflow: hidden;
}

/* Sidebar */

#sidebar, .navdd {
	float: left;
	color: #300;
	background-color: #EDEEF0;
	margin: 0 0 10px 0;
	font-size: 14px;
}

#sidebar {
  width: 190px;
  min-height: 540px;  
  border: 10px solid #FFF;
}

#navigation {
  float: left;
  clear: left;
} 

#search {
  float: right; 
  clear: right;
  margin: 5px;
}

.navdd {
  border: 1px solid #333300;
/*  width: 190px; */
  position: absolute;
  left: 4px;
  display: none;
  background-color: #EDEEF0;
/*  margin: 20px 0 10px 0; */
  padding: 0 10px 5px 10px;  
  margin: 30px 5px 10px 5px;
  width: 115px;
  z-index: 1000;
}

#sidebar ul, .navdd ul {
	margin: 0;
	padding: 0 0 20px 0;
	list-style: none;
	padding: 0px 21px 20px 10px;
}

#sidebar .small_header {
  margin: 5px 0 0 0;
  font-size: 12px;
  padding: 10px;
}

.navigation .navdd ul {
  padding: 0px; 
}

#sidebar li, .navigation .navdd li {
	border-bottom: 1px dotted #615929;
	padding: 5px 0px;
}

.navdd li.last {
  border-bottom: none;
}

#sidebar h2.nav, .navigation h2 {
	margin: 0;
	padding: 4px 3px 10px 10px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 18px;
	font-weight: normal;
	color: #CFBF66;
	background-color: #333300;
	text-align: left;
}

#sidebar h2 a {
	background: url(images/img03.gif) no-repeat left 50%;
}

#sidebar a, .navdd a {
	text-decoration: none;
}

#sidebar a:hover, .navdd a:hover {
	color:#603;
	text-decoration:underline
}


#sidebar table {
	border-collapse:collapse;
	padding: 2px 20px;
}

#sidebar .highlight {
    color: #40001A;
    font-weight: bold;
}

#footer {
	clear: both;
	margin: 20px auto 10px;
	padding: 0;
	text-align: center;
	font-size: smaller;
	font-family: Arial, Helvetica, sans-serif;
	color: #B1A356;
	background-image: none;
	background-repeat: repeat-x;
	background-position: left top;
	position: relative;
	background-color: #FFF;
}

#footer p {
	padding: 15px 15px;
	text-transform: uppercase;
	color: #330;
}

#footer p a {
    text-decoration: none;
}

.fielderror {
    color: red;
    font-weight: bold;
}

/* Legal text */

#legal {
	margin: 10px;
	}

#legal h2 {
	font-size: 16px;
}
	
#legal p {
  font-size: 12px;
}

#ttlightbox {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #666666;
	opacity: 0.5;
	display: none;
	z-index: 50;
}

.sign_in {
	background: #EEEEEE;
	padding: 10px;
	vertical-align: middle;
}

.sign_in_button {
	background-color: #413C20;
	color: #FFFFFF;
	text-decoration: none;
	padding: 10px;
}

.mypopup {
position: absolute;
width: 400px;
display: none;
padding: 15px;
right: 0px;
top: 500px;
border-style: none;
text-decoration: none;
text-align: center;
z-index: 100;
}

.mypopup p {
font-size:18px;
width: 100%;
margin-bottom:30px;
}

#tooltip {
  display:    none;
  border:     1px solid gray;
  background: #edeef0;
  color:      #000;
  padding:    10px;
  z-index:     1000;
  position:   absolute;
  top: 0;
  left: 0;
  width: 500px;
  max-width: 500px;
}

#tooltip h2 {
  color: #40001A;
}

#category_edit {
  display:    none;
  border:     1px solid gray;
  background: #edeef0;
  color:      #000;
  padding:    10px;
  z-index:     1000;
  position:   absolute;
  top: 0;
  left: 0;
}

.prog_table {
  margin: 5px;
}

.prog_table td {
  vertical-align: text-top;
}

.prog_table h3 {
  font-weight: bold;
  vertical-align: text-top;
  margin: 2px;
}

.prog_table p {
  margin: 0;
}

p.page_turners {
  text-align: right;
  font-size:14px;
  margin: 5px;
  padding: 5px;
  padding-right: 10px;
  font-family: ariel;
  clear:both;
  color: #413C20;
}

a.page_turners {
  text-decoration: underline;
  padding: 5px;
}

.menu {
  float: right;
  width: 220px;
}

.menu {
  border:     1px solid gray;
  background: #edeef0;
  color:      #000;
  padding:    10px;
  margin:     0;
  text-align: right;
  list-style-type: none;
}

.menuitem {
	display: block;
	width: 100%;
	min-height: 20px;
}

.menu a{
    background-position: center right;
    background-repeat: no-repeat;
    text-decoration: none;
}

img.graph {
  padding: 10px;
}

.table_left_of_ad {
    width: 538px;
    float: left;
}

#progress {
  text-align: center;
  border:     1px solid gray;
  background: #edeef0;
	color: #40001A;
	font-size: 14px;
	font-family: Arial, Helvetica, sans-serif;
  padding: 0 10px;
  margin: 0 0 0 10px;
}

div.award_box {
  width: 155px;
  height: 180px;
  background: #FFFFFF;
  text-align: center;
  padding: 5px;
  margin: 5px;
  font-size: small;
  float: left;
}

.award_box td {
  padding: 0;
}

.award_box h3 {
  margin: 5px;
}

/* Account page - fields for social networks */

.account_fieldset {
  border:none;
  padding: 3px;
}

.th {
  font-weight: bold;	
}

.user_form {
  background: #FFFFFF;
  text-align: left;
  clear: left;
  vertical-align: text-top;
  margin: 10px;
}

.user_form th {
	font-weight: normal;
}

.user_form td {
	padding-left: 10px;
	padding-right: 10px;
}

.settings {
	vertical-align: super;
	font-size: 14px;
}

.subsettings {
	font-size: 12px;
	padding: 3px;
}
/* ProgrammePicGrid widget - used in popular progs */

.get_pic {
  height: 170px;
  width: 170px;
  float: left;
  text-align: center;
  vertical-align: middle;
  background-color: #FFFFFF;
  border: none;
  text-decoration: none;
}

.get_pic h2 {
  font-size: 14px;
  height: 32px;
  padding: 0;
  margin-bottom: 0;
  margin-top: 0;
}

.get_pic img, #tooltip img, .ep_list img {
  width: 150px;
  margin-right: 10px;
}

.get_pic img {
  margin-left: 10px;
  top: 20px;
  position: relative;
}

.ep_list img {
	float: left;
}

.control_tip {
  height: 150px;
  width: 150px;
  float: left;
  padding: 10px;
  position: absolute;
  z-index: 10;
  top: 50px; left: 0;
  display: block;
  overflow: auto;
}

.control_tip p {
  display: inline;
}

.control_tip .view_episodes {
	top: 20px;
	position: relative;	
    margin: auto;
    color: #FFFFFF;
    background: #330;
    padding: 4px;
    opacity: 0.8;
    font-size: 18px;
    width: 120px;
}

.control_tip .ep_count {
	top: 90px;
	position: relative;
	width: 150px;
}

.prog_pic {
	padding: 10px 0;
}

.pic_grid_16 {
	/* height and width for 4x4 grid of main_view */
	min-width: 730px;
	min-height: 730px;
}

.main_view {
	width: 170px;
	height: 170px;
	display: block;
	float: left;
	padding: 10px 10px 0 0;
	position: relative;
}
.window {
	width: 170px;
	height:170px;
	overflow: hidden;
	position: relative;
}
.image_reel {
	position: absolute;
	top: 0; left: 0;
}
.image_reel a {
	cursor: pointer;
    text-decoration: none;
}

/* .pg_name {
  width: 100%;
} */

.image_reel img {float: left;}


#tooltip, .get_pic, .get_pic img,  .ep_list img, #header, #footer, #content, #wide_content, 
#sidebar, #sidebar h2, #pageLogin a, a.wizard_button, a.sign_in_button,
#undo_block a, .view_episodes, .navigation h2 {
        border-radius: 5px;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
}

.navigation {
  font-size: 14px;
  margin: 0;
  padding: 0;
  left: -5;
}

.navigation ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navigation li {
  position: relative; 
  float: left; 
  padding: 0;
}

.navigation h2 {
  display: block;
  width: 130px;
  float: left;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 0;
  margin-right: 10px;
  height: 14px;
}

li:hover .navdd {
  display: inline;
}

.navdd li {
  float: none;
}

.ajax_loader {
	margin: auto;
	vertical-align: middle;
	display: block;
	background-image: url(/static/images/ajax-loader.gif);
	background-position: center center;
	background-repeat: no-repeat;
	height: 100%;
	width: 100%;
	min-height: 50px;
}
