/* reset */

* {
  margin:  0;
  padding: 0;
}

body {
  -x-system-font: none;
  color: #111111;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 16px;
  font-size-adjust: none;
  font-stretch: normal;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: normal;
}

/* general styles */

code {
  font-size: 0.8em;
}

h1 {
  font-size: 1.65em;
}

a, a:visited {
  color: #D89017;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body#remi h2 { font-size: 1.2em; margin-top: 0.7em; }
body#remi h3 { font-size: 1.0em; }
body#remi h4 { font-size: 0.8em; }
body#remi h5 { font-size: 0.7em; }

/* layout */

#header {
  margin:   0 auto;
  position: relative;
}
#header #photo {
  float: left;
  -moz-box-shadow:    0.2em 0.2em 0.9em #3d4e5e;
  -webkit-box-shadow: 0.2em 0.2em 0.9em #3d4e5e;
  height: 120px;
  width:  120px;
  position: relative;
  z-index:  600; /* so it's above the hidden ninja */
}
#header #photo img {
  border: 0;
}
#header a {
  color: black;
}
#header p {
  padding-left: .5em;
  position: relative;
  top: -.3em;
  font-style: italic;
}

#tagline {
  padding: 0.5em;
  text-shadow: #3d4e5e 3px 3px 5px;
  text-align: center;
  margin-bottom: 2em;
  width: 300px;
  margin: auto;
}

#tagline a {
  text-decoration: none;
}

body #tagline h1 {
}

body #tagline h2 {
  margin-top: 0;
  font-size: 0.9em;
  text-align: center;
}

#nav ul {
  list-style-type: none;
}

#nav ul li {
  display:       inline;
  margin-right:  0.5em;
}

#nav a { }

body#remi #content {
  clear: both;
  width: 70%;
  margin: 0 auto;
  position: relative;
  top: -2em;
}

#footer {
  text-align: center;
  font-size: 0.8em;
}

#footer p {
  margin-bottom: 0.3em;
}

#footer p.copy {
  font-style: italic;
  font-size:  0.9em;
}

/* list of posts */

ul.posts {
  list-style-type: none;
}

li.post {
  position: relative;
  -moz-box-shadow:    0.2em 0.2em 0.5em #3d4e5e;
  -webkit-box-shadow: 0.2em 0.2em 0.5em #3d4e5e;
  margin-bottom:      0.5em;
  padding-left:       0.5em;
  border:             1px solid #ccc;
}

li.post.paid.unpurchased {
}

li.post.paid.purchased {
  border:        2px solid #ccc;
  border-right:  6px solid #ccc;
  border-left:   4px solid #ccc;
  border-bottom: 4px solid #ccc;
  -moz-box-shadow:    0.2em 0.2em 0.5em #333;
  -webkit-box-shadow: 0.2em 0.2em 0.5em #333;
}
li.post.paid.purchased>img.screencast {
  left: -26px;
}

li.post>span.loading {
  font-style: italic;
  font-size:  0.7em;
}

li.post>span.date {
  font-size:    0.7em;
  margin-right: 0.2em;
}

li.post>h1 {
  display:   inline;
  font-size: 1.1em;
}

li.post>h1 a {
  color: black;
}

li.post>span.tags {
  font-size: 0.75em;
  white-space: nowrap;
  float: right;
}

li.post>span.tags a {
  margin-right: 0.2em;
}

li.post>.clear {
  clear: right;
}

/* if you're on an index page and you view a post, hide the tags or we'll see 2 sets of them */
li.post>div.post>div.tags {
  display: none;
}

li.post img.screencast {
  position: absolute;
  left:     -22px;
  top:      4px;
}

/*
li.post img.screencast:hover {
  opacity: 1.0;
}
*/

/* posts */

div.post {
  background-color: white;
  padding:  2em;
  padding-top: 1em;
  position: relative;
  z-index:  950;
  /*
  border:   1px solid gray;
  -moz-border-radius:    1em;
  -webkit-border-radius: 1em;
  -moz-box-shadow:    0.4em 0.4em 0.5em #3d4e5e;
  -webkit-box-shadow: 0.4em 0.4em 0.5em #3d4e5e;
  */
}

/* for the post PAGES (not the home page */
div#content>div.post {
  -moz-box-shadow:    0.2em 0.2em 0.5em #3d4e5e;
  -webkit-box-shadow: 0.2em 0.2em 0.5em #3d4e5e;
  -moz-border-radius:    1em;
  -webkit-border-radius: 1em;
}

div.post ul, div.post ol {
  margin-left: 2em;
}

div.post p {
  padding: .5em 0 .5em 0;
}

div.post h3 {
  margin-top: 0.3em;
}

div.post .tags {
  position: absolute;
  right: 0.7em;
  top:   0.5em;
  font-size: 0.8em;
}

div.post .tags a {
  margin-left: 0.3em;
}

/* hack, will clean this up */
a.post-title {
  color: black;
}

a.comments {
  font-style: italic;
  display: inline-block;
  padding-top: 1em;
}
div#disqus_thread {
  padding-top: 1em;
}

/* no longer used! */
#header a.tweet {
  position: absolute;
  right: .2em;
  top: .2em;
  font-size: 0.7em;
  width: 25%;
  text-align: right;
}

#footer img {
  border: 0;
}

a.snippet {
  display: block;
  text-align: center;
  width: 100%;
}
a.snippet img {
  width: 45%;
}

a.center {
  display: block;
  text-align: center;
  width: 100%;
}

a.devfu {
  position:        absolute;
  text-decoration: none;
  float:           left;
  left:            90px; /* 120px is the width of the photo */
  top:             20px;
  z-index:         100;
}
a.devfu img {
  margin: 2px 0 0 5px;
  border: none;
}
a.devfu span {
  cursor: default;
  font-size:  0.8em;
  font-style: italic;
  position:   absolute;
  top:        40px;
  left:       50px;
  width:      300px;
}

pre.highlight {
  font-size: 0.85em;
  margin:    0.5em 0;
  overflow:  auto;
}

#screencast-video-player {
  text-align: center;
}

#tagcloud {
  position: absolute;
  right:    0;
  width:    15em;
  z-index:  900;
  padding:  0 1em;
  background-color: white;
}

#tagcloud a.tag {
  color: black;
}

#tagcloud a.tag:hover {
  text-decoration: none;
  font-weight:     bold;
}

.tag_index {
  position: relative;
  left:     -1em;
  border-bottom: 2px solid black;
  margin-bottom: 0.5em;
}

blockquote {
  font-style: italic;
  font-size:  0.9em;
  text-align: center;
}

#nav {
  position: absolute;
  top: 0;
  right: 0;
  font-size:  0.8em;
  text-align: right;
  padding-top: 0.5em;
  margin-right: 1.6em;
}


fieldset {
  padding:   1em;
  font-size: 1.5em;
  margin-bottom: 1em;
  -moz-border-radius:    1em;
  -webkit-border-radius: 1em;
  -moz-box-shadow:    0.4em 0.4em 0.5em #3d4e5e;
  -webkit-box-shadow: 0.4em 0.4em 0.5em #3d4e5e;
}

fieldset a {
  font-size: 0.8em;
}

fieldset legend {
  font-weight: bold;
}

fieldset .group {
  float: left;
  margin-right: 2em;
}

form input {
  font-size:     1.0em;
  display:       block;
  margin-bottom: 0.5em;
}

/* currently just used for 'Login Failed' */
.message {
  font-style: italic;
  width: 35%;
  margin: auto;
  margin-top: 0.5em;
  margin-bottom: 2.8em;
  text-align: center;
  -moz-box-shadow:    0.2em 0.2em 0.5em #3d4e5e;
  -webkit-box-shadow: 0.2em 0.2em 0.5em #3d4e5e;
  -moz-border-radius:    0.5em;
  -webkit-border-radius: 0.5em;
  border:             1px solid #ccc;
  padding: 0.3em;
}

input.paypal_checkout {
  background-image: url("https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif");
  background-color: transparent;
  color:            transparent;
  border:           none;
  height:           42px;
  width:            145px;
}

/* for putting information on the login / signup pages */
.info {
  border-left:  2px solid #444;
  position:     absolute;
  width:        35%;
  height:       85%;
  right:        1em;
  top:          1em;
  padding-left: 1em;
  background-color: white;
}

.info h2, .info p {
  margin-bottom: 0.5em;
}

.checkout {
  margin-top: 1.5em;
}

table {
  margin-bottom: 0.2em;
  text-align:    left;
}

table tr { }

table tr.total {
  font-weight: bold;
}

table tr.total td {
  padding: 0.5em;
}

table tr th {
  border-bottom: 1px dashed #bbb;
  font-size: 0.8em;
}

table tr th:first-child {
  padding-right: 45px;
}

table tr td {
  border-bottom: 1px dashed #bbb;
  font-size: 0.6em;
  padding-right: 0.8em;
}

table tr td input {
  display: inline;
  width:   70px;
}

.cart input {
  display: inline;
}

.cart input[type=submit] {
  margin-right: 0.3em;
}

.cart .info {
  height: 92%;
}

.cart .info p {
  font-size: 0.9em;
}

.cart .info p.question {
  font-weight:   bold;
  margin-bottom: 1em;
}

.cart .info ul.price_items {
  list-style-type: none;
  font-size:       0.7em;
  margin-top:      1.5em;
  margin-left:     0.5em;
}

.cart .info ul.price_items li {
  margin-bottom: 1.1em;
  position:      relative;
}

.cart .info ul.price_items li:hover {
  cursor: pointer;
}
.cart .info ul.price_items li:hover img {
  cursor: pointer;
}

.cart .info ul.price_items li:hover {
  font-weight: bold;
}

.cart .info ul.price_items li img {
  position:   absolute;
  max-height: 30px;
  max-width:  50px;
  bottom:     0;
  opacity:    0.2;
}

.cart .info ul.price_items li:hover img {
  opacity: 1;
}

.cart .info ul.price_items li img[src$="book.png"] {
  max-height: 40px;
  border:     1px solid #ddd;
}

a[href^="/cart/remove"] {
  font-size: 0.8em;
}

.orders h1 {
  margin-top: 1em;
}
.orders ul {
  padding-left: 1.5em;
}
.orders ul li {
  margin-top: 0.3em;
}

.add_to_cart {
  -moz-box-shadow:    0.1em 0.1em 0.6em #3d4e5e;
  -webkit-box-shadow: 0.1em 0.1em 0.6em #3d4e5e;
  margin-top:  1em;
  padding-top: 0;
  padding: 0.2em;
  margin-bottom: 1em;
}

.add_to_cart form {
  display: inline;
}

.add_to_cart span {
  font-size:    0.8em;
  font-style:   italic;
  padding-left: 0.5em;
}

.add_to_cart form input {
  margin:  0;
  padding: 0;
  display: inline;
}

/* width is adjusted manually because the .info on the right floats */
.cart fieldset.not_empty {
  height: 500px;
}

body.development div#nav {
  border-bottom: 10px solid red;
}

body.staging div#nav {
  border-bottom: 10px solid blue;
}

/* checkout form */

div.rack-payment {
  padding:    0;
  margin:     2em;
  text-align: center;
  width:      100%;
}

div.rack-payment div.errors {
  width:         60%;
  margin:        auto;
  margin-bottom: 1em;
}

div.rack-payment div.errors p {
  font-weight: bold;
  font-size:   1.1em;
}

div.rack-payment ul.errors {
  list-style-type: none;
}

div.rack-payment ul.errors li {
  color: #E12222; /* red */
}

div.rack-payment fieldset {
  padding:               1em;
  width:                 80%; /* should really be 42, i think ... but it works */
  margin:                auto;
  margin-bottom:         1em;
  text-align:            left;
  -moz-border-radius:    1em;
  -webkit-border-radius: 1em;
  -moz-box-shadow:       0.4em 0.4em 0.5em #3d4e5e;
  -webkit-box-shadow:    0.4em 0.4em 0.5em #3d4e5e;
}

div.rack-payment fieldset legend {
  font-weight: bold;
}

div.rack-payment fieldset .group {
  float:        left;
  width:        48%;
  margin-right: 2%;
}

div.rack-payment form {
  padding: 0;
  margin:  0;
}

div.rack-payment form label {
  display:    block;
  margin-top: 0.5em;
}

div.rack-payment form input[type=submit] {
  margin: auto;
}

div.rack-payment #complete_purchase {
  padding-top: 1em;
  clear:       left;
}

.suggestion_box textarea {
  display: block;
  width:   100%;
  height:  200px;
  margin:  0.5em 0 0.5em 0;
}

/* About Me */

ul.links {
  text-align:    center;
  margin-bottom: 0.5em;
}

ul.links li {
  display:      inline;
  margin-right: 1em;
  font-size:    1.2em;
  font-weight:  bold;
}

.tip {
  font-size:  0.5em;
  font-style: italic;
  margin-top: 0.1em;
}

form[action="/signup"] .tip {
  margin-left: 1em;
}

form[action="/signup"] input[name="email"] {
  margin-bottom: 0;
}

form[action="/signup"] label[for="password"] {
  display:    inline-block;
  margin-top: 0.5em;
}

embed {
  margin: 0.5em;
}

.sni_ssl_option {
  font-size:  0.7em;
  position:   absolute;
  bottom:     10px;
}

.sni_ssl_option .incompatible {
  font-size:     0.9em;
  margin-bottom: 1.0em;
  font-weight:   bold;
}

.sni_ssl_option .tip {
  font-size: 0.7em;
}

img.right {
  float: right;
  padding: 0.5em;
}

.clear {
  clear: left;
}

.admin h1 {
  float: left;
}
.admin ul.nav {
  list-style-type: none;
  float: left;
  margin-left: 0.5em;
  margin-top: 0.2em;
  padding-bottom: 1em;
}
.admin ul.nav li {
  display: inline;
  margin-right: 0.3em;
}
.admin h3 {
  padding: 0.7em 0 0.3em 0;
}

.post.projects h2 {
  float: left;
  padding-right: 5px;
  padding-top: 15px;
}

.post.projects .links {
  border-top: 2px solid #ccc;
  padding-top: 15px;
}

.post.projects .links a {
  font-size: 13px;
  padding-left: 5px;
}

.post.projects .ci {
  height: 48px;
}

