* {
  box-sizing: border-box;
}


/* Advanced Checkbox Hack */

@-webkit-keyframes bugfix {
  from {
    padding: 0;
  }

  to {
    padding: 0;
  }
}

nav input[type=checkbox] {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

nav label {
  display: none;
  
  user-select: none; text-align:center;
}

/* background for li / select */
/* custom-dropdown */
nav[role="custom-dropdown"] {
  position: relative;
  width: 100%; text-align:center; 
}
nav[role="custom-dropdown"] a,
nav[role="custom-dropdown"] label {
  color: #333;
  text-decoration: none;
  font: 1.4em sans-serif;
  transition: color .3s ease-in-out; text-shadow: 0 1px white;
}
nav[role="custom-dropdown"] ul {
  padding: 0px;
  margin: 0px;
  width: 100%;
  list-style: none; text-align:center; 
}
nav[role="custom-dropdown"] ul > li {
  float: left;
  padding: .55em .55em;
  width: 19%;
  background-image: url('../images/bgfootmenu.jpg');
  text-align: center;
  transition-duration: .3s;
  transition-timing-function: ease-in-out;
  transition-property: box-shadow, color;
  vertical-align:baseline;
  
}
nav[role="custom-dropdown"] ul > li:hover {
  
  color: #fff;
  
}
nav[role="custom-dropdown"] ul > li:hover > a {
  color: #fff; text-shadow: 0 1px #000, 0 0 0.1em #666;
}

/* small screens */
@media screen and (max-width: 50em) {

  nav[role="custom-dropdown"] ul {
    display: none;
    height: 100%;
  }
  nav[role="custom-dropdown"] label {
    position: relative;
    display: block;
    width: 100%;
    min-height: 2.25em;
    padding: .45em;
    font-size: 1.1em;
    margin: 0;
    border: 0.05em solid rgba(60, 60, 60, 0.2);
    background-image: url(../images/bgfootmenu.jpg);
  }
  nav[role="custom-dropdown"] label:after {
    position: absolute;
    right: .25em;
    top: 0;
    content: "\2261";
    font-size: 1.8em;
  }
  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ label:after {
    color: #222;
  }
  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ ul {
    display: block;
  }
  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ ul > li {
    width: 100%;
    opacity: .8;
    text-align: left;
  }
  nav[role="custom-dropdown"] input[type=checkbox]:checked ~ ul > li:after {
    position: absolute;
    right: .25em;
    content: "\203A";
    font: bold 1.4em sans-serif;
  }
}
  
  
  /* background for top menu li / select */
/* custom-top1 */
nav[role="custom-top1"] {
  position: relative;
  width: 100%; text-align:center; 
}
nav[role="custom-top1"] a,
nav[role="custom-top1"] label {
  color: #fff;
  text-decoration: none;
  font: 1.1em sans-serif;
  transition: color .3s ease-in-out;
}
nav[role="custom-top1"] ul {
  padding: 0px;
  margin: 0px;
  width: 100%;
  list-style: none; text-align:center; 
}
nav[role="custom-top1"] ul > li {
  float: left;
  padding: .6em .25em;
  width: 19%;
  background-image: url('../images/topmbg1.jpg') repeat-x top;
  text-align: center;
  transition-duration: .3s;
  transition-timing-function: ease-in-out;
  transition-property: box-shadow, color;
  
  cursor: pointer;
}
nav[role="custom-top1"] ul > li:hover {
	background-color: rgba(240, 46, 8, 0.85);
	color: #fff;
	box-shadow: 0 0.05em 0.25em 0 rgba(240, 46, 8, 0.35), inset 0 0 0 2em rgba(240, 46, 8, 0.3);
	text-decoration: none; 
}
nav[role="custom-top1"] ul > li:hover > a {
  color: #333; text-decoration:none;
}

/* small screens */
@media screen and (max-width: 50em) {

  nav[role="custom-top1"] ul {
    display: none;
    height: 100%;
  }
  nav[role="custom-top1"] label {
    position: relative;
    display: block;
    width: 100%;
    min-height: 2.25em;
    padding: .45em;
    font-size: 1.1em;
    margin: 0;
    border: 0.05em solid rgba(60, 60, 60, 0.2);
    background-image: url(../images/topmbg1.jpg);
  }
  nav[role="custom-top1"] label:after {
    position: absolute;
    right: .25em;
    top: 0;
    content: "\2261";
    font-size: 1.8em;
  }
  nav[role="custom-top1"] input[type=checkbox]:checked ~ label:after {
    color: #222;
  }
  nav[role="custom-top1"] input[type=checkbox]:checked ~ ul {
    display: block;
  }
  nav[role="custom-top1"] input[type=checkbox]:checked ~ ul > li {
    width: 100%;
    opacity: 1;
    text-align: left;
  }
  nav[role="custom-top1"] input[type=checkbox]:checked ~ ul > li:after {
    position: absolute;
    right: .25em;
    content: "\203A";
    font: bold 1.4em sans-serif;
  }
}



 /* background for top menu li / select */
/* custom-top2 */
nav[role="custom-top3"] {
  position: relative;
  width: 100%; text-align:center; margin:0 auto;
}
nav[role="custom-top3"] a,
nav[role="custom-top3"] label {
  color: #fff;
  text-decoration: none; width:100%; text-shadow: 0 1px #000;
}
nav[role="custom-top3"] ul {
  padding: 0;
  margin: 0 auto;
  width: 100%;
  list-style: none; text-align:center; 
}
nav[role="custom-top3"] ul > li {
	float: left;
	padding: .65em .25em;
	width: 14.28%;
	text-align: center;
	background-color: #f02e08;
	margin: 0;
}
nav[role="custom-top3"] ul > li:hover {
	background-image: url('../images/topmbggr.jpg');
	color: #333;
	background-position: top;
	background-repeat: repeat-x; text-shadow: 0 1px white;
}
nav[role="custom-top3"] ul > li:hover > a {
	color: #333;
	text-decoration:none;
	font-weight: bold; text-shadow: 0 1px white;
}

/* small screens */
@media screen and (max-width: 44em) {

  nav[role="custom-top3"] ul {
    display: none;
    height: 100%;
  }
  nav[role="custom-top3"] label {
    position: relative;
    display: block;
    width: 100%;
    min-height: 2.25em;
    padding: .45em;
    font-size: 1.1em;
    margin: 0;
    border: 0.05em solid rgba(60, 60, 60, 0.2);
    background-image: url(../images/topmbg1.jpg); background-position: top;
	background-repeat: repeat-x;
  }
  nav[role="custom-top3"] label:after {
    position: absolute;
    right: .25em;
    top: 0;
    content: "\2261";
    font-size: 1.8em;
  }
  nav[role="custom-top3"] input[type=checkbox]:checked ~ label:after {
    color: #222;
  }
  nav[role="custom-top3"] input[type=checkbox]:checked ~ ul {
    display: block;
  }
  nav[role="custom-top3"] input[type=checkbox]:checked ~ ul > li {
    width: 100%;
    opacity: 1;
    text-align: left;
  }
  nav[role="custom-top3"] input[type=checkbox]:checked ~ ul > li:after {
    position: absolute;
    right: .25em;
    content: "\203A";
    font: bold 1.4em sans-serif;
  }
}
/* small screens */
@media screen and (max-width: 50em) {

  nav[role="custom-top3"] ul {
    display: none;
    height: 100%;
  }
  nav[role="custom-top3"] label {
    position: relative;
    display: block;
    width: 100%;
    min-height: 2.25em;
    padding: .45em;
    font-size: 1.1em;
    margin: 0;
    border: 0.05em solid rgba(60, 60, 60, 0.2);
    background-image: url(../images/topmbg1.jpg); background-position: top;
	background-repeat: repeat-x;
  }
  nav[role="custom-top3"] label:after {
    position: absolute;
    right: .25em;
    top: 0;
    content: "\2261";
    font-size: 1.8em;
  }
  nav[role="custom-top3"] input[type=checkbox]:checked ~ label:after {
    color: #222;
  }
  nav[role="custom-top3"] input[type=checkbox]:checked ~ ul {
    display: block;
  }
  nav[role="custom-top3"] input[type=checkbox]:checked ~ ul > li {
    width: 100%;
    opacity: 1;
    text-align: left;
  }
  nav[role="custom-top3"] input[type=checkbox]:checked ~ ul > li:after {
    position: absolute;
    right: .25em;
    content: "\203A";
    font: bold 1.4em sans-serif;
  }
}

 /* background for top menu li / select */
/* custom-top3 */
nav[role="custom-top2"] {
  position: relative;
  width: 100%; text-align:center; margin:0 auto;
}
nav[role="custom-top2"] a,
nav[role="custom-top2"] label {
  color: #000;
  text-decoration: none; width:100%; font-size:12px;
}
nav[role="custom-top2"] ul {
  padding: 0;
  margin: 0 auto;
  width: 100%;
  list-style: none; text-align:center; 
}
nav[role="custom-top2"] ul > li {
	float: left;
	padding: .65em .25em;
	width: 20%;
	text-align: center;
	background-image:url(../images/topmbg3.jpg);
	background-repeat: repeat-x;
	background-position: top;
	margin: 0; font-size:11px;
}
nav[role="custom-top2"] ul > li:hover {
	background-image: url('../images/topmbg3.jpg');
	color: #333;
	background-position: top;
	background-repeat: repeat-x;
}
nav[role="custom-top2"] ul > li:hover > a {
	color: #333;
	text-decoration:none; font-weight:bold;
}

/* small screens */
@media screen and (max-width: 44em) {

  nav[role="custom-top2"] ul {
    display: none;
    height: 100%;
  }
  nav[role="custom-top2"] label {
    position: relative;
    display: block;
    width: 100%;
    min-height: 2.25em;
    padding: .25em;
    font-size: 1.0em;
    margin: 0;
    border: 0.05em solid rgba(60, 60, 60, 0.2);
    background-image: url(../images/topmbg3.jpg); background-position: top;
	background-repeat: repeat-x;
  }
  nav[role="custom-top2"] label:after {
    position: absolute;
    right: .25em;
    top: 0;
    content: "\2261";
    font-size: 1.8em;
  }
  nav[role="custom-top2"] input[type=checkbox]:checked ~ label:after {
    color: #222;
  }
  nav[role="custom-top2"] input[type=checkbox]:checked ~ ul {
    display: block;
  }
  nav[role="custom-top2"] input[type=checkbox]:checked ~ ul > li {
    width: 100%;
    opacity: 1;
    text-align: left;
  }
  nav[role="custom-top2"] input[type=checkbox]:checked ~ ul > li:after {
    position: absolute;
    right: .25em;
    content: "\203A";
    font: bold 1.4em sans-serif;
  }
}

/* small screens */
@media screen and (max-width: 50em) {

  nav[role="custom-top2"] ul {
    display: none;
    height: 100%;
  }
  nav[role="custom-top2"] label {
    position: relative;
    display: block;
    width: 100%;
    min-height: 2.25em;
    padding: .25em;
    font-size: 1.0em;
    margin: 0;
    border: 0.05em solid rgba(60, 60, 60, 0.2);
    background-image: url(../images/topmbg3.jpg); background-position: top;
	background-repeat: repeat-x;
  }
  nav[role="custom-top2"] label:after {
    position: absolute;
    right: .25em;
    top: 0;
    content: "\2261";
    font-size: 1.8em;
  }
  nav[role="custom-top2"] input[type=checkbox]:checked ~ label:after {
    color: #222;
  }
  nav[role="custom-top2"] input[type=checkbox]:checked ~ ul {
    display: block;
  }
  nav[role="custom-top2"] input[type=checkbox]:checked ~ ul > li {
    width: 100%;
    opacity: 1;
    text-align: left;
  }
  nav[role="custom-top2"] input[type=checkbox]:checked ~ ul > li:after {
    position: absolute;
    right: .25em;
    content: "\203A";
    font: bold 1.4em sans-serif;
  }
}