/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.3.6,
* Autoprefixer: v10.3.1
* Browsers: last 8 version
*/

html {
  font-family: 'Open Sans', sans-serif;
  -webkit-overflow-scrolling: touch;
  font-size: 100%;
}

body {
  padding: 0;
  margin: 0;
  width: 100vw;
  font-size: 100%;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 0 !important;
  outline: none !important;
}
.block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Layout */
#wrapper {
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Image */
#image {
  min-height: 675px;
  background: #efefef;
  margin-bottom: 20px;
}

#image img {
  display: block;
  width: 100%;
  height: auto;
}

.buttonBox > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* Image slider */
#imageSliderWrapper {
  width: 100%;
  height: 50px;
}
#imageSlider {
  position: relative;
  height: 44px;
  border: 1px solid #8c8c8c;
  margin: 3px 8px;
}
#timedisplay {
  text-align: center;
  line-height: 44px;
  color: #8c8c8c;
}
#toggler {
  display: block;
  position: absolute;
  height: 50px;
  background-color: #2ea3f2;
  border: none !important;
}
#toggler:before {
  position: absolute;
  display: block;
  content: "";
  left: 8px;
  top: 10px;
  width: 2px;
  height: 30px;
  background-color: #fff;
}
#toggler.ui-state-active {
  background-color: #0a699e;
}
.ui-slider-horizontal .ui-slider-handle {
  top:-4px;
  width: 18px;
}

/* Form fields */
* {
  -webkit-appearance: none !important;
}
/* label */
label {
  display: block;
  line-height: 30px;
  margin-left: 30px;
  color: #8c8c8c;
  font-size: 14px;
}
.panel label {
  margin-left: 0;
}
label span {
  display: none;
}
#dates_container label {
  margin-left: 0;
}
/* Input fields */
#dates_container,
#dateInput,
#timeInput,
#dateRateSelect,
#resolutionSelect,
#email{
  font-family: 'Open Sans', sans-serif;
  display: inline-block;
  font-size: 16px;
  line-height: 30px;
}
#dateInput,
#timeInput,
#email {
  width: 250px;
  border: 1px solid #8c8c8c;
  padding: 6px;
  min-height: 42px;
}
#timeInput {
  width: 160px;
  margin-left: 30px;
}
#email {
  width: 410px;
}
.error #email {
  border-color: #c33 !important;
}
.error label {
  color: #c33;
}
.error span.errormessage {
  display: inline;
}
/* Select fields */
.styledSelect {
  font-family: 'Open Sans', sans-serif;
  display: block;
  background-color: #cdcdcd;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+);
  background-position: 100% center;
  background-repeat: no-repeat;
  border: 1px solid #ededed;
  border-radius: 0;
  padding: 6px;
  padding-right: 30px;
  line-height: 30px;
  min-height: 42px;
  font-size: 16px;
  margin-left: 30px;
  width: 160px;
}
select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}
select::-ms-expand {
  display: none;
}
.styledSelect:hover {
  background-color: #ccc !important;
}
.styledSelect:active {
  background-color: #ededed !important;
}

/* Buttons */
button,
.button {
  display: inline-block;
  font-size: 16px;
  background-color: #2ea3f2;
  border: 1px solid #2ea3f2;
  color: white;
  text-align: center;
  font-weight: 400 !important;
  cursor: pointer;
}
.button {
  width: 160px;
  padding: 6px;
  margin-left: 30px;
  line-height: 30px;
}
#dateInput:focus,
#timeInput:focus {
  background-color: #0a699e;
  border-color: #0a699e;
  color: white;
  outline: none;
}
.button:hover {
  background-color: #0a699e;
  border-color: #0a699e;
  outline: none;
}
button:hover {
  outline: none;
}
.button:active,
.button.active,
button:active,
.button.play {
  background-color: #0a699e !important;
  border-color: #0a699e !important;
}
#buttonGenerateVideoStart {
  margin-top: 30px;
  margin-left: 220px;
  width: 130px;
}

/* Generate video box */
#videoBox {
  position: relative;
  margin: -10px 0 90px 0;
}
#videoBox > div.block {
  padding: 15px 30px 30px 30px;
  background-color: #efefef;
}
#videoBox > div.block > div {
  margin: 0;
}
#videoBox > div > div:first-child * {
  margin-left: 0;
}

/* Message box */
#messageBox {
  position: absolute;
  left:0;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 2;
}
#messageBox > div {
  position: relative;
  padding: 30px 40px;
  background-color: #2ea3f2;
  font-size: 1.125em;
  line-height: 2em;
  color: white;
}
#closeButton {
  position: absolute;
  right: 10px;
  top: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 3;
}

#closeButton:before,
#closeButton:after {
  position: absolute;
  content: "";
  display: block;
  right: -3px;
  top: 0px;
  width: 30px;
  height: 3px;
  background-color: white;
}

#closeButton:before {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#closeButton:after {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* loader */
#loader {
  display: none;
  position: absolute;
  vertical-align: center;
  width: 100%;
  height: 100%;
  line-height: 66vh;
  top: 0;
  text-align: center;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
}

/* Video list */
#videoList {
  padding: 30px 0 120px 0;
}
ul,li {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul {
  border-bottom: 1px solid #8c8c8c;
}

li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 12px;
  font-size: 15px;
}
li:nth-child(odd) {
  background-color: #efefef;
}
li > span {
  -ms-flex-preferred-size: 20%;
  flex-basis: 20%;
  display: block;
  text-align: right;
}
li > span:first-child {
  -ms-flex-preferred-size: 40%;
  flex-basis: 40%;
  text-align: left;
}

a {
  color: #2ea3f2;
}
a:hover {
  text-decoration: none;
}

.errorpage {
  text-align: center;
  margin: 30vh;
}
.errorpage h1 {
  font-size: 2em;
}

h3 {
  font-weight: 600;
  color: #555555;
  font-size: 18px;
  line-height: normal;
}