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

* {
  margin: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: white;
    color: #111;
}

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

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

div#pagecontent a {
  color: #b20045;
}

a:visited {
  color: #ff0063;
}

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

a.nounderline:hover, a.nounderline:focus {
  text-decoration: none;
}

a:active {
  color: #000;
}

div#pagecontent a.none {
  color: #111;
}

a.none:visited, a.none:focus, a.none:hover, a.none:active {
  text-decoration: none;
}

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 {
  height: 60px;
}

div#header h1 {
  display: none;
}

div#header a#logo {
  float: left;
  height: 60px;
  width: 396px;
}

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

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

div#header ul, ul#user_nav {
  float: left;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

ul#user_nav {
  float: none;
}

div#header ul li {
  float: left;
  margin: 0 0 0 0;
  padding: 0;
  line-height: 30px;
  height: 30px;
}

ul#user_nav li a {
  font-size: 1.3em;
  font-family: georgia, arial, verdana;
  padding: 0;
}

div#header ul li a {
  display: block;
  float: left;
  color: #111;
  font-weight: bold;
  padding: 0 13px;
}

div#header ul li a:hover {
  border-bottom: 3px solid #999;
  text-decoration: none;
}

div#header ul li a.current {
  border-bottom: 3px solid #ff0063;
  color: #ff0063;
  text-decoration: none;
}

div#header ul#user_nav {
  float: right;
}

div#header ul#nav {
  margin-left: 15px;
}

div#header ul#user_nav li a { 
  border-right: 1px solid #333;
  color: #888;
}

/* flash_messages */

div#flash_messages {
  color: #6b683f;
  background: #fff999;
  border-top: 1px solid #8c8c53;
  border-bottom: 1px solid #8c8c53;
  width: 950px;
  margin: 10px auto 20px auto;
}

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;
  border-color: #a14c3d;
}

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

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

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

div#content div#flash_messages p {
  padding: 0.6em 1em;
}


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

div#pagecontent {
  padding: 10px;
}

div#right {
  float: right;
  width: 250px;
  padding: 10px 10px 10px 25px;
  border-left: 1px dotted #ccc;
}

div#page {
  float: left;
  width: 650px;
}

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

div#content div.wrapper {
}

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

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

div#content h2 {
  font-weight: normal;
  font-family: georgia, arial, verdana;
}

div#content div#page {
}

/********** 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 #555;
  border-bottom: 1px solid #555;
  background-color: #222;
}

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

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;
}

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

div#footer {
  clear: both;
}

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

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

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 */
}

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;
}

/* YELLOW */

button.yellow, .buttons a.yellow {
    color:#d5c130;
}

.buttons a.yellow:hover, button.yellow:hover{
    background-color:#fbf4e3;
    border:1px solid #fbecc2;
    color:#d5c130;
}

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

/* ORANGE */

button.orange, .buttons a.orange {
    color:#d57630;
}

.buttons a.orange:hover, button.orange:hover{
    background-color:#fbe9e3;
    border:1px solid #fbd2c2;
    color:#d57630;
}

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

/* BLUE */

button.blue, .buttons a.blue {
    color:#51a1dc;
}

.buttons a.blue:hover, button.blue:hover{
    background-color:#e3f5fb;
    border:1px solid #c2ebfb;
    color:#51a1dc;
}

.buttons a.blue:active{
    background-color:#51a1dc;
    border:1px solid #51a1dc;
    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.heart, a.chat, a.comment, a.vote_up, a.vote_down {
  background-image: url(../img/pencil.png);
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 20px;
  border: none;
}

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

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

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

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

a.heart {
  background-image: url(../img/heart.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 #b20045;
}

div#paginator a:hover {
  color: #111;
  background-color: #b20045;
  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: #aaa;
}

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: #ddd;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}

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

div#page table th {
  text-align: left;
  background-color: #ddd;
  color: #111;
  border-bottom: 1px solid #aaa;
}

/********** Stories **********/

div#stories {
}

div#stories div.entry {
  margin: 5px 0;
  padding: 5px 5px 10px 5px;
  border-bottom: 1px dotted #333;
  font-family: georgia, arial, verdana;
}

div#stories p.content {
  padding-top: 10px;
  text-align: justify;
  font-size: 14px;
}

div#stories div.entry div.infos {
  padding-top: 5px;
  font-family: helvetica, arial, sans-serif;
}

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

div#stories span.faded {
  color: #aaa;
}

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

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

div#comments div.entry {
  margin: 3px 0;
  padding: 10px 3px 6px 3px;
  border-bottom: 1px dotted #333;
}