/*Set the parent <li>’s CSS position property to ‘relative’.*/
ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  width: 100%;
}

ul li {
  position: relative;
  width: 100%;
  right: 0;
}

/*gallery*/
.test-gallery{
    padding:0;
}

.test-gallery:hover{
    padding:0;
}


/*The CSS to hide the sub menus.*/
li ul {
	display: none;
	}

ul li a {
  font: 300 15px/19px "Open Sans", Arial, sans-serif;
  display: block;
  color: #555;
  padding: 10px 10px;
  transition: all 0.3s;
  background-color: #fff;
  text-decoration: none;
}

ul li a:hover {
	background: #A7C752;
	text-decoration: none;
	}

/*Displays the dropdown menu on hover.*/
li:hover > ul {
  display: block;
  position: absolute;
}

	
.item1:hover a:hover {
	background: #6E90CA; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: black;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item2:hover a:hover {
	background: #E26276; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: black;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item3:hover a:hover {
	background: #EFEFEF; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: black;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item4:hover a:hover {
	background: #EE9D6E; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: black;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item5:hover a:hover {
	background: #ECC340; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: black;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item6:hover a:hover {
	background: #67B045; 
	font: 300 14px/18px "Open Sans", Arial, sans-serif;
    display: block;
    color: black;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item7:hover a:hover {
	background: #879586; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: white;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item8:hover a:hover {
	background: #C1893F; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: black;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item9:hover a:hover {
	background: #9F6FAD; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: black;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item10:hover a:hover {
	background: #05090A; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: white;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}
.item11:hover a:hover {
	background: #9D9D9D; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: white;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
}

.menu-li li:hover a {
  background: #fff; 
  font: 300 15px/19px "Open Sans", Arial, sans-serif;
  display: block;
  color: #555;
  padding: 10px 10px;
  transition: all 0.3s;
  text-decoration: none;
	}

li:hover li a:hover {
	background: #f7f7f7; 
	font: 300 15px/19px "Open Sans", Arial, sans-serif;
    display: block;
    color: #555;
    padding: 10px 10px;
    transition: all 0.3s;
	text-decoration: none;
	}

.main-navigation li ul li {
	border-top: 0; 
	}
	
.main-navigation{
	position: absolute;
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
	text-align: left;
	min-width: 170px;
	/*top: 100%;*/
	right: 0;
	box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
	transition: all 0.3s;
}


@media only screen and (max-width:1200px) {

.main-navigation{
	position: absolute;
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
	text-align: left;
	min-width: 170px;
	top: -14px;
	right: 0;
	box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
	transition: all 0.3s;
}
}

/*Displays second level dropdown menus to the right of the first level dropdown menu.*/
ul ul{
	right: 100%;
	top:0;
}

/*Simple clearfix.*/
ul:before,
ul:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

ul:after {
	clear: both;
	}
	
/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: absolute;
    display: block;
	right: 0;
	width: 172px;
	background: #e4e5e4;
	cursor: pointer;
	height: 110px;
	transition: all 0.3s;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 170px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
	right: 0;
	transition: all 0.3s;
	
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
	max-height: 1000px;
	overflow: visible;
	opacity: 1;
	z-index: 50;
	margin-top: 110px;
	transition: all 0.3s;
}

.text{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60px;
	font-family: 'Open Sans';
	margin-left: -30px;
	text-align: center;
	font-size: 17px;
	font-weight: 300;
	line-height: 20px;
	height: 20px;
	margin-top: -10px;
	text-transform: uppercase;
	color: #919090;
}

.menucorner{
    width:0;
    height:0;
    border-top:18px solid #A7C752;
    border-bottom:18px solid #A7C752;
    border-left:17px solid #FFF;
    position:absolute;
    top:0;
    left:-15px;
}

@media only screen and (max-width: 1200px) {
    .dropdown{
        height:36px;
        width:45px;
        margin-top:-18px;
        right:10px;
        background:#A7C752;
        top:50%;
    }
    .dropdown:hover .dropdown-content {
    display: block;
	max-height: 1000px;
	overflow: visible;
	opacity: 1;
	z-index: 50;
	margin-top: 50px;
	transition: all 0.3s;
}
}

.barsicon{
    position:absolute;
    top:50%;
    left:50%;
    width:30px;
    height:30px;
    font-size:18px;
    text-align:center;
    line-height:30px;
    margin-left:-15px;
    margin-top:-15px;
    color:#FFF;
}