/* [THE ENTIRE TAB] */
.tab {
  position: relative;
  margin: 2px;
  max-width: 100%;
}

/* [THE LABEL] */
.tab input {
  display: none;
}
.tab label {
  display: block;
  background: #ebecec;
  color: #fff;
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
	
}
.tab label::after {
    position: absolute;
    top: 0%;
    right: 0;
    left: auto;
    width: 100%;
    height: 50px;
    margin-top: 0px;
    content: "";
    background-image: url(/wp-content/themes/Divi-child-CS-1.5/images/x.png);
    background-repeat: no-repeat;
    background-position: center center;
	transition: 0.3s;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    transition-delay: 0s;
	transform: rotate(45deg);
}
.tab.open label::after {
  transform: rotate(90deg);
}
.tab h5 {
	color: #53555a!important;
    margin-bottom: 0px;	
}

/* [THE CONTENTS] */
.tab-content {
  overflow: hidden;
  background: #fff;
  /* CSS animation will not work with auto height */
  /* This is why we use max-height */
  transition: max-height 0.4s; 
  max-height: 0;
}
.tab-content p {
  margin: 20px;
}
.tab.open .tab-content {
  /* Set the max-height to a large number */
  /* Or 100% viewport height */
  max-height: 100%;
}

/* [DOES NOT MATTER] */
html, body {
  font-family: arial;
  background: #f2f2f2;
}

#glossary-view-all {
	float: right;
	margin-top: -80px;
	cursor: pointer;
	padding: 20px;
}

#glossary-view-all.active {
	background: #e0251b !important;
	color: white !important;
}

@media only screen and (max-width: 768px) {
	#glossary-view-all {
		margin-top: 0;
		margin-right: 19px;
		padding: 5px;
	}
}