.ddsmoothmenu{width: 100%;display: none;}
.ddsmoothmenu ul{z-index:100; margin:0; padding:0; list-style-type:none;}
.ddsmoothmenu ul li ul{position:absolute; left:-3000px; display:none; visibility:hidden; width:100%; box-shadow:0 0 3px rgba(0,0,0,.2)}
.ddsmoothmenu ul li ul li ul{ top: 0; margin:0 0 0 0px; }
.ddsmoothmenu ul li{position: relative;display: inline; float: left; width:14.28%; }
.ddsmoothmenu ul li ul li{display: list-item; float: none; width:100%;}

.ddsmoothmenu ul li ul {  top:118px !important}
.ddsmoothmenu ul li ul li ul{  top:0 !important}

/*Top level menu link items style*/
.ddsmoothmenu ul li{background: url(../images/dot.png) no-repeat right 16px;}
.ddsmoothmenu ul li:last-child{background: none;}
.ddsmoothmenu ul li a{ display: block; padding: 6px 0px 10px 0; text-align: center; font-size:21px; margin-top:75px;color: #fff;font-family: "華康儷粗圓","微軟正黑體";}
.ddsmoothmenu ul li a:hover{ text-decoration:none;}
.ddsmoothmenu ul li a:hover p{top: -7px; opacity: 0.8;}
.ddsmoothmenu ul li a:link, .ddsmoothmenu ul li a:visited{ }
.ddsmoothmenu ul li a.selected {}

.ddsmoothmenu ul li ul li{background: none;}
.ddsmoothmenu ul li ul li a{ width: auto; padding: 5px 0; margin: 0; border-top: 0px solid #ddd; background:#fff; font-size:15px;font-family: "微軟正黑體"; display:block; color: #333;}
.ddsmoothmenu ul li ul li + li a{ border-top: 1px solid #ddd; }

.ddsmoothmenu ul li ul li ul li a{ border-top: 0px solid #ddd; }
.ddsmoothmenu ul li ul li ul li + li a{ border-top: 1px solid #ddd; }

.menu_item p{border-radius: 100px;width: 111px;height: 111px;position: absolute;top: -16px;left: 29px; z-index: -1;}

.ddsmoothmenu span{ width:137px; height:137px; position:absolute; top:-5px; left:-13px; z-index:1}
.btn_school p{background: #bef4ff; border: 3px solid #2973b6;}
.btn_school span{ background:url(../images/menu_icon01.png) no-repeat center top; }
.btn_school a{ background: url(../images/menu_bg01.png) no-repeat center top; }
.btn_school ul li a:hover, .btn_school ul li a.selected, .btn_school ul li a.current{ background:#00a5e3; color:#fff }


.btn_religion   span.icon{ background:url(../images/menu_icon06.png) no-repeat center top; }
.btn_religion p{background: #802154; border: 3px solid #b8246c;}
.btn_religion a{ background: url(../images/menu_bg06.png) no-repeat center top; }
.btn_religion ul li a:hover, .btn_religion ul li a.selected, .btn_religion ul li a.current{ background: #802154; color:#fff}

.btn_course   span.icon{ background:url(../images/menu_icon03.png) no-repeat center top; top: 4px;}
.btn_course p{background: #0eceb6; border: 3px solid #108d78;}
.btn_course a{ background: url(../images/menu_bg03.png) no-repeat center top; }
.btn_course ul li a:hover, .btn_course ul li a.selected, .btn_course ul li a.current{ background:#4bb491; color:#fff}

.btn_develop   span.icon{ background:url(../images/menu_icon04.png) no-repeat center top;top: -10px; }
.btn_develop  p{background: #d7ecfc; border: 3px solid #0c6090;}
.btn_develop a{ background: url(../images/menu_bg04.png) no-repeat center top; }
.btn_develop ul li a:hover, .btn_develop ul li a.selected, .btn_develop ul li a.current{ background:#0c6090; color:#fff}

.btn_events  span.icon{ background:url(../images/menu_icon05.png) no-repeat center top;top: 3px; }
.btn_events p{background: #ffea00; border: 3px solid #ffd200;}
.btn_events a{ background: url(../images/menu_bg05.png) no-repeat center top; }
.btn_events ul li a:hover, .btn_events ul li a.selected, .btn_events ul li a.current{ background:#e9a812; color:#fff}

.btn_parents span.icon{ background:url(../images/menu_icon07.png) no-repeat center top; }
.btn_parents p{background: #65730a; border: 3px solid #849f0d;}
.btn_parents a{ background: url(../images/menu_bg07.png) no-repeat center top; }
.btn_parents ul li a:hover, .btn_parents ul li a.selected, .btn_parents ul li a.current{ background:#a7bb23; color:#fff}

.btn_graduate   span.icon{ background:url(../images/menu_icon02.png) no-repeat center top; }
.btn_graduate p{background: #fff; border: 3px solid #ff94b6;}
.btn_graduate a{ background: url(../images/menu_bg02.png) no-repeat center top; }
.btn_graduate ul li a:hover, .btn_graduate ul li a.selected, .btn_graduate ul li a.current{ background:#fa538d; color:#fff}

* html .ddsmoothmenu ul li a{ display: inline-block;}
* html .ddsmoothmenu{height: 1%;} 


.downarrowclass{ position: absolute; top: 0px; right: 0px; }
.rightarrowclass{ position: absolute;top: 13px;right: 5px;}
.leftarrowclass{margin-right: 5px;}
.ddshadow{ position: absolute;left: 0;top: 0;width: 0;height: 0;background-color: #ccc;}
.toplevelshadow{ margin: 5px 0 0 5px; opacity: 0.8; }
.ddcss3support .ddshadow.toplevelshadow {margin: 0;}
.ddcss3support .ddshadow {
background-color: transparent;
box-shadow: 5px 5px 5px #aaa; /* box-shadow color generally should be a little darker than that for the NON CSS3 capable browsers background-color */
-moz-box-shadow: 5px 5px 5px #aaa;
-webkit-box-shadow: 5px 5px 5px #aaa;
}

/* ######### Mobile menu container CSS ######### */

div.ddsmoothmobile{ /* main mobile menu container */
background: #414141;
color: white;
position: fixed;
top: 0;
left: 0;
width: 200px; /* width of mobile menu */
height: 300px;
overflow: hidden;
visibility: hidden;
border-radius: 0 0 10px 0;
box-shadow: 0 0 10px gray;
}

div.ddsmoothmobile a{
color: white;
text-decoration: none;
}

div.ddsmoothmobile div.topulsdiv{ /* Single DIV that surrounds all top level ULs before being flattened, or the ULs on the "frontpage" of the menu */
position: relative;
background: #414141;
overflow-y: auto;
width: 100%;
height: 100%;
}


div.ddsmoothmobile ul{ /* style for all ULs in general inside mobile menu */
list-style: none;
width: 100%;
top: 0;
left: 0;
background: #414141;
margin: 0;
padding: 0;
}

div.ddsmoothmobile div.topulsdiv ul.submenu{ /* top level ULs style */
}


div.ddsmoothmobile ul.submenu{ /* sub level ULs style */
position: absolute;
height: 100%;
overflow-y: auto;
}

div.ddsmoothmobile ul li{
border-bottom: 1px solid gray;
position: relative;
font-weight: bold;
}

div.ddsmoothmobile ul li.breadcrumb{ /* breadcrumb LI that's added to the top of every sub level UL */
cursor: pointer;
padding: 10px;
background: black;
}

div.ddsmoothmobile ul li a{
display: block;
padding: 6px;
}

div.ddsmoothmobile ul li a:hover{
background: black;
}

/* ############# Animated Drawer icon (mobile menu toggler) CSS ############# */

.animateddrawer{
	font-size: 10px; /* Base font size. Adjust this value to modify size of drawer icon */
  width: 3em; 
  height: 2.8em; 
  outline: none;
	position: fixed; /* BY default, make toggler fixed on screen */
	display: none;
	top: 10px; /* Position at upper right corner */
	right: 10px;
	background: white;
	z-index: 1000;
}

.animateddrawer:before, .animateddrawer:after{
  position: absolute;
  content: '';
  display: block;
  width: 100%;
  height: 0.6em; /* height of top and bottom drawer line */
  background: black;
  border-radius: 2px;
  top: 0;
  left: 0;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in; /* set transition type and time */
  transition: all 0.3s ease-in; 
}

.animateddrawer:after{
  top: auto;
  bottom: 0;
}

.animateddrawer span{
  width: 100%;
  height: 0.6em; /* height of middle drawer line */
  background: black;
  position: absolute;
  top: 50%;
  margin-top: -0.3em; /* set this to - half of middle drawer line height */
  border-radius: 2px;
  -ms-transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  -webkit-transition: all 0.3s ease-in 0.3s; /* set transition type and time */
  transition: all 0.3s ease-in 0.3s;
}

.animateddrawer span::after{
  content: '';
  display: block;
  width: 100%;
  height: 0.6em; /* height of middle drawer line */
  background: black;
  border-radius: 2px;
  position: absolute;
  -ms-transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  -webkit-transition: all 0.3s ease-in 0.3s; /* set transition type and time */
  transition: all 0.3s ease-in 0.3s;
}

.animateddrawer.open{
}

.animateddrawer.open:before{ /* style when .open class is added to button */
  top: 50%;
  margin-top: -0.3em; /* set this to - half of top drawer line height */
  opacity: 0;
}

.animateddrawer.open:after{ /* style when .open class is added to button */
  bottom: 50%;
  opacity: 0;
}

.animateddrawer.open span{ /* style when .open class is added to button */
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.animateddrawer.open span:after{ /* style when .open class is added to button */
  -ms-transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

@media screen and (max-width: 800px) {
.btn_school ul li a.current,.btn_religion ul li a.current,.btn_course ul li a.current,.btn_develop ul li a.current,.btn_events ul li a.current,
.btn_parents ul li a.current,.btn_graduate ul li a.current{ background: none; color:#ffa200; font-weight:bold }

.btn_school a,.btn_religion a,.btn_course a,.btn_develop a,.btn_events a,
.btn_parents a,.btn_graduate a{ background: none; color:#333; }

.menu_item p{background: 0;border: 0}
.btn_school span,.btn_religion span,.btn_course span,.btn_develop span,.btn_events span,
.btn_parents span,.btn_graduate span{ background: none; }

.btn_school ul li a:hover, .btn_school ul li a.selected, .btn_school ul li a.current,
.btn_religion ul li a:hover, .btn_religion ul li a.selected, .btn_religion ul li a.current,
.btn_course ul li a:hover, .btn_course ul li a.selected, .btn_course ul li a.current,
.btn_develop ul li a:hover, .btn_develop ul li a.selected, .btn_develop ul li a.current,
.btn_events ul li a:hover, .btn_events ul li a.selected, .btn_events ul li a.current,
.btn_parents ul li a:hover, .btn_parents ul li a.selected, .btn_parents ul li a.current,
.btn_graduate ul li a:hover, .btn_graduate ul li a.selected, .btn_graduate ul li a.current
{ background:#ffa200; color:#fff }
}