@charset "utf-8";

/* Loading Fonts */

@font-face {
    font-family: 'loraregular';
    src: url('lora-regular-webfont.eot');
    src: url('lora-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('lora-regular-webfont.woff2') format('woff2'),
         url('lora-regular-webfont.woff') format('woff'),
         url('lora-regular-webfont.ttf') format('truetype'),
         url('lora-regular-webfont.svg#loraregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

/* Main Css */

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	font-family: 'loraregular', Georgia, Palatino, serif;
	background: url(../img/mathbg.png) repeat;
}

html {
	overflow-y: scroll;
}

#wrapper {
	min-height: 100%;
	width: 1300px;
	margin: 0 auto;
	position: relative;
	background: #fff;
}

#header {
	width: 100%;
}

#jap-header {
	width: 100%;
	height: 150px;
	background-image: url(../img/jap_header.jpg);
}

#jap-header a {
	text-decoration: none;
}

#jap-header a h1:hover {
	color: #496BA6;
}

h1 {
	margin: 0;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	line-height: 150px;
	font-family: 'loraregular', Georgia, Palatino, serif;
	font-weight: normal;
	font-size: 4em;
	font-style: italic;
	color: #fff;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

/* Main Nav */

#main-nav {
	text-align: center;
	background: #252B38;
	position: relative;
	z-index: 99;
	font-size: 0;
	width: 100%;
}

#main-nav ul {
	list-style: none;
	margin: 0 auto;
	padding: 0;
}

#main-nav ul a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	padding: 10px 50px;
	font-family: 'loraregular', Georgia, Palatino, serif;
}

#main-nav ul li {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0;
	text-align: left;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

#main-nav ul li:hover {
	background: #1d3565;
	color: #fff;
}

#main-nav ul ul {
	display: none;
	position: absolute;
	background: #252B38;
}

#main-nav ul ul li {
	display: block;
}

#main-nav ul ul a {
	line-height: 1.4em;
	padding: 1em 1.4em;
}

#main-nav ul li:hover > ul {
	display: block;
}

/* Content */

.p-link {
	text-decoration:none;
	color: #1d3565;
}
.p-link:hover {
	color:#95D2EA;
}

.r-link {
	text-decoration: none;
	font-size: 14px;
	line-height: 20px;
	background: #252B38;
	color: #fff;
	padding: 5px 8px;
	margin: 5px 0;
}

.r-link:hover {
	background: #1d3565;
	color: #fff;
}

/* Footer */

#footer {
	background: #1d3565;
	width: 100%;
	height: 300px;
	position: absolute;
	bottom: 0;
	left: 0;
	font-family: 'loraregular', Georgia, Palatino, serif;
	text-align: center;
}

.footer-books {
	width: auto;
	display: inline-block;
	margin: 10px 70px 0 0;
}

h3 {
	color: #fff;
	font-weight: normal;
	font-size: 20px;
	text-align: left;
	padding: 0 0 10px 0;
	border-bottom: 1px solid #fff;
}

.footer-book-link {
	width: auto;
	height: 120px;
	padding-right: 10px;
	-webkit-transition: .1s ease-in-out;
	transition: .1s ease-in-out;
}

.footer-books img:hover {
	-webkit-transform: scale(1.2);
	transform: scale(1.2);
}

.footer-contact {
	width: auto;
	display: inline-block;
	vertical-align: top;
	text-align: left;
	padding: 10px 0 0 0;
}

.footer-contact a {
	color: #fff;
	text-decoration: none;
	line-height: 30px;
	display: block;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.footer-copyright a {
	color: #fff;
	text-decoration: none;
	line-height: 30px;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.footer-contact a:hover, .footer-copyright a:hover {
	color: #95D2EA;
}

.footer-contact-email::before {content: url(../img/icon-email.png); margin-right: 10px;}
.footer-contact-twitter::before {content: url(../img/icon-twitter.png); margin-right: 10px;}
.footer-contact-site::before {content: url(../img/icon-site.png); margin-right: 10px;}


.footer-copyright, .footer-copyright-rs {
	color: #fff;
	font-size: 13px;
	text-align: left;
	margin-top:20px;
}

.footer-copyright-rs {display: none;}

.footer-temple img {
	width: 140px;
	height: auto;
	text-align: left;
	margin-top: 20px;
}

/* Responsive */

@media all and (max-width: 1280px) {#wrapper {width: 100%;} }

@media all and (max-width: 1024px) { 
	#jap-header {height: 125px;}
	h1 {font-size: 3.2em; line-height: 125px;}
	#main-nav ul a {font-size: 12px; padding: 10px 25px;} 
	#footer {height: auto; padding-bottom: 30px;}
	.footer-books, .footer-contact {width: 90%; margin: 0;}
	.footer-book-link {height: 80px; padding-right: 13px;}
	h3 {font-size: 1.1em;}
	.footer-contact a {font-size: 1em; display: inline-block; margin-left: 25px;}
	.footer-copyright {display: none;}
	.footer-copyright-rs {display: block; font-size: .8em;}
	.footer-copyright-rs a {font-size: 1em; margin: 0;}
	.footer-temple img {float: right;}
}

@media all and (max-width: 768px) { 
	#jap-header {height: 100px;}
	h1 {font-size: 2.8em; line-height: 100px;}
	#main-nav ul a {font-size: 11px; padding: 10px 18px;} 
	.footer-books, .footer-contact {width: 90%; margin: 0;}
	.footer-book-link {height: 65px; padding-right: 8px;}
	h3 {font-size: 1em;}
	.footer-contact a {font-size: .9em; display: inline-block; margin-left: 25px;}
	.footer-copyright {display: none;}
	.footer-copyright-rs {display: block; font-size: .8em;}
	.footer-copyright-rs a {font-size: 1em; margin: 0;}
	.footer-temple img {float: right;}
}

@media all and (max-width: 480px) {
	#jap-header {height: 75px;}
	h1 {font-size: 2.3em; line-height: 75px;}
	#main-nav ul a {font-size: 8px; padding: 7px;} 
	.footer-books, .footer-contact {width: 90%; margin: 0;}
	.footer-book-link {height: 37px; padding-right: 3px;}
	h3 {font-size: 1em;}
	.footer-contact a {font-size: .8em; display: inline-block; margin-left: 15px;}
	.footer-copyright {display: none;}
	.footer-copyright-rs {display: block; font-size: .7em;}
	.footer-copyright-rs a {font-size: 1em; margin: 0;}
	.footer-temple img {float: right; width: 100px; height: auto;}
}

@media all and (max-width: 320px) {
	#jap-header {height: 50px;}
	h1 {font-size: 1.5em; line-height: 50px;}
	#main-nav ul a {font-size: 7px; padding: 5px 7px;} 
	.footer-books {margin: 5px 0 0 0;}
	.footer-books, .footer-contact {width: 90%;}
	.footer-book-link {height: 33px; padding-right: 3px;}
	h3 {font-size: .8em;}
	.footer-contact a {font-size: .8em; display: inline-block; margin-left: 15px;}
	.footer-copyright {display: none;}
	.footer-copyright-rs {display: block; font-size: .6em;}
	.footer-copyright-rs a {font-size: .9em; margin: 0; line-height: 18px;}
	.footer-temple img {float: right; width: 90px; height: auto;}
}