/* Necessary for functionality */

.folding-content,
.unfolded-content {
  display: none;
}

.unfolded-content {
  width: 100%;
}

.unfolded-content .folding-content {
  display: block;
}

.menu-item:hover,
.close-unfolded-content:hover {
  cursor: pointer;
}

/**/


#menu-container {
  width: 100%;
  min-height: 100%;
}

.folding-menu {
 
  font-size: 0;
  padding: 0;
}

.folding-menu li {
  list-style-type: none;
}


.folding-menu li.crew{
  margin: 10px 1.5% 10px 0;
  width: 23.4%;
}



.menu-item {
  text-align: center;
  display: inline-block;
  margin: 20px;
  font-size: 15px;
  vertical-align: top;
}

/* #team .crew {
  display:none;
} */

.team-visible {
-webkit-animation: visible 1s ease;
-moz-animation: visible 1s ease;
}

@-webkit-keyframes visible {
      0% { opacity: 0; display: none !important; }   
    100% { opacity: 1; display: inline-block; }
  }
@-moz-keyframes visible {
      0% { opacity: 0; display: none !important; }   
    100% { opacity: 1; display: inline-block ; }
}

.team-invisible {
  display: none !important;
}


.menu-item:after {
  content: '';
  border-top: 0 solid #e6e6e6;
}

.unfolded-content {
  font-size: 15px;
  background: #f1f1f1;
  padding: 30px;
  box-sizing: border-box;
  position: relative;
  z-index: 15;
}

.active-item {
  position: relative;
}

.active-item:after {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  left: calc( 50% - 40px );
  bottom: -40px;
  border-top: 40px solid #f1f1f1;
  border-right: 40px solid transparent;
  border-bottom: 00px solid transparent;
  border-left: 40px solid transparent;
  z-index: 1;
  
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  transform: rotate(180deg);
}



.close-unfolded-content {
  position: absolute;
  top: 30px;
  right: 30px;
  
  border-radius: 50%;

    background: url(../images/icons/close.png);
    background-size: 18px 18px;
    width: 30px;
    height: 30px;
    display: inline-block;
    background-position: center center;
    background-color: #20a3e0;
    background-repeat: no-repeat;
    vertical-align: middle;
  
}

.close-unfolded-content:hover {
  background-color: #70c06c;
}

.folding-menu li.crew img {
    width: 100%;
    margin-bottom: 10px
  }

  .filter-wrapper {
    float:right;
    position:relative;
    left:-50%;
}

ul.filters {
    position:relative;
    left:50%;
    margin-bottom: 30px;
}

ul.filters li {
    display: inline-block;
}

ul.filters li span {
    font-size: 18px;
    font-size: 1.28571rem;
    line-height: 40px;
    line-height: 2.85714rem;
    font-family: "Lato", sans-serif;
    padding: 10px 25px;
    margin-right: 10px;
    border-radius: 30px;
    color: #20b3e6;
    cursor: pointer;
}

#filters li span.active {
    background: #70c06c;
    color: #ffffff;
}

#filters li span:hover {
    background: #70c06c;
    color: #ffffff;
}

.cleared {
  clear: both;
}

@media (max-width: 1090px) {

  .folding-menu li.crew {
    width: 31.7%;
  }


}


@media (max-width: 1027px) {

  ul.filters li span {
    padding: 10px 20px;
    margin-right: 5px;
  }


}

@media (max-width: 990px) {

  .folding-menu li.crew {
    width: 48%;
  }
  
   ul.filters li span {
    font-size: 16px;
    font-size: 1.15rem;
  }


}


@media (max-width: 944px) {
  
  ul.filters li {
      display: inline-block;
      width: 100%;
      text-align: center;
      margin-bottom: 15px;
  }

   ul.filters li span {
    font-size: 18px;
    font-size: 1.28571rem;
  }


}


@media (max-width: 768px) {

  .folding-menu li.crew {
    width: 23.4%;
  }

  ul.filters li {
    display: inline-block;
    width: inherit;
    text-align: center;
    margin-bottom: 15px;}

}

@media (max-width: 669px) {

  .folding-menu li.crew {
    width: 31.7%;
  }


}

@media (max-width: 571px) {

  .folding-menu li.crew {
    width: 47%;
    margin-right: 3%;
  }

  li.unfolded-content {
    float: left;
  }

  ul.filters li {
      display: inline-block;
      width: 100%;
      text-align: center;
      margin-bottom: 15px;
  }
  
}
