/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html,
button,
input,
select,
textarea {
  color: #222;
}
body {
  font-size: 1em;
  line-height: 1.4;
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}
::selection {
  background: #b3d4fc;
  text-shadow: none;
}
/*
 * A better looking default horizontal rule
 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */
img {
  vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */
textarea {
  resize: vertical;
}
/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */
.chromeframe {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.container {
  height: 460px;
  width: 720px;
  margin: 0 auto;
}
.preloader {
  background-color: #e989c8;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#e989c8), to(#e852b5));
  /* Safari 4+, Chrome */

  background-image: -webkit-linear-gradient(top, #e989c8, #e852b5);
  /* Chrome 10+, Safari 5.1+, iOS 5+ */

  background-image: -moz-linear-gradient(top, #e989c8, #e852b5);
  /* Firefox 3.6-15 */

  background-image: -o-linear-gradient(top, #e989c8, #e852b5);
  /* Opera 11.10-12.00 */

  background-image: linear-gradient(to bottom, #e989c8, #e852b5);
  /* Firefox 16+, IE10, Opera 12.50+ */

  box-shadow: 5px 0px 10px rgba(0, 0, 0, 0.2) inset;
  text-align: center;
  line-height: 460px;
  height: 100%;
  color: #fff;
  font-size: 18px;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}
.intro {
  position: relative;
  width: 100%;
  height: 100%;
  display: none;
  background: url(../i/intro.jpg);
}
.intro a {
  position: absolute;
  width: 190px;
  height: 75px;
  right: 120px;
  bottom: 55px;
}
.game {
  width: 100%;
  height: 100%;
  position: relative;
  display: none;
}
.game .left {
  float: left;
  width: 200px;
  height: 100%;
  background-color: #e989c8;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#e989c8), to(#e852b5));
  /* Safari 4+, Chrome */

  background-image: -webkit-linear-gradient(top, #e989c8, #e852b5);
  /* Chrome 10+, Safari 5.1+, iOS 5+ */

  background-image: -moz-linear-gradient(top, #e989c8, #e852b5);
  /* Firefox 3.6-15 */

  background-image: -o-linear-gradient(top, #e989c8, #e852b5);
  /* Opera 11.10-12.00 */

  background-image: linear-gradient(to bottom, #e989c8, #e852b5);
  /* Firefox 16+, IE10, Opera 12.50+ */

  box-shadow: 5px 0px 10px rgba(0, 0, 0, 0.2) inset;
}
.game .divider {
  position: absolute;
  left: 195px;
  top: 0px;
  background: url(../i/divider.png) repeat-y center;
  height: 100%;
  width: 20px;
  z-index: 100;
}
.hole {
  float: left;
  width: 520px;
  height: 100%;
  background: url(../i/bg.jpg) no-repeat right;
  position: relative;
}
.person {
  position: relative;
  top: 70px;
  left: 115px;
  width: 1px;
  height: 1px;
}
.person .mann {
  width: 156px;
  height: 351px;
  background: url(../assets/maneken.png) no-repeat;
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
}
.person .mann-bod {
  position: absolute;
  z-index: 5;
  background: url(../assets/maneken-bod.png) no-repeat;
  width: 67px;
  height: 58px;
  left: 39px;
  top: 74px;
}
.person .dress {
  width: 351px;
  height: 354px;
  position: absolute;
  z-index: 10;
  background: url(../assets/dresses.png) no-repeat 1000px top;
  left: -93px;
  top: 18px;
}
.person .bag {
  position: absolute;
  z-index: 20;
  width: 253px;
  height: 295px;
  background: url(../assets/bags.png) no-repeat 0 0;
  left: -41px;
  top: -61px;
}
.person .tiara {
  position: absolute;
  z-index: 30;
  width: 164px;
  height: 213px;
  background: url(../assets/tiaras.png) no-repeat 0px 0;
  top: -59px;
  left: 11px;
}
.person .necklace {
  position: absolute;
  z-index: 40;
  width: 44px;
  height: 52px;
  background: url(../assets/necklaces.png) no-repeat 0 0;
  left: 53px;
  top: 55px;
}
.button-done {
  width: 130px;
  height: 60px;
  background: url(../i/button-done.png) no-repeat left top;
  position: absolute;
  right: 10px;
  bottom: 10px;
  cursor: pointer;
  display: none;
}
.button-done:active {
  background-position: left -60px;
}
.change {
  position: relative;
  text-align: center;
  margin: 14px 0;
}
.change .button-big {
  width: 133px;
  height: 98px;
  display: block;
  margin: 0 auto;
  background-position: left top;
  cursor: pointer;
}
.change .button-big:hover {
  background-position: left -100px;
}
.change .button-big:active {
  background-position: left 0;
}
.change .button-right {
  position: absolute;
  right: 6px;
  top: 24px;
  background: url(../i/button-right.png) no-repeat left top;
  width: 45px;
  height: 44px;
  cursor: pointer;
}
.change .button-left {
  position: absolute;
  left: 6px;
  top: 24px;
  background: url(../i/button-left.png) no-repeat left top;
  width: 45px;
  height: 44px;
  cursor: pointer;
}
.change .button-left:active,
.change .button-right:active {
  background-position: left -44px;
}
.change-tiaras .button-big {
  background-image: url(../i/button-tiaras.png);
}
.change-dresses .button-big {
  background-image: url(../i/button-dresses.png);
}
.change-bags .button-big {
  background-image: url(../i/button-bags.png);
}
.change-necklaces .button-big {
  background-image: url(../i/button-necklaces.png);
}
.button-close {
  background: url(../i/button-close.png) no-repeat left top;
  position: absolute;
  width: 45px;
  height: 44px;
  cursor: pointer;
  top: 10px;
  right: 10px;
}
.button-close:active {
  background-position: left -44px;
}
.button-mute {
  background: url(../i/button-volume.png) no-repeat left top;
  position: absolute;
  width: 45px;
  height: 44px;
  cursor: pointer;
  top: 10px;
  right: 10px;
}
.button-mute.off {
  background-position: left -44px;
}
.button-help {
  background: url(../i/button-help.png) no-repeat left top;
  position: absolute;
  width: 45px;
  height: 44px;
  cursor: pointer;
  top: 10px;
  left: 20px;
}
.button-help:active {
  background-position: left -44px;
}
.winner {
  position: absolute;
  padding: 10px;
  right: 10px;
  top: 130px;
  display: none;
  color: #fff;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6);
  width: 150px;
  border: 2px solid #fff;
  background-color: #e989c8;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#e989c8), to(#e852b5));
  /* Safari 4+, Chrome */

  background-image: -webkit-linear-gradient(top, #e989c8, #e852b5);
  /* Chrome 10+, Safari 5.1+, iOS 5+ */

  background-image: -moz-linear-gradient(top, #e989c8, #e852b5);
  /* Firefox 3.6-15 */

  background-image: -o-linear-gradient(top, #e989c8, #e852b5);
  /* Opera 11.10-12.00 */

  background-image: linear-gradient(to bottom, #e989c8, #e852b5);
  /* Firefox 16+, IE10, Opera 12.50+ */

  box-shadow: 2px 0px 2px rgba(0, 0, 0, 0.2) inset, 0px 0px 3px rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}
.print {
  width: 100%;
  height: 100%;
  background: url(../i/print-bg.jpg) no-repeat top;
  text-align: center;
  position: relative;
  display: none;
}
.print-preview {
  position: absolute;
  left: 20px;
  top: 50px;
}
.button-print {
  background: url(../i/button-print.png);
  width: 130px;
  height: 60px;
  position: absolute;
  left: 106px;
  top: 250px;
  cursor: pointer;
}
.button-again {
  background: url(../i/button-again.png);
  width: 130px;
  height: 60px;
  position: absolute;
  left: 106px;
  top: 320px;
  cursor: pointer;
}
.button-again:hover,
.button-print:hover {
  opacity: 0.8;
}
.paper {
  width: 327px;
  height: 405px;
  position: absolute;
  left: 363px;
  top: 34px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
  background: #fff;
}
.frame {
  position: absolute;
  width: 299px;
  height: 366px;
  left: 15px;
  top: 10px;
}
.frame img {
  width: 100%;
}
#final-picture {
  position: absolute;
  left: 13px;
  width: 290px;
  top: 11px;
}
#author-text {
  color: #333;
  font-size: 6px;
  position: absolute;
  left: 0;
  top: 30px;
  width: 100%;
}
.share {
  position: absolute;
  text-align: center;
  width: 361px;
  top: 404px;
  font-weight: bold;
  color: #640444
}
.share img {
  width: 25px;
  height: 25px;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Image replacement
 */
.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */

  *text-indent: -9999px;
}
.ir:before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
}
/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
  display: none !important;
  visibility: hidden;
}
/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
/*
 * Hide visually and from screenreaders, but maintain layout
 */
.invisible {
  visibility: hidden;
}
/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */

  display: table;
  /* 2 */

}
.clearfix:after {
  clear: both;
}
/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.clearfix {
  *zoom: 1;
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
