@charset "UTF-8";

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

  html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
  }

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/*
 *  Basic Layout Section
 */

html, body, #page, .stage_container{
  margin: 0px;
  padding: 0;
  height: 100%;
  width: 100%;
  background-color: lightgrey;
  font-family: georgia, arial;
  position: absolute;
  top: 0;
  left: 0;
}

#catch_the_click {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}


.stage_container.icon-picture:before {
  font-size: 16em;
  position: absolute;
  color: rgba(195, 195, 195, 0.95);
  display: block;
  width: 1em;
  text-align: center;
  line-height: 1.2em;
  vertical-align: middle;
  top: 50%;
  margin-top: -1em;
  border: 4px dashed;
  left: 50%;
  margin-left: -1em;
  padding: 0.5em;
  height: 1em;
  overflow: hidden;
  border-radius: 0.25em;
  text-shadow: 0px 0px 24px rgba(0,0,0,0.05), -1px -1px 0px rgba(0,0,0,0.15), 1px 1px 0px rgba(255,255,255,0.3);
}

.stage_container.dz-drag-hover:before {
  /*content: "\f00c";*/
  color: rgba(255,255,255, 0.8);
  border-color: rgba(255,255,255, 0.8);
}

.stage_container > .kineticjs-content {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5),
              0 0 0 30px rgba(255,255,255,1),
              0 0 0 200px lightgrey;
}

.stage_container.dz-drag-hover > .kineticjs-content {
  opacity: 0.15;
}

aside#actions {
  position: absolute;
  top: 20%;
  left: 0;
  z-index: 1;
}

/*
 *  Basic Typografie
 */

.heading{
  font-weight: normal;
  border-bottom: 2px solid lightgrey;
  padding-bottom: 5px;
  margin-bottom: 1em;
  margin-top: 0.5em;
  line-height: 1;
  vertical-align: top;
  padding-top: 0;
}

/*
 *  Basic Structure
 */

ul, li{
  list-style:none;
  margin:0;
  padding:0;
}

section {
  overflow: hidden;
  margin-bottom: 50px;
}

/*
 *  Select Pointer Section
 */

 .tiles {
  width: 50px;
  height: 50px;
  overflow: hidden;
 }
.tiles:hover {
  width:auto;
}

.tiles:hover > li {
  display: block;
  float: left;
  text-align: center;
  margin: 0px;
  width: 50px;
  height: 50px;
  background-color: tomato;
}

.tiles > .tile-add.image-url {
  width: 250px;
}

/* the first tile carries a icon for the whole tile-section */

.tiles > li.tile-add {
  background-color: springgreen;
}

.tiles > li.tile-cursor {
  background-color: dodgerblue;
}

.tiles > li.tile-actions {
  background-color: darkorange;
}

.tiles:not(:hover) > li.tile-cursor-none input:checked + label:before {
  background: url("../images/icons/cursor_mac_pointer.png") no-repeat center;
  position: absolute;
  top: 0;
  width: 50px;
  height: 50px;
  left: 0;
  content: "";
  background-size: 40px;
  opacity: 0.2;
}

.tiles > li:last-child {
  border:0;
}


.tiles .icon {
  font-size: 0;
  display: block;
  text-align: center;
  height: 100%;
  width: 100%;
}

.tiles .icon:before {
  font-size: 32px;
  line-height: 50px;
  display: inline-block;
  text-decoration: none;
  color: white;
}

.pointers label{
  display:none;
  font-size: 0;
  position:relative;
  width: inherit;
  height: inherit;
  cursor: pointer;
}

.pointers label > img {
  width: 40px;
  padding: 5px;
}

.pointers input{
  position:absolute;
  top:8px;
  left:0;
  visibility: hidden;
}

.tiles label, .tiles .icon {
  /* correct a 1px offset :/ */
  position: relative;
  top: 0;
}

.tiles:hover label,
.pointers input:checked + label {
  display: block;
}

.tiles:hover .icon:hover,
.tiles:hover label:hover,
form#submit_image_url button.icon:hover,
.pointers:hover input:checked + label {
  background-color: gold;
}

#cursors .glyphicon-arrow-up:before{
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#coursored_imgs .glyphicon {
  position: relative;
  top: -54%;
  display: inline-block;
  color: white;
  font-size: 32px;
  text-decoration: none;
  margin: 5px;
  text-shadow: 0 0 10px black;
  width: 40px;
  text-align: center;
  height: 50px;
  line-height: 55px;
  overflow: hidden;
  vertical-align: bottom;
}

#coursored_imgs .glyphicon:hover {
  font-size: 40px;
}


#coursored_imgs {
  position: fixed;
  bottom: 2%;
  display: block;
  width: 100%;
  text-align: center;
}

#coursored_imgs > li {
  width: 150px;
  height: 150px;
  display: inline-block;
  overflow: hidden;
}

#coursored_imgs > li img{
  max-width: 150px;
  max-height: 150px;
}

/* imgupload via url section */
form#submit_image_url {
  width: 250px;
  height: 50px;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 7px;
  position: relative;
}

form#submit_image_url button.icon {
  width: 50px;
  height: 50px;
  position: absolute;
  right: 0;
  top: 0;
  border: none;
  background-color: springgreen;
}

button#link_image {
  float: right;
  width: 50px;
}

form#submit_image_url > input {
  height: 100%;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 2px;
  width: 190px;
  font-size: 17px;
  float: left;
}

footer {
  position: fixed;
  bottom: 0;
  padding: 10px;
  text-align: center;
  display: block;
  width: 100%;
  -moz-box-sizing: border-box;
       box-sizing: border-box;
}

#ga_tracking_opt_out {
  -webkit-transition: bottom 0.6s;
     -moz-transition: bottom 0.6s;
          transition: bottom 0.6s;

  margin: auto;
  max-width: 400px;
  text-align: justify;
  position: absolute;
  bottom: -800px;
  right: 1%;
  margin-left: -200px;
  background: white;
  padding: 20px 20px 40px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#ga_tracking_opt_out:hover {
  bottom: 0;
}

#ga_tracking_opt_out > a[href="ga_tracking_opt_out"] {
  position: fixed;
  bottom: 0;
  padding: 20px 10px;
  color: #666;
  text-decoration: none;
  display: block;
  width: 400px;
  text-align: center;

  -webkit-transition: bottom 0.6s;
     -moz-transition: bottom 0.6s;
          transition: bottom 0.6s;
}

#ga_tracking_opt_out:hover > a[href="ga_tracking_opt_out"] {
  bottom: -50px;
}


/* =======================================
   Radio Button Switch
   ======================================= */

/* make radio-button group appear as a switch

   <div class="radio_button_group">
    <input id="bar" name="foo" value="0">
    <label for="bar">OFF</label>
    <input id="baz" name="foo" value="1">
    <label for="baz">ON</label>
   </div>
*/

.radio_button > input[type='radio'] {
  display: none;
}

.radio_button > label {
  width: 167%;
  display: block;
  overflow: hidden;
  height: 100%;
  line-height: 2em;
  position: absolute;
}

.radio_button {
  margin-left: auto;
  margin-right: auto;
  width: 4.4em;
  background: #ccc;
  height: 2em;
  overflow: hidden;
  border-radius: 5px;
  position: relative;
  box-shadow: -1px -1px 1px 0px rgba(0,0,0,0.5), 1px 1px 1px 0px rgba(255,255,255,0.8), -1px -1px 6px 1px rgba(0,0,0,0.1);
}

.radio_button > input + label {
  z-index:1;
  background-color: transparent;
  background: none;
  padding: 0 0.5em;
  box-sizing:border-box;

  -webkit-transition: margin-left 0.2s;
     -moz-transition: margin-left 0.2s;
          transition: margin-left 0.2s;
}

.radio_button > input:focus + label {
  outline: thin dotted #333;
  outline: 4px auto -webkit-focus-ring-color;
  outline-offset: -3px;
}

.radio_button > input:checked + label {
  background-color: #ccc;
  background-image: -moz-linear-gradient(left, lawngreen, tomato), to(tomato));
  background-image: -webkit-linear-gradient(left, lawngreen, tomato);
  background-image: -o-linear-gradient(left, lawngreen, tomato);
  background-image: linear-gradient(to right, lawngreen 0%, lawngreen 50%, tomato 50%, tomato 100%);
  background-repeat: repeat-x;
  z-index:0;
  color: initial;
}

.radio_button > input[value='0'] + label {
  text-align: right;
  margin-left: 0%;
}

.radio_button > input[value='1'] + label {
  text-align: left;
  margin-left: -66%;
}

.radio_button > input[value='0']:checked + label {
  margin-left: -66%;
}
.radio_button > input[value='1']:checked + label {
  margin-left: 0;
}


/* neither of the input[type='radio'] is checked
 * in case of undefined state the last element overrules to style as "undefined"
 */
.radio_button > input:not(:checked) ~ input:not(:checked) + label {
  margin-left: -33%;
}

.radio_button > input:not(:checked) ~ input:not(:checked) + label:after {
  background-color: #ccc;
  content: "";
  width: 100%;
  display: block;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 2;
}


.radio_button > input:checked + label:before,
.radio_button > input:not(:checked) ~ input:not(:checked) + label:before {
  content: "|";
  background-color: white;
  width: 1.2em;
  height: auto;
  display: block;
  position: absolute;
  border-radius: 2px;

  box-shadow: 0px 0px 0px 1px rgba(255,255,255,1), 0px 0px 6px 4px rgba(0,0,0,0.3), 0px 0px 0px 2px #999, 0px 0px 5px 1px rgba(0,0,0,0.3);

  left: 50%;
  margin-left: -0.6em;
  -moz-box-sizing: border-box;
       box-sizing: border-box;
  top: 2px;
  bottom: 2px;
  z-index:1;
  line-height: 1.6em;
  text-align: center;
  color: #999;
}

.radio_button > input:not(:checked) ~ input:not(:checked) + label:before {
  z-index: 3;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 * http://juicystudio.com/article/screen-readers-display-none.php
 */

.hidden {
  display: none !important;
  visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

  @media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
  }

  @media print,
  (-o-min-device-pixel-ratio: 5/4),
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
  }

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

  @media print {
    *,
    *:before,
    *:after {
      background: transparent !important;
        color: #000 !important; /* Black prints faster:
        http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
      }

      a,
      a:visited {
        text-decoration: underline;
      }

      a[href]:after {
        content: " (" attr(href) ")";
      }

      abbr[title]:after {
        content: " (" attr(title) ")";
      }

/*
 * Don't show links that are fragment identifiers,
 * or use the `javascript:` pseudo protocol
 */

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * http://css-discuss.incutio.com/wiki/Printing_Tables
   */

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/*
 * Animation.css portions shamelessly taken from animate.css
 * Animate.css - http://daneden.me/animate
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 * Copyright (c) 2015 Daniel Eden
 */
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

@-webkit-keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    -ms-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }
}

.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}
