/**
* Styles for the clickimage generator.
*/
/* Imports */
/* Colors */
/* Greys */
/* Fonts */
@font-face {
  font-family: 'eLearn-Icons';
  font-style: normal;
  font-weight: normal;
  src: url("../font/eLearn-Icons.woff") format("woff"), url("../font/eLearn-Icons.ttf") format("truetype");
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url("../font/OpenSans-Regular-webfont.woff") format("woff"), url("../font/OpenSans-Regular-webfont.ttf") format("truetype");
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url("../font/OpenSans-Bold-webfont.woff") format("woff"), url("../font/OpenSans-Bold-webfont.ttf") format("truetype");
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url("../font/OpenSans-Italic-webfont.woff") format("woff"), url("../font/OpenSans-Italic-webfont.ttf") format("truetype");
}

/* Seitenaufbau */
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  margin: 0;
  font-size: 93.75%;
}

@media (max-width: 767.98px) {
  html {
    font-size: 87.5%;
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 81.4%;
  }
}

body {
  position: relative;
  font-family: "Open Sans", sans-serif;
  line-height: 164%;
  color: #333;
  background-color: #eee;
  margin: 0;
  margin: 0 auto;
}

button {
  cursor: pointer;
  background-color: #0e74cb;
  color: white;
  border: none;
  padding: .3rem .5rem;
  font-family: "Open Sans", sans-serif;
}

button:hover {
  background-color: #0d64b1;
}

a.normal {
  color: inherit;
  text-decoration: none;
}

input[type="number"]:invalid {
  outline: red auto 5px;
}

.wrap {
  vertical-align: center;
  max-width: 1100px;
  margin: 0rem auto 0rem auto;
}

.page {
  padding: 1rem 3rem 5rem;
  margin: 0;
  background-color: white;
  min-height: 100%;
  min-height: 100vh;
}

@media (max-width: 1199.98px) {
  .page {
    padding: 1rem 2rem 5rem;
  }
}

@media (max-width: 991.98px) {
  .page {
    padding: 1rem 1.5rem 5rem;
  }
}

@media (max-width: 767.98px) {
  .page {
    padding: 1rem 1rem 5rem;
  }
}

@media (max-width: 575.98px) {
  .page {
    padding: 1rem .5rem 5rem;
  }
}

.page.source .image_wrap,
.page.demo .image_wrap,
.page.source .edit_con,
.page.demo .edit_con,
.page.source .general_edit,
.page.demo .general_edit {
  display: none;
}

.page.source .source_con {
  display: block;
}

.page.demo .demo_con {
  display: block;
}

.heading,
.heading_2 {
  color: #0e74cb;
  font-size: 180%;
  margin: 1.5rem 0 1.5rem;
}

.heading_2 {
  font-size: 140%;
  margin-bottom: .5rem;
}

.footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  color: #888;
  background-color: black;
}

@media (max-width: 767.98px) {
  .footer {
    font-size: 90%;
  }
}

.footer .wrap {
  position: relative;
  padding: .4rem 3rem;
}

@media (max-width: 1199.98px) {
  .footer .wrap {
    padding: .4rem 2rem;
  }
}

@media (max-width: 991.98px) {
  .footer .wrap {
    padding: .3rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .footer .wrap {
    padding: .25rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .footer .wrap {
    padding: .2rem .5rem;
  }
}

.footer .left {
  float: left;
}

@media (max-width: 575.98px) {
  .footer .left {
    float: none;
  }
}

.footer .right {
  float: right;
}

@media (max-width: 575.98px) {
  .footer .right {
    float: none;
  }
}

.footer .right a > * {
  vertical-align: middle;
}

.footer .footer_text {
  margin-right: 1rem;
}

.footer img {
  max-width: 1.5rem;
  margin-right: .5rem;
}

/* Image Container */
.image_wrap {
  text-align: center;
  width: 100%;
  padding: 1rem;
  background-color: #888;
}

@media (max-width: 1199.98px) {
  .image_wrap {
    padding: .75rem;
  }
}

@media (max-width: 767.98px) {
  .image_wrap {
    padding: .5rem;
  }
}

.image_wrap.positioning,
.image_wrap.selecting,
.image_wrap.moving {
  padding: .75rem;
}

@media (max-width: 1199.98px) {
  .image_wrap.positioning,
  .image_wrap.selecting,
  .image_wrap.moving {
    padding: .5rem;
  }
}

@media (max-width: 767.98px) {
  .image_wrap.positioning,
  .image_wrap.selecting,
  .image_wrap.moving {
    padding: .25rem;
  }
}

.image_wrap.positioning {
  border: .25rem solid red;
}

.image_wrap.selecting {
  border: .25rem solid blue;
}

.image_wrap.moving {
  border: .25rem solid yellow;
}

.image_wrap.image_displayed {
  line-height: 0;
}

.image_wrap .image_con {
  display: none;
  position: relative;
  max-width: 100%;
}

.image_wrap.image_displayed .image_con {
  display: inline-block;
}

.image_wrap.positioning .image_con,
.image_wrap.moving .image_con {
  cursor: crosshair;
}

.image_wrap img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
}

.image_box {
  cursor: pointer;
  background-color: #eee;
  padding: 2em;
  -webkit-transition-duration: .15s;
          transition-duration: .15s;
}

.image_box:hover {
  background-color: #dcdcdc;
}

.image_box.advanced {
  outline: 2px dashed black;
  outline-offset: -10px;
  padding: 3em;
}

.image_box.dragover {
  background-color: #dcdcdc;
  outline-offset: -15px;
}

.image_displayed .image_box {
  display: none;
}

.image_box .box_input {
  pointer-events: none;
}

.image_box .box_file {
  pointer-events: none;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.image_box .box_dragndrop,
.image_box .box_info {
  display: none;
}

.image_box.advanced .box_dragndrop {
  display: inline;
}

/* Pins */
.image_pin {
  position: absolute;
  width: 0;
  height: 0;
  text-align: center;
  color: white;
  cursor: pointer;
}

.image_pin:before {
  position: absolute;
  display: block;
  content: '';
  width: 2rem;
  height: 2rem;
  margin-top: -2.5rem;
  margin-left: -1rem;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  border-radius: 50% 50% 50% 0;
  background-color: black;
  -webkit-box-shadow: -1.5px -1.5px 0 white, -1.5px 1.5px 0 white, 1.5px -1.5px 0 white, 1.5px 1.5px 0 white;
          box-shadow: -1.5px -1.5px 0 white, -1.5px 1.5px 0 white, 1.5px -1.5px 0 white, 1.5px 1.5px 0 white;
}

.image_pin.left:before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  margin-top: -1rem;
  margin-left: 0.5rem;
}

.image_pin.right:before {
  -webkit-transform: rotate(-135deg);
          transform: rotate(-135deg);
  margin-top: -1rem;
  margin-left: -2.5rem;
}

.image_pin.top:before {
  -webkit-transform: rotate(135deg);
          transform: rotate(135deg);
  margin-top: 0.5rem;
  margin-left: -1rem;
}

.image_pin:hover:before,
.image_pin.active:before {
  background-color: #e2001a;
}

.image_pin .pin_text {
  position: relative;
  text-align: center;
  width: 2rem;
  margin-top: -2.2rem;
  margin-left: -1rem;
  line-height: initial;
  font-weight: bold;
  line-height: 1.5em;
}

.image_pin.left .pin_text {
  margin-top: -0.75em;
  margin-left: 0.5rem;
}

.image_pin.right .pin_text {
  margin-top: -0.75em;
  margin-left: -2.5rem;
}

.image_pin.top .pin_text {
  margin-top: 0.8rem;
}

/* Only for selection. More spreaded */
/* Backgrounds */
.image_pin.selection_pin:before {
  margin-top: -2.75rem;
  margin-left: -1rem;
}

.image_pin.selection_pin.left:before {
  margin-top: -1rem;
  margin-left: 0.75rem;
}

.image_pin.selection_pin.right:before {
  margin-top: -1rem;
  margin-left: -2.75rem;
}

.image_pin.selection_pin.top:before {
  margin-top: 0.75rem;
  margin-left: -1rem;
}

.image_pin.selection_pin .pin_text {
  margin-top: -2.45rem;
  margin-left: -1rem;
}

/* Texts */
.image_pin.selection_pin.left .pin_text {
  margin-top: -0.75em;
  margin-left: 0.75rem;
}

.image_pin.selection_pin.right .pin_text {
  margin-top: -0.75em;
  margin-left: -2.75rem;
}

.image_pin.selection_pin.top .pin_text {
  margin-top: 1.05rem;
}

/* Point connection */
.image_pin.selection_pin:after {
  position: absolute;
  display: block;
  content: '';
  width: 2px;
  height: 0.25rem;
  top: -0.25rem;
  left: -1px;
  background-color: #e2001a;
}

.image_pin.selection_pin.left:after {
  width: 0.25rem;
  height: 2px;
  top: -1px;
  left: -0.25rem;
}

.image_pin.selection_pin.right:after {
  width: 0.25rem;
  height: 2px;
  top: -1px;
  left: 0;
}

.image_pin.selection_pin.top:after {
  top: 0;
  left: -1px;
}

/* Buttons */
.general_buttons {
  display: none;
  margin-top: 1rem;
}

.general_buttons.active {
  display: block;
}

.general_buttons .back {
  display: none;
}

.page.source .general_buttons .back,
.page.demo .general_buttons .back {
  display: inline-block;
}

.page.source .general_buttons .pin_add,
.page.demo .general_buttons .pin_add {
  display: none;
}

/* General Edit */
.general_edit .image_src {
  width: 24em;
  max-width: 100%;
}

/* Pin Edit */
.edit_con {
  display: none;
  margin-top: 1rem;
}

.edit_con.active {
  display: block;
}

.edit_panel {
  display: none;
}

.edit_panel.active {
  display: block;
}

.edit_panel .edit_tools {
  margin-bottom: .5rem;
}

.edit_panel .edit_tools label {
  margin: 0 .25rem;
}

@media (max-width: 575.98px) {
  .edit_panel .edit_tools label {
    display: block;
    margin: .25rem 0;
  }
}

.edit_panel .edit_tools label:first-of-type {
  margin-left: 0;
}

@media (max-width: 575.98px) {
  .edit_panel .edit_tools label:first-of-type {
    margin-top: 0;
  }
}

.edit_panel .edit_tools label:last-of-type {
  margin-right: 0;
}

@media (max-width: 575.98px) {
  .edit_panel .edit_tools label:last-of-type {
    margin-bottom: 0;
  }
}

.edit_panel .edit_tools .pin_index {
  width: 4em;
}

.edit_panel .pin_text {
  min-height: 5rem;
  height: 8rem;
  width: 100%;
  resize: vertical;
}

/* Source */
.source_con {
  display: none;
  margin-top: 1rem;
}

.source_con .source {
  min-height: 16rem;
  width: 100%;
  resize: vertical;
}

/* Demo */
.demo_con {
  display: none;
  margin-top: 1rem;
}
