/**
 * CSS3 div classes for animated Icons
 * 
 * as used in https://github.com/acanimal/thebookofopenlayers3/blob/gh-pages/chapter06_02_markers_overlays.html
 * all icons from http://codepen.io/jthiller/pen/icDtL 
 * classes : plusDrop, bounceDrop, circlePulse, circleOut, scope, glass
 */

/* If enabled, all textbox selections get different color */
/* ::-moz-selection {
  background: rgba(139, 195, 74, 0.5);
  text-shadow: none;
}

::selection {
  background: rgba(139, 195, 74, 0.5);
  text-shadow: none;
} */

.wrapper {
  margin: 0 auto;
  padding: 2em 0;
  max-width: 39rem;
  border: 1px solid #e2e8f0;
  border-top: none;
  box-shadow: 0 0 1px 0 #9fb3cd;
}

.icons {
  margin: 3rem 0 1rem 0;
}

.box {
  position: relative;
  display: inline-block;
  margin: 2.5em;
  padding: 1em;
  width: .5rem;
  height: .5rem;
  border: 1px solid #9fb3cd;
  background: #4d6c95;
  vertical-align: top;
  cursor: pointer;
  -webkit-transition: background .3s ease, border .3s ease;
  transition: background .3s ease, border .3s ease;
}
.box:hover {
  border: 1px solid #d1dbe7;
  background: #52749f;
}
.box div {
  font-size: 150%;
}
.box div div {
  font-size: inherit;
}

.plusDrop {
  margin: 0 auto;
  width: 0;
  height: 0;
  border-radius: 100%;
  border-bottom-left-radius: 0;
  background-color: transparent;
  -webkit-transform: rotate(-45deg) translate3d(0, 1em, 0);
          transform: rotate(-45deg) translate3d(0, 1em, 0);
  -webkit-animation-name: wag;
          animation-name: wag;
  -webkit-animation-duration: 0.75s;
          animation-duration: 0.75s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}
.plusDrop:before {
  position: relative;
  top: -2em;
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  width: 2em;
  height: 2em;
  border: 0.2em solid orange;
  border-radius: 100%;
  border-bottom-left-radius: 0;
  content: "";
}
.plusDrop:after {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  color: orange;
  content: '\00D7';
  font-size: 2.5em;
  opacity: 1;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  -webkit-transform: translate3d(0.15em, -1.85em, 0);
          transform: translate3d(0.15em, -1.85em, 0);
  -webkit-transform-origin: center;
          transform-origin: center;
}
.plusDrop:hover, .plusDrop:focus {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
}
.plusDrop:hover:before, .plusDrop:focus:before {
  background: rgba(255, 255, 255, 0.3);
}
.plusDrop:hover:after, .plusDrop:focus:after {
  opacity: 0;
}

@-webkit-keyframes wag {
  from {
    -webkit-transform: rotateZ(-54deg);
            transform: rotateZ(-54deg);
  }
  to {
    -webkit-transform: rotateZ(-36deg);
            transform: rotateZ(-36deg);
  }
}

@keyframes wag {
  from {
    -webkit-transform: rotateZ(-54deg);
            transform: rotateZ(-54deg);
  }
  to {
    -webkit-transform: rotateZ(-36deg);
            transform: rotateZ(-36deg);
  }
}
.circlePulse {
  position: relative;
  margin: 0 auto;
  padding: 0;
  width: 0;
  height: 0;
}
.circlePulse:before {
  position: relative;
  top: -.8em;
  left: -1em;
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  width: 2em;
  height: 2em;
  border: 0.5em solid orange;
  border-radius: 100%;
  content: "";
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-animation-name: inOut;
          animation-name: inOut;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}
.circlePulse:after {
  position: absolute;
  top: -.8em;
  left: -1em;
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  width: 2em;
  height: 2em;
  border: 0.2em solid orange;
  border-radius: 100%;
  content: "";
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-animation-name: inOut;
          animation-name: inOut;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-timing-function: ease;
          animation-timing-function: ease;
  -webkit-animation-delay: -.5s;
          animation-delay: -.5s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}

@-webkit-keyframes inOut {
  from {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes inOut {
  from {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
.circleOut {
  position: relative;
  margin: 0 auto;
  padding: 0;
  width: 0;
  height: 0;
}
.circleOut:before {
  position: relative;
  top: -.8em;
  left: -1em;
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  width: 2em;
  height: 2em;
  border: 0.5em solid orange;
  border-radius: 100%;
  content: "";
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-animation-name: fadeOut;
          animation-name: fadeOut;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-delay: -1s;
          animation-delay: -1s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: forwards;
          animation-direction: forwards;
}
.circleOut:after {
  position: absolute;
  top: -.8em;
  left: -1em;
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  width: 2em;
  height: 2em;
  border: 0.2em solid orange;
  border-radius: 100%;
  content: "";
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-animation-name: fadeOut;
          animation-name: fadeOut;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-timing-function: ease;
          animation-timing-function: ease;
  -webkit-animation-delay: -.5s;
          animation-delay: -.5s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: forwards;
          animation-direction: forwards;
}

@-webkit-keyframes fadeOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0;
  }
}

@keyframes fadeOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0;
  }
}
.bounceDrop {
  position: relative;
  margin: 0 auto;
  width: 0;
  height: 0;
  border-radius: 100%;
  border-bottom-left-radius: 0;
  background-color: transparent;
}
.bounceDrop:before {
  position: relative;
  top: -2.5em;
  left: -1em;
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  width: 2em;
  height: 2em;
  border: 0.2em solid orange;
  border-radius: 100%;
  border-bottom-left-radius: 0;
  content: "";
  -webkit-transform: rotate(-45deg) translate3d(0, 1em, 0);
          transform: rotate(-45deg) translate3d(0, 1em, 0);
  -webkit-animation-name: bounce;
          animation-name: bounce;
  -webkit-animation-duration: .75s;
          animation-duration: .75s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}
.bounceDrop:after {
  position: relative;
  top: -2.5em;
  left: -.75em;
  display: block;
  width: 1.5em;
  height: 1em;
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.5);
  content: "";
  -webkit-animation-name: bounceShadow;
          animation-name: bounceShadow;
  -webkit-animation-duration: .75s;
          animation-duration: .75s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}

@-webkit-keyframes bounce {
  0% {
    -webkit-transform: translateY(-0.25em) rotate(-45deg);
            transform: translateY(-0.25em) rotate(-45deg);
  }
  50% {
    -webkit-transform: translateY(-0.5em) rotate(-45deg);
            transform: translateY(-0.5em) rotate(-45deg);
  }
  100% {
    -webkit-transform: translateY(0) rotate(-45deg);
            transform: translateY(0) rotate(-45deg);
  }
}

@keyframes bounce {
  0% {
    -webkit-transform: translateY(-0.25em) rotate(-45deg);
            transform: translateY(-0.25em) rotate(-45deg);
  }
  50% {
    -webkit-transform: translateY(-0.5em) rotate(-45deg);
            transform: translateY(-0.5em) rotate(-45deg);
  }
  100% {
    -webkit-transform: translateY(0) rotate(-45deg);
            transform: translateY(0) rotate(-45deg);
  }
}
@-webkit-keyframes bounceShadow {
  0% {
    opacity: .75;
    -webkit-transform: scale(0.75);
            transform: scale(0.75);
  }
  50% {
    opacity: .5;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
}
@keyframes bounceShadow {
  0% {
    opacity: .75;
    -webkit-transform: scale(0.75);
            transform: scale(0.75);
  }
  50% {
    opacity: .5;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
}
.scope {
  position: relative;
  margin: 0 auto;
  width: 0;
  height: 0;
  border-radius: 100%;
  border-bottom-left-radius: 0;
  background-color: transparent;
  font-size: 180% !important;
}
.scope .glass {
  height: 1em;
  width: 1em;
  top: -.5em;
  left: -.65em;
  border: 0.2em solid orange;
  border-radius: 100%;
  position: relative;
  -webkit-animation-name: zoom;
          animation-name: zoom;
  -webkit-animation-duration: .75s;
          animation-duration: .75s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
  -webkit-transform-origin: .5em .5em;
          transform-origin: .5em .5em;
}
.scope .glass:before {
  height: .25em;
  width: 1em;
  top: .75em;
  left: .75em;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  -webkit-transform-origin: left bottom;
          transform-origin: left bottom;
  content: "";
  background: orange;
  display: block;
  position: relative;
}
.scope .glass:after {
  position: relative;
  display: block;
  top: -.33em;
  left: -.16em;
  width: 1em;
  height: 1em;
  color: orange;
  text-align: center;
  content: "+";
  font-size: 1.5em;
  line-height: 1em;
  opacity: 1;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
  -webkit-animation-name: zoomPlus;
          animation-name: zoomPlus;
  -webkit-animation-duration: .75s;
          animation-duration: .75s;
  -webkit-animation-timing-function: ease-in-out;
          animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
}

@-webkit-keyframes zoom {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  50% {
    -webkit-transform: scale(0.85);
            transform: scale(0.85);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes zoom {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  50% {
    -webkit-transform: scale(0.85);
            transform: scale(0.85);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@-webkit-keyframes zoomPlus {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  50% {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
  100% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
}
@keyframes zoomPlus {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  50% {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
  100% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
}


