
/* Perspective */
.compactmenu	{
	position: relative;
	-webkit-perspective: 500px;
	-moz-perspective: 500px;
	perspective: 500px;
	-webkit-perspective-origin: 50%;
	-moz-perspective-origin: 50%;
	perspective-origin: 50%;
	  /* Animation */
	}
.compactmenu ul,
.compactmenu ol,
.compactmenu li	{
	list-style: none;
	}
.compactmenu ul	{
	width: 100%;
	left: 0;
	top: 34px;
	display: inline-block;
	position: absolute;
	z-index: 1000;
	}

ul.topul{ /* Top UL of each drop down menu after script transformation */

}

.compactmenu ul li	{
	position: relative;
	}
.compactmenu ul li span.sub	{ /* "Pointer" span that gets added to LI elements containing a sub menu. */
	width: 0;
	height: 0;
	background: transparent;
	border: 5px solid transparent;
	border-color: transparent transparent transparent white; /* white is the color of the pointer */
	position: absolute;
	right: 5px;
	top: 16px;
	}
.compactmenu ul li > ul	{
	margin-top: 50px;
	}
.compactmenu a	{
	text-decoration: none;
	}
.compactmenu *	{
	margin: 0;
	padding: 0;
	}

/*
	** Define menu themes here. The naming scheme should be .compactmenu.xxx
	** where xxx is the name of the new theme
	** and also corresponds to the name entered into the initialization function $("#menu1").compactmenu({theme: xxx})

*/

/* ##### Theme #1 (theme-default) ####### */

.compactmenu.theme-default	{
	font-family: "Arial";
	}
.compactmenu.theme-default .compactanchor	{ /* text link anchor */
	font: bold 18px Germand;
	}
.compactmenu.theme-default ul > li	{
	padding: 0px;
	}
.compactmenu.theme-default ul > li .sub	{ /* "Pointer" span that gets added to LI elements containing a sub menu. */

}
.compactmenu.theme-default ul a	{
	display: block;
	color: #fff;
	padding: 12px 20px;
	background: #09f;
	}

compactmenu.theme-default ul a:hover	{
	background: #3bf;
	}

/* ##### Theme #2 (theme-theme2) ####### */

.compactmenu.theme-theme2	{
	font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS P Gothic", "Osaka", Arial, Helvetica, sans-serif;
	font-size: 90%;
	}
.compactmenu.theme-theme2 .compactanchor	{ /* CSS button anchor */
	-moz-border-radius: 9px;
	-moz-box-shadow: gray 0px 0px 10px;
	-webkit-border-radius: 9px;
	-webkit-box-shadow: gray 0 0 10px;
	background-color: #ffffff;
	background-image: -moz-linear-gradient(73deg, #0846d7, #6692f9);
	background-image: -ms-linear-gradient(73deg, #0846d7, #6692f9);
	background-image: -o-linear-gradient(73deg, #0846d7, #6692f9);
	background-image: -webkit-linear-gradient(73deg, #0846d7, #6692f9);
	background-image: linear-gradient(73deg, #0846d7, #6692f9);
	border-radius: 9px;
	border: 1px solid #06339b;
	box-shadow: gray 0px 0px 10px;
	color: #ffffff;
	display: inline-block;
	cursor: pointer;
	font-size: 1.4em;
	margin: auto;
	padding: 5px;
	text-decoration: none;
	text-shadow: #000000 5px 5px 15px;
	}
.compactmenu.theme-theme2 ul	{
	box-shadow: 2px 2px 5px gray;
	}
.compactmenu.theme-theme2 ul > li	{
	padding: 0px;
	}
.compactmenu.theme-theme2 ul > li .sub	{ /* "Pointer" span that gets added to LI elements containing a sub menu. */
	top: 14px;
	}
.compactmenu.theme-theme2 ul a	{
	display: block;
	color: #ffffff;
	background: #396ce4;
	border-bottom: 1px solid #95b0f0;
	padding: 8px 15px;
	}
.compactmenu.theme-theme2 ul a:hover	{
	background: #5984e8;
	}

/* ##### Theme #3 (theme-theme3) ####### */

.compactmenu.theme-theme3	{
	font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS P Gothic", "Osaka", Arial, Helvetica, sans-serif;
	font-size: 90%;
	}
.compactmenu.theme-theme3 .compactanchor	{ /* Icon anchor */
	width: 25px;
	height: 25px;
	border: 5px solid black;
	text-indent: -100000px;
	position: relative;
	cursor: pointer;
	}
.compactmenu.theme-theme3 .compactanchor::before	{
	position: absolute;
	border: 5px solid black;
	content: '';
	width: 100%;
	height: 20%;
	top: 5px;
	left: -5px;
	display: block;
	}
.compactmenu.theme-theme3 .compactanchor:hover, .compactmenu.theme-theme3 .compactanchor:hover::before	{
	border-color: darkred;
	}
.compactmenu.theme-theme3 .compactanchor:hover

.compactmenu.theme-theme3 ul	{
	font: normal 90% "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS P Gothic", "Osaka", Arial, Helvetica, sans-serif;
	}
.compactmenu.theme-theme3 ul > li	{
	padding: 0px;
	}
.compactmenu.theme-theme3 ul > li:hover	{
	}
.compactmenu.theme-theme3 ul > li .sub	{ /* "Pointer" span that gets added to LI elements containing a sub menu. */
	top: 14px;
	}
.compactmenu.theme-theme3 ul a	{
	padding-left: 9px;
	display: block;
	text-decoration: none;
	color: white;
	padding: 5px;
	background-color: #ce6a5c;
	border-left: 7px solid #9a3c2e;
	border-bottom: 1px solid #e2a79f;
	}
.compactmenu.theme-theme3 ul a:hover	{
	background-color: #d68377;
	border-left-color: #b04435;
	}
@-moz-keyframes inside-slide-fade-left	{
	50%	{
		-moz-transform: translateZ(-250px) rotateY(30deg);
		opacity: 1;
		}
	75%	{
		-moz-transform: translateZ(-350px) rotateY(15deg);
		opacity: 0.5;
		}
	100%	{
		-moz-transform: translateZ(-500px) rotateY(0deg);
		opacity: 0;
		}
	}
@-webkit-keyframes inside-slide-fade-left	{
	50%	{
		-webkit-transform: translateZ(-250px) rotateY(30deg);
		opacity: 1;
		}
	75%	{
		-webkit-transform: translateZ(-350px) rotateY(15deg);
		opacity: 0.5;
		}
	100%	{
		-webkit-transform: translateZ(-500px) rotateY(0deg);
		opacity: 0;
		}
	}
@keyframes inside-slide-fade-left	{
	50%	{
		transform: translateZ(-250px) rotateY(30deg);
		opacity: 1;
		}
	75%	{
		transform: translateZ(-350px) rotateY(15deg);
		opacity: 0.5;
		}
	100%	{
		transform: translateZ(-500px) rotateY(0deg);
		opacity: 0;
		}
	}
.compactmenu .inside-slide-fade-left-animation	{
	-webkit-animation: inside-slide-fade-left ease 0.4s;
	-moz-animation: inside-slide-fade-left ease 0.4s;
	-ms-animation: inside-slide-fade-left ease 0.4s;
	-o-animation: inside-slide-fade-left ease 0.4s;
	animation: inside-slide-fade-left ease 0.4s;
	}
@-moz-keyframes inside-slide-fade-left-out	{
	0%	{
		-moz-transform: translateZ(-500px) rotateY(0deg);
		opacity: 0;
		}
	25%	{
		-moz-transform: translateZ(-400px) rotateY(15deg);
		opacity: 0.5;
		}
	100%	{
		-moz-transform: translateZ(5px) rotateY(0deg);
		opacity: 1;
		}
	}
@-webkit-keyframes inside-slide-fade-left-out	{
	0%	{
		-webkit-transform: translateZ(-500px) rotateY(0deg);
		opacity: 0;
		}
	25%	{
		-webkit-transform: translateZ(-400px) rotateY(15deg);
		opacity: 0.5;
		}
	100%	{
		-webkit-transform: translateZ(5px) rotateY(0deg);
		opacity: 1;
		}
	}
@keyframes inside-slide-fade-left-out	{
	0%	{
		transform: translateZ(-500px) rotateY(0deg);
		opacity: 0;
		}
	25%	{
		transform: translateZ(-400px) rotateY(15deg);
		opacity: 0.5;
		}
	100%	{
		transform: translateZ(5px) rotateY(0deg);
		opacity: 1;
		}
	}
.compactmenu .inside-slide-fade-left-out-animation	{
	-webkit-animation: inside-slide-fade-left-out ease 0.4s;
	-moz-animation: inside-slide-fade-left-out ease 0.4s;
	-ms-animation: inside-slide-fade-left-out ease 0.4s;
	-o-animation: inside-slide-fade-left-out ease 0.4s;
	animation: inside-slide-fade-left-out ease 0.4s;
	}
@-moz-keyframes fade-out-scale-down	{
	0%	{
		opacity: 1;
		-moz-transform: translateY(0);
		}
	100%	{
		opacity: 0;
		-moz-transform: translateY(30%);
		}
	}
@-webkit-keyframes fade-out-scale-down	{
	0%	{
		opacity: 1;
		-webkit-transform: translateY(0);
		}
	100%	{
		opacity: 0;
		-webkit-transform: translateY(30%);
		}
	}
@keyframes fade-out-scale-down	{
	0%	{
		opacity: 1;
		transform: translateY(0);
		}
	100%	{
		opacity: 0;
		transform: translateY(30%);
		}
	}
.compactmenu .fade-out-scale-down-animation	{
	-webkit-animation: fade-out-scale-down ease 0.4s;
	-moz-animation: fade-out-scale-down ease 0.4s;
	-ms-animation: fade-out-scale-down ease 0.4s;
	-o-animation: fade-out-scale-down ease 0.4s;
	animation: fade-out-scale-down ease 0.4s;
	}
@-moz-keyframes fade-in-scale-up	{
	0%	{
		opacity: 0;
		-moz-transform: translateY(30%);
		}
	100%	{
		opacity: 1;
		-moz-transform: translateY(0);
		}
	}
@-webkit-keyframes fade-in-scale-up	{
	0%	{
		opacity: 0;
		-webkit-transform: translateY(30%);
		}
	100%	{
		opacity: 1;
		-webkit-transform: translateY(0);
		}
	}
@keyframes fade-in-scale-up	{
	0%	{
		opacity: 0;
		transform: translateY(30%);
		}
	100%	{
		opacity: 1;
		transform: translateY(0);
		}
	}
.compactmenu .fade-in-scale-up-animation	{
	-webkit-animation: fade-in-scale-up ease 0.4s;
	-moz-animation: fade-in-scale-up ease 0.4s;
	-ms-animation: fade-in-scale-up ease 0.4s;
	-o-animation: fade-in-scale-up ease 0.4s;
	animation: fade-in-scale-up ease 0.4s;
	}
@-moz-keyframes fade-out-fall-down	{
	0%	{
		opacity: 1;
		-moz-transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		-moz-transform: translateZ(-150px);
		}
	}
@-webkit-keyframes fade-out-fall-down	{
	0%	{
		opacity: 1;
		-webkit-transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		-webkit-transform: translateZ(-150px);
		}
	}
@keyframes fade-out-fall-down	{
	0%	{
		opacity: 1;
		transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		transform: translateZ(-150px);
		}
	}
.compactmenu .fade-out-fall-down-animation	{
	-webkit-animation: fade-out-fall-down ease 0.4s;
	-moz-animation: fade-out-fall-down ease 0.4s;
	-ms-animation: fade-out-fall-down ease 0.4s;
	-o-animation: fade-out-fall-down ease 0.4s;
	animation: fade-out-fall-down ease 0.4s;
	}
@-moz-keyframes fade-in-rise-up	{
	0%	{
		opacity: 0;
		-moz-transform: translateZ(-150px);
		}
	100%	{
		opacity: 1;
		-moz-transform: translateZ(0);
		}
	}
@-webkit-keyframes fade-in-rise-up	{
	0%	{
		opacity: 0;
		-webkit-transform: translateZ(-150px);
		}
	100%	{
		opacity: 1;
		-webkit-transform: translateZ(0);
		}
	}
@keyframes fade-in-rise-up	{
	0%	{
		opacity: 0;
		transform: translateZ(-150px);
		}
	100%	{
		opacity: 1;
		transform: translateZ(0);
		}
	}
.compactmenu .fade-in-rise-up-animation	{
	-webkit-animation: fade-in-rise-up ease 0.4s;
	-moz-animation: fade-in-rise-up ease 0.4s;
	-ms-animation: fade-in-rise-up ease 0.4s;
	-o-animation: fade-in-rise-up ease 0.4s;
	animation: fade-in-rise-up ease 0.4s;
	}
@-moz-keyframes fade-out-rising-up	{
	0%	{
		opacity: 1;
		-moz-transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		-moz-transform: translateZ(250px);
		}
	}
@-webkit-keyframes fade-out-rising-up	{
	0%	{
		opacity: 1;
		-webkit-transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		-webkit-transform: translateZ(250px);
		}
	}
@keyframes fade-out-rising-up	{
	0%	{
		opacity: 1;
		transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		transform: translateZ(250px);
		}
	}
.compactmenu .fade-out-rising-up-animation	{
	-webkit-animation: fade-out-rising-up ease 0.4s;
	-moz-animation: fade-out-rising-up ease 0.4s;
	-ms-animation: fade-out-rising-up ease 0.4s;
	-o-animation: fade-out-rising-up ease 0.4s;
	animation: fade-out-rising-up ease 0.4s;
	}
@-moz-keyframes fade-in-falling-down	{
	0%	{
		opacity: 0;
		-moz-transform: translateZ(250px);
		}
	100%	{
		opacity: 1;
		-moz-transform: translateZ(0);
		}
	}
@-webkit-keyframes fade-in-falling-down	{
	0%	{
		opacity: 0;
		-webkit-transform: translateZ(250px);
		}
	100%	{
	opacity: 1;
	-webkit-transform: translateZ(0);
	}
	}
@keyframes fade-in-falling-down	{
	0%	{
		opacity: 0;
		transform: translateZ(250px);
		}
	100%	{
		opacity: 1;
		transform: translateZ(0);
		}
	}
.compactmenu .fade-in-falling-down-animation	{
	-webkit-animation: fade-in-falling-down ease 0.4s;
	-moz-animation: fade-in-falling-down ease 0.4s;
	-ms-animation: fade-in-falling-down ease 0.4s;
	-o-animation: fade-in-falling-down ease 0.4s;
	animation: fade-in-falling-down ease 0.4s;
	}
@-moz-keyframes fade-in-rising-up	{
	0%	{
		opacity: 0;
		-moz-transform: translateZ(-250px);
		}
	100%	{
		opacity: 1;
		-moz-transform: translateZ(0);
		}
	}
@-webkit-keyframes fade-in-rising-up	{
	0%	{
		opacity: 0;
		-webkit-transform: translateZ(-250px);
		}
	100%	{
		opacity: 1;
		-webkit-transform: translateZ(0);
		}
	}
@keyframes fade-in-rising-up	{
	0%	{
		opacity: 0;
		transform: translateZ(-250px);
		}
	100%	{
		opacity: 1;
		transform: translateZ(0);
		}
	}
.compactmenu .fade-in-rising-up-animation	{
	-webkit-animation: fade-in-rising-up ease 0.4s;
	-moz-animation: fade-in-rising-up ease 0.4s;
	-ms-animation: fade-in-rising-up ease 0.4s;
	-o-animation: fade-in-rising-up ease 0.4s;
	animation: fade-in-rising-up ease 0.4s;
	}
@-moz-keyframes fade-out-fall-down2	{
	0%	{
		opacity: 1;
		-moz-transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		-moz-transform: translateZ(-250px);
		}
	}
@-webkit-keyframes fade-out-fall-down2	{
	0%	{
		opacity: 1;
		-webkit-transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		-webkit-transform: translateZ(-250px);
		}
	}
@keyframes fade-out-fall-down2	{
	0%	{
		opacity: 1;
		transform: translateZ(0);
		}
	100%	{
		opacity: 0;
		transform: translateZ(-250px);
		}
	}
.compactmenu .fade-out-fall-down2-animation	{
	-webkit-animation: fade-out-fall-down2 ease 0.4s;
	-moz-animation: fade-out-fall-down2 ease 0.4s;
	-ms-animation: fade-out-fall-down2 ease 0.4s;
	-o-animation: fade-out-fall-down2 ease 0.4s;
	animation: fade-out-fall-down2 ease 0.4s;
	}
.sample	{
	-webkit-transform: translateZ(-400px) rotateY(15deg);
	-moz-transform: translateZ(-400px) rotateY(15deg);
	-ms-transform: translateZ(-400px) rotateY(15deg);
	-o-transform: translateZ(-400px) rotateY(15deg);
	transform: translateZ(-400px) rotateY(15deg);
	}
