﻿@font-face {
  font-family: 'Arvo-Regular';
  src: url('/fonts/Arvo-Regular.eot');
  src: local('☺'),  url('/fonts/Arvo-Regular.woff') format('woff'),  url('/fonts/Arvo-Regular.ttf') format('truetype'),  url('/fonts/Arvo-Regular.svg') format('svg');
  font-weight: 400;
  font-style: normal;
}

body {
  min-width: 100%;
  background: #fff;
  font-family: Helvetica, Arial, sans-serif; 
  margin: 0;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;	
  border: 0;
}

/* -- Font class -- */

.s-36 {
  font-size: 36px;
}

.s-34 {
  font-size: 34px;
}

.s-32 {
  font-size: 32px;
}

.s-30 {
  font-size: 30px;
}

.s-28 {
  font-size: 28px;
}

.s-26 {
  font-size: 26px;
}

.s-24 {
  font-size: 24px;
}

.s-22 {
  font-size: 22px;
}

.s-20 {
  font-size: 20px;
}

.s-18 {
  font-size: 18px;
}

.s-16 {
  font-size: 16px;
}

.s-14 {
  font-size: 14px;
}

.s-12 {
  font-size: 12px;
}

.s-10 {
  font-size: 10px;
}

/* ----------------------------- SPRITES ----------------------------- */

#connect a {
  background: url('/images/img-css/icons.png') no-repeat;
}

/* ----------------------------- HEADER ----------------------------- */

header > div {
  width: 100%;
  margin: -28px 0 auto;		/* php -10px in place of 0 */
  padding: 0;				/* php 0 in place of 10px 0 0 */
  text-align: center;
}

header > div::after {
  clear: both;
  content: "";
  display: block;
  height: 0;
  line-height: 0;
  visibility: hidden;
}

/* -- Logo -- */

#logo {
  display: flex;
  justify-content: space-around;
  align-items: baseline;
  width: 100%;
  margin: -10px 0 2px;
  padding: 0 0 4px;
  
}

#logo a {
  font-family: 'Arvo-Regular';
  font-size: 32px;
  line-height: 1;
  color: #710b9b;
  text-decoration: none;
}

#logo p {
  display: none; 	
  font-family: 'Arvo-Regular';
  font-size: 16px;
  line-height: 1;
  color: #999;
}

@media only screen and (min-width: 768px) {
  #logo {
    margin: 0 0 2px;
    padding: 0 0 2px;
  }  
  #logo a {
    font-size: 45px;
  }
  #logo p {
  display: block;
  }
}

/* -- Navigation -- */

nav {
  display: flex;
  justify-content: center;
  background: #86b300;
  width: 100%;
  margin: 0; 
  padding: 0;
  text-align: left;
}

nav ul {
  background: #1bc2a2;  /* seems unnecessary */
  margin: 0;
  padding: 0;
  list-style: none;
}

nav ul li {
  display: block;
  position: relative;
  float: left;
  background: #86b300;  /* seems necessary */
}

nav li ul {		/* Hides the dropdowns */
  display: none;
}

nav ul li a {
  display: block;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 8px;
}

@media only screen and (min-width: 480px) {
  nav ul li a {
    padding: 12px 16px;
  }
}

nav ul li a:hover { 
  background: #2c3e50;		/* add color: #9cf for more effect  */
}

nav li:hover > ul {		/* Display the dropdown */
  display: block;
  position: absolute;
}

nav li:hover li {
  float: none; 
}

nav li:hover a { 
  background: #9c0;
}

nav li ul li {
  border-top: 0;
}

nav ul ul ul {	/* Displays second level dropdowns to the right of the first level dropdown */
  left: 100%;
  top: 0;
}

nav ul:before,	/* Simple clearfix */
nav ul:after {
  content: "";			/* 1 */
  display: table;		/* 2 */
}

nav ul:after {
  clear: both;
}

/* ----------------------------- CONTENTS ----------------------------- */

#contents {
  background: #517267;
  min-height: 900px;
  padding: 0 0 40px;
}

#contents > div::after {
  clear: both;
  content: "";
  display: block;
  height: 0;
  line-height: 0;
  visibility: hidden;
}

#contents .body {	/* you can use '.body' instead of '#contents .body' or '#contents' */  
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  width: 100%;
  height: auto;
  border: 1px solid #d1daac;
  margin: 0 auto;
  padding: 0 19px;
}

#contents h1 {
  color: #0769ad;
  font-family: 'Arvo-Regular';
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  margin: 30px 0 20px;
}

#contents h2 {
  color: #0876c4;
  font-size: 24px;
  line-height: 1.0;
  margin: 20px 0 30px;
}

#contents h3 {
  color: #0984dc;
  font-size: 20px;
  line-height: 1;
}
 
#contents h4 {
  font-size: 16px;
  line-height: 1;
}

#contents h5 {
  font-size: 14px;
  line-height: 1;
}

#contents h6 {
  font-size: 12px;
  line-height: 1;
}

#contents p {
  font-size: 16px;	
  line-height: 1.75;	
  margin: 0;
  padding: 0 1px 30px 0;	/* paragraph spacing */
}

#contents p a {
  color: #00c;
  text-decoration: none;
}

#contents p > a:hover {
  color: #33f;
  text-decoration: underline;
}

/* ------------- Main and Sidebar ------------- */ 

main {
  order: 1;
}

#sidebar-2 {
  order: 2;
}

#sidebar-1 {
  order: 3;
}

@media only screen and (min-width: 1224px) {
  #sidebar-1 {
    order: 1;
  }
  main {
    order: 2;
  }
  #sidebar-2 {
    order: 3;
  }
}

#sidebar-1 {
  float: left;
  width: 100%;
  min-height: 1250px;	/* pdf frame height 1110px plus padding 20px plus heading */
  border-right: 2px solid #ccc;
  margin-top: 35px;		/* gap of navbar and border */
  padding-left: 100px;
}

main {
  float: left;
  width: 100%;
  min-height: 100px;
}

#sidebar-2 {
  float: right;
  width: 100%;
  min-height: 200px;
  padding: 10px 0 0 29px;
}

@media only screen and (min-width: 768px) {
  main {
    width: 75%;
  }
  #sidebar-2 {
    width: 25%;
  }
}

@media only screen and (min-width: 1024px) {
  main {
    padding-left: 50px;
  }
}

@media only screen and (min-width: 1224px) {
  main {
    padding-left: 100px;
  }
  #sidebar-1 {
	padding-left: 10px;
  }
}

/* -- Main Below-1 styling -- */

#contents main #below-1 {			
  border-top: 5px double #d1daac;  
  padding-top: 10px;
  margin-top: 100px;
} 

#contents main #below-1 h2 {
  text-decoration: underline;
}

#below-1 .flex-ul-1 {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  list-style: none;
  height: auto;
  margin: 0;
  padding: 0;
}

#below-1 .flex-ul-1 li {
  width: 100%;
  padding-right: 40px;
  margin-bottom: 20px;
}

#below-1 .flex-ul-1 li p a{
  font-weight: 700;  
}

@media only screen and (min-width: 768px) {
  #below-1 .flex-ul-1 li {
    width: 50%;
  }
}

#below-1 img {
  float: left;
  display: inline-block;
}  

#below-1 .flex-ul-1 li p {
  padding-left: 70px;
}

/* -- Sidebar-1 box styling -- */

#sidebar-1 section {
  background: #fff;
  margin: 0;
  padding: 5px;
}

#sidebar-1 h2 {
  color: #710b9b;
  font-family: "Times New Roman", Times, serif;
}

#sidebar-1 a {
  text-decoration: none;	
}

#sidebar-1 a:hover {
  text-decoration: underline;
}

#sidebar-1 ul {
  color: #1e90ff; 		/* only give bullet point color */
  font-size: 15px; 		/* only give bullet point size */  
  margin: 0;
  padding: 0 0 0 15px;
}
  
#sidebar-1 ul li a {
  color: #333;
  font-size: 15px;
  line-height: 3;
}

#sidebar-1 ul li a:hover {
  color: #33f;
}

/* -- Sidebar-2 box styling -- */

#sidebar-2 section {
  background: #f5f7ed;
  border: 3px solid	#d1daac;
  margin: 0 0 50px;
  padding: 10px;
}

#sidebar-2 h4 {
  color: #710b9b;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 6px;
}

#sidebar-2 ul {
  color: #1e90ff; 		/* only give bullet point color */
  font-size: 15px; 		/* only give bullet point size */  
  margin: 0;
  padding: 0 0 0 15px;
}

#sidebar-2 ul li {
  border-top: 1px solid #d1daac;
}

#sidebar-2 ul li a {
  color: #000;
  font-size: 15px;
  line-height: 2;
  text-decoration: none;
}

#sidebar-2 ul li a:hover {
  color: #66f;
  text-shadow: 0 10px 10px #ccf;
}

/* ------------- ITEM-1 ------------- */

@media only screen and (min-width: 1224px) {
  #item-1 #sidebar-1 {
    display: block;
	width: 15%;
  }
  #item-1 main {
    width: 65%;
	padding-left: 20px;
  }
  #item-1 #sidebar-2 {
    width: 20%;
  }
}

#item-1 main img { 
  float: left;					/* Image inside item with left float */
  border: 2px solid #d1d1d1;	/* A right float will be created later */
  margin: 6px 20px 0 0;
}

#item-1 main embed {
  width: 100%;
  height: 1110px;
  border-bottom: 2px solid #ccc;
  margin-bottom: 50px;
  padding-bottom: 20px;
}

#item-1 .qms {
  color: #60c;
  font-size: 20px;
  margin-top: 30px;  
}

#item-1 main ul {
  background: #f8f8ff;
  line-height: 3;
  margin: -10px 50px 50px 0;
  padding: 15px 40px; 
}

#item-1 main ul li a {
  text-decoration: none;
}

#item-1 main ul li a:hover {
  text-decoration: underline;
}

#item-1 #view-full-btn {
  float: right;
  background: #f00;
  border-radius: 25px;
  color: #eee;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  margin: -20px 20px 10px 0;
  padding: 6px 12px;
}

#item-1 #view-full-btn:hover {
  background: #c00;
  color: #fff;
  box-shadow: 0 10px 10px #999;
}

/* ------------- LIST-1 ------------- */

#contents #list-1 {
  min-height: 900px;
}

@media only screen and (min-width: 768px) {  
  #list-1 main ul,
  #list-1 main ol {  
    padding-right: 30px;	/* Only necessary if sentence is too long */
  }
}

#list-1 #crate {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #487;
  border-radius: 15px;
  margin: 0 0 50px;
  padding: 15px 0;
}

#list-1 #crate p {
  background: #f2f2f2;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.25;
  width: 240px;
  height: auto;
  margin: 15px 10px;
  padding: 15px;
  transition-duration: 200ms;
}

#list-1 #crate p:hover {
  background: #fff;
  box-shadow: 6px 8px 20px 2px #243;
  transform: scale(1.1, 1.1);
}

#list-1 #crate p a {
  color: #f90;	
  text-decoration: none;
}

#list-1 #crate p a:hover {
  color: #49e;
}

/* ------------- LIST-2 ------------- */

#contents #list-2 {
  min-height: 900px;
}

@media only screen and (min-width: 768px) {  
  #list-2 main ul, ol {  
    padding-right: 30px;	/* Only necessary if sentence is too long */
  }
}

#list-2 #crate {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #487;
  border-radius: 15px;
  margin: 0 0 50px;
  padding: 15px 0;
}

#list-2 #crate .subject {
  background: #f2f2f2;
  border-radius: 10px;
  color: #f90;
  font-size: 16px;
  line-height: 2;
  width: 310px;
  height: auto;
  margin: 15px 10px;
  padding: 15px 10px 15px 35px;
  transition-duration: 200ms;
}

#list-2 #crate .subject:hover {
  background: #fff;
  box-shadow: 6px 8px 20px 2px #243;
  transform: scale(1.1, 1.1);
}

#list-2 main ul li a {
  color: #0059b3;	
  text-decoration: none;
}

#list-2 main ul li a:hover {
  color: #07f;
}

#list-2 .letter-id  { 
  font-size: 20px;
  line-height: 1.5;
  word-spacing: 20px;
}

#list-2 .letter-id a { 
  color: #c0c;
  text-decoration: none;
}

#list-2 .letter-id a:hover { 
  color: #f0f;
  text-decoration: underline;
}

/* ------------- LIST-3 ------------- */

#contents #list-3 {
  min-height: 900px;
}

@media only screen and (min-width: 768px) {  
  #list-3 main ul, ol {  
    padding-right: 30px;	/* Only necessary if sentence is too long */
  }
}

#list-3 #crate {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #487;
  border-radius: 15px;
  margin: 0 0 50px;
  padding: 15px 0;
}

#list-3 #crate .year {
  background: #f2f2f2;
  border-radius: 10px;
  color: #f90;
  font-size: 16px;
  line-height: 8.5;
  list-style: none;
  text-align: center;
  width: 240px;
  height: 135px;
  overflow: hidden;
  margin: 15px 10px;
  padding: 0 10px;
  transition-duration: 200ms;
}

#list-3 #crate .year:hover {
  background: #fff;
  line-height: 2;
  box-shadow: 6px 8px 20px 2px #243;
  transform: scale(1.05, 1.25);
}

#list-3 main ul li a {
  color: #f90;
  text-decoration: none;
}

#list-3 main ul li a:hover {
  color: #07f;
}

/* ------------- HOME ------------- */

/* -- Greeting -- */ 

#greeting {
  background: #517267;
  font-family: 'Arvo-Regular';
  width: 100%;
  margin: 0 auto;
  padding: 40px 10%;
}

#greeting img {
  float: left;
}

@media only screen and (min-width: 768px) {
  #greeting img {
    margin-right: 5%;
  }
}

#greeting h1 {
  color: #fff;
  font-size: 36px;
  margin: 20px 0 10px;
  padding: 0;
}

#greeting p {
  color: #ccc;
  font-size: 20px;
  line-height: 2;
}

#home #below-1 h2 { 
  color: #de0da5;
}

#home h2 {
  color: #c06;
  font-family: Georgia, serif;
}

#home #sidebar-2 ul li a {
  font-weight: 600;  	
}
 
#home #sidebar-2 i {
  color: #666;  	
}

/* ------------- CONTACT ------------- */

#contents #contact {
  min-height: 900px;
}

@media only screen and (min-width: 768px) {
  #contact p {
    padding-right: 30px;
  }
}

#contact form {
  width: 100%;	
  max-width: 400px;
  margin: 50px 0;
}

#contact label {
  display: block;
  font-size: 14px;
  margin: 20px 0 8px;
  padding: 0;
}

#contact input.txtfield {
  display: block;
  width: 100%;
  height: 28px;
  line-height: 28px;
  border: 1px solid #bbb;
  margin: 0 0 12px;
  padding: 0 6px;
}

#contact textarea {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 14px;
  line-height: 1.7;
  width: 100%;
  height: auto;
  border: 1px solid #bbb;
  margin: 0 0 20px;
  padding: 5px 6px;
  overflow: auto;
}

#contact input.btn { 
  background: #9d0;
  color: #000;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 2.0;
  height: 30px;
  border: 1px solid #bbb;
  border-radius: 5px;
  margin: 0 0 12px;
  padding: 0 10px;
}

#contact input.btn:hover {
  background: #8c0;
}

/* ------------- ABOUT ------------- */

#contents #about {
  min-height: 900px;
}

#about h3 {
  color: #710b9b;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  margin: 0 0 6px;
}

@media only screen and (min-width: 768px) {
  #about p {
    padding-right: 30px;
  }
}

/* ------------- BLOG ------------- */

#contents #blog {
  min-height: 900px;
}

@media only screen and (min-width: 768px) {
  #blog p {
    padding-right: 30px;
  }
}

#blog ul {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  background: #f2f2f2;  	
  list-style: none;
  padding: 5% 1%;
}

#blog ul li {
  background: cornflowerblue;
  max-width: 320px;
  height: auto;
  margin: 10px;
  padding: 10px;
}

/* ----------------------------- FOOTER ----------------------------- */

footer > div {
  width: 100%;
  margin: 0 auto;
  padding: 10px;	/* php 10px in place of 30px 10px */
}

footer p {
  color: #9f9f9f;
  font-size: 13px;
  text-align: center;
  margin: 0;
}

footer #attention {
  width: 100%;
}

footer #attention p {
  color: #666;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  padding: 20px;
}

footer #attention p a {
  color: #00c;
  text-decoration: none;
}

footer #attention p a:hover  {
  color: #07f;
  text-decoration: underline;
}

footer #connect {
  width: 100%;
  text-align: center;
}

footer #connect h4 {
  color: #808080;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 10px;
}

#connect a {
  display: inline-block;
  width: 55px;
  height: 42px;
}

#connect a.facebook {
  background-position: -65px 0;
  width: 25px;
}

#connect a.twitter {
  background-position: -65px -48px;
}

#connect a.googleplus {
  background-position: -65px -96px;
}

#connect a.facebook:hover {
  background-position: 0 0;
  width: 25px;
}

#connect a.twitter:hover {
  background-position: 0 -48px;
}

#connect a.googleplus:hover {
  background-position: 0 -96px;
}
