.accordion {
  display: inline-block;
  width: 100%;
  padding-bottom: 60px;
}

.accordion .transition, p, ul li i {
  transition: all 0.25s ease-in-out;
}

.accordion .flipIn, h1, ul li {
  animation: flipdown 0.5s ease both;
}

.accordion .no-select,  .accordion__title {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.accordion__title {
  color: #3d3d3d;
  font-family: 'Gotham Book';
  font-size: 20px;
  margin: 0;
  cursor: pointer;
  text-align: left;
  padding: 20px 35px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  border-bottom: 1px solid #e5e5e5;
}

.accordion .accordion__text {
  color: #898989;
  font-size: 17px;
  padding: 20px 35px;
  font-family: 'Gotham Book';
  line-height: 18px;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
  margin-top: 14px;
  z-index: 2;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.accordion ul {
  list-style: none;
  perspective: 900;
  padding: 0;
  margin: 0;
  background-color: #fff;
  border-top: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  border-left: 1px solid #e5e5e5;
}




.accordion ul li:last-of-type {
  padding-bottom: 0;
}
.accordion ul li i {
  position: absolute;
  transform: translate(-6px, 0);
  -webkit-transform: translate(-6px, 0);
      -ms-transform: translate(-6px, 0);
  margin-top: 16px;
  /*right: 0;*/
  display: block;
  top: 50%;
  right: 15px;
  margin-top: -3px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0px 7px 7px 7px;
  border-color: transparent transparent #00B2DF transparent;
}
/*.accordionul li i:before {
  content: ' ';
  display: block;
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -3px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  border-color: #e5e5e5 transparent transparent transparent;
}*/
/*.accordion ul li i:before {
  transform: translate(-2px, 0) rotate(45deg);
}
.accordion ul li i:after {
  transform: translate(2px, 0) rotate(-45deg);
}*/
.accordion ul li input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}
.accordion ul li input[type=checkbox]:checked ~ .accordion__text {
  margin-top: 0;
  max-height: 0;
  padding: 0px;
  margin: 0px;
  opacity: 0;
  border: 0px;
  transform: translate(0, 50%);
  -webkit-transform: translate(0, 50%);
      -ms-transform: translate(0, 50%);}


.accordion ul li input[type=checkbox]:checked ~ .accordion__title > i {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
  transform-origin: center;
  -webkit-transform-origin: center;
      -ms-transform-origin: center;
 border-color: transparent transparent #e5e5e5  transparent;
}


@keyframes flipdown {
  0% {
    opacity: 0;
    transform-origin: center right;
    -webkit-transform-origin: center right;
      -ms-transform-origin: center right;
    transform: rotateX(-90deg);
    -webkit-transform: rotateX(-90deg);
      -ms-transform: rotateX(-90deg);

  }
  5% {
    opacity: 1;
  }
  80% {
    transform: rotateX(8deg);
  }
  83% {
    transform: rotateX(6deg);
  }
  92% {
    transform: rotateX(-3deg);
  }
  100% {
    transform-origin: center right;
    transform: rotateX(0deg);
  }
}
