/* -------------------------------- 

Primary style

-------------------------------- */
*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-size: 100%;
  font-family: SternMetric;
  font-weight: 600;
  font-size: 1.4em;
  color: #445b7c;
  background-color: #9a9a9a;
}

a {
  color: #dc717d;
  text-decoration: none;
}

img {
  max-width: 100%;
}

p {
  font-family: SternMetric;
  font-weight: 400;
  font-size: 0.6em;
  color: #ffffff;
}

/* -------------------------------- 

Main components 

-------------------------------- */
header {
  position: relative;
  height: 160px;
  line-height: 160px;
  text-align: center;
}
header h1 {
  font-size: 22px;
  font-size: 1.375rem;
  color: #ffffff;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media only screen and (min-width: 768px) {
  header {
    height: 240px;
    line-height: 240px;
  }
  header h1 {
    font-size: 32px;
    font-size: 2rem;
  }
}

.cd-image-container {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0em auto;
}
.cd-image-container img {
  display: block;
}

.cd-image-label {
  position: absolute;
  bottom: 0;
  right: 0;
  color: #ffffff;
  padding: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;

 text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);

}
.cd-image-label.is-hidden {
  visibility: hidden;
}
.is-visible .cd-image-label {
  opacity: 1;
}

.cd-resize-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  overflow: hidden;
  /* Force Hardware Acceleration in WebKit */

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.cd-resize-img img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}
.cd-resize-img .cd-image-label {
  right: auto;
  left: 0;
}
.is-visible .cd-resize-img {
  width: 50%;
  /* bounce in animation of the modified image */

}
/*

@-webkit-keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
@-moz-keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
@keyframes cd-bounce-in {
  0% {
    width: 0;
  }
  60% {
    width: 55%;
  }
  100% {
    width: 50%;
  }
}
*/
.cd-handle {
  position: absolute;
  height: 40px;
  width: 40px;
  /* center the element */
  left: 50%;
  top: 50%;
  margin-left: -20px;
  margin-top: -20px;
  border-radius: 50%;
  background: #cd0000 url("../img/stern.svg") no-repeat center center;
  cursor: move;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.2), 0 0 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0;

}

.cd-handle:hover {

	    background: rgba(0, 0, 0, 0.4) url("../img/stern.svg") no-repeat center center;
	      box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2), 0 0 0px rgba(0, 0, 0, 0.6);
}

.cd-handle.draggable {
  /* change background color when element is active */

	    background: rgba(0, 0, 0, 0.2) url("../img/stern.svg") no-repeat center center;
	      box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2), 0 0 0px rgba(0, 0, 0, 0.6);
	      }
.is-visible .cd-handle {
  opacity: 1;

}

@media only screen and (max-width: 480px) {
    .cd-image-label {
	    display:none;
}

}
