/*
 * 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;
}

a {
  color: #00e;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #06e;
}

/*
 * 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
.promo {
  font-size: 3em;
  color: yellow;
  background-color: rgba(255, 0, 0, 0.5);
}

body {
  margin: 0px;
  background: #f0fcff;
  font-family: TSB;
}

#wrapper {
  padding: 0 9%;
  position: relative;
  overflow: hidden;
}

ul {
  -webkit-padding-start: 0px;
}

#logo {
  width: 50%;
  max-width: 300px;
  margin: 1em auto;
  display: block;
}

@font-face {
  font-family: ZHSb;
  src: url(/fonts/ZoodHardSell2Bold.woff);
}
@font-face {
  font-family: ZHS;
  src: url(/fonts/ZoodHardSell2.woff);
}
@font-face {
  font-family: TSB;
  src: url(/fonts/ThaiSansNeue-Bold.ttf);
}
#upperRight li {
  font-family: ZHS;
  font-size: 1.6em;
  letter-spacing: 0.3em;
  list-style: none;
  color: black;
  display: block;
  width: 70%;
  max-width: 8em;
  padding-left: 0px;
  margin: 0.4em auto;
  border-radius: 10px;
  height: 1.1em;
  text-align: center;
}
#upperRight li a {
  text-decoration: none;
  color: white;
}
#upperRight li a:hover {
  color: #e13b36;
}
#upperRight li:first-child {
  background-color: #b9dc70;
}
#upperRight li:last-child {
  background-color: #ed8b7a;
}

#video iframe {
  width: 280px;
  height: 157.5px;
  margin: 0 auto;
  display: block;
  border: 3px solid rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
}

#bomberjack {
  width: 35%;
  max-width: 300px;
  position: absolute;
  left: 1%;
  top: -3em;
  z-index: -1;
}

#ladybomb {
  width: 38%;
  max-width: 340px;
  position: absolute;
  right: -13%;
  margin-top: -0.5em;
  z-index: -1;
}

#sky {
  width: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: -10;
}

.getApp {
  margin: 0 auto;
  text-align: center;
}
.getApp img {
  width: 70%;
  max-width: 350px;
  display: inline-block;
}

.getApp img:hover {
  transform: ScaleX(1.02) ScaleY(1.02);
}

.getApp img:active {
  transform: ScaleX(0.96) ScaleY(0.96);
}

#motto {
  margin: 1em 0em;
  font-family: ZHS;
  font-size: 2em;
  line-height: 1.2em;
  text-align: center;
  letter-spacing: 3.4px;
  text-shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF;
}

h1 {
  font-size: 2.1em;
  line-height: 1.2em;
}

p {
  font-size: 1.7em;
}

#headToHead img {
  display: block;
  margin: 0 auto;
  width: 95%;
  max-width: 400px;
}

#headToHeadFloat {
  display: none;
}
#headToHeadFloat img {
  display: block;
  margin-left: 5%;
  margin-bottom: 2em;
  width: 50%;
  max-width: 600px;
}

#havingThis {
  background-color: #EEDDEE;
  text-align: center;
  font-size: 0.8em;
  clear: both;
  margin: 0 0%;
  padding: 0 2em;
}

#whenWas {
  color: #e13b36;
  font-weight: bold;
}

#whenWas:first-letter {
  font-size: 1.3em;
}

#screenShots {
  position: relative;
}
#screenShots img {
  width: 80%;
  display: block;
  margin: 0 auto;
}
#screenShots div {
  font-family: ZHS;
  font-size: 2.5em;
  letter-spacing: 1.6px;
  color: white;
  position: absolute;
  text-align: center;
  width: 8em;
  padding: 0.2em 20%;
}
#screenShots #firstRibbon {
  background-image: url("/images/DuelOtters/RedBanner.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-top: -1em;
  left: -20%;
  transform: perspective(680px) rotateX(23deg) rotateY(27deg) rotateZ(-15deg);
}
#screenShots #secondRibbon {
  background-image: url("/images/DuelOtters/PurpleBanner.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  right: -23%;
  transform: perspective(410px) rotateX(8deg) rotateY(-15deg) rotateZ(11deg);
}
#screenShots #quarrel {
  visibility: hidden;
  width: auto;
  display: block;
  position: absolute;
  left: 640px;
}

#coolRibbon {
  clear: both;
}
#coolRibbon div {
  display: none;
  color: white;
  font-family: ZHS;
  font-size: 3.2em;
  letter-spacing: 3px;
  line-height: 1em;
  text-align: center;
  width: 60%;
  max-width: 9em;
  min-width: 7.3em;
  padding-top: 0.2em;
}

#appStoreScreenShots {
  padding: 30px 0;
  display: inline-block;
  text-align: center;
}
#appStoreScreenShots img {
  max-width: 30%;
}

#firstRibbon2 {
  background-image: url("/images/DuelOtters/RedBanner.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  margin-top: 0.3em;
  visibility: hidden;
  left: 0;
  padding: 0 30px;
  transform: perspective(46px) rotateY(1deg) rotateZ(-4deg);
  clear: both;
}

#secondRibbon2 {
  background-image: url("/images/DuelOtters/PurpleBanner.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  visibility: hidden;
  float: right;
  padding: 0 30px;
  margin-right: -10%;
  transform: perspective(300px) rotateY(6deg) rotateX(0deg) rotateZ(4deg);
}

#features {
  clear: both;
  padding-top: 7.6em;
}
#features ul {
  list-style: none;
}
#features ul li {
  font-size: 1.4em;
  margin-top: 0.6em;
}
#features ul li b {
  color: #e13b36;
}
#features ul li:before {
  content: "- ";
}
#features ul li:last-child b {
  font-size: 1.5em;
}
#features ul li:last-child b:first-child {
  color: #b9dc70;
}
#features ul li:last-child b:last-child {
  color: #ed8b7a;
}

.eggs {
  display: inline-block;
  margin-top: 5px;
  width: 100%;
  text-align: center;
}
.eggs img {
  display: inline;
  max-width: 10%;
}

#clouds img {
  z-index: -2;
  position: absolute;
  color: red;
}

#bottomHills {
  position: relative;
  bottom: 0px;
  left: 0px;
  width: 100%;
}

footer {
  position: relative;
}

#copyrights {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  width: 100%;
  bottom: 0px;
  letter-spacing: 2px;
  font-size: 0.5em;
  color: white;
}
#copyrights a:link, #copyrights a:visited, #copyrights a:hover {
  text-decoration: none;
  color: white;
}
#copyrights a:hover {
  text-decoration: underline;
}

#exceed7 {
  z-index: 4;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15%;
  margin: auto;
  width: 40%;
  max-width: 200px;
}

#devMessage {
  text-align: center;
}

#devButton {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-block;
  text-align: center;
  border-radius: 9px;
  width: 80%;
  max-width: 400px;
  margin: 2em auto;
  font-family: ZHS;
  line-height: 0.8em;
  padding: 0.4em 0;
  color: white;
  font-size: 2em;
  background: #e13b36;
  border: #EEBBBB solid 3.4px;
}

#devButton:hover {
  cursor: pointer;
  background: #EE4444;
}

#devButton:active {
  transform: ScaleX(0.96) ScaleY(0.96);
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
/* Prevent callout */
.nocallout {
  -webkit-touch-callout: none;
}

.pressed {
  background-color: rgba(0, 0, 0, 0.7);
}

/* A hack for HTML5 contenteditable attribute on mobile */
textarea[contenteditable] {
  -webkit-appearance: none;
}

/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if
   they have been set as display: none */
.gifhidden {
  position: absolute;
  left: -100%;
}

/*
 * Image replacement
 */
.ir {
  background-color: transparent;
  background-repeat: no-repeat;
  border: 0;
  direction: ltr;
  display: block;
  overflow: hidden;
  text-align: left;
  text-indent: -999em;
}

.ir br {
  display: none;
}

/*
 * 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 helper
 * Used to contain floats: h5bp.com/q
 */
.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (min-width: 637px) {
  #video iframe {
    width: 560px;
    height: 315px;
  }
}
@media only screen and (min-width: 637px) {
  #havingThis {
    font-size: 0.9em;
    margin: 0 10%;
  }

  #copyrights {
    font-size: 0.8em;
  }

  #video:before {
    content: " ";
    width: 150%;
    left: -30%;
    height: 7em;
    background-image: url("/images/DuelOtters/halftone.png");
    display: block;
    position: absolute;
    transform: translateY(100%);
    opacity: 0;
    z-index: -3;
  }

  #features {
    padding-top: 2em;
  }

  #upperRight {
    position: absolute;
    right: -5em;
    width: 20em;
    top: 0px;
  }

  #motto {
    font-size: 3em;
  }

  #screenShots img {
    width: 40%;
    display: block;
  }
  #screenShots #quarrel {
    max-width: 500px;
  }
  #screenShots img:nth-child(1), #screenShots img:nth-child(4) {
    margin-left: 10%;
    float: left;
  }
  #screenShots img:nth-child(2), #screenShots img:nth-child(5) {
    float: left;
  }
  #screenShots img:nth-child(4) {
    clear: left;
  }
  #screenShots div {
    font-size: 3em;
    letter-spacing: 2.2px;
    width: 350px;
    padding: 0.1em 5%;
  }
  #screenShots #firstRibbon, #screenShots #secondRibbon {
    visibility: hidden;
  }

  #coolRibbon div {
    display: inline-block;
  }

  #firstRibbon2, #secondRibbon2 {
    visibility: visible;
  }
}
@media only screen and (min-width: 980px) {
  #ladybomb {
    right: -6%;
  }

  #bomberjack {
    left: 5%;
  }
}
@media only screen and (min-width: 800px) {
  /* Style adjustments for viewports that meet the condition */
  #wrapper {
    padding: 0 12%;
  }

  #headToHeadFloat {
    display: block;
  }
  #headToHeadFloat img {
    float: right;
  }

  #headToHead {
    display: none;
  }

  #screenShots {
    clear: both;
  }
}
@media only screen and (min-width: 1000px) {
  #wrapper {
    padding: 0 10%;
  }

  #motto {
    padding: 0 0em;
    margin: 1em 2em;
  }

  #features {
    padding-left: 6.5em;
    padding-right: 6.5em;
  }

  #copyrights {
    font-size: 1em;
  }

  #screenShots img {
    max-width: 300px;
  }
  #screenShots #quarrel {
    visibility: visible;
  }

  #video iframe {
    width: 784px;
    height: 441px;
  }

  h1 {
    font-size: 2.6em;
  }

  p {
    font-size: 1.9em;
  }

  #features ul li {
    font-size: 1.6em;
  }
}
@media only screen and (min-width: 1200px) {
  #wrapper {
    padding: 0 17%;
  }
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
  /* Style adjustments for viewports that meet the condition */
}
