/**
 * Copyright 2016 Google Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

body {
  display: flex;
  flex-direction: column;
  background: #303030;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.compression-container {
    position: absolute;
    opacity: 0;
    top: 80%;
    right: 0;
    /* a11y: Hide by default to avoid being visible to screen reader */
    visibility: hidden;
}

.layout__body {
  display: flex;
  flex: 1;
  min-height: 900px;
}

.layout__content {
  flex: 1;
  background: white;
}

.layout__columns {
  flex: 0 0 0em; /*1em*/
}

.layout__nav {
  order: -1;
}


.layout__content {
      background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyIDIiPjxwYXRoIGQ9Ik0xIDJWMGgxdjFIMHYxeiIgZmlsbC1vcGFjaXR5PSIuMDUiLz48L3N2Zz4=");
 background-size: 16px 16px;
 background-color: #f2f2f2;
}
.layout__columns {
  /*background: green;*/
}
header, footer {
  color: #fff;
  text-align:center;
}
footer a {
  flex: 1;
}
h1 {
  margin: 0;
  font-size: 15px;
}
html,body {
  height: 100%;
  margin: 0;
  font-family: Helvetica;
}

header #quality {
  width: 32px;
  color: white;
}

header .info {
  color: #ccc;
}

footer {
  padding: 10px;
}

footer button {
  width: 49%;
  padding: 14px;
  border: none;
}

body {
  background: #303030;
  height: 100%;
}

.fab {
  position: absolute;
  right: 5%;
  top: 84%;
  width: 56px;
  height: 56px;
}

#controls {
  display: inline-block;
  width: 75%;
  margin: 0 auto;
}

#controls .range__container {
    width: 79%;
    display: inline-block;
    float: left;
}

#controls .mdl-textfield {
  width: 10%;
  float: left;
  margin-top: -20px;
}

.mdl-layout__header {
  background-color: #212121;
}

.mdl-card-thin {
  width: 160px;
  top: 100px;
}

.mdl-card-dark {
    background-color: #161616; /*#424242*/;
    opacity: 0.9;
}

.mdl-card-dark .mdl-card__title-text {
  color: white;
}

.mdl-card-dark p {
  margin: 0 0 8px;
}

.mdl-card-dark p small {
  font-size: 13px;
  color: #9B9B9B;
}

.mdl-card-dark p span {
  font-size: 16px;
  color: #fff;
  display: block;
}



/*paper-snackbar*/
.paper-snackbar {
  -webkit-transition-property: opacity, bottom, left, right, width, margin, border-radius;
  transition-property: opacity, bottom, left, right, width, margin, border-radius;
  -webkit-transition-duration: 0.5s;
          transition-duration: 0.5s;
  -webkit-transition-timing-function: ease;
          transition-timing-function: ease;
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  min-height: 14px;
  background-color: #323232;
  position: absolute;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  color: white;
  line-height: 22px;
  padding: 18px 24px;
  bottom: 0px;
  opacity: 0;
  z-index: 2000;
}

@media (min-width: 640px) {
  .paper-snackbar {
    /*
    Desktop:
      Single-line snackbar height: 48 dp tall
      Minimum width: 288 dp
      Maximum width: 568 dp
      2 dp rounded corner
      Text: Roboto Regular 14 sp
      Action button: Roboto Medium 14 sp, all-caps text
      Default background fill: #323232 100%
    */
    min-width: 288px;
    max-width: 568px;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    border-radius: 2px;
    margin: 24px;
    bottom: -100px;
    z-index: 2000;
  }
}

.mdl-layout__content {
  /* Never scroll inside the default scroller area */
  overflow-y: hidden;
}

@media (max-width: 640px) {
  .paper-snackbar {
    /*
    Mobile:
      Single-line snackbar height: 48 dp
      Multi-line snackbar height: 80 dp
      Text: Roboto Regular 14 sp
      Action button: Roboto Medium 14 sp, all-caps text
      Default background fill: #323232 100%
    */
    left: 0px;
    right: 0px;
    z-index: 2000;
  }
}
.paper-snackbar .action {
  background: inherit;
  display: inline-block;
  border: none;
  font-size: inherit;
  text-transform: uppercase;
  color: #ffeb3b;
  margin: 0px 0px 0px 24px;
  padding: 0px;
  min-width: -webkit-min-content;
  min-width: -moz-min-content;
  min-width: min-content;
}

.layout__controls__header {
  opacity: 0;
  height: 0px;
  /* positioning */
  /* this is for the image cropping*/
  width: 100%;
  z-index: 3;
  position: absolute;
  background: #303030;
  visibility: hidden;
}

.fade-in {
  opacity: 1;
  transition: opacity .25s ease-in-out;
  -moz-transition: opacity .25s ease-in-out;
  -webkit-transition: opacity .25s ease-in-out;
  visibility: visible;
}

.layout__controls__header.fade-in {
  opacity: 1;
  visibility: visible;
  height: 30px;
  padding: 16px 10px 10px 10px;
}

.cta {
  display: block;
  top: 50%;
  -webkit-transform: translateY(65%);
  -ms-transform: translateY(65%);
  transform: translateY(65%);
  margin: 0 auto;
  text-align: center;
  z-index: 1200;
}

.cta img {
  margin-bottom: 16px;
}

.cta__prompt {
  border-radius: 50%;
  width: 168px;
  height: 168px;
  display: block;
  margin:0 auto;
}

.cta span {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  color: #5168FF;
  font-size: 20px;
  margin-top: 16px;
  width: 100%;
}

.output-image {
  content: '';
  width: 100%;
}

.output-image .image-canvas {
  object-fit: cover;
  width: 100%;
  height: 610px;
}

/* Safari 9 hacks */
@supports (overflow:-webkit-marquee) and (justify-content:inherit) {
  .output-image .image-canvas {
    object-fit: contain;
    width: 100%;
    height: 610px;
    margin-top: 50px
  }
}

/* Edge hacks, because....no object-fit atm*/
_:-ms-lang(x), .output-image .image-canvas {
  width: auto;
  min-height: 0px;
  min-width: 0px;
  height: reset;
}

@media screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
  object-fit: cover;
  width: 100%;
  height: 720px;
}

@media (min-width: 800px) {
  .output-image .image-canvas {
    object-fit: contain;
    min-width: 50%;
    min-height: 100%;
    display: block;
    transform: translateY(13%);
    -webkit-transform: translateY(13%);
    margin: 0 auto;
  }

  /* Edge hacks, because....no object-fit atm*/
  _:-ms-lang(x), .output-image .image-canvas {
    width: auto;
    min-height: 0px;
    min-width: 0px;
    height: reset;
  }
}

.mdl-button--fab.mdl-button--colored {
  background-image: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  color: rgb(255, 255, 255);
  background: rgb(255,64,129);
  background-position: initial initial;
  background-repeat: initial initial;
}

.mdl-button--fab.mdl-button--colored:active, .mdl-button--fab.mdl-button--colored:focus:not(:active), .mdl-button--fab.mdl-button--colored:hover {
  background: rgb(255,64,129);
}

.mdl-button--fab.mdl-button--colored:hover {
    background-color: rgb(255,64,129);
}

/* Spinner replacement */
.mdl-spinner {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  /* a11y: Spinner should not be visible by default */
  visibility: hidden;
}

.mdl-spinner.is-active {
  visibility: visible;
}
/* Hide drawer offscreen from keyboard focus */
/* https://github.com/addyosmani/smaller-pictures-app/issues/1 */

/* We hide the navigation block so it can't be accidentally tabbed into */
.mdl-layout__drawer .mdl-navigation {
  display: none;
}

.mdl-layout__drawer.is-visible .mdl-navigation {
  display: block;
}

/* JavaScript is disabled */
.noscript-overlay {
  display: block;
  margin: 0 auto;
  width: 90%;
  height: 600px;
  background: white;
  position: relative;
  top: -550px;
  padding: 20px;
}

.noscript-overlay p {
  font-weight: bold;
}

/* Zoomer */
.zoomer {
  width: 1px;
  height: 1px;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
}

.zoomer__canvas {
  position: absolute;
  left: -64px;
  top: -134px;
}

@media screen and (max-width: 1024px) {
  /* Hide the extra New Project link on smaller viewports */
  .mdl-layout__header-row .mdl-navigation__link.new-project-desktop {
  	display: none;
  }
}
