/*===========================================================================
  Mobile Ads
===========================================================================*/
.mobileAds {
  left:0;
  margin-left:auto;
  margin-right:auto;
  /*text-align: center;*/
}

.mobileAds .bg {
  /*position: absolute;
  top: 0;
  left: 0;*/
  margin-left: auto;
  margin-right: auto;
}

.actionsPane {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  /*height:70px;*/
  padding-bottom:5px;
  text-align: center;
  background-image: url(/images/placeholder-bg.jpg);
  border-top: 3px solid #A8A8A8;
}

.noThanks {
  position: absolute;
  top:5px;
  right:5px;
}

.noThanks img {
  position:static;
  top:auto;
  left:auto;
}

.actionsPane .moreInfo {
  margin:5px 10px;
  float:left;
}

.actionsPane .purchase {
  margin:5px 10px;
  float:right;
}

.moreInfo .nonPhone, .purchase .nonPhone {
  display:none;
}


/* Off by default, media queries turn on */
.actionsPane .infoContainer {
  display: none;
}

.infoContainer {
  background-color: #d6d6d6;
  border: 1px solid #838383;
  box-shadow: 1px 1px 15px black inset;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
  color:#000000;
  margin:80px 10px;
}

/*.infoContainer hr {*/
.infoContainer #divider {
  border: 0;
  height: 1px;
  background: #333;
  background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
  background-image:    -moz-linear-gradient(left, #ccc, #333, #ccc);
  background-image:     -ms-linear-gradient(left, #ccc, #333, #ccc);
  background-image:      -o-linear-gradient(left, #ccc, #333, #ccc);
  margin: 10px;
}

.infoContainer #adPrice {
  font-size:2em;
  font-weight:bold;
  margin-top:5px
}

.infoContainer #installation {
  font-size:1.5em;
}

.infoContainer #features {
  text-align:left;
  margin-left:10px;
}

.infoContainer #features li {
  margin-bottom:5px;
}

.infoContainer #featuresTitle {
  font-weight:bold;
}

.infoContainer #featureItems {
  padding-left: 20px;
  padding-right: 10px;
}

.phoneDetails {
  position:absolute;
  left:0;
  right:0;
  /*bottom:-205px;
  height:235px;*/
  z-index: 1;
  text-align: center;
}

.phoneDetails .openBar {
  height:30px;
  background-color: #000000;
  border-top: 1px solid #848484;
  border-left: 1px solid #848484;
  border-right: 1px solid #848484;
  -webkit-border-top-right-radius: 4px;
  -moz-border-top-right-radius: 4px;
  border-top-right-radius: 4px;
  -webkit-border-top-left-radius: 4px;
  -moz-border-top-left-radius: 4px;
  border-top-left-radius: 4px;
  overflow: hidden;
}

.openDetails {
  position:absolute;
  top:15px;
  margin-left:-5px;
  -o-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.openDetails.closePosition {
  -o-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
}

.phoneDetails .infoContainer {
  margin:0;
  height:100%;
}



/**
 * Phone portrait
 */
@media screen and (max-width: 510px) {
  
  /* Anzeixer */
  body:after {
    display: none;
    content: 'phone-portrait';
  }
  
  /* Your styles */
  
  
}


/**
 * Phone landscape
 */
@media screen and (min-width: 480px) and (max-width: 767px) {
  
  /* Anzeixer */
  body:after {
    display: none;
    content: 'phone-landscape';
  }
  
  /* Your styles */
  
}

/* Need to account for scenarios where phone could be in portrait mode (google nexus 7 in chrome emulator) */
@media screen and (min-width: 480px) and (max-width: 767px) and (orientation:portrait) {
  
  /* Anzeixer */
  body:after {
    display: none;
    content: 'phone-portrait';
  }
  
  /* Your styles */
  
}


/**
 * Tablet
 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  
  /* Anzeixer */
  body:after {
    display: none;
    content: 'tablet';
  }
  
  /* Your styles */
  .actionsPane {
    width:190px;
    left:auto;
    right:0;
    bottom:0;
    top:0;
    height:auto;
    border-top:none;
    border-left: 3px solid #A8A8A8;
  }

  .actionsPane .infoContainer {
    display:block;
  }

  .infoContainer {
    margin:80px 10px;
  }

  .infoContainer #adPrice {
    font-size:2.0em;
  }

  .infoContainer #installation {
    font-size:1.5em;
  }

  .phoneDetails, .openDetails {
    display:none;
  }

  .actionsPane .moreInfo {
    margin-top:80px;
    float:none;
  }

  .actionsPane .purchase {
    margin-top:20px;
    float:none;
  }

  .moreInfo .nonPhone, .purchase .nonPhone {
    display:block;
  }

  .moreInfo .phoneSize, .purchase .phoneSize {
    display:none;
  }
  
}


/* Force Tablet Portrait to Landscape */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) {

  /* Anzeixer */
  body:after {
    display: none;
    content: 'tablet-rotated';
  }

  .mobileAdsContainer {  
    height: 100vw;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    position: absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
  }

  .mobileAds {
    position: fixed;
  }
}


/* Insure images cover whole screen on larger views */
@media only screen
and (min-width: 1025px)
{
  /* Anzeixer */
  body:after {
    display: none;
    content: 'desktop';
  }


  .mobileAds {
    position: fixed;
    text-align: left;
    right: 0;
  }

  .actionsPane {
    width:190px;
    left:auto;
    right:0;
    bottom:0;
    top:0;
    height:auto;
    border-top:none;
    border-left: 3px solid #A8A8A8;
  }

  .actionsPane .infoContainer {
    display:block;
  }

  .infoContainer {
    margin:80px 10px;
  }

  .infoContainer #adPrice {
    font-size:2.0em;
  }

  .infoContainer #installation {
    font-size:1.5em;
  }

  .phoneDetails, .openDetails {
    display:none;
  }

  .actionsPane .moreInfo {
    margin-top:80px;
    float:none;
  }

  .actionsPane .purchase {
    margin-top:20px;
    float:none;
  }

  .moreInfo .nonPhone, .purchase .nonPhone {
    display:block;
  }

  .moreInfo .phoneSize, .purchase .phoneSize {
    display:none;
  }
}

