/************************************************************************************
RESET
*************************************************************************************/
html, body, body div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

blockquote, q { quotes: none; }

blockquote:before, blockquote:after,
q:before, q:after { content: ""; content: none; }

ins { background-color: #ff9; color: #000; text-decoration: none; }

mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }

del { text-decoration: line-through; }

abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }

table { border-collapse: collapse; border-spacing: 0; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */

pre, code, kbd, samp { font-family: monospace, sans-serif; }

html { overflow-y: scroll; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; }
  
ul, ol { margin-left: 2em; }
ol { list-style-type: decimal; }

nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }

small { font-size: 85%; }
b, strong, th { font-weight: bold; }

td { vertical-align: top; }

sub, sup { font-size: 75%; line-height: 0; position: relative; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

pre {
  white-space: pre; white-space: pre-wrap; word-wrap: break-word;
  padding: 15px;
}

.ie6 legend, .ie7 legend { margin-left: -7px; } 

button, input, select, textarea { width: auto; overflow: visible; margin: 0; font-size: 100%; font-family: sans-serif; vertical-align: baseline; }

textarea { overflow: auto; vertical-align:text-top; }

label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }

input::-moz-focus-inner,
button::-moz-focus-inner { border: 0; padding: 0; }

input:valid, textarea:valid {  }
input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; }
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }

.ie7 img { -ms-interpolation-mode: bicubic; }

body, select, input, textarea {
  color: #444;
}

h1, h2, h3, h4, h5, h6 { font-weight: bold; }

.red { color: red; }

::-moz-selection { background: green; color:#fff; text-shadow: none; }
::selection { background:green; color:#fff; text-shadow: none; }

@font-face {
    font-family: 's1';
    src: url('./fonts/s1.eot');
    src: url('./fonts/s1.otf');
    src: url('./fonts/s1.eot?#iefix') format('embedded-opentype'),
         url('./fonts/s1.woff') format('woff'),
         url('./fonts/s1.ttf') format('truetype'),
         url('./fonts/s1.svg#s1') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 's2';
    src: url('./fonts/s2.eot');
    src: url('./fonts/s2.otf');
    src: url('./fonts/s2.eot?#iefix') format('embedded-opentype'),
         url('./fonts/s2.woff') format('woff'),
         url('./fonts/s2.ttf') format('truetype'),
         url('./fonts/s2.svg#s2') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 's3';
    src: url('./fonts/s3.eot');
    src: url('./fonts/s3.otf');
    src: url('./fonts/s3.eot?#iefix') format('embedded-opentype'),
         url('./fonts/s3.woff') format('woff'),
         url('./fonts/s3.ttf') format('truetype'),
         url('./fonts/s3.svg#s3') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 's4';
    src: url('./fonts/s4.eot');
    src: url('./fonts/s4.otf');
    src: url('./fonts/s4.eot?#iefix') format('embedded-opentype'),
         url('./fonts/s4.woff') format('woff'),
         url('./fonts/s4.ttf') format('truetype'),
         url('./fonts/s4.svg#s4') format('svg');
    font-weight: normal;
    font-style: normal;
}
/************************************************************************************
Clear
*************************************************************************************/
.clear {
	clear:both;
	display:block;
	overflow:hidden;
	visibility:hidden;
	width:0;
	height:0
}

.clearfix:after {
	clear:both;
	content:' ';
	display:block;
	font-size:0;
	line-height:0;
	visibility:hidden;
	width:0;
	height:0
}

.clearfix {
	display:inline-block
}

* html .clearfix {
	height:1%
}

.clearfix {
	display:block
}

.clear_border {
	border: none !important;
}
/************************************************************************************
Style
*************************************************************************************/
body {
	width: 100%;
	font-size: 16px;
	font-family: "Myriad Set Pro","Lucida Grande","Helvetica Neue","Helvetica","Arial","Verdana","sans-serif";
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}

strong {
	font-weight: bold;
}

a {
	text-decoration: none;
	outline: none;
	color: black;
}

a:hover {
	color: #AFAFAF;
}

/************************************************************************************
NAVIGATION
*************************************************************************************/
nav {
	width: 100%;
	background: #444;
	background: rgba(0,0,0,0.6);
}

nav ul li {
	width: 135px;
	display: inline-block;
	vertical-align: top;
	list-style-type: none;
	color: white;
	font-size: 17px;
	text-align: center;
	transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

nav ul.slimmenu {
    padding: 0px;
	display: table;
	margin: 0 auto;
}

nav ul.slimmenu:after {
    clear: both;
    content: " ";
    display: block;
    font-size: 0;
    height: 0;
    visibility: hidden;
}

nav ul.slimmenu,nav ul.slimmenu li{
}
nav ul.slimmenu li {
    list-style: none;
    float:left;
	display: table-cell;
	position: relative;
}
nav ul.slimmenu li a {
    text-decoration: none;
    display: block;
	color: white;
	font-weight: 150%;
    padding: 14px 20px;
    transition: background 0.3s ease-out; /* explorer 10 */
    -webkit-transition: background 0.3s ease-out; /* chrome & safari */
    -moz-transition: background 0.3 ease-out; /* firefox */
    -o-transition: background 0.3 ease-out; /* opera */
}
nav ul.slimmenu li.hover:hover a, nav ul.slimmenu li.hover:hover > ul li a  {
}
nav ul.slimmenu li:hover > a {
    color: grey;
}
nav ul.slimmenu li:hover > ul {
    visibility: visible;
}
nav ul.slimmenu li ul{
    display: inline;
    visibility: hidden;
    position: absolute;
	left: 80%;
    padding:0px;
}
nav ul.slimmenu li ul li{
	float: none;
	width: 150px;
	display: block;
	margin-left: -90px;
}
nav ul.slimmenu li ul li a {
    color: white;
	width: auto;
}
nav ul.slimmenu li ul li a:hover, nav ul.slimmenu li ul li a .active{
	color: grey;
}

.page {
	width: 170px !important;
	text-align: left !important;
	font-size: 26px;
	font-family: s2;
	line-height: 46px;
}

nav ul li .active {
    color: grey !important;
}
/************************************************************************************
MAIN
*************************************************************************************/
.main {
	width: 100%;
	max-width: 1024px;
	min-height: 600px;
	margin: 15px auto;
}

.jbox, .main p {
	width: 98%;
	margin: 0 auto;
}

.main p {
	margin-bottom: 15px;
	font-size: 14px;
}
/************************************************************************************
FOOTER
*************************************************************************************/
footer {
	min-width: 100%;
	height: 15px;
	padding: 10px 0 40px 0;
	margin: 0 auto;
	color: white;
	background: #444;
	background: rgba(0,0,0,0.6);
	text-align: center;
}

footer a {
	color: white;
}
/************************************************************************************
MEDIA QUERIES
*************************************************************************************/
/* Rest */
@media screen and (max-width: 1024px) {
	nav ul li {
		text-align: left !important;
	}
	
	nav ul.slimmenu li a {
		font-size: 75%;
	}
	
	.page {
		width: 0 !important;
		height: 0 !important;
		visibility: hidden !important;
		font-size: 0 !important;
		line-height: 0 !important;
	}
}