.content {
  padding: 3em 0;
}

.box {
  padding: 1em;
  min-height: 240px;
  text-align: center;
}

.box__title {
  color: rgb(22, 35, 47);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1.1em;
  margin-bottom: 1.5em;
}

.box__title span {
  display: block;
  letter-spacing: 0;
  font-size: 75%;
  padding-top: 1em;
}

/* Related demos */
.content--related {
  text-align: center;
  color: #D8DADB;
  font-weight: bold;
}

.media-item {
  display: inline-block;
  padding: 1em;
  vertical-align: top;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}

.media-item__img {
  opacity: 0.3;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.media-item:hover .media-item__img,
.media-item:focus .media-item__img {
  opacity: 1;
}

.media-item__title {
  font-size: 1em;
  margin: 0;
  padding: 0.5em;
}

@media screen and (max-width: 50em) {
  .codrops-header {
    padding: 3em 10% 4em;
  }
}

@media screen and (max-width: 40em) {
  .codrops-header h1 {
    font-size: 2.8em;
  }
}

.cbutton {
  position: relative;
  display: inline-block;
  margin: 1em;
  padding: 0;
  border: none;
  background: none;
  color: #286aab;
  font-size: 1.4em;
  overflow: visible;
  -webkit-transition: color 0.7s;
  transition: color 0.7s;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.cbutton.cbutton--click,
.cbutton:focus {
  outline: none;
  color: #3c8ddc;
}

.cbutton__icon {
  display: block;
}

.cbutton__text {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cbutton::after {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -35px 0 0 -35px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  content: '';
  opacity: 0;
  pointer-events: none;
}

.cbutton--box {
  width: 24px;
  height: 24px;
  border: 4px solid rgb(22, 35, 47);
}

.cbutton--box-color-1 {
  background: #ff8b00;
}

.cbutton--box-color-2 {
  background: #b61854;
}

.cbutton--box-color-3 {
  background: #1d5cab;
}

.cbutton--box-color-4 {
  background: #f2438c;
}

.cbutton--box-color-5 {
  background: #ff6414;
}

.cbutton--box-color-6 {
  background: #5ed500;
}

.cbutton--box-color-7 {
  background: #0077ff;
}

.cbutton--box-color-8 {
  background: #7bff00;
}

.cbutton--box-color-9 {
  background: #fff;
}

/* Individual Effects */

/* Jagoda */
.cbutton--effect-jagoda::before {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -25px 0 0 -25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  content: '';
  opacity: 0;
  pointer-events: none;
}

.cbutton--effect-jagoda::after {
  margin: -25px 0 0 -25px;
  width: 50px;
  height: 50px;
}

.cbutton--effect-jagoda::before,
.cbutton--effect-jagoda::after {
  box-shadow: 0 0 0 2px rgba(111,148,182,0.5);
}

.cbutton--effect-jagoda.cbutton--click::before,
.cbutton--effect-jagoda.cbutton--click::after {
  -webkit-animation-name: anim-effect-jagoda-2, anim-effect-jagoda-1;
  animation-name:anim-effect-jagoda-2, anim-effect-jagoda-1;
  -webkit-animation-duration: 1.2s;
  animation-duration: 1.2s;
  -webkit-animation-iteration-count: 5;
  animation-iteration-count: 5;
  -webkit-animation-timing-function: ease-out;
  animation-timing-function: ease-out;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.cbutton--effect-jagoda.cbutton--click::after {
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
}

@-webkit-keyframes anim-effect-jagoda-1 {
  0%, 100% {
    opacity: 0;
  }
  40%, 60% {
    opacity: 1;
  }
}

@keyframes anim-effect-jagoda-1 {
  0%, 100% {
    opacity: 0;
  }
  40%, 60% {
    opacity: 1;
  }
}

@-webkit-keyframes anim-effect-jagoda-2 {
  0% {
    -webkit-transform: scale3d(0.5, 0.5, 1);
    transform: scale3d(0.5, 0.5, 1);
  }
  100% {
    -webkit-transform: scale3d(1.4, 1.4, 1);
    transform: scale3d(1.4, 1.4, 1);
  }
}

@keyframes anim-effect-jagoda-2 {
  0% {
    -webkit-transform: scale3d(0.5, 0.5, 1);
    transform: scale3d(0.5, 0.5, 1);
  }
  100% {
    -webkit-transform: scale3d(1.4, 1.4, 1);
    transform: scale3d(1.4, 1.4, 1);
  }
}

/* Simo */
.cbutton--effect-simo::before {
  position: absolute;
  top: 50%;
  left: -20px;
  margin: -4px 0 0 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(111,148,182,0.3);
  content: '';
  opacity: 0;
  -webkit-transform-origin: 35px 50%;
  transform-origin: 35px 50%;
}

.cbutton--effect-simo::after {
  border: 8px solid rgba(111,148,182,0.1);
}

.cbutton--effect-simo.cbutton--click::after {
  -webkit-animation: anim-effect-simo-1 5s forwards;
  animation: anim-effect-simo-1 5s forwards;
}

.cbutton--effect-simo.cbutton--click::before {
  -webkit-animation-name: anim-effect-simo-2, anim-effect-simo-3;
  animation-name: anim-effect-simo-2, anim-effect-simo-3;
  -webkit-animation-duration: 5s, 0.4s;
  animation-duration: 5s, 0.4s;
  -webkit-animation-iteration-count: 1, infinite;
  animation-iteration-count: 1, infinite;
  -webkit-animation-timing-function: ease, linear;
  animation-timing-function: ease, linear;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

@-webkit-keyframes anim-effect-simo-1 {
  0%, 100% {
    -webkit-transform: scale3d(0, 0, 1);
    transform: scale3d(0, 0, 1);
    opacity: 0;
  }
  5%, 95% {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes anim-effect-simo-1 {
  0%, 100% {
    -webkit-transform: scale3d(0, 0, 1);
    transform: scale3d(0, 0, 1);
    opacity: 0;
  }
  5%, 95% {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@-webkit-keyframes anim-effect-simo-2 {
  0%, 5%, 95%, 100% {
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
}

@keyframes anim-effect-simo-2 {
  0%, 5%, 95%, 100% {
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
}

@-webkit-keyframes anim-effect-simo-3 {
  100% {
    -webkit-transform: rotate3d(0, 0, 1, 360deg);
    transform: rotate3d(0, 0, 1, 360deg);
  }
}

@keyframes anim-effect-simo-3 {
  100% {
    -webkit-transform: rotate3d(0, 0, 1, 360deg);
    transform: rotate3d(0, 0, 1, 360deg);
  }
}

