@import url(https://fonts.googleapis.com/css?family=Dosis:600,200|Great+Vibes);

:root {
  --white: #e8e9ed;
  --gray: #aaa;
  --blue: #18172c;
  --green: #0080ff;
  --pink: #ff4b77;
}

html,
body {
  /*background-color: #f8f6f1;*/
  background-color: #f1f3f8;  /* #f1f3f8  lightgray */
  margin: 0;
  overflow-x: hidden;
}

div {
  display: block;
}

input[type="text"],
input[type="email"],
input[type="submit"],
input[type="button"],
input[type="number"],
textarea,
select {
  -webkit-appearance: none;
  -webkit-border-radius: 0;
  border-radius: 0;
  min-width: 0;
}

select {
  -moz-appearance: none;
}

textarea {
  resize: none;
}

input[type="submit"] {
  -webkit-border-radius: 0;
  border-radius: 0;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

#preview button,
#zoom-close-button {
  background-color: transparent;
  border: 0;
  position: absolute;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
}

.zoom {
  background-color: rgba(235, 235, 235, 1);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100%;
  z-index: 1000;
}

#zoom-close-button {
  background-image: url(/img/close_icon.svg);
}

#size-selector {
  position: relative;
}
#sizes {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #cacaca;
  border-radius: 10px;
  cursor: pointer;
  background: white;
  overflow: hidden;
}
#sizes > li {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}
#sizes > li .checkbox {
  display: block;
  visibility: hidden;
}
#sizes > li.selected {
  background-color: #e5e5e5;
}
#sizes > li.selected .checkbox {
  visibility: visible;
}
#size-selector-container .help {
  text-align: center;
  margin-bottom: 0;
}
#sizes > li {
  border-bottom: 1px solid #cacaca;
}
#sizes > li:last-child {
  border-bottom: none;
}
#size-selector .size-description {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
#size-selector .size-details {
  flex: 1;
  text-align: center;
}
#size-selector .size-price {
  display: flex;
  align-items: center;
  color: #00478f;
}
.size-price-old {
  color: #adadad;
  font-weight: 400;
  text-decoration: line-through;
}

.expandingArea > textarea,
.expandingArea > pre {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
}

.expandingArea {
  position: relative;
  border-bottom: 2px solid #00478f;
}

.expandingArea > textarea,
.expandingArea > pre {
  line-height: 26px;
  padding: 5px;
  border: 0;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.expandingArea > textarea {
  width: 100%;
  height: 28px;
}

.expandingArea.active > textarea {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: transparent;
}

.expandingArea > pre {
  display: none;
}
.expandingArea.active > pre {
  display: block;
  visibility: hidden;
}

#wrapper {
  transition: filter 200ms linear;
}

#wrapper.blurred {
  filter: blur(10px);
}

.container {
  height: 100vh;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: black;
  text-align: center;
}

#control-panel.disabled {
  filter:grayscale();
}

#control-panel #menu {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  border-bottom: 1px solid #cacaca;
}

#control-panel #menu > li {
  flex: 1 1 auto;
  text-align: center;
  cursor: pointer;
}

#control-panel #menu li.selected {
  background: #00478f;
  color: white;
  font-weight: 500;
}

#panels {
  overflow: hidden;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  position: relative;
  transition: margin-left 0.5s;
}

#panels > li {
  position: absolute;
  top: 0;
  bottom: 0;
}

#panels > li:nth-child(1) {
  left: 0;
}

#panels > li > form {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.help {
  color: #8d8d8d;
}

.cta button, #lead-email-container input[type=submit] {
  background: #00478F;
  color: white;
  text-transform: uppercase;
  border-radius: 10px;
  width: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.20);
}

.cta button:active, #lead-email-container input[type=submit]:active {
  transform: translateY(2px);
  box-shadow: none;
}

.input-group {
  display: flex;
}
.input-group > * {
  flex: 1;
}
.input-group > *:last-child {
  margin-right: 0;
}
.input-group input[type=text], .input-group select {
  border: 0;
  border-bottom: 2px solid #00478F;
  padding: 5px;
  background: transparent;
}
::placeholder {
  color: #999;
}
.input-group .right-aligned {
  text-align: right;
}
.input-group .center {
  text-align: center;
}
.input-group .size-1 {
  flex: 1.4;
}
.input-group .size-3 {
  flex: 3;
}
#title, #title-pre {
  text-transform: uppercase;
}
.input-group > .spacer {
  flex: 0;
  padding-top: 4px;
}
.input-group .datetime_dropdown {
  flex: .8;
}

.disabled {
  color: #aaa;
}


@media (max-width: 767px) {
  input,
  body,
  textarea,
  button,
  select,
  .expandingArea > pre,
  .pac-item-query {
    font-weight: 400;
    font-size: 3.93vw;
    /*letter-spacing: 0.27vw;*/
    letter-spacing: normal;
    font-family: "Roboto", sans-serif;
  }

  body,
  html,
  #wrapper {
    height: 100%;
  }

  body {
    background-color: rgb(235, 235, 235);
    margin: 0;
    overflow: hidden;
  }

  #wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100vw;
  }

  #logo {
    display: none;
  }

  #preview {
    text-align: center;
    position: relative;
    overflow: hidden;
    flex: 1;
    width: 100vw;
    display: flex;
    align-items: center;
  }

  #Poster {
    text-align: center;
    align-content: center;
    align-items: center;
    margin: 0;
    letter-spacing: normal;
  }

  #preview button,
  #zoom-close-button {
    width: 16vw;
    height: 12vw;
    right: 3vw;
    background-size: 8vw 8vw;
    background-position: center right;
  }
  #zoom-close-button {
    top: 1vw;
    visibility: hidden;
  }

  #preview #help-button {
    background-image: url(/img/help_icon.svg);
    top: 1vw;
    right: 10px;
  }

  #preview #zoom-button {
    background-image: url(/img/zoom_icon_plus.svg);
    top: 15vw;
    right: 10px;
  }

  #control-panel {
    background: white;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 87.5vw;
  }

  #control-panel.dropdown-open {
    overflow: visible;
  }

  #control-panel.dropdown-open #panels {
    overflow: visible;
  }

  #control-panel #menu > li {
    height: 12.86vw;
    line-height: 12.86vw;
    font-size: 4.46vw;
    /*letter-spacing: 0.48vw;*/
  }

  #panels.selected-2 {
    margin-left: -100vw;
  }

  #panels.selected-3 {
    margin-left: -200vw;
  }

  #panels.selected-4 {
    margin-left: -300vw;
  }

  #panels > li {
    width: 100vw;
  }

  #panels > li:nth-child(2) {
    left: 100vw;
  }

  #panels > li:nth-child(3) {
    left: 200vw;
  }

  #panels > li:nth-child(4) {
    left: 300vw;
  }

  #panels > li > form {
    padding: 3.57vw;
  }

  .cta {
    margin-top: 2.68vw;
  }

  .cta button {
    font-size: 5.36vw;
    height: 11.96vw;
    letter-spacing: 0.57vw;
  }

  .input-group {
    margin-top: 0.89vw;
  }

  .input-group > * {
    margin-right: 0.89vw;
  }

  #sizes > li {
    padding: 3.57vw;
  }

  #sizes > li .checkbox {
    height: 4vw;
    width: 5.12vw;
    margin-right: 2vw;
  }

  #size-selector-container .help {
    margin-top: 4vw;
  }

  #size-selector .size-details {
    font-size: 3.57vw;
  }

  #size-selector .size-class {
    font-size: 4.46vw;
  }

  #size-selector .size-price {
    font-size: 4.46vw;
  }

  .style_buttons_container .icon {
    width: 11vw;
    height: 11vw;
  }

  #checkbox_container {
    padding: 0;
    margin: 0;
  }
  #checkbox_container .checkbox {
    padding: 0;
    padding: 3vw;
  }
  #checkbox_container .checkbox.space {
    width: 0;
  }
  #checkbox_container .checkbox label {
    letter-spacing: normal;
  }
}

@media (min-width: 768px) {
  input,
  body,
  textarea,
  button,
  select,
  .expandingArea > pre,
  .pac-item-query {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: "Roboto", sans-serif;
  }

  html {
    height: 100%;
    min-height: 100%;
  }

  body {
    height: 100%;
    min-height: 100%;
    margin: 0;
  }

  #wrapper {
    height: 100%;
    min-height: 100%;
  }

  #logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
  }

  #preview {
    position: fixed;
    overflow: hidden;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 500px;
    background-position: center center;
    background-repeat: no-repeat;
    width: calc(100vw - 500px);
  }

  #preview button,
  #zoom-close-button {
    width: 45px;
    height: 45px;
    background-size: 40px 40px;
  }

  #preview #help-button {
    background-image: url(/img/help_icon.svg);
    bottom: 20px;
    right: 20px;
  }

  #preview #zoom-button {
    background-image: url(/img/zoom_icon_plus.svg);
    bottom: 75px;
    right: 20px;
  }

  #zoom-close-button {
    top: 20px;
    right: 20px;
    visibility: hidden;
  }

  #control-panel {
    background: white;
    box-shadow: 2px 0px 4px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    top: 0;
    bottom: 0;
    left: 0;
    width: 500px;
  }
  #control-panel #menu > li {
    line-height: 60px;
    font-size: 20px;
    height: 60px;
  }

  #panels.selected-2 {
    margin-left: -500px;
  }

  #panels.selected-3 {
    margin-left: -1000px;
  }

  #panels.selected-4 {
    margin-left: -1500px;
  }

  #panels > li {
    width: 500px;
  }

  #panels > li:nth-child(2) {
    left: 500px;
  }

  #panels > li:nth-child(3) {
    left: 1000px;
  }

  #panels > li:nth-child(4) {
    left: 1500px;
  }

  #panels > li > form {
    padding: 15px;
  }

  .cta {
    margin-top: 20px;
    display: flex;
    align-items: flex-end;
  }

  .cta button {
    font-size: 20px;
    height: 60px;
    letter-spacing: 2px;
  }

  .input-group {
    margin-top: 20px;
  }

  .input-group > * {
    margin-right: 10px;
  }

  .input-group .size-3 {
    flex: 4;
  }

  .input-block {
    margin-top: 20px;
  }

  #sizes > li {
    padding: 20px;
  }

  #sizes > li .checkbox {
    height: 18px;
    width: 23px;
    margin-right: 10px;
  }

  #size-selector .size-details {
    font-size: 14px;
  }

  #size-selector .size-class {
    font-size: 18px;
  }

  #size-selector .size-price {
    font-size: 20px;
  }

  #size-selector-container {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    flex-direction: column;
  }

  #size-selector-container .help {
    margin-top: 40px;
  }

  .style_buttons_container .icon {
    width: 65px;
    height: 65px;
  }

  .checkbox {
    padding: 10px;
  }
  .checkbox.space {
    width: 30px;
  }
}

@media (min-width: 1200px) {
  #control-panel {
    width: 500px;
  }

  #preview {
    width: calc(100vw - 500px);
    left: 500px;
  }

  #panels.selected-2 {
    margin-left: -500px;
  }

  #panels.selected-3 {
    margin-left: -1000px;
  }

  #panels.selected-4 {
    margin-left: -1500px;
  }

  #panels > li {
    width: 500px;
  }

  #panels > li:nth-child(2) {
    left: 500px;
  }

  #panels > li:nth-child(3) {
    left: 1000px;
  }

  #panels > li:nth-child(4) {
    left: 1500px;
  }

  .input-group .size-3 {
    flex: 4;
  }
}

.tabs label {
  width: 25%;
  float: left;
  color: black;
  text-align: center;
  cursor: pointer;
  transition: 0.5s;
  z-index: 2;
}
.tabs label:before {
  display: block;
  font-size: 3rem;
  line-height: 4rem;
  z-index: 2;
}
.tab.active {
  position: relative;
  background-color: rgb(100, 177, 255);
}
.active div:last-child {
  background-color: black;
}
.icon {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #bfd3e6;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  fill: currentcolor;
  color: lime;
  margin-bottom: 5px;
}
.icon:hover {
  background-color: magenta;
}
.icon.design {
  -webkit-mask-image: url(/img/design.svg);
  mask-image: url(/img/design.svg);
}
.icon.details {
  -webkit-mask-image: url(/img/details.svg);
  mask-image: url(/img/details.svg);
}
.icon.format {
  -webkit-mask-image: url(/img/format.svg);
  mask-image: url(/img/format.svg);
}
.icon.preview {
  -webkit-mask-image: url(/img/preview.svg);
  mask-image: url(/img/preview.svg);
}


.style_buttons_container {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0 15px 0;
}
.style_buttons_container .icon {
  display: block;
  outline: 1px solid #ccc;
  border-radius: 8px;
  margin: 5px 5px 5px 5px;
  cursor: pointer;
}
.style_buttons_container .icon:hover {
  outline: 2px solid rgb(184, 184, 184);
}
.style_buttons_container .icon.selected {
  outline: 3px solid rgb(100, 177, 255);
  border-radius: 8px;
}
.style_buttons_container .icon > img {
  width: 100%;
  height: 100%;
}
.style_buttons_container .icon.circle > img {
  mask: url(/img/icon/circle.svg) no-repeat center;
  -webkit-mask: url(/img/icon/circle.svg) no-repeat center;
  -webkit-mask-size: 70%;
  mask-size: 70%;
}
.style_buttons_container .icon.circle_outline > img {
  mask: url(/img/icon/circle_outline.svg) no-repeat center;
  -webkit-mask: url(/img/icon/circle_outline.svg) no-repeat center;
  -webkit-mask-size: 70%;
  mask-size: 70%;
}
.style_buttons_container .icon.heart > img {
  mask: url(/img/icon/heart.svg) no-repeat center;
  -webkit-mask: url(/img/icon/heart.svg) no-repeat center;
  -webkit-mask-size: 70%;
  mask-size: 70%;
}
.style_buttons_container .icon.heart_outline > img {
  mask: url(/img/icon/heart_outline.svg) no-repeat center;
  -webkit-mask: url(/img/icon/heart_outline.svg) no-repeat center;
  -webkit-mask-size: 70%;
  mask-size: 70%;
}

#blue_space {
  background-color: white;
}
#blue_space > img {
  background-color: #2c3963;
}

#deep_space {
  background-color: #2c3963;
}
#deep_space > img {
  background-color: white;
}

#love_heart {
  background-color: white;
}
#love_heart > img {
  background-color: #d00000;
}

#black_heart {
  background-color: black;
}
#black_heart > img {
  background-color: lightgray;
}

#stars_heart {
  background-color: black;
}
#stars_heart > img {
  background-color: skyblue;
}

#stars_heart_magenta {
  background-color: black;
}
#stars_heart_magenta > img {
  background-color: magenta;
}

#black_space {
  background-color: white;
}
#black_space > img {
  background-color: black;
}

#black_hole {
  background-color: black;
}
#black_hole > img {
  background-color: white;
}

#heart {
  background-color: black;
}
#heart > img {
  background-color: #d00000;
}

#space {
  background-color: white;
}
#space > img {
  background-color: #082450;
}

#half_moon {
  background-color: #051020;
}
#half_moon > img {
  background-color: lightgray;
}

#moon {
  background-color: #202010;
}
#moon > img {
  background-color: beige;
}

#mars {
  background-color: #202010;
}
#mars > img {
  background-color: #f0a050;
}

#mountains {
  background-color: #0a1030;
}
#mountains > img {
  background-color: beige;
}

#nebula {
  background: rgb(17,0,0);
  background: linear-gradient(54deg, rgba(17,0,0,1) 0%, rgba(139,36,36,1) 46%, rgba(232,207,187,1) 49%, rgba(231,200,172,1) 51%, rgba(40,45,88,1) 54%, rgba(0,0,17,1) 100%);
}
#nebula > img {
  background-color: #101030;  /*#101020;*/
}

#nebula2 {
  background: rgb(17,0,0);
  background: linear-gradient(54deg, rgba(17,0,0,1) 0%, rgba(139,36,36,1) 46%, rgba(232,207,187,1) 49%, rgba(231,200,172,1) 51%, rgba(40,45,88,1) 54%, rgba(0,0,17,1) 100%);
}
#nebula2 > img {
  background-color: beige;
  opacity:0.2;
}

#checkbox_container {
  display: flex;
  justify-content: center;
}
#checkbox_container .checkbox {
  margin: 0;
  list-style: none;
}
#checkbox_container .checkbox.space {
  padding: 0;
  margin: 0;
}
#checkbox_container .checkbox li {
  position: relative;
  width: 100%;
  margin: 2px 0 8px 0;
}
#checkbox_container .checkbox label,
input[type="checkbox"] {
  position: relative;
  vertical-align: middle;
  bottom: 2px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
