/* Necessary for functionality */

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

.unfolded-content {
  width: 100%;
}

.unfolded-content .folding-content {
  	display: flex;
	flex-wrap:nowrap;
	justify-content: center;
	align-items: center;
}

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

/* Stuff to make the demo look nice */

html {
  box-sizing: border-box;
  height: 100%;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: verdana, sans-serif;
  margin: 0;
  height: 100%;
}

a {
  text-decoration: none;
  color: #fff;
}

#menu-container {
  width: 100%;
  min-height: 100%;
  background: #000;
  border: none; /*changed from 20px white*/
}

.folding-menu {
  /* remove inline-block extra spacing */
  font-size: 0;
  padding: 0;
}

.folding-menu li {
  	list-style-type: none;
 	border-top: #590E0F 1px solid;
}

.menu-item {
  text-align: center;
  display: inline-block;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,.5);
  transition: background 0.3s;
  font-size: 15px;
  vertical-align: top;
	min-width:33.33333% !important;
	max-width:33.33333% !important;
}

.menu-item:hover {
  	background: rgba(255,0,0,1);
	color:white;
}

.menu-item:after {
  content: '';
  border-top: 0 solid #e6e6e6;
}
.menu-item a {max-width:100% !important;}
.menu-item a>img{max-width:100% !important; /*border-bottom: #590E0F 1px solid*/}
.menu-item h3{padding-top:2.5px;}
.menu-item h4{padding-bottom:20px; letter-spacing: 1px; font-weight:lighter;}

.unfolded-content {
  font-size: 15px;
  background: #000;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

.active-item {
  background: darkred;
  position: relative;
}

.active-item:after {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  left: calc( 50% - 40px );
  bottom: -40px;
  border-top: 40px solid darkred;
  border-right: 40px solid transparent;
  border-bottom: 00px solid transparent;
  border-left: 40px solid transparent;
  z-index: 10;
  transition: border-top-color 0.3s;
}

.active-item:hover:after {
  border-top: 40px solid red;
}

.close-unfolded-content {
  position: absolute;
  top: 30px;
  right: 25px;
  height: 30px;
  width: 30px;
  text-align: center;
  background-image:url("../images/icons/icon_close-platform-btn.svg");
	background-repeat: no-repeat;
	background-position:center top;
  	transition: all ease 0.2s;
	text-indent: -9999px; 
}

.close-unfolded-content:hover {
  	background-image:url("../images/icons/icon_close-platform-btn_hover.svg");
	text-indent: -9999px; 
	background-repeat: no-repeat;
	background-position:center top;
	height: 30px;
  	width: 30px;
}
