/* 
 * Copyright 2009 Da Code. All Rights Reserved
 * author: wangjunyu@gmail.com (Junyu Wang)
 */

@import "http://www.google.com/css/goog.css";

/* Additional resets from goog.css. */
h1,
h2,
h3,
h4,
ul,
ol,
li {
  padding: 0;
  font-size: 100%;
  font-weight: normal;
  line-height: inherit;
}
ul,
ol,
li {
  list-style: none;
}

body {
  background: url(bg.png) top center no-repeat;
}

/* Typography. */
body {
  color: #222;
  line-height: 1.6;
  text-align: center;
}
sup {
  color: red;
}
h2 {
  font-size: 161.54%; /* 21px */
  line-height: 1.19; /* 25px */
  margin-bottom: 10px; /* 10px */
}
h2.da-headline {
  background-repeat: no-repeat;
  background-position: left center;
  height: 25px;
  text-indent: -2009px;
}
.da-tip {
  color: #d7d7d7;
}

/* Links. */
a:link,
a:visited,
a:hover,
a:active {
  color: #f51;
}
.da-designs h4 a:link,
.da-designs h4 a:visited,
.da-designs h4 a:hover,
.da-designs h4 a:active {
  color: #000;
}
li h4 a:hover,
li h4 a:active {
  text-decoration: underline;
}
a:link,
a:visited {
  text-decoration: none;
}
a:hover,
a:active {
  text-decoration: underline;
}
h4 a {
  display: block;
}
.da-button:link,
.da-button:visited {
  background-color: #f51;
  color: #fff;
  padding: 3px;
}
.da-button:hover,
.da-button:active {
  background-color: #888;
  color: #fff;
  text-decoration: none;
}
.da-date {
  display: block;
  margin-top: 10px;
}
.da-ft,
cite {
  font-family: verdana, arial, sans-serif;
  font-size: 76.9%;
  font-style: normal;
  font-weight: bold;
}

/* Images sprite. */
/* Shared settings for sprites.  It's your job to give them proper w/h,
   background-position and positioning in other places. */
h1,
.da-ebay strong,
.da-taobao strong,
.da-tabs li.da-cur,
.da-cpr strong,
.da-icon,
.da-close,
.da-tag,
.da-extra {
  background: url(sprite.png) no-repeat;
  display: block;
  text-indent: -2009px;
}
/* This is used to blockify inline elements.  Usually used in sprites. */
a.da-block {
  display: block;
  height: 100%;
  width: 100%;
}
a.da-block:focus {
  outline: none;
}

/* Page layouts. */
/* Template system for layouts.  Inspired by
   http://www.google.com/css/gooey.css. */
.da-doc {
  font-size: 130%;
  margin: 0 auto;
  text-align: left;
}
.da-section {
  margin-bottom: 5px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.da-unit {
  display: inline;
  overflow: hidden;
}
.da-grid {
  overflow: hidden;
}
.da-tpl .da-main,
.da-tpl-alt .da-sidebar {
  float: left;
}
.da-tpl .da-sidebar,
.da-tpl-alt .da-main {
  float: right;
}
.da-doc {
  width: 945px;
}
.da-tpl-3-2 .da-main {
  width: 565px;
}
.da-tpl-3-2 .da-sidebar {
  width: 375px;
}
.da-tpl-1-3 .da-main {
  width: 210px;
}
.da-tpl-1-3 .da-sidebar {
  width: 730px;
}

/* Additional space for precisely calculated <li>s. */
.da-tpl-3-2 .da-main .da-grid {
  width: 570px;
}
.da-tpl-3-2 .da-sidebar .da-grid {
  width: 380px;
}

/* Header, */
.da-hd {
  height: 10em;
  position: relative;
}
h1 {
  height: 22px;
  position: absolute;
  top: 17px;
  width: 166px;
}
.da-hd cite {
  color: #fff;
  position: absolute;
  text-align: right;
  top: 39px;
  width: 166px;
}
.da-nav {
  font-size: 115.38%; /* 15px / 13px */
  position: absolute;
  right: 0;
  top: 1.3em;
}
.da-nav li {
  display: inline;
  line-height: 2;
  margin-left: 1.5em;
}
.da-nav a:link,
.da-nav a:visited,
.da-nav a:hover,
.da-nav a:active {
  color: #000;
  text-decoration: none;
}
.da-nav a:hover {
  border-bottom: red solid 3px;
}
h3 a:link,
h3 a:visited,
h3 a:hover,
h3 a:active {
  color: #000;
}

/* Body. */
/* Section headers. */
h3 {
  background: #f8941d; /* Pick a default color. */
  height: 1.8em;
  line-height: 1.8;
  margin-bottom: 5px;
  padding: 0 5px;
}
.da-orange h3 {
  background: #f8941d;
}
.da-gray h3 {
  background: #d7d7d7;
}
.da-yellow h3 {
  background: #fff200;
}
.da-blue h3 {
  background: #00aef0;
}
.da-purple h3 {
  background: #f39;
}
.da-green h3 {
  background: #3c3;
}
.da-red h3 {
  background: #f33;
}

/* Headlines */
.da-subscribe {
  line-height: 1.8;
  position: absolute;
  top: 0;
  right: 5px;
  vertical-align: middle;
}
.da-feed {
  padding-left: 18px;
  background: url(http://www.google.com/images/feed-icon.gif) left center no-repeat;
}
.da-greader {
  padding-left: 62px;
  background: url(http://gmodules.com/ig/images/plus_google.gif) left center no-repeat;
}
/* Previews */
.da-previews {
  height: 320px;
  overflow: hidden;
  position: relative;
  width: 565px;
}
.da-preview {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10000; /* For lightout. */
}
.da-previewlinks {
  bottom: 5px;
  right: 5px;
  position: absolute;
  z-index: 10001;
}
.da-previewlinks li {
  float: left;
}
.da-previewlinks a {
  display: block;
  font-weight: bold;
  height: 1.5em;
  line-height: 1.5;
  margin-right: 5px;
  text-align: center;
  width: 1.5em;
}
.da-previewlinks a:link,
.da-previewlinks a:visited {
  background: #f51;
  border: #f51 solid 1px;
  color: #fff;
  text-decoration: none;
}
.da-previewlinks a:hover,
.da-previewlinks a:active {
  background: #888;
  border: #888 solid 1px;
  text-decoration: none;
}
.da-previewlinks a.da-cur:link,
.da-previewlinks a.da-cur:visited,
.da-previewlinks a.da-cur:hover,
.da-previewlinks a.da-cur:active {
  background: #fff;
  border: #f51 solid 1px;
  color: #f51;
}

/* Title and buy links. */
.da-callout {
  float: left;
  width: 112px;
}
.da-callout p {
  margin-top: 1em;
  text-align: center;
}
.da-info {
  margin-left: 117px;
}
.da-info h2 {
  margin-left: 32px;
}
.da-info .da-category {
  margin-bottom: 5px;
  padding: 0;
}
.da-info .da-icon {
  background-position: -240px -22px;
  float: left;
  height: 20px;
  margin-right: 5px;
  position: relative;
  top: 2px;
  width: 27px;
}
.da-buy {
  border-top: #b7b7b7 solid 1px;
}
.da-buy li {
  border-bottom: #b7b7b7 solid 1px;
  padding: 5px 0;
  overflow: hidden;
  text-align: center;
}
.da-buy a {
  display: block;
  height: 100%;
  position: relative;
  text-indent: .5em;
  width: auto;
}
.da-buy a:link,
.da-buy a:visited,
.da-buy a:hover,
.da-buy a:active {
  color: #000;
  text-decoration: none;
}
.da-buy a.da-ebay-soldout,
.da-buy a.da-taobao-soldout {
  color: #888;
}
.da-buy strong /* Used to display and logos. */ {
  height: 60px;
  text-indent: -2009px;
  width: 112px;
}
.da-buy strong {
  cursor: pointer;
}
.da-ebay strong {
  background-position: -112px -22px;
}
.da-ebay-soldout strong {
  background-position: -112px -82px;
}
.da-taobao strong {
  background-position: 0 -22px;
}
.da-taobao-soldout strong {
  background-position: 0 -82px;
}

/* Lists. */
.da-null {
  padding: 0;
}
.da-more {
  font-weight: bold;
  padding: .384em 0 0;
}
.da-evenmore { /* Tmp used in comingsoon only. */
  bottom: 0;
  padding: 0;
  position: absolute;
  right: 0;
}
.da-guide dt {
  height: 1.769em;
  line-height: 1.769;
  position: absolute;
  right: 0;
  top: 0;
  zoom: 1;
}
.da-guide dd {
  background: #888;
  color: #fff;
  padding: 5px;
  position: relative;
  top: -.308em;
}
.da-tag {
  background-position: -294px -24px;
  font-weight: bold;
  padding: 0 5px;
  text-indent: 16px;
}
.da-tag:link,
.da-tag:visited {
  color: #fff;
}
.da-tag:hover,
.da-tag:active {
  color: #fff;
  background-position: -294px 0;
  text-decoration: none;
}
.da-tag-cur .da-tag,
.da-tag-cur .da-tag:link,
.da-tag-cur .da-tag:visited,
.da-tag-cur .da-tag:hover,
.da-tag-cur .da-tag:active {
  background-position: -294px -48px;
  height: 1.846em;
  display: inline-block;
}

/* Design showcase. */
.da-designs li {
  float: left;
  margin-right: 5px;
  margin-bottom: 5px;
  position: relative;
  width: 185px;
}
.da-designs .da-icon {
  background-position: -240px -42px;
  bottom: 4px;
  left: 0;
  height: 13px;
  position: absolute;
  width: 18px;
}
.da-designs li a {
  display: block;
  outline: none;
}
.da-designs li img {
  display: block;
  height: 185px;
  width: 185px;
}
.da-designs .da-name {
  display: block;
  height: 1.6em;
  line-height: 1.6;
  overflow: hidden;
  text-indent: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.da-designs .da-price {
  height: 32px;
  left: 2px;
  line-height: 32px;
  position: absolute;
  top: 2px;
  width: 32px;
}
.da-designs .da-price .da-bg {
  background: #000;
  height: 100%;
  opacity: .5;
  filter: alpha(opacity=50);
  position: absolute;
  width: 100%;
}
.da-designs .da-price strong {
  cursor: pointer;
  font-weight: normal;
  text-shadow: 1px 1px 0 #222;
  height: 100%;
  position: absolute;
  text-align: center;
  width: 100%;
}
.da-designs .da-price:link,
.da-designs .da-price:visited,
.da-designs .da-price:hover,
.da-designs .da-price:active {
  color: #fff;
  text-decoration: none;
}
.da-designs .da-price:hover .da-bg,
.da-designs .da-price:active .da-bg {
  opacity: 1;
}
.da-designs .da-extra {
  background-position: -330px -92px;
  height: 50px;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 50px;
}
.da-designs .da-extra-new {
  background-position: -380px -92px;
}
.da-designs .da-extra-reprinted {
  background-position: -430px -92px;
}

/* Google Images. */
.da-images li {
  float: left;
  height: 109px;
  margin-right: 5px;
  margin-bottom: 5px;
  width: 109px;
}
.da-images li a {
  display: block;
  height: 100%;
  text-indent: -2009px;
  width: 100%;
}

/* Tweets. */
.da-tweets li {
  overflow: hidden;
  padding-bottom: 5px;
  width: 100%;
}
.da-tweets .da-avatar {
  float: left;
  height: 36px;
  position: relative;
  top: .3em; /* 0.3 = (1.6 - 1) / 2 */
  width: 36px;
}
.da-tweets .da-avatar img {
  height: 100%;
  width: 100%;
}
.da-tweets p {
  margin-left: 41px; /* 41px = 36px + 5px */
  padding: 0;
}
.da-tweets .da-tweeter {
  font-weight: bold;
}
.da-bigbrother {
  background: #ff9;
}

/* Flickr. */
.da-flickr {
  overflow: hidden;
  width: 100%;
}
.da-flickr li {
  float: left;
  height: 90px;
  margin: 0 5px 5px 0;
  width: 90px;
}
.da-flickr li a {
  display: block;
  height: 100%;
  width: 100%;
}
.da-flickr li a img {
  height: 100%;
  width: 100%;
}

/* Keep in touch! */
.da-touch {
  background: #fff200;
}
.da-touch .da-section-content {
  padding: 0 5px 5px 5px;
}
/* Blog. */
.da-posts li {
  padding-left: 5px;
}
.da-posts h4 a {
  font-weight: bold;
}
.da-posts p {
  padding-bottom: 5px;
}
#email {
  width: 20em;
}


/* Misc */
/* Footer. */
.da-ft {
  background: url(bg-ft.png) top center no-repeat;
  border-top: #adadad solid 1px;
  height: 13em;
  margin-top: 3em;
  text-align: center;
}
.da-cpr {
  display: block;
  line-height: 17px;
  margin: 2em auto 0;
  position: relative;
}
.da-cpr:link,
.da-cpr:visited,
.da-cpr:hover,
.da-cpr:active {
  color: #000;
  text-decoration: none;
}
.da-cpr strong { /* Logo at footer. */
  background-position: -166px 0;
  display: inline-block;
  height: 17px;
  width: 128px;
}

/* Tweaks for homepage. */
.da-comingsoon {
  background: url(bg-center.png) top center no-repeat;
}
.da-comingsoon cite {
  font-size: 100%;
  text-align: center;
  width: 100%;
}
.da-comingsoon .da-hd {
  height: 180px;
}
.da-comingsoon .da-doc {
  width: 38em;
}
.da-comingsoon h1 {
  position: absolute;
  left: 50%;
  margin-left: -83px;
}
.da-comingsoon .da-buzz {
  margin-bottom: 2em;
  position: relative;
  padding: 0;
  width: 100%;
  z-index: 2;
}
.da-comingsoon .da-buzz-bg {
  position: absolute;
  background: #fff;
  height: 20em;
  filter: alpha(opacity=70);
  opacity: .7;
  width: 38em;
  z-index: 1;
}
.da-comingsoon .da-cpr {
  text-align: center;
  padding: 0;
}
.da-comingsoon .da-promo {
  position: absolute;
  top: 140px;
  left: 50%;
  text-align: center;
  width: 30em;
  margin-left: -15em;
  font-weight: bold;
}
.da-new {
  color: red;
}

.da-live {
  background: #fff;
}
.da-live .da-doc {
  width: auto;
  position: relative;
}
.da-live .da-buzz {
  height: 500px;
  padding: 0;
}
.da-live #tweets {
  padding-left: .3em;
  height: 450px;
  overflow: auto;
}
:first-child+html {} * html body.da-live #tweets {
  overflow: hidden;
}

/* Page specific hacks. */
/* Tweaks for any code. */
.da-anyc0de {
  padding: 0;
  margin: 0;
  height: 100%;
}
.da-anyc0de iframe {
  border: 0;
}
#iframe {
  border: none;
  bottom: 0;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}
#mk {
  height: 180px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 3;
}
#anyc0de {
  background: url(bg-trans.png) no-repeat -150px 0;
  bottom: 0;
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 2;
}
.da-anyc0de h1 {
  left: 120px;
  z-index: 1000;
}
.da-anyc0de .da-tb {
  font-size: 130%;
  height: 4em;
  margin-left: 100px;
  margin-right: 100px;
  position: relative;
  z-index: 500;
}
.da-anyc0de .da-tbbg {
  background: #000;
  -moz-border-radius-bottomleft: 10px;
  -moz-border-radius-bottomright: 10px;
  -webkit-border-bottom-left-radius: 10px;
  -webkit-border-bottom-right-radius: 10px;
  height: 100%;
  left: 0;
  opacity: .6;
  filter: alpha(opacity=60);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 501;
}
.da-anyc0de .da-tbct {
  margin-left: 200px;
  position: relative;
  top: .8em;
  z-index: 600;
}
.da-anyc0de .da-addr {
  background: #fff;
  border: #000 solid 1px;
  display: block;
  font-size: 140%;
  height: 1.4em;
  left:0;
  line-height: 1.4;
  padding: 0 .2em;
  position: absolute;
  width: 14em;
  z-index: 610;
}
.da-anyc0de .da-addr label {
  color: #888;
  display: inline;
}
.da-anyc0de .da-addr input {
  background: transparent;
  border: none;
  font-size: 100%;
  font-weight: bold;
  margin: 0;
  margin-left: -.2em;
  padding: 0;
  width: 11em;
}
.da-anyc0de .da-addr input:focus {
  outline: none;
}
.da-anyc0de .da-button {
  background-color: #000;
  border: #000 solid 1px;
  padding: 0;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  cursor: pointer;
  display: block;
  font-size: 140%;
  font-weight: bold;
  height: 1.4em;
  line-height: 1.4;
  margin-left: .2em;
}
.da-anyc0de .da-button,
.da-anyc0de .da-button:link,
.da-anyc0de .da-button:visited,
.da-anyc0de .da-button:hover,
.da-anyc0de .da-button:active {
  color: #fff;
  text-decoration: none;
}
.da-anyc0de .da-button:hover {
  background-color: #f51;
}
.da-anyc0de .da-close {
  text-indent: -8888px;
  width: 1.4em;
}
.da-anyc0de .da-tweetit,
.da-anyc0de .da-close {
  position: absolute;
  top: 0;
  z-index: 605;
}
.da-anyc0de .da-go {
  height: 1.5em;
  left: 14.6em;
  position: absolute;
  z-index: 620;
}
.da-anyc0de .da-tweetit {
  padding: 0 .2em;
  right: 2.5em;
}
.da-anyc0de .da-close {
  background-position: -265px -57px;
  right: .8em;
}


/* Light out. */
.da-lightout {
  bottom: 0;
  height: 2000px;
  left: 0;
  opacity: .95;
  filter: alpha(opacity=95);
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;  
  z-index: 1;
}
