html, body {
  height: 100vh;
  overflow: hidden;
  width: 100vw;
}

body {
  background-image: url('../images/background.png');
  background-position: center -60px;
  background-size: cover;
}


/* header */
.header {
  height: 15vh;
  position: relative;
}

@media (min-width: 992px) and (max-width: 1100px) {
  .header {
    height: 20vh;
  }
}

.header-logo-line {
  background: #1150a0;
  bottom: 0;
  display: inline-block;
  height: 18px;
  position: absolute;
  right: 0;
  width: 100vw;
}

.header-logo {
  display: inline-block;
  float: right;
  margin-left: auto;
  vertical-align: top;
  width: 200px;
}

.line {
  height: 85vh;
  left: 0;
  position: fixed;
  top: 0;
  z-index: 3;
}

.line img {
  height: auto;
  max-height: 100%;
  width: auto;
}




/* drawing stuff */
.mask {
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 80vw;
  z-index: 2;
}

@media (max-width: 767px) {
  .mask {
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left center;
    top: 38vh;
    width: 48vh;
  }
}

@media (max-width: 320px) {
  .mask {
    width: 40vh;
  }
}

.mask img {
  width: 100%;
}

.drawing-canvas {
  position: relative;
  height: 800px;
  width: 600px;
}

.drawing-tools {
  bottom: 0;
  display: flex;
  padding: 0 10px;
  position: fixed;
  right: 0;
}

.drawing-pens {
  align-items: flex-end;
  display: flex;
}

.drawing-pen {
  cursor: pointer;
  margin-bottom: -50px;
  padding: 0 10px;
  transition: all .2s ease-in-out;
}

.drawing-pen[data-current="true"] {
  transform: translateY(-20px);
}

.drawing-pen:hover {
  transform: translateY(-20px);
}

.drawing-pen-color {
  border-radius: 100%;
  height: 8px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  width: 8px;
}

.drawing-pen-color-sharpie {
  height: 14px;
  width: 14px;
}

.drawing-pen-color-marker {
  height: 22px;
  opacity: .6;
  width: 22px;
}

.drawing-pen-image {
  height: 200px;
  vertical-align: top;
}


/* colors */
.drawing-colors {
  align-self: flex-end;
}

@media (max-width: 768px) {
  .drawing-colors {
    margin-bottom: 30px;
  }
}

.drawing-color-options {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-right: 20px;
  max-width: 200px;
}

.color-preview {
  display: inline-block;
  padding: 5px 10px;
}

.color-preview-swatch {
  border-radius: 100%;
  cursor: pointer;
  display: inline-block;
  height: 30px;
  width: 30px;
}



/* utils */
.sketch {
  background-color: white;
}






/* header animations */
.header-animation {
  height: calc(100% - 18px);
}

.header-animation-items {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-around;
}

.header-animation-canvas {
  height: 60px;
  position: relative;
  transition: 0.6s;
  width: 60px;
}

.cycle-stamp {
  backface-visibility: hidden;
  left: 0;
  position: absolute;
  top: 0;
  width: 60px;
}

@media (min-width: 767px) {
  .header-animation-canvas {
    height: 80px;
    width: 80px;
  }

  .cycle-stamp {
    width: 100%;
  }
}

.header-animation-canvas.pre-animating .cycle-stamp:last-child {
  display: none;
}

.cycle-stamp img {
  width: 100%;
}

@media (max-width: 600px) {
  .header-animation-canvas:first-child {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .header-animation-canvas:last-child {
    display: none !important;
  }
}


/* animation */
.header-animation-canvas.animating .cycle-stamp:first-child {
  animation-name: animateOut;
  animation-duration: 1s;
}

.header-animation-canvas.animating .cycle-stamp:last-child {
  animation-name: animateIn;
  animation-duration: 1s;
  display: block !important;
}

@keyframes animateIn {
  0% {
    transform: rotateY(-180deg);
    z-index: 2;
  }
  100% {
    transform: rotateY(0);
    z-index: 5;
  }
}

@keyframes animateOut {
  0% {
    transform: rotateY(0);
    z-index: 5;
  }
  100% {
    transform: rotateY(180deg);
    z-index: 2;
  }
}




.imprint {
  bottom: 15px;
  left: 20px;
  position: fixed;
}

.imprint button,
.close button {
  background: none;
	color: #1150a0;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

.imprint button:hover,
.close button:hover {
  text-decoration: underline;
}

.modal-wrapper {
  align-items: center;
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.modal-wrapper[data-show="true"] {
  display: flex;
}

.modal {
  max-height: 80vh;
  max-width: 600px;
  width: calc(100vw - 30px);
}

.content {
  background-color: white;
  padding: 20px;
  position: relative;
  z-index: 11;
}

.modal-backdrop {
  background-color: rgba(255, 255, 255, .85);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9;
}

.close {
  margin-bottom: 10px;
  position: relative;
  text-align: center;
  z-index: 12;
}
