.thumbs {
  margin-bottom: 18px;
}

.thumbs img {
  box-sizing: content-box;
  border: 1px solid #000;
  margin-bottom: 4px;
  vertical-align: top;
}

.thumbs a img.left {
  margin-right: 5px;
}

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

ul.tag_cloud li {
  float: left;
  margin-right: 5px;
  margin-bottom: -3px;
  box-sizing: content-box;
}
ul.tag_cloud li a {
  line-height: 1.1;
  text-decoration: none;
}
ul.tag_cloud li a:hover {
  text-decoration: underline;
}
.tag6 { padding-top: 0; height: 25px; }
.tag5 { padding-top: 2px; height: 23px; }
.tag4 { padding-top: 2px; padding-bottom: 2px; height: 21px; }
.tag3 { padding-top: 4px; padding-bottom: 2px; height: 19px; }
.tag2 { padding-top: 6px; padding-bottom: 2px; height: 17px; }
.tag1 { padding-top: 7px; padding-bottom: 2px; height: 16px; }
.tag0 { padding-top: 7px; padding-bottom: 3px; height: 15px; }

.tag6 a {
  font-size: 22px;
}
.tag5 a {
  font-size: 19px;
}
.tag4 a {
  font-size: 17px;
}
.tag3 a {
  font-size: 15px;
}
.tag2 a {
  font-size: 13px;
}
.tag1 a {
  font-size: 12px;
}
.tag0 {
  font-size: 10px;
}


/* Browsing Bikes */

#content .bike_search_row {
  position: relative;
  height: 48px;
  background: url(/img/question_mark.gif) 0 0 no-repeat;
  font-size: 1rem;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
#content .bike_search_row a {
  display: block;
  width: 100%;
  height: 100%;
}
#content .bike_search_row a span {
  position: absolute;
  left: 58px;
  top: 0.85rem;
  text-decoration: underline;
  cursor: hand;
}
#content .bike_search_row img {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  overflow: hidden;
}

#content ul.links li {
  height: 33px;
  background: none;
}

#content ul.links li a {
  font-size: 18px;
  padding-top: 7px;
}

#content ul.more_links {
  list-style: none;
  margin: 2px 0 0 0;
  padding: 0;
}
#content ul.more_links li {
  margin: 0 0 4px 0;
  font-size: 14px;
}

/* Comments */
.comments_title {
  clear: both;
  padding-top: 16px;
}

div.comment {
  position: relative;
  border-top: 1px solid #ccc;
  padding: 7px 0 0 58px;
  margin-bottom: 8px;
  background-position: 0 11px;
  background-repeat: no-repeat;
  background-image: url(/img/question_mark.gif);
}

div.comment div.comment {
  border-top: 0;
  padding: 5px 0 0 58px;
  margin-bottom: 0;
  background-position: 0 9px;
  background-repeat: no-repeat;
  background-image: url(/img/question_mark.gif);
}

div.comment a.author_photo {
  display: block;
  position: absolute;
  left: 0;
  top: 11px;
  width: 48px;
  height: 48px;
  text-indent: -9000em;
}
div.comment div.comment a.author_photo {
  top: 9px;
}

h2 + div.comment,
p.comment_options + div.comment {
  border-top: 0;
}
#content p.comment_options {
  margin: 0;
  padding: 1px 0 5px 0;
  line-height: 1;
  font-size: 12px;
  color: #aaa;
}
#content p.comment_options a {
  color: #777;
}

#content div.comment p.author_info {
  margin: 0 0 5px 0;
  font-size: 1em;
  color: #777;
}
#content div.comment p.date_info {
  margin: 5px 0 0 0;
  font-size: 1em;
  color: #777;
}
#content div.comment p.date_info a {
  color: #777;
  text-transform: lowercase;
}

#content div.comment p.comment_body {
  margin: 0;
}

/* Comment Posting Stuff */

form.post_comment {
  float: left;
  margin: 0;
  padding: 0;
  font-size: 1.1em;
}
form.post_comment label {
  display: block;
  margin-bottom: 1px;
  font-size: 14px;
  letter-spacing: -1px;
  font-weight: bold;
}
form.post_comment textarea {
  display: block;
  width: 280px;
  height: 70px;
  margin-bottom: 10px;
  font-family: helvetica, arial, sans-serif;
  font-size: 13px;
  background: #fff;
  box-shadow: inset 4px 4px 7px rgba(0,0,0,0.05);
  border: 1px solid #d9d9d9;
  padding: 4px 3px 4px 3px;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
}
form.post_comment textarea:focus {
  border-color: #0cf;
}
form.post_comment input {
  font-family: helvetica, arial, sans-serif;
  font-size: 13px;
}
#comment_cancel {
  color: #999;
  font-size: 11px;
}

#popwindow_outer {
  position: absolute;
  background: #fff;
  border: 6px solid #666;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  padding: 12px 15px;
  text-align: left;
  z-index: 5000;
}
#popwindow_outer img.arrow {
  position: absolute;
  left: -28px;
  width: 28px;
  height: 36px;
}

img.individual_map {
  border: 1px solid #000;
  margin-bottom: 4px;
}

/* Interview */
#interview p {
  margin: 0 0 13px 0;
}
#interview p.q {
  font-weight: bold;
  margin: 13px 0 0 0;
}
#interview p.last {
  margin-bottom: 13px;
}
#interview p span {
  color: #090;
  font-weight: bold;
}
#interview p.q span {
  color: #0be;
}
#interview a.feature {
  display: block;
  float: right;
  position: relative;
  width: 207px;
  margin: 5px 0 3px 10px;
  border: 0;
  background-position: -167px 0;
  background-repeat: no-repeat;
}
#interview a.feature span {
  position: absolute;
  top: -21px;
  right: 10px;
  width: 98px;
  height: 98px;
  border: 0;
  background: url(/img/details_badge_sprite.png) 0 0 no-repeat;
  text-indent: -9000em;
}
#interview a.feature:hover span {
  background-position: 0 -98px;
}
#interview a.feature img {
  display: block;
  border: 0;
  margin: 104px 0 0 0;
}

#interview .iit_left,
#interview .iit_right {
  float: left;
  position: relative;
  margin: 3px 10px 3px 0;
}
#interview .iit_right {
  float: right;
  margin: 3px 0 3px 10px;
}
#interview .iit_left span,
#interview .iit_right span {
  display: none;
}

/* Interviews List Page */
p.interview_row {
  line-height: 1;
}
p.interview_row .time {
  display: block;
  margin-bottom: -5px;
  font-size: 18px;
  color: #aaa;
  letter-spacing: -1px;
  font-weight: bold;
}
p.interview_row .intro {
  display: block;
  margin-bottom: -3px;
}
p.interview_row .interview_link {
  font-weight: bold;
}


/* Photos on bike profiles */

#photo {
  z-index: 201;
  position: relative;
  clear: both;
  margin: 0 auto 1rem auto;
  width: 100%;
}
#photo a.left {
  position: absolute;
  left: 0;
  top: 10px;
  width: 40%;
  height: 100%;
  text-indent: -9000em;
  z-index: 201;
}
#photo a.right {
  position: absolute;
  left: 60%;
  top: 10px;
  width: 40%;
  height: 100%;
  text-indent: -9000em;
  z-index: 201;
}
#photo a.left:hover {
  background: url(/img/sprites/photo_overlays.png) left center no-repeat;
}
#photo a.right:hover {
  background: url(/img/sprites/photo_overlays.png) right center no-repeat;
}
#photo img {
  border-top: 10px solid #fff;
  display: block;
  width: 100%;
  margin: 0 auto;
  height: auto;
}
#photo .close {
  position: absolute;
  top: 10px;
  right: 0;
  width: 31px;
  height: 30px;
  font-size: 1px;
  text-indent: -9000em;
  overflow: hidden;
  cursor: pointer;
  background: url(/img/sprites/photo_overlays.png) -470px 0 no-repeat;
  z-index: 202;
}
#pcomments .close {
  top: 0;
}
#photo .close:hover {
  background: url(/img/sprites/photo_overlays.png) -470px -30px no-repeat;
}
#photo .options {
  position: absolute;
  top: 10px;
  right: 31px;
  z-index: 202;
  font-size: 11px;
}
#photo .options a {
  display: inline-block;
  margin-right: 1px;
  padding: 9px 10px;
  background: rgba(0,0,0,0.5);
  line-height: 1;
  color: #ccc;
}
#photo .options a:hover {
  color: #fff;
}
#photo .pop_open {
  color: #fff !important;
  text-decoration: none;
  cursor: default;
}
#photo #share {
  position: absolute;
  top: 40px;
  right: 32px;
  background: rgba(0,0,0,0.5);
  z-index: 202;
  font-size: 11px;
  padding: 9px 10px;
  color: #fff;
}

h2 span {
  font-size: 11px;
  color: #777;
  font-weight: normal;
  letter-spacing: 0;
  vertical-align: middle;
}
#slideshow_photo {
  position: relative;
  margin: 0 auto 1rem auto;
}
#slideshow_photo img {
  display: block;
  width: 100%;
  height: auto;
}
#slideshow_photo .label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: #000;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
}
#slideshow_photo .label a.bike {
  font-size: 18px;
  letter-spacing: -1px;
  font-weight: bold;
  text-decoration: none;
  color: #ddd;
}
#slideshow_photo .label a:hover {
  color: #fff;
  text-decoration: underline;
}
#slideshow_photo .label .owner {
  display: block;
  color: #888;
  font-size: 11px;
}
#slideshow_photo .label .owner a {
  color: #888;
  text-decoration: none;
}

/* Photo comments */
#photo #pcomments {
  position: absolute;
  top: 40px;
  right: 32px;
  background: rgba(0,0,0,0.5);
  z-index: 202;
  font-size: 11px;
  padding: 0.75rem 1rem;
  color: #fff;
  text-align: left;
  z-index: 201;
}
#photo #pcomments div.comment:first-child {
  border-top: 0;
  padding-top: 2px;
  background-position: 0 6px;
}

#photo div.comment p.author_info {
  margin: 0 0 5px 0;
  font-size: 1em;
  color: #aaa;
}
#photo div.comment p.date_info {
  margin: 5px 0 0 0;
  font-size: 1em;
  color: #aaa;
}
#photo div.comment p.date_info a {
  color: #aaa;
  text-transform: lowercase;
}

#photo div.comment p.comment_body {
  margin: 0;
}
#photo form.post_comment {
  padding-top: 3px;
  padding-bottom: 5px;
}
#photo form.post_comment textarea {
  height: 50px;
  margin-bottom: 4px;
}
.preview {
  position: relative;
  margin-bottom: 8px;
  border-top: 1px solid #ccc;
  padding-top: 9px;
}
#content .preview p {
  margin: 0;
  margin-left: 25px;
  padding: 4px 0 0 10px;
  height: 20px;
  font-size: 12px;
  line-height: 1.2;
  color: #999;
}
#content .preview p a.minor {
  color: #999;
}
.preview img {
  position: absolute;
  top: 9px;
  left: 0;
  border: 0;
}
h2 + .preview {
  border-top: 0;
  padding-top: 4px;
}
p.comment_options + .preview {
  border-top: 0;
}
/* The following rule seems un-necessary, but Chrome has a bug that makes the
 * above adjacent selector apply to everything with .preview. Odd.
 */
div + .preview {
  border-top: 1px solid #ccc;
  padding-top: 9px;
}
h2 + .preview img {
  top: 4px;
}


.photogrid {
  margin-bottom: 10px;
}
.photogrid a {
  display: block;
  width: 176px;
  overflow: hidden;
  float: left;
  margin-right: 2px;
  margin-bottom: 2px;
  position: relative;
}
.photogrid .no_photo {
  background: #656565 url(/img/question_mark.gif) center center no-repeat;
  min-height: 80px;
}
.photogrid span {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  width: 300px;
  height: 18px;
  padding: 4px 0 0 5px;
  color: #ccc;
  font-size: 11px;
  text-decoration: underline;
}
.photogrid a:hover span {
  color: #fff;
}
.photogrid a.last_in_row {
  margin-right: 0;
}
.photogrid img {
  margin-left: -16px;
  border: 0;
}



/* Bike History Explanation Popup */
li.add_history {
  padding-bottom: 3px !important;
}
li.add_history a {
  float: left;
}
a.o_history_explanation {
  margin-left: 1px;
  margin-top: -2px;
  width: 12px;
  height: 13px;
  padding: 0;
  background: url(/img/question_box.png) 2px 2px no-repeat;
  text-indent: -9000em;
}

/* This is duplicated in controlpanel.css. TODO: Fix. */
#bike_history_popup {
  background: rgba(0,0,0,0.5);
  position: absolute;
  width: 200px;
  color: #fff;
  font-size: 11px;
  z-index: 400;
  text-align: left;
}
#bike_history_popup div {
  background: rgba(0,0,0,0.5);
  padding: 10px;
}
#bike_history_popup a.get_started {
  font-size: 16px;
  letter-spacing: -1px;
  font-weight: bold;
}

/* Flagging */
a.flag {
  color: #999;
}
.flag_reason {
  display: block;
}
.flag_reason h4 {
  margin-bottom: 0;
}
.flag_reason p {
  margin: -1px 0 4px 0 !important;
  font-size: 12px !important;
}
.flag_reason textarea {
  display: block;
  margin: 4px 0 6px 0;
  width: 200px;
  height: 60px;
}

/* Member Profiles */
.member_details .member_photo {
  float: left;
  width: 176px;
  margin: 0 4px 8px 0;
  overflow: hidden;
  border: 1px solid #000;
}
.member_details .member_photo img {
  display: block;
  margin-left: -16px;
}

.member_details .label {
  clear: left;
  margin-bottom: 0 !important;
  font-weight: bold;
}

/* Members' other bikes on bikes/show */
.grid_photos {
  margin-bottom: 18px;
}
.grid_photos img {
  vertical-align: middle;
  margin: 0 2px 4px 2px;
  border: 0;
}
