/*
  This is the major layout for the whole site.
  This is Not a frame really!
*/
  
/* Author: ** Jonah Luo ** 2011 - 2015@ Last Revised July 2014 
  -- To Revise slightly July 2016 --
*/

body{
  min-height: 800px;
  max-height: 9600px; /* old value 7500px; */
    /* changed in July 2015 */
  overflow: auto;
  margin-left: 2%;
  margin-top: 1%;
  margin-right: 13%;
}

img {
  max-width: 99%;  /* old value: 115% */
}
a{
	text-decoration: none;
    /* link without underline */
	color: #2f4f80;
}

#_menu { /* this is an iframe 
		-- chk whether in use */
  border-style: none;
/* -- Below, currently NOT IN EFFECT */
/*  position: fixed;  top: 20%; */
}

#hmony 
{  /* host the header image */
  position: fixed;
  overflow: hidden;
  background-color: #aa8844;
  margin: 0;
  padding: 0;
  top: 1%;
  height: 18%;
  left: 3%;
  width: 8.5%;
}

/* -- adapted from:
  -- Jonah create the 'header 'Sidebar as below, 
  -- as well as create the 'primeDisplay' etc. -- */

#primDisp
  /* define display area for the primary content */
{
    position: absolute; 
	overflow: auto;
//
	min-height: 1000px;
	max-height: 4000px;
	top: 20%;
    left: 13.5%;
	width: 81.5%;

/* defining padding */
	padding-top: 1%;
	padding-left: 0.8%; /* added June 2015 - J. Luo */
    /*  padding-right: 1.5%; */
/* defining font - ? necessary ? */
	font-size: medium;
    font-weight: normal;
}

#panel_top /* set on June 2015 */
{
    position: absolute; 
	overflow: auto;

	top: 1%;
    left: -1.5%;  /* left: 2%; -- old value  */
	width: 100%; /* old value 85% */
	height: 36%; /* old value: 18% */

	padding-left: 0.8%; /* added June 2015 - J. Luo */
	padding-top: 1%;

  background-image: url ('/images/i-grass.jpg');
/*  background-color: #e6f7d7; */
}

/* header section is used ONLY in SOME */
#header{
   position: fixed;
   overflow: hidden;  /* auto */
   margin: 0;
   padding: 0;
   left: 12%;
   top: 10%;
   height: 9%;
   width: 48%;
   max-width: 1100px;
   min-width: 220px;
   max-height: 150px;
   min-height: 24px;
  /* background-color: #bcb; */
}

#Ads_top {
  border-radius: 35px;
  font-size: large; 
}


/* At last define #Side_bar_m, #Side_bar, 
 #navbar, #easy_menu, etc,
 -- First, for traditional devices  */ 

#Side_bar { /* Side_bar appears at the side, */
   position : absolute;
   z-index: 7;
   overflow-y: hidden;  /*   overflow: auto; */
   overflow-x: hidden;

   max-width: 124px;
/*   min-width: 60px; */
   left: 2.4%;
   width: 10.6%;
   top: 18.5%;
   font-size: 1 em;
/*   border-top : 8px solid #cccccc; */
   padding: 0 0.1% 0 0.1%;  /* 0 0.7% 0 0.5% */

   background-color: #cceecd; /* - Peppermint - */
   color: #030303;
   border-radius: 20px;
   
	-webkit-box-shadow:
		8px 10px 10px rgba(255,255,255,3);
	-moz-box-shadow:
		8px 10px 10px rgba(255,255,255,3);
	box-shadow:
		8px 10px 10px rgba(255,255,255,3);
}

#Side_bar_m { /* Side_bar_m does not appear normally */
   position : absolute;
   display: none;
}

/* #easy_menu leads to the full-page navigation */
 #easy_menu { /* -- is for smart phone use 
				showing where the navbar is */
   display: none;
 }
 #clk_tab1 { /* chk where applies */
   position: fixed;
   display: inline;

   top: 1%;
   height: 7.7%;
   left: 67%; 
   width: 29%;
   border-radius: 4px;
   background-color: #60775A;
 }
 #clk_tab2 { } /* chk where applies */

/* --!! That navbar, as for its importance, shall never be overwritten 
 by any other div; make it as the LAST SAY !! -- */
#navbar { /* adapted from old home page */
   position: fixed;
   overflow: visible;	/* 'visible', may clash with prime-display */
   /* float: left; */
   min-height: 2.5em;
   /* max-height: 5 em; */
   /* background-color: #60775A; */ /* Willowgrove -- retain  */

   top: 2%;
   height: 7.7%; /* old value 8.7%, 6.7% */
   left: 41%;  /* old value 27%, 31% */
   width: 56%; /* old value 66.5%, 100% */

 /* defined curved, borderless region */
   border-radius: 15px;
 /*  border-style: none; */
   border-top: none;  
   border-left: none;
   border-bottom: none;
   border-right: none;
}


/* -- ** -------- -------- ** -- */
/* for the Mobile Devices & Smart Phones */
/* Shall we move this into a separate file? */

@media only screen and (max-width : 704px) { 
#Ads_top {
  font-size: medium;
  border-radius: 3px;
}
#menu-icon {
		display:inline-block;
}

/* in a mobile device DO NOT DISPLAY 
 navbar & Side_bar 
 however Side_bar_m is displayed */
/* display 'easy_menu' in place of bavbar */
 
 #navbar {
     display: none;
/*	position: fixed;
   overflow-x: visible;	
   overflow-y: scroll;

   top: 1%; height: 7.7%;
   left: 71%; width: 25%;
*/
}

#navbar:hover {
   display: none;
/*   overflow-y: scroll;
   top: 1%;  height: 37.7%;  // old value: 7.7%;
   left: 50%; width: 47%;
*/
}

#Side_bar {
   display: none;
}
 
#easy_menu {
   position: fixed;
   display: inline;

   top: 1%;   height: 7.7%;
   left: 67%; width: 29%;
   border-radius: 4px;

   background-color: #60775A; 
  color: #ffffff;
}

#easy_menu a {
  color: #ffffff;
  font-weight: bold;
}

#easy_menu_2 {
   position: fixed;
   display: inline;

   top: 9%;   height: 7.7%;
   left: 67%; width: 29%;
   border-radius: 4px;

   background-color: #60775A; 
  color: #ffffff;
}

#Side_bar_m {
   position: absolute;
   display: block;
   z-index: 9;
   overflow-y: hidden;  /*   overflow: auto; */
   overflow-x: visible;

   max-width: 124px;
   left: 0.3%;
   width: 13.5%; /* 10.6% */
   top: 18.5%;
   font-size: 1 em;
   padding: 0 0.1% 0 0.1%;  /* 0 0.7% 0 0.5% */
/*   border-top : 8px solid #cccccc; */

    background-color: #cceecd; /* - Peppermint - */
    color: #030303;  /* close to black */
    border-radius: 2px;
   
	-webkit-box-shadow:
		8px 10px 10px rgba(255,255,255,3);
	-moz-box-shadow:
		8px 10px 10px rgba(255,255,255,3);
	box-shadow:
		8px 10px 10px rgba(255,255,255,3);
 }

}
/* end styles for the mobile parts -- */

/* -- -- ! END ! ------ */ 

/* !! -- navbar -- !! */
/* @import url(navOfBar.css); */
  /* try importing an external -- but failed 
  -- tested on September 9 2013 */

/* ------------------------------------ */
/* -- define navbtn (intra-page nav) 
-- -- moved to ndic.css --------------- */
