/* Off the Shelf v.1.1.2 Style Index

1. Default and Reset styles
2. Global elements
- 2.1 Buttons
3. Fonts and Headings
- 3.1 Fonts
- 3.2 Headings
4. Content Blocks used for positioning
5. Landing page header and banner
- 5.1 Header
- 5.2 Banner
6. Content
- 6.1 Companies
- 6.2 Features
- 6.3 Testimonials
- 6.4 Screenshots
- 6.5 A Word from the Author
- 6.6 Newsletter
- 6.7 Pricing Table
- 6.8 Video
7. Social elements
- 7.1 Contact form
8. Landing page footer

/*------------------------------------------------------------------------------------------*/
/* 1. Defaults & Reset of specific styles across browsers */
/*------------------------------------------------------------------------------------------*/

*, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, blockquote, th, td { margin: 0; padding: 0; font-size: 15px; direction: ltr; }

body {
  margin:0;
  padding:0;
  background:#ffffff;
  font-family: 'Open Sans', sans-serif, Arial, Helvetica;
  color:#333;
  -webkit-font-smoothing: antialiased;
}

.row {
  width:940px;
  margin:0 auto;
  padding:45px 0 45px 0;
  overflow:hidden;
}

.row .one_fourth:last-of-type {
  margin-right: 0;
}

.row img {
  height: auto;
  max-width: 100%;
}

a { color: #2980b9; text-decoration: none; line-height: inherit; }

a:hover { color: ; }

a:focus { color: ; }

a img {
  border:none;
}


/*------------------------------------------------------------------------------------------*/
/* 2. Global elements */
/*------------------------------------------------------------------------------------------*/

.background_grey {
  background:#f1f1f1;
  border-top:1px solid #e5e5e5;
  border-bottom:1px solid #e5e5e5;
}

.background_white {
  background:#fff;
  border-bottom:1px solid #e5e5e5;
}

.hint {
  font-size:0.9em;
  color:#ffffff;
}

.last {
  margin-right:0!important;
}

.left {
  float:left;
}

.right {
  float:right;
}


/* 2.1 Buttons */

.button {
  font-family: 'Bree Serif', serif;
  background: #c1392c;
  color: white;
  font-weight: 700;
  padding: .75rem 2rem !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  border-bottom: 2px solid #76231b;
  cursor: pointer;
  display: inline-block;
  margin: 15px 0;
  font-weight: 700;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
}


/*------------------------------------------------------------------------------------------*/
/* 3. Fonts and Headings */
/*------------------------------------------------------------------------------------------*/


/* 3.1 Fonts */

h1, h2 {
  font-family: 'Bree Serif', serif;
}

#main_content h2 {
  margin-bottom:10px;
}

#main_content h3 {
  font-family: 'Open Sans', sans-serif, Arial, Helvetica;
  font-size:1.2em;
  font-weight:normal;
  color:#999;
}

h4, h5, h6 {
  font-family: 'Open Sans', sans-serif, Arial, Helvetica;
  font-weight: bold;
  font-style: normal;
  color: #222222;
  text-rendering: optimizeLegibility;
  line-height: 1.1;
  margin-bottom: 13px;
  margin-top: 13px;
}

h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
  font-size: 60%;
  color: #6f6f6f;
  line-height: 0;
}

h1{font-size: 3.2em;}

h2{font-size: 1.7em;}

h3{font-size: 1.6em;}

h4{font-size: 1.4em;}

h5{font-size: 1.2em;}


/* 3.2 Headings */

#logo {
  color:#ffffff;
}

#logo img {
  float:left;
  margin:0 15px 0 0;
}


#logo h1 {
  font-family: 'Open Sans', sans-serif, Arial, Helvetica;
  font-weight:400;
  font-size:2.1em;
  display:inline;
  margin:0 10px 0 0;
}

#logo h2 {
  font-family: 'Open Sans', sans-serif, Arial, Helvetica;
  font-weight:300;
  font-size:1.2em;
  font-style:italic;
  display:inline;
  margin:0 10px 0 0;
}

#banner .one_half h1 {
  line-height:1.1em;
  margin: 0 0 15px 0;
}

#banner p {
  font-size: 1.3rem;
}

#banner .clock {
  margin-top: 40px;
}

#banner .clock .flip-clock-label {
  color: white;
}

#banner .announcement {
  margin-top: 20px;
  font-weight: bold;
}

#banner .announcement .title {
  color: red;
}

h2.subheader {
  font-family: 'Open Sans', sans-serif, Arial, Helvetica;
  font-weight:300;
  font-size:1.4em;
  margin-bottom:15px;
}

#main_content h2 {
  font-family: 'Bree Serif', serif;
  font-weight:400;
  color:#333;
  font-size:2.0em;
}

.section_title {
  background:url(/images/books/ruby-gem/bg_border.gif) repeat-x 0 22px;
  text-align:center;
}

.section_title span {
  background:#fff;
  padding:0 25px 0 25px;
}

.background_grey .section_title span {
  background:#f1f1f1;
  padding:0 25px 0 25px;
}

#companies h3 {
  font-size:1.0em;
  font-weight:300;
  text-transform:uppercase;
  color:#666;
  margin:0 55px 0 0;
  padding:7px 0 0 0;
  float:left;
}

#pricing h4 {
  font-family: 'Bree Serif', serif;
  color:#666;
  text-align:center;
  font-weight:normal;
  font-size:1.6em;
}


/*------------------------------------------------------------------------------------------*/
/* 4. Content blocks used to position content */
/*------------------------------------------------------------------------------------------*/


.one_half, .one_third, .two_thirds, .three_fourths, .one_fourth {
  float: left;
  margin: 0 20px 20px 0;
  position: relative;
}

.one_half {
  width: 460px;
}

.one_third {
  width: 300px;
}

.two_thirds {
  width: 620px;
}

.one_fourth {
  width: 220px;
}

.three_fourths {
  width: 700px;
}


/*------------------------------------------------------------------------------------------*/
/* 5. Landing page header and banners */
/*------------------------------------------------------------------------------------------*/

/* 5.1 Header */

#header_region {
  padding:0 0 35px 0;
  overflow:hidden;
  text-align: center;
}

#header_region img {
  border-radius: 50%;
  border: 3px solid white;
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-block;
}

@media screen and (max-width: 850px){
  #header_region img {
    position: relative;
    top: 0;
    left: 0;
  }
}

/* 5.2 Banner */

#banner {
  background-color: #2c3e50;
  color:#ffffff;
  padding:10px 0 10px 0;
}

#banner .row {
  clear:both;
}

#banner input[type="email"],
#banner input[type="submit"] {
  width: 100%;
  margin: 0;
}

#banner input[type="submit"] {
  margin-top: 10px;
}

.content_page #banner .row {
  padding-bottom:10px;
}

#shelf {
  background:url(/images/books/ruby-gem/shelf.png) no-repeat center bottom;
  padding-bottom:28px;
  text-align:center;
}

#shelf img {
  display:inline;
}



/*------------------------------------------------------------------------------------------*/
/* 6. Content */
/*------------------------------------------------------------------------------------------*/

/* 6.1 Companies */

#companies .row {
  padding:25px 0 15px 0;
  text-align:center;
}

#companies img {
  margin:0 25px 0 25px;
  display:inline-block;
}


/* 6.2 Features */

#features ul, #features ul li {
  list-style:none;
  padding:0;
}

#features ul li {
  margin-top:20px;
  margin-bottom:20px;
}

#features h4 {
  font-size:1.3em;
  font-weight:normal;
  margin-top:0;
}

#features i {
  float:left;
  margin:0 15px 15px 0;
  color:#2980b9;
  text-align:center;
}

/* 6.3 Testimonials */

#testimonials blockquote {
  margin: 0;
  width: 48%;
  float: left;
}

#testimonials blockquote,
#testimonials-long blockquote {
  margin-bottom: 40px;
}

#testimonials blockquote.left {
  margin-right: 20px;
}

blockquote img {
  background:#fff;
  margin:-25px 35px 0 15px;
  padding:3px;
  float:left;
  box-shadow:0 1px 3px #d3d3d3;
}

#testimonials footer,
#testimonials-long footer{
  background:url(/images/books/ruby-gem/sprite.png) no-repeat 90px 0;
  padding:10px 0 0 0;
}

blockquote div {
  font-weight:bold;
  color:#000;
}

blockquote, blockquote p { line-height: 1.5; color: #6f6f6f; }

q {
  background:#fff;
  display: block;
  font-style: italic;
  padding: 15px 15px 35px 15px;
  box-shadow: 0 1px 3px #d3d3d3;
}

blockquote cite { display: block; font-size: 12px; color: #555555; }
blockquote cite:before { content: "\2014 \0020"; }
blockquote cite a, blockquote cite a:visited { color: #555555; }

abbr, acronym { text-transform: uppercase; font-size: 90%; color: #222222; border-bottom: 1px solid #ddd; cursor: help; }

abbr { text-transform: none; }

@media screen and (max-width: 460px) {
  #testimonials blockquote {
    width: 100%;
  }
}

/* 6.4 Screenshots */

#screenshots .image-gallery a {
  background:url(/images/books/ruby-gem/bg_zoom.png) no-repeat center center #dca400;
  display:block;
  margin:0 15px 15px 0;
  padding:0!important;
  height:auto;
  float:left;
  box-shadow:0 1px 2px #ccc;
}

#screenshots .image-gallery img {
  -moz-transition: opacity .2s linear;
  -webkit-transition: opacity .2s linear;
  -ms-transition: opacity .2s linear;
  -o-transition: opacity .2s linear;
  transition: opacity .2s linear;
  display:block;
}

#screenshots img:hover {
  opacity: 0.05;
  filter: alpha(opacity = 05);
}

.list_check {
  margin:0 0 0 20px;
}

.list_check li {
  background:url(/images/books/ruby-gem/bg_check.png) no-repeat 0 6px;
  padding:7px 0 7px 30px;
  list-style:none;
  overflow:hidden;
}


/* 6.5 A word from the Author */

#author a {
  text-decoration: underline;
}

#author_image {
  background:#fff;
  margin:0 35px 0 0;
  padding:5px;
  box-shadow:0 1px 1px #ccc;
}

#book_cover {
  display:inline-block;
  text-align:center;
}


/* 6.6 Newsletter */

#newsletter {
  text-align: center;
}

#newsletter.row {
  padding: 25px 0 25px 0;
}

#newsletter h2 {
  margin-bottom: 40px;
  color:#737373;
}

#newsletter .email-input-container {
  display: inline-block;
  width: 50%;
}

#newsletter input[type="email"] {
  width: 100%;
}

input[type="email"] {
  width: 230px;
  height: 50px;
  color: #999;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  padding: 10px;
  font-size: 0.8rem;
}

input[type="submit"] {
  width: 280px;
  padding: 10px;
  border: 0;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  margin: 0 .25rem;
  font-size: 1.1rem;
  -webkit-appearance: none;
  vertical-align: bottom;
  height: 32px;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
  background: #439fe0;

  color: white;
  border-bottom: 2px solid #194ba3;
  cursor: pointer;
  height: 50px;
  font-family: 'Bree Serif', serif;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

@media screen and (max-width: 1005px) {
  .email-input-container {
    width: 100% !important;
  }

  input {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 10px !important;
  }
}

#video .row.screencasts {
  padding: 0;
}

#video .row.screencasts .one_fourth {
  font-size: 0.8rem;
}

#video .row.screencasts .one_fourth img {
  margin-bottom: 5px;
}

#video .row.screencasts .one_fourth .title {
  font-weight: bold;
  text-transform: uppercase;
}

/* 6.7 Pricing Table */

#pricing_table {
  padding:30px 0 0 0;
  text-align:center;
}

.pricing_block {
  background:#fff;
  width: 31%;
  float: left;
  margin-left: 20px;
  text-align: center;
  border: 1px solid #cccccc;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.pricing_block:first-child {
  margin-left: 0;
}

.pricing_block .ribbon {
  background-color: #a00;
  overflow: hidden;
  white-space: nowrap;
  /* top left corner */
  position: absolute;
  right: -50px;
  top: 20px;
  /* 45 deg ccw rotation */
  -webkit-transform: rotate(45deg);
     -moz-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
       -o-transform: rotate(45deg);
          transform: rotate(45deg);
  /* shadow */
  -webkit-box-shadow: 0 0 10px #888;
     -moz-box-shadow: 0 0 10px #888;
          box-shadow: 0 0 10px #888;
  }

.pricing_block .ribbon span {
  font-size: 0.6rem;
  border: 1px solid #faa;
  font-weight: bold;
  color: #fff;
  display: block;
  margin: 1px 0;
  padding: 10px 50px;
  text-align: center;
  text-decoration: none;
  /* shadow */
  text-shadow: 0 0 5px #444;
  cursor: pointer;
}

.pricing {
  background:#f8f8f8;
  padding: 10px 0 10px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.pricing_block ul li {
  padding:10px 0 10px 0;
  border-bottom:1px solid #e5e5e5;
  list-style:none;
  text-align: left;
  padding-left: 10%;
}

@media screen and (max-width: 760px) {
  .pricing_block .button {
    width: 90%;
  }

}

@media screen and (min-width : 461px ) and (max-width: 760px) {
  .pricing_block ul li {
    padding-left: 25%;
  }

  #testimonials blockquote {
    width: 100%;
  }
}

.pricing_block ul li .icon {
  color: lightgray;
  font-size: 1.5rem;
  vertical-align: middle;
  padding-right: 10px;
}

.price {
  font-family: 'Bree Serif', serif;
  font-size:4.8em;
  margin:0;
}

.price .currency {
  font-size:0.5em;
  position: relative;
  top: -30px;
  left: -5px;
}

.price .strikethrough {
  text-decoration: line-through;
}

.sale {
  display: none;
}

.price .discount {
  font-size: 0.7em;
  color: red;
}

.price_sub {
  font-style:italic;
  color:#666;
  margin:0 0 10px 0;
}

/*Favorite*/

#favorite.pricing_block {
  box-shadow: 1px 1px 4px #b2b2b2;
  padding-top: 10px;
  margin-top: -10px;
}

#favorite .pricing {
  background: #439fe0;
  color:#fff;
}

#favorite .price_sub {
  color:#fff;
}

#twitter .one_third {
  margin-left: 5px;
  margin-right: 5px;
}

/* 6.8 Video */

.embed_container {
  position: relative;
  padding-bottom: 56.25%; /* 16/9 ratio */
  margin:20px 0 0 0;
  padding-top: 30px; /* IE6 workaround*/
  height: 0;
  overflow: hidden;
}

.embed_container iframe, .embed_container object, .embed_container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


#questions ul, #questions ul li {
  list-style:none;
  padding:0;
}

#questions ul li {
  margin-top:20px;
  margin-bottom:20px;
}

#questions h4 {
  font-size:1.3em;
  font-weight:normal;
  margin-top:0;
}

/*------------------------------------------------------------------------------------------*/
/* 7. Social Elements */
/*------------------------------------------------------------------------------------------*/

#social_elements ul {
  margin:10px 0 0 0;
  float:right;
}

#social_elements li {
  width: 24px;
  height: 24px;
  margin: 0 5px 0 0;
  float:left;
  list-style:none;
  padding:0;
}

#social_elements a span {
  display: none;
}

#social_elements a {
  display: block;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0 0 4px 0;
  opacity: 0.5;
  filter: alpha(opacity = 50);
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

#social_elements a:hover {
  opacity: 0.9;
  filter: alpha(opacity = 90);
}

.facebook {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px 0;
}

.googleplus {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -60px;
}

.twitter {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -30px;
}

.stumbleupon {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -150px;
}

.youtube {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -90px;
}

.vimeo {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -120px;
}

.linkedin {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -180px;
}

.pinterest {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -210px;
}

.rss {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -240px;
}

.digg {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -270px;
}

.myspace {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -300px;
}

.picasa {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -330px;
}

.flickr {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -360px;
}

.dribbble {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -390px;
}

.blogger {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -420px;
}

.feedback {
  background: url(/images/books/ruby-gem/sprite_social_element.png) no-repeat -27px -450px;
}


/* 7.1 Contact form */

#contact {
  background:#fff;
  width:390px;
  left:0;
  right:0;
  margin:40px auto;
  z-index:99999;
  padding:15px;
  border:5px solid #f1f1f1;
  box-shadow:0 0 5px #333;
  -moz-box-shadow:0 0 5px #333;
  -webkit-box-shadow:0 0 5px #333;
  display: none;
}

label {
  display: block;
  margin: 10px 0 5px 0;
}

.success {
  background: #a9d26e;
  padding: 5px;
  text-align: center;
  border: 1px solid #79a041;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  color: #fff;
}

.fail {
  background: #a93636;
  padding: 5px;
  text-align: center;
  border: 1px solid #742424;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  color: #fff;
}

a#contact_close_counter {
  display: block;
  padding: 5px;
  text-align: center;
  color: #666;
  text-decoration: none;
}


/*------------------------------------------------------------------------------------------*/
/* 8. Landing Page Footer */
/*------------------------------------------------------------------------------------------*/

#page_footer {
  color:#999;
  text-align: center;
}

#page_footer.row {
  padding:15px 0 15px 0;
}

#page_footer ul, #page_footer p {
  display:inline;
  margin:0;
  padding:0;
}

#page_footer ul li {
  display:inline;
  padding:0 5px 0 0;
}

#page_footer a {
  color:#999;
}

.scrollup {
  background: url(/images/books/ruby-gem/sprite.png) no-repeat 0 -282px;
  width: 56px;
  height: 56px;
  opacity: 0.4;
  filter: alpha(opacity = 40);
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: none;
  text-indent: -9999px;
}


/* Firefox Keyframe Animations */

@-moz-keyframes rightSpring{
  0%{		margin-left:0px;}
  50%{	margin-left:-30px;}
  100%{	margin-left:0px;}
}

@-moz-keyframes leftSpring{
  0%{		margin-left:0px;}
  50%{	margin-left:30px;}
  100%{	margin-left:0px;}
}

/* Safari and Chrome Keyframe Animations */

@-webkit-keyframes rightSpring{
  0%{		margin-left:0px;}
  50%{	margin-left:-30px;}
  100%{	margin-left:0px;}
}

@-webkit-keyframes leftSpring{
  0%{		margin-left:0px;}
  50%{	margin-left:30px;}
  100%{	margin-left:0px;}
}

/* Arrows */

#prevArrow,#nextArrow{
  border:none;
  text-decoration:none;
  background:url(/images/books/ruby-gem/controls/arrows.png) no-repeat;
  opacity:0.5;
  cursor:pointer;
  position:absolute;
  width:43px;
  height:58px;
  top:50%;
  margin-top:-29px;
}

#prevArrow:hover, #nextArrow:hover{
  opacity:1;
}

#prevArrow{
  background-position:left top;
  left:40px;
}

#nextArrow{
  background-position:right top;
  right:40px;
}

#imageTitle {
  background-color:rgba(0,0,0,0.5);
  color: #fff;
  width: 100%;
  text-align: center;
  position:absolute;
  padding:10px 0 10px 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
}



/*------------------------------------------------------------------------------------------*/
/* 11. Responsive Styling Off the Shelf */
/*------------------------------------------------------------------------------------------*/

/* Responsive Video Styling */
.jl_video_container {
  position: relative !important;
  padding-bottom: 56.25% !important;
  padding-top: 30px !important;
  height: 0 !important;
  overflow: hidden !important
}

.jl_video_container embed,
.jl_video_container iframe,
.jl_video_container object {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important
}

@media screen and (min-width : 761px ) and (max-width: 1005px) {
  /*Global*/

  .row {
    width: 730px;
    margin: 0 auto;
    padding:25px 0 25px 0;
  }

  .one_half {
    width: 355px;
  }

  .one_third {
    width: 230px;
  }

  .two_thirds {
    width: 480px;
  }

  .one_fourth {
    width: 167px;
  }

  .three_fourths {
    width: 540px;
  }

  .one_half .one_fourth {
    width: 150px;
  }

  /*Banner*/

  #shelf {
    background:url(/images/books/ruby-gem/shelf_ipad.png) no-repeat center bottom;
    padding-bottom:22px;
  }

  /*Buttons*/

  #author .button_buy {
    margin-left:110px;
  }

  /*Companies*/

  #companies .row {
    padding-bottom:5px;
  }

  #companies img {
    margin-bottom:10px;
  }

  /*Testimonials*/

  #testimonials img {
    margin-bottom:15px;
  }

  /*Screenshots*/

  #screenshots .one_half {
    width:730px;
  }

  #screenshots a.last  {
    margin:0 15px 15px 0!important;
  }

  /*Author*/

  #author_image {
    margin:0 10px 0 0;
  }

}

@media screen and (max-width: 760px) {

  /*Global*/

  .row {
    width: 430px;
    margin: 0 auto;
    padding:15px 0 15px 0;
  }


  .one_half, .one_third, .two_thirds, .one_fourth, .three_fourths, .one_half .one_fourth {
    width: 430px;
  }


  /*Headings*/

  h2.section_title, h2.section_title span {
    background:none;
    text-align:left;
    padding-left:0!important;
    padding-right:0!important;
  }

  /*Banner*/

  #banner .two_thirds {
    margin:0;
  }

  #banner #social_elements ul {
    width: 430px;
    float:none;
    text-align:center;
  }

  #banner #social_elements ul li {
    display:inline-block;
    float:none;
    margin:0;
  }

  /*Button*/

  #author .button_buy {
    margin:0;
    text-align:center;
  }

  /*Companies*/

  #companies .row {
    padding-top:10px;
    padding-bottom:5px;
  }

  #companies img {
    margin:5px;
  }

  /*Features*/

  #features li.one_half {
    margin:10px 0 10px 0;
  }

  /*Screenshots*/

  #screenshots a {
    margin:5px!important;
  }

  #screenshots a, #screenshots a img  {
    height: auto!important;
    max-width: 200px!important;
  }

  /*Testimonials*/

  #testimonials blockquote {
    margin-bottom:10px;
  }

  #testimonials img {
    margin-bottom:15px;
  }

  /*Newsletter*/

  #newsletter h2 {
    width:430px;
    margin:0 0 5px 0;
  }

  #newsletter form {
    clear:both;
  }

  #newsletter input#e-mail {
    width:280px;
    margin:5px 0 5px 0;
  }

  #newsletter input#submit {
    float:right;
    margin:5px 0 0 0;
  }

  .scrollup {
    display: none !important;
  }

  .pricing_block {
    width: 100%;
    float: none;
    margin-left: 0;
    margin-bottom: 40px;
  }

  .pricing_block h4 {
    line-height: 2;
  }
}

@media screen and (max-width: 460px) {

  /*Global*/

  .row {
    width: 285px;
    margin: 0 auto;
    padding: 15px 0 15px 0;
  }

  #banner .row {
    padding-top: 0 !important;
  }

  #header_region {
    padding-bottom: 10px;
  }

  .one_half, .one_third, .two_thirds, .one_fourth, .three_fourths, .one_half .one_fourth {
    width: 285px;
  }

  /*Banner*/

  #logo h2 {
    display:block;
  }

  #banner .two_thirds, #shelf.one_half {
    margin:0;
    padding-right:0;
  }

  #shelf {
    background:url(/images/books/ruby-gem/shelf_mobile.png) no-repeat center bottom;
    padding-bottom:18px;
  }

  #shelf img {
    height:auto;
    max-width:100%;
  }


  #banner #social_elements ul {
    width: 285px;
    float:none;
    text-align:center;
  }

  #banner #social_elements ul li {
    display:inline-block;
    float:none;
    margin:0;
  }

  /*Button*/

  #author .button_buy {
    margin:0;
    text-align:center;
  }

  /*Testimonials*/

  #testimonials blockquote {
    margin-bottom:10px;
  }

  #testimonials img {
    margin-bottom:15px;
  }

  /*Screenshots*/

  .image-gallery {
    margin:0 auto!important;
  }

  .image-gallery a, .image-gallery img{
    width:130px;
    height:auto;
  }

  /*Author*/

  img#author_image {
    margin:0 auto 10px 0;
    width:100px;
  }

  /*Newsletter*/

  #newsletter h2 {
    width:285px;
    margin:0 0 5px 0;
  }

  #newsletter input#e-mail {
    width:285px;
    margin:5px 0 5px 0;
  }

  #newsletter input#submit {
    float:none;
  }

  .scrollup {
    display: none !important;
  }

}
