/********** Global **********/

* {
  margin: 0;
}

body {
    color: #393733;
    margin: 0;
    padding: 0;
    background: #e7e7de;
}

body {
    font: 83%/1.4 arial, helvetica, sans-serif;
}

a {
  color: #105CB6;
  cursor: pointer;
  outline: none !important;
  text-decoration: none;
}

a:visited {
  color: #105CB6;
}

a:hover, a:focus {
  color: #003;
  text-decoration: underline;
}

a:active {
  color: #000;
}

a img {
  border: none;
}

.clr {
  clear: both;
}

ul {
  list-style-type: square;
}

.green {
  color: green;
}

.red {
  color: red;
}

.yellow {
  color: #BFB848;
}

.notimportant {
  color: #999;
}

/********** Header **********/

div#header {
  background: url(../img/header_bg.png) repeat-x top left #7085a1;
}

div#header h1 {
  display: none;
}

div#header a#logo {
  float: left;
  height: 104px;
  width: 220px;
}

div#header div.wrapper {
  width: 950px;
  margin: 0 auto;
  padding: 0;
}

/********** Menus **********/

div#header ul, ul#admin_nav {
  clear: both;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

div#header ul li, ul#admin_nav li {
  float: left;
  margin: 7px 2px 0 2px;
  padding: 0;
}

div#header ul#fast_nav li {
  float: right;
  margin: 0;
  background-color: #56667b;
}

ul#admin_nav li {
  float: right;
  margin: 0 2px;
}

div#header ul li a, ul#admin_nav li a {
  display: block;
  float: left;
  color: white;
  line-height: 38px;
  height: 38px;
  padding: 0 13px;
  font-size: 16px;
  -moz-border-radius : 5px 5px 0 0;
}

div#header ul#fast_nav li a {
  -moz-border-radius : 0;
}

div#header ul#fast_nav li a, ul#admin_nav li a {
  color: white;
  line-height: 25px;
  height: 25px;
  padding: 0 10px;
  font-size: 13px;
}

ul#admin_nav li a {
  color: #105CB6;
  -moz-border-radius : 5px;
}

div#header ul li a:hover, ul#admin_nav li a:hover {
  text-decoration: none;
  background-color: #56667b;
}

div#header ul#fast_nav li a:hover {
  text-decoration: underline;
}

div#header ul li a.current, ul#admin_nav li a.current, ul#admin_nav li a:hover {
  text-decoration: none;
  background-color: #404c5b;
}

ul#admin_nav li a.current, ul#admin_nav li a:hover {
  color: white;
  background-color: #7085a1;
}

div#header form {
  margin-top: 25px;
  float: right;
}

div#header input {
  float: left;
  margin: 12px 0 0 0;
}

div#header div.right {
  float: right;
  width: 720px;
}

/********** Flash Messages **********/

div#flash_messages {
  margin: 0 0 10px 0;
  color: #6b683f;
  background: url(../img/tl.gif) no-repeat left top #fff999;
}

div#flash_messages a {
  text-decoration: underline;
  color: #6b683f;
}

div#flash_messages a:hover {
  text-decoration: none;
}

div#flash_messages.error {
  color: #6b403f;
  background-color: #ff9b99;
}

div#flash_messages.error a {
  color: #6b403f;
}

div#flash_messages.valid {
  color: #456b3f;
  background-color: #a8ff99;
}

div#flash_messages.valid a {
  color: #456b3f;
}

div#content div#flash_messages p {
  padding: 0 10px 0 20px;
}

div#flash_messages div.tr {
  margin: 0 0 0 10px;
  height: 10px;
  background: url(../img/tr.gif) no-repeat right top transparent;
}

div#flash_messages div.bl {
  background: url(../img/bl.gif) no-repeat left bottom transparent;
}

div#flash_messages div.br {
  margin: 0 0 0 10px;
  height: 10px;
  background: url(../img/br.gif) no-repeat right bottom transparent;
}

/********** Content **********/

div#content {
  padding: 10px 0 0 0;
}

div#content div.wrapper {
  width: 950px;
  margin: 0 auto;
}

div.iphone div#content div.wrapper {
  width: 305px;
}

div#content p {
  padding: 3px 0;
}

div#content h2 {
  font-weight: normal;
}

/********** Form **********/

div#page form {
  margin: 0 1em 0 0;
}

div#page input[type=text], div#page input[type=password] {
  border: 1px solid #aaa;
}

div#page input.form-error, div#page textarea.form-error {
  border: 2px solid red;
}

div#page input, div#page textarea {
  font-size: 1em;
  padding: 0.2em;
}

div#page textarea {
  font-size: 1.3em;
}

div#page form p {
  padding: 0.5em 0;
}

div#page span.help {
  font-size: 0.95em;
  color: #666;
}

/********** Important **********/

div#content div.important {
  margin: 1.5em 0;
  padding: 0.5em;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background-color: #f6f6f6;
}

div#content a.selected {
  border-bottom: 1px dotted #2772e3;
}

div#content div.important a.selected:hover {
  text-decoration: none;
}

div#content div.important p {
  padding: 0;
}

div#content div.important form {
  margin: 0;
}

div#content div.important form div.block {
  float: left;
  margin: 0 0.5em 0 0;
}

div#content div.important form input[type=text] {
  width: 80px;
}

/********** Page **********/

div#page {
  background: url(../img/tl.gif) no-repeat left top white;
}

div#pagecontent {
  padding: 5px 10px 10px 10px;
}

div#page div.tr {
  margin: 0 0 0 5px;
  height: 5px;
  background: url(../img/tr.gif) no-repeat right top transparent;
}

div#page div.bl {
  background: url(../img/bl.gif) no-repeat left bottom transparent;
}

div#page div.br {
  margin: 0 0 0 5px;
  height: 5px;
  background: url(../img/br.gif) no-repeat right bottom transparent;
}

/********** Footer **********/

div#footer {
  clear: both;
}

div#footer.iphone {
  width: 320px;
  margin: 0 auto;
}

div#footer, div#footer a {
  color: #111;
}

div#footer p {
  padding: 1em;
  font-size: 1em;
  text-align: center;
}

div#footer p span {
  font-size: 0.8em;
  color: #333;
}


/********** Buttons **********/

.buttons a , .buttons button{
    display:block;
    float:left;
    margin:0 7px 0 0;
    background-color:#f5f5f5;
    border:1px solid #dedede;
    border-top:1px solid #eee;
    border-left:1px solid #eee;

    font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size:100%;
    line-height:130%;
    text-decoration:none;
    font-weight:bold;
    color:#565656;
    cursor:pointer;
    padding:5px 10px 6px 7px; /* Links */
    -moz-border-radius: 6px;
}

div.important .buttons a, div.important .buttons button{
  border:1px solid #bbb;
  border-top:1px solid #ccc;
  border-left:1px solid #ccc;
}

.buttons button{
    width:auto;
    overflow:visible;
    padding:4px 10px 3px 7px; /* IE6 */
}

.buttons button[type]{
    padding:5px 10px 5px 7px; /* Firefox */
    line-height:17px; /* Safari */
}

*:first-child+html button[type]{
    padding:4px 10px 3px 7px; /* IE7 */
}

.buttons button img, .buttons a img{
    margin:0 3px -3px 0 !important;
    padding:0;
    border:none;
    width:16px;
    height:16px;
}

/* STANDARD */

button:hover, .buttons a:hover{
    background-color:#dff4ff;
    border:1px solid #c2e1ef;
    color:#336699;
}

.buttons a:active{
    background-color:#6299c5;
    border:1px solid #6299c5;
    color:#fff;
}

/* POSITIVE */

button.positive, .buttons a.positive{
    color:#529214;
}

.buttons a.positive:hover, button.positive:hover{
    background-color:#E6EFC2;
    border:1px solid #C6D880;
    color:#529214;
}

.buttons a.positive:active{
    background-color:#529214;
    border:1px solid #529214;
    color:#fff;
}

/* NEGATIVE */

.buttons a.negative, button.negative{
    color:#d12f19;
}

.buttons a.negative:hover, button.negative:hover{
    background:#fbe3e4;
    border:1px solid #fbc2c4;
    color:#d12f19;
}

.buttons a.negative:active{
    background-color:#d12f19;
    border:1px solid #d12f19;
    color:#fff;
}

/********** Icons **********/

a.edit, a.add, span.calendar, a.loading, a.delete, a.not_favourite, a.favourite, a.validate, a.report {
  background-image: url(../img/pencil.png);
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 20px;
  border: none;
}

a.report {
  background-image: url(../img/exclamation.png);
}

a.validate {
  background-image: url(../img/tick.png);
}

a.not_favourite {
  background-image: url(../img/yellowstar_empty.png);
}

a.favourite {
  background-image: url(../img/yellowstar.png);
}

a.loading {
  background-image: url(../img/snake_transparent.gif);
}

a.add {
  background-image: url(../img/add.png);
}

a.delete {
  background-image: url(../img/delete.png);
}

span.calendar {
  background-image: url(../img/calendar.png);
}

/********** Paginator **********/

div#paginator {
  padding: 1em 0 0 0;
  text-align: center;
}

div#paginator a {
  margin: 0.2em 0.3em;
  padding: 0.15em 0.4em;
  border: 1px solid #105CB6;
}

div#paginator a:hover {
  color: white;
  background-color: #105CB6;
  text-decoration: none;
}

/********** Tables **********/

div#page table {
  width: 100%;
}

div#page table tr td, div#page table th {
  padding: 0.1em 0.3em;
}

div#page table tr:hover td, div#page table tr.odd:hover td {
  background-color: #fff999;
}

div#page table.no_effect tr:hover td, div#page table.no_effect tr.odd:hover td {
  background-color: transparent;
}

div#page table tr.odd td {
  background-color: #f0f0f0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

div#page table tr td.num {
  font-weight: bold;
  width: 1px;
}

div#page table th {
  text-align: left;
  color: #333;
  background-color: #7085a1;
  color: white;
  border-bottom: 1px solid #404c5b;
}

/********** Links **********/

div#links {
}

div#links img.cover {
  float: left;
  padding: 7px 10px 0 0;
}

div#links div.entry {
  margin: 5px 0;
  padding: 5px 10px;
}

div#links div.entry.odd {
  border: 1px solid #e7e7de;
  background-color: #f3f3ea;
}

div#links p.content {
  text-align: justify;
  font-size: 105%;
}

div#links p.infos {
  padding-top: 0;
  color: #999;
}

div#links a.notimportant, div#stories span.notimportant {
  color: #666;
}

div#links a.admin {
  color: #ff5e3d
}

/********** Comments **********/

div#comments div.entry {
  margin: 3px 0;
  padding: 3px 3px 6px 3px;
  border-bottom: 1px solid #e7e7de;
}

a.tweet {
  color: #393733;
}

a.tweet:hover {
  text-decoration: none;
  background-color: #f0f0f0;
}

/********** Categorized Movies **********/

div#categorized_movies h3 {
  border-bottom: 1px solid #777;
}

div#categorized_movies ul {
  margin: 0;
  padding: 0;
}

div#categorized_movies ul li {
  list-style-type: none;
  padding: 2px 0;
  border-bottom: 1px solid #ccc;
}

div#categorized_movies ul li a {
  display: block;
}

div#categorized_movies ul li a span {
  float: right;
  font-style: italic;
}

div#categorized_movies p#letters {
  padding: 10px 0 0 0;
}

div#categorized_movies p#letters a {
   margin: 0.2em 0.2em;
   padding: 0.15em 0.4em;
   border: 1px solid #105CB6; 
}

div#categorized_movies p#letters a:hover {
  color: white;
  background-color: #105CB6;
  text-decoration: none;
}

/********** Bubble tooltips **********/

a.tt{
    position:relative;
    z-index:24;
}
a.tt span{ display: none; }

/*background:; ie hack, something must be changed in a for ie to execute it*/
a.tt:hover{ z-index:25; background:;}
a.tt:hover span.tooltip{
    display:block;
    position:absolute;
    top:0px; left:0;
	padding: 15px 0 0 0;
	width:200px;
    text-align: center;
	filter: alpha(opacity:90);
	KHTMLOpacity: 0.90;
	MozOpacity: 0.90;
	opacity: 0.90;
}
a.tt:hover span.top{
	display: block;
	padding: 30px 8px 0;
    background: url(../img/bubble.gif) no-repeat top;
}
a.tt:hover span.middle{ /* different middle bg for stretch */
	display: block;
	padding: 0 8px; 
	background: url(../img/bubble_filler.gif) repeat bottom; 
}
a.tt:hover span.bottom{
	display: block;
	padding:3px 8px 10px;
	color: #548912;
    background: url(../img/bubble.gif) no-repeat bottom;
}
