/*!
 * sidebar accordion style 
 * 2016-0.5-13
 * Copyright (c) 2016 Jingyi
 */

.accordion {
  position: relative;
  width: 100%;
  
}

.accordion dl,
.accordion-list {
  background-color:#f0f0f0;
}

.accordion dl:after,
.accordion-list:after {
  content: "";
  display: block;
  height: 100%;
  /*-- background-color: #2ba659; --*/
}

.accordion dd,
.accordion__panel {
  background-color: #f0f0f0;
  font-size: 1em;
  line-height: 1.5em;
}


.accordionTitle,
.accordion__Heading {
  /*-- background-color: #38cc70; --*/
  text-align: center;
  font-weight: 400;
  padding-bottom:3px;
  padding-top:3px;
  padding-left:10px;
  display: block;
  text-decoration: none;
  color: #fff;
  
  border-left: 20px solid #f0f0f0;
  border-right: 20px solid #1A4792;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background-position: 0 0, 0 100% ;
  background-repeat: no-repeat;
  -webkit-background-size: 100% 20px;
  -moz-background-size: 100% 20px;
  background-size: 100% 20px;
  
  background-image: -webkit-linear-gradient(left, #f0f0f0 0%, #3acfd5 20%, #3a4ed5 100%), -webkit-linear-gradient(left, #f0f0f0 0%, #3acfd5 20%, #3a4ed5 100%);
  background-image: -moz-linear-gradient(left, #f0f0f0 0%, #3acfd5 20%, #3a4ed5 100%), -moz-linear-gradient(left, #f0f0f0 0%, #3acfd5 20%, #3a4ed5 100%);
  background-image: -o-linear-gradient(left, #f0f0f0 0%, #3acfd5 20%, #3a4ed5 100%), -o-linear-gradient(left, #f0f0f0 0%, #3acfd5 20%, #3a4ed5 100%);

  -webkit-transition: background-color 0.5s ease-in-out;
  transition: background-color 0.5s ease-in-out;
}
.accordionTitle:before,
.accordion__Heading:before {
  content: "+";
  font-size: 1.2em;
  line-height: 1em;
  float: right;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}
.accordionTitle:hover,
.accordion__Heading:hover {
  background-color: #2ba659;
  color: white;
  text-decoration:none;
}


.accordionTitleActive,
.accordionTitle.is-expanded {
  background-color: #2ba659;
}
.accordionTitleActive:before,
.accordionTitle.is-expanded:before {
  -webkit-transform: rotate(-225deg);
          transform: rotate(-225deg);
}

.accordionItem {
  height: auto;
  max-height:900px;
  overflow: hidden;
  -webkit-transition: max-height 0.5s;
  transition: max-height 0.5s;
}
@media screen and (min-width: 48em) {
  .accordionItem {
	  height:auto;
    max-height: 60em;
    -webkit-transition: max-height 0.5s;
    transition: max-height 0.5s;
  }
}

.accordionItem.is-collapsed {
  max-height: 250px;
}

.no-js .accordionItem.is-collapsed {
  max-height: auto;
}

.animateIn {
  -webkit-animation: accordionIn 0.45s normal ease-in-out both 1;
          animation: accordionIn 0.45s normal ease-in-out both 1;
}

.animateOut {
  -webkit-animation: accordionOut 0.45s alternate ease-in-out both 1;
          animation: accordionOut 0.45s alternate ease-in-out both 1;
}

@-webkit-keyframes accordionIn {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.9) rotateX(-60deg);
            transform: scale(0.9) rotateX(-60deg);
    -webkit-transform-origin: 50% 0;
            transform-origin: 50% 0;
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes accordionIn {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.9) rotateX(-60deg);
            transform: scale(0.9) rotateX(-60deg);
    -webkit-transform-origin: 50% 0;
            transform-origin: 50% 0;
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@-webkit-keyframes accordionOut {
  0% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(0.9) rotateX(-60deg);
            transform: scale(0.9) rotateX(-60deg);
  }
}
@keyframes accordionOut {
  0% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(0.9) rotateX(-60deg);
            transform: scale(0.9) rotateX(-60deg);
  }
}



