/* ================================================================
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/cssplay-responsive-multi-level-menu-three.html
Copyright (c) Stu Nicholls. All rights reserved.
This stylesheet and the assocaited (x)html may be modified in any
way to fit your requirements.
=================================================================== */

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

/* Define Menu Bar */
.menu {
	background-color: #cadceb;
	height: 50px;
	margin: 0;
	position: sticky;
	top: 0;
}

/* Hide Menu Button Control */
.menu input {
	top: 0;
	position: absolute;
	display: none;
}

/* Display Menu Bar */
.menu ul {
	clear: none;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
	text-align: left;
	display: block;
	width: 100%;
	max-height: 0;
	overflow: hidden;
	-webkit-transition: 0.25s;
	transition: 0.25s;
}

/* Set Menu Link Size/Colour/Etc */
.menu li {
	margin: 0;
	padding: 0;
	display: block;
	float: none;
	position: relative;
	z-index: 100;
}

.menu a {
	display: block;
	font: bold 16px sans-serif;
	color: #000000;
	background-color: #cadceb;
	line-height: 50px;
	text-decoration: none;
	padding: 0 20px 0 10px;
}

.menu > ul > li > a {
	float: left;
	text-transform: uppercase;
}

.menu > label {
	position: absolute;
	top: 7px;
	right: 10px;
	z-index: 200;
}

.menu > label img {
	cursor: pointer;
}

.menu ul li.has-sub label {
	display: block;
	width: 36px;
	height: 36px;
	background: #ffffff;
	border-radius: 5px;
	position: absolute;
	right: 10px;
	top: 7px;
	cursor: pointer;
}

.menu ul li.has-sub label:before {
	display: block;
	content: "";
	width: 18px;
	height: 2px;
	background: #000;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -9px;
	margin-top: -1px;
	-webkit-transition: 0.25s;
	transition: 0.25s;
}

.menu ul li.has-sub label:after {
	display: block;
	content: "";
	width: 2px;
	height: 18px;
	background: #000;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -1px;
	margin-top: -9px;
	-webkit-transition: 0.25s;
	transition: 0.25s;
}

.menu ul li a {
	float: none;
	border-top: 1px solid #006;
}

.menu ul ul li:before {
	content: "\25B6";
	display: block;
	width: 25px;
	float: left;
	padding-top: 4px;
	padding-left: 20px;
}

span.has-nolink {
	display: none;
}

.menu ul ul > li.has-nolink  {
	border-top: 1px solid #333333;
}

.menu ul ul > li.has-nolink ul {
	padding-left: 40px;
}


.menu li ul a {
	text-align: left;
	padding: 0 20px 0 10px;
}

.menu li ul ul a {
	text-align: left;
	padding: 0 20px 0 40px;
}

.menu li:hover > a {
	background-color: #77c7f3;
}

.menu li > a:hover {
	color: #000066;
	background-color: #77c7f3;
}

.menu li.lastitem {
	border-bottom: 1px solid #006;
}

.menu li.has-sub li.lastitem {
	border-bottom: none;
}

/* Set Hamburger Button Position */

.menu input#mainmenu:checked ~ label:before,
.menu input#mainmenu:checked ~ label:after {
	display: none;
}

/* Set Sub-Menu Button Features */

.menu input:checked ~ label:before {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);}

.menu input:checked ~ label:after {
	-webkit-transform: rotate(270deg);
	transform: rotate(270deg);}

.menu input:checked ~ ul {
	max-height: 4500px;  /* Max height of open menu */
}
/* End Sub-Menu Button Features */

.menu ul ul {
	border: 0;
	margin: 0;
}


/* Set Sub-Menu Options */
.menu li.has-sub {
	font: bold 16px sans-serif;
	color: #000000;
	background-color: #cadceb;
	line-height: 45px;
}

/* Set Top Level Menu Options */
.menu li.has-sub span {
	padding-left: 10px;
	text-transform: uppercase;
}

/* Set second Level Sub-Menu Options */
.menu li.has-sub li.has-sub ul {
	position: relative;
	top: 0px;
	padding-left: 40px;
}
/* Set third Level Sub-Menu Options */
.menu li.has-sub li.has-sub li.has-sub label {
	right: 50px;
}

/* Set fourth Level Sub-Menu Options */
.menu li.has-sub li.has-sub li.has-sub li.has-sub label {
	right: 90px;
}

}