/* Stylesheet for device preview */
html {
  /* position: relative; */
}

body {
  /* overflow: hidden; */
}

.survey-page-background {
  background-color: #eaebef;
}

.h_survey_container {
  width: 100%;
  height: 100%;
  border: none;
}

.banner-devices {
  width: 100%;
  color: #000;
  text-align: center;
  z-index: 10;
}

.banner-devices-inner {
  position: relative;
  margin: 0 auto;
  padding: 0 10px 10px 10px;
  display: flex;
  flex-wrap: wrap;
}

.device-text {
  display: inline-block;
  font-size: 1.2em;
  margin-right: .5em;
  margin-top: -9px;
  vertical-align: middle;
}


.device-button {
  font-size: 5em;
  background-color: transparent;
  outline: thin;
  border: none;
  color: #000;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-grow: 1;
}

@media (min-width:992px) {
  .device-button {
    font-size: 3em;
  }
}

@media (min-width:1200px) {
  .device-button {
    font-size: 4em;
  }
}

@media (min-width:1340px) {
  .device-button {
    font-size: 5em;
  }
}

.device-rotator {
  font-size: 1.2em;
  background-color: transparent;
  outline: thin;
  border: none;
  position: relative;
  top: -16px;
  margin-top: 40px;
}

.device-rotator i {
  margin-left: .4em;
}

.active-state {
  border-bottom: 5px solid #05c999!important;
  color: #000;
}

.disabled-state, .disabled-state:hover {
   border-bottom: none!important;
   cursor: not-allowed;
}

.disabled-state i.fa {
  color: lightgrey;
}

.device-button:hover {
  border-bottom: 5px solid #c6fff4!important;
  color: #000;
}

.active-state-rotator {
  color: #37a541;
}

.iframe-wrapper {
  width: 100%;
  height: calc(100vh - 166px);
}

.iframe-wrapper.mobile {
  /*width: 430px;
  height: 624px;*/
  /* References theme editors images  */
  background: url('/apps/static/themeeditor/images/Mobile_2.svg') center no-repeat;
  /*margin: 1em auto;*/
  display: block;
}

.iframe-wrapper.mobile.rotate {
  /*width: 854px;
  height: 507px;*/
  /* References theme editors images  */
  background: url('/apps/static/themeeditor/images/Mobile_Landscape.svg') center no-repeat;
  /*margin: 0 auto;*/
  display: block;
}

.iframe-wrapper.tablet {
  background: url(/apps/static/themeeditor/images/Tablet_2.svg) center no-repeat;
   z-index: 10;
   display: block;
   min-width: 534px;
}

.iframe-wrapper.tablet.rotate {
  height: 660px;
  /* References theme editors images  */
  background: url('Tablet_Landscape.png') center no-repeat;
  background-size: contain;
  margin: 0em auto;
  max-width: 1050px;
  max-height: 660px;
}

.iframe-wrapper.mobile iframe {
  /*width: 281px;
  height: 509px;
  margin-top: 46px;
  margin-left: 4px;
  width: 100%;*/
  height: 88%;
  padding-left: calc(50.5% - 18vh);
  padding-right: calc(50.5% - 19vh);
  padding-top: 6vh;
}

.iframe-wrapper.mobile.rotate iframe {
  /*width: 568px;
  height: 322px;
  margin-top: 80px;
  margin-left: 7px;*/
  width: 100%;
  height: 73%;
  padding-left: calc(40% - 24vh);
  padding-right: calc(39.5% - 24vh);
  padding-top: 18vh;
}

.iframe-wrapper.tablet iframe {
  /* width: 472px;
  height: 86.7%;
  padding: 0 20px 0 20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  margin-top: 31px; 
  width: 100%;*/
  height: 91%;
  padding-left: calc(49% - 23vh);
  padding-right: calc(49% - 23vh);
  padding-top: 4vh;
}

.iframe-wrapper.tablet.rotate iframe {
  /*
  width: 815px;
  height: 610px;
  margin-top: 91px;
  padding: 0;
  */
  width: 100%;
  height: 100%;
  padding: 0;
  padding-left: 16%;
  padding-right: 16%;
  padding-top: calc(200px - 7vw);
  padding-bottom: calc(200px - 7vw);
  margin-top: 0px;
}

#survey {
  margin-top: 4em;
  height: 100%;
}