/* Set default margins */
* {
  padding:0;
  margin:0;
}

h1, h2, h3, h4, h5, h6, p, pre, blockquote, label, ul, ol, dl, fieldset, address {
  margin: 0.5em 0;
}

li {
  margin-bottom: 0.4em;
  margin-left: 4%;
}

/* Set default format */
h1 { font-size: 120%; }
h2 { font-size: 115%; }
h3 { font-size: 110%; }
h4 { font-size: 105%; }

img {
  background-color: #fff;
  border: none;
}

body {
  background-color: #fff;
  background-image: url(/images/cutlery.jpg);
  text-align: center;
  font-family: trebuchet ms, arial, helvetica, sans-serif;
  font-size:   0.9em;
  line-height: 1.3em;
  word-wrap: break-word;
}

div#page {
  padding-bottom: 5em;
}

div#header_row {
  background-color: #fff;
  border-bottom: 25px solid #ffc20e;
  padding-top: 2px;
}

div#container {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2em;
  text-align: left;
  width: 50em;
}

/* HIDDEN */
.hidden { display: none; }

/* ACTIONS */
div.action_icon {
  float: left;
  height: 21px;
  width: 21px;
}

div#recipe_add {
  background: #FFFFFF url(/images/action_icon_recipe_add.png) no-repeat scroll center center;
}

span.action_right {
  float: right;
  text-align: right;
  width: 10em;
}

/* GENERAL */
div.clear { clear: both; }

div.page_header, div.table_row, div.table_row_plain, div.table_category, div.table_row_add_comment, div.table_row_plain_spaced, div.table_row_spaced, div.table_row_search_heading, div.table_row_action {
  border-bottom: 1px solid #f5f5f5;
  display: inline;
  float: left;
  padding-left: 2.5em;
  padding-right: 2.5em;
  width: 44.75em; /* shrunk just a tiny bit short of 45em to avoid overflow duplicating text in IE6 */
}

div.table_row_action {
  padding-bottom: 0.75em;
  padding-top: 0.75em;
}

div.table_row_plain { border: none; }

div.table_row_plain_spaced {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

div.table_row_spaced {
  margin-bottom: 0.25em;
  padding-right: 7.5em;
  width: 39.75em;
}

div.table_row_search_heading {
  font-size: 0.75em;
  width: 61.67em;
}

div.page_header {
  border-bottom: 1px solid #9c9c9c;
  margin-right: -3px;
  padding-top: 0.5em;
}

/* LINKS */
a, input.submit {
  color: #666;
  font-weight: bold;
  padding: 5px;
  line-height: 1.5em;
  margin-left: -5px;
  margin-right: -5px;
  cursor: pointer;
  text-decoration: underline;
}

a div { cursor: pointer; }

a.pretty {
  text-decoration: none;
  margin: 0.01em;
  margin-bottom: 0.2em;
  color: #ffc20e;
}

a.invert { color: #fff; }

a.context { font-size: 0.75em; }

a:hover, input.submit:hover {
  background-color: #ffc20e;
  color: #000;
  text-decoration: none;
}

a.image:hover {
  background-color: #fff;
}

a.anchor {
  background: none;
  color: #000;
  cursor: default;
  text-decoration: none;
}

input.submit {
  background-color: #fff;
  font-weight: bold;
  padding: 2px 5px;
  margin: 0;
  line-height: 1em;
  text-decoration: none;
}

/* TAG */
a.tag, a.owner_tag {
  border: 1px solid #999;
  color: #222;
  font-size: 0.9em;
  font-weight: normal;
  margin: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

a.tag { background-color: #eee; }

a.owner_tag { background-color: #ffeabf; }

a.tag:hover, a.owner_tag:hover {
  color: #000;
  background-color: #ffc20e;
}

a.search_tag {
  display: inline;
  float: right;
}

a.search_tag:hover {
  color: #000;
  background-color: #ffc20e;
  text-decoration: line-through;
}

/* EDIT_TAG */
form.edit_tags { display: inline; }

/* SITE TITLE */
div#site_title {
  display: inline;
  float: left;
  margin-left: 5em;
  width: 1em;
}

div#user_status {
  display: inline;
  float: right;
  margin-right: 2em;
  text-align: right;
  width: 25em;
}

div#login_form { float: right; }

div#site_links {
  color: #ffc20e;
  display: inline;
  float: right;
  margin-top: -66px;
}

a#site_title_link {
  color: #fff;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

a#site_title_link:hover {
  color: #fff;
  background-color: #fff;
}

/* PAGE TITLE */
div.page_title {
  display: inline;
  float: left;
  width: 50%;
}

div.page_title h2 {
  display: inline;
}

div.page_title span {
  font-size: 0.75em;
}

div.page_action {
  display: inline;
  float: right;
  padding-top: 0.2em;
  padding-right: 0.4em;
  text-align: right;
  width: 48%;
}

/* RECIPE TITLE */
div.recipe_title {
  display: inline;
  float: left;
  width: 62%;
  font-size: 95%;
}

div.recipe_action {
  display: inline;
  float: right;
  width: 38%;
  text-align: right;
}

div.recipe_action_links {
  float: right;
  padding-bottom: 0.25em;
  width: 100%;
}

/* NOTIFICATION */
div.notification {
  background-color: #34bef2;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  color: #000;
  display: inline;
  float: left;
  line-height: 1.5em;
  margin-bottom: 0.4em;
  width: 50em;
}

div#error_notification {
  background-color: #b00;
  border-top: 1px solid #900;
  border-bottom: 1px solid #900;
  color: #fff;
}

/* INDEX */
div.table_recipe, div.table_friend, div.table_user {
  display: inline;
  float: left;
  width: 66%;
}

div.table_image {
  float: left;
  height: 40px;
  text-align: left;
  width: 9%;
}

span.serves_and_times {
  font-size: 0.75em;
}

div.new_followers { float: left; }

div#category_new_followers { background-color: #34BEF2; }

div.table_friends_image {
  float: left;
  text-align: left;
  width: 9%;
}

div.table_action {
  display: inline;
  float: right;
  width: 21%;
  text-align: right;
}

div.intro_block {
  background-color: #eee;
  border: 3px solid #ccc;
  float: left;
  padding: 0.5em;
  text-align: center;
  width: 11.5em;
}

div.intro_form {
  float: right;
  margin-left: 4em;
  width: 11.5em;
}

h1.intro {
  margin-bottom: 0;
  margin-top: 0.5em;
  text-transform: uppercase;
}

/* BUSY STATUS */
div.busy div.table_action p { visibility: hidden; }

div.busy div.table_action {
  background: transparent url(/images/search_progress.gif) no-repeat scroll right center;
  height: 4px;
  margin-top: 20px;
}

/* INDEX with USER PROFILE */
div.table_large_image {
  display: inline;
  float: left;
  width: 30%;
}

div.table_user_notes {
  display: inline;
  float: left;
  width: 65%;
  margin-top: 0.75em;
  padding: 0.75em;
  background-color: #eee;
  font-size: 90%;
}

span.user_notes {
  float: left;
  width: 80%;
}

span.user_profile_links {
  float: right;
  text-align: right;
  width: 15%;
}

/* USER */
label {
  color: #666;
  font-style: italic;
  font-weight: bold;
}

/* NOISE */
div.table_noise {
  display: inline;
  float: left;
  padding: 0.5em;
  width: 32em;
}

div.table_category {
  background-color: #eee;
  color: #000;
  font-size: 0.85em;
  font-weight: bold;
  width: 53.86em;
}

div.table_category em { font-weight: normal; }

div.comment_text {
  margin-bottom: 0.25em;
  padding: 0.5em;
  background-color: #eee;
  font-size: 90%;
}

div.noise_section {
  clear: both;
  margin-top: 1em;
  margin-bottom: 1em;
}

h2.noise_comments {
  display: inline;
  float: left;
  width: 75%;
}

div.table_row_add_comment { padding-bottom: 3em; }

.add_comment {
  color: #999;
  display: inline;
  float: right;
  font-size: 0.75em;
  margin-bottom: 1em;
  margin-right: 1em;
}

div#noise_add { background: #fff url(/images/noise_add.png) no-repeat center center; }
div#noise_comment { background: #fff url(/images/noise_comment.png) no-repeat center center; }
div#noise_copy { background: #fff url(/images/noise_copy.png) no-repeat center center; }
div#noise_grab { background: #fff url(/images/noise_grab.png) no-repeat center center; }
div#noise_inconceivable { background: #fff url(/images/noise_inconceivable.png) no-repeat center center; }
div#noise_star { background: #fff url(/images/noise_star.png) no-repeat center center; }

/* VIEW RECIPE */
/* To float image and notes */
div.right_block {
  display: inline;
  float: right;
  margin: 0.5em;
  overflow: visible;
  padding-bottom: 0.5em;
  padding-left: 0.5em;
  width: 40%;
}

div.notes {
  background-color: #eee;
  border: 3px solid #ccc;
  font-size: 90%;
  padding: 0.75em;
  margin-top: 1.8em;
  text-align: center;
}

div.inspired_by {
  float: left;
  font-size: 90%;
  padding-top: 1em;
  width: 100%;
}

div.formatted_holder { margin-left: 14px; }

div.recipe_details {
  display: inline;
  float: left;
  width: 95%;
}

div.star_ratings {
  float: right;
  overflow: auto;
  padding-bottom: 0.25em;
  text-align: left;
}

div.grabbed_count {
  float: right;
  margin-right: 0.5em;
}

div.recipe_times {
  float: left;
  padding-bottom: 0.25em;
  width: 55%;
}

div.recipe_tags_show {
  line-height: 2.5em;
  display: inline;
  float: left;
  padding: 1px 0;
  width: 55%;
}

div.recipe_tags_list {
  line-height: 2.5em;
  display: inline;
  float: left;
  padding: 1px 0;
  width: 95%;
}
 
div.ingredients { overflow: visible; }

h1.ingredients { font-size: 110%; }

h1.steps { font-size: 110%; }

/* EDIT RECIPE */
div.recipe_meta { float: left; }

div#images {
  float: right;
  width: 12em;
}

div.element_form {
  display: inline;
  float: left;
  width: 50%;
}

div.element_wider_form {
  display: inline;
  float: left;
  width: 55%;
}

div.element_preview {
  display: inline;
  float: right;
  width: 47%;
}

div.preview_holder { margin-left: 28px; }

label.inline {
  float: left;
  width: 4em;
}

label.centre { text-align: center; }

textarea.extra_wide, input.extra_wide { width: 40em; }

textarea.wide, input.wide { width: 25em; }

input.wide { float: left; }

input.narrow {
  float: left;
  width: 7em;
}

input.extra_narrow {
  float: left;
  width: 2em;
}

/* Set size of ingredients, steps and notes fields */
textarea { width: 96%; }

/* SEARCH */
div#search_progress_holder {
  margin: 0 auto 15px;
  width: 60px;
}

/* INPUTS */
input.search {
  font-size: 1.2em;
  height: 20px;
  padding: 3px;
}

input, textarea {
  color: #666;
  background-color: #fafafa;
  font-family: trebuchet ms, arial, helvetica, sans-serif;
  font-size: 1em;
  padding: 1px;
}

input:focus, textarea:focus {
  color: #fff;
  background-color: #666;
}

/* Friend */
p.short_description {
  font-size: 0.85em;
  margin-top: -0.5em;
}

span.counts {
  font-size: 0.75em;
}

/* INVITE */
div.friend_invite {
  margin-top: 0.5em;
  margin-bottom: 1em;
}

/* EMAIL RECIPE */
div.email_recipe { float: right; }

/* STAR RATING */
div.star_rating_block_list { float: right; }

.star_rating, .star_rating a:hover, .star_rating a:active, .star_rating a:focus, .star_rating .current_rating { background: url(/images/star_rating_translucent_20x60.gif) left -1000px repeat-x; }

.star_rating {
  padding: 0px;
  position: relative;
  width: 100px;
  height: 20px;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
  background-position: left top;
  display: inline;
  float: left;
}

.star_rating li {
  display: inline;
  margin: 0;
}

.star_rating a, .star_rating .current_rating {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0px;
  margin: 0px;
  text-indent: -1000em;
  height: 20px;
  line-height: 20px;
  outline: none;
  overflow: hidden;
  border: none;
}

.star_rating a:hover, .star_rating a:active, .star_rating a:focus { background-position: left bottom; }

.star_rating a.stars_1 {
  width: 20%;
  z-index: 6;
}

.star_rating a.stars_2 {
  width: 40%;
  z-index: 5;
}

.star_rating a.stars_3 {
  width: 60%;
  z-index: 4;
}

.star_rating a.stars_4 {
  width: 80%;
  z-index: 3;
}

.star_rating a.stars_5 {
  width: 100%;
  z-index: 2;
}

.star_rating .current_rating {
  z-index: 1;
  background-position: left center;
}

/* AUTO-COMPLETE */
.ui-autocomplete {}

.ui-autocomplete-results {
  padding: 1px;
  position: absolute;
  text-align: left;
  z-index: 99999;
}

.ui-autocomplete-results ul {
  width: 103%;
  list-style-position: outside;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* !important! if line-height is not set, or is set to a relative unit, scroll will be broken in firefox */
.ui-autocomplete-results li {
  border: 1px solid #fafafa;
  margin: 0;
  padding: 0.2em 0.5em;
  cursor: pointer;
  display: block;
  font-size: 1.1em;
  line-height: 1.5em;
  overflow: hidden;
  border-collapse: collapse;
}

.ui-autocomplete-results li.ui-autocomplete-state-default { background-color: #fafafa; }

.ui-autocomplete-results li.ui-autocomplete-state-active {
  color: #000;
  background-color: #ffc20e;
  border: 1px solid #999;
}

.ui-autocomplete-loading { background: white url(/images/search_progress.gif) right center no-repeat; }

.ui-autocomplete-over { background: white url(/images/search_progress.gif) right center no-repeat; }

/* ERRORS */
.fieldWithErrors {
  padding: 4px;
  background-color: #b00;
  display: inline-table;
}

.errorExplanation {
  border: 2px solid #900;
  margin-top: 10px;
  margin-bottom: 10px;
}

.errorExplanation h2 {
  color: #fff;
  background-color: #b00;
  font-size: 0.9em;
  margin: 0;
  padding: 5px 12px;
  text-align: left;
}

/* SITE_LINKS */
ul#nav {
  width: 259px;
  height: 34px;
}

ul#nav li {
  padding: 0;
  margin: 0;
  display: block;
  float: left;
  text-indent: -9999px;
}

ul#nav li a {
  border: 0;
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: transparent url(/images/site_menu_buttons.gif) no-repeat;
  margin: 0;
  padding: 0;
  width: 86px;
  height: 34px;
}

li#recipes a:hover, li#recipes a:focus { background-position: 0px -34px; }

li#friends a:link, li#friends a:visited {
  background-position: -85px 0px;
  width: 87px;
}

li#friends a:hover, li#friends a:focus {
  background-position: -85px -34px;
  width: 87px;
}

li#noise a:link, li#noise a:visited { background-position: -171px 0px; }
li#noise a:hover, li#noise a:focus { background-position: -171px -34px; }
body#recipes ul#nav li#recipes a { background-position: 0px -68px; }
body#recipes ul#nav li#recipes a:hover { background-position: 0px -34px; }
body#friends ul#nav li#friends a { background-position: -85px -68px; }
body#friends ul#nav li#friends a:hover { background-position: -85px -34px; }
body#noise ul#nav li#noise a { background-position: -171px -68px; }
body#noise ul#nav li#noise a:hover { background-position: -171px -34px; }

/* IE6 */
div#site_links_ie6 {
  display: inline;
  float: right;
  margin-bottom: -7px;
  margin-right: -11em;
  margin-top: 43px;
  padding: 0;
  width: 257px;
}
