@import url("reset.css");
@import url("../fonts/Lato/stylesheet.css");

/* colors: http://ethanschoonover.com/solarized

   - lighter background: #fefbee
   - background: #fdf6ed
   - darker background: #eee8d4
   - darkest background: #e3dac6

   - lightest text: #a3b1b1
   - lighter text: #93a1a1
   - light text: #829496
   - text: #647b83
   - darker text: #576e75
   - darkest text: #4a6167
   - link text (blue): #6b6fc7

   - Accent Colors:
   - Yellow: #b68a00
   - Orange: #cd6a00
   - Red: #de3027
   - Magenta: #d53182
   - Violet: #6b6fc7
   - Blue: #1c89d5
   - Dark Blue: #414faf
   - Brown: #754240
   - Cyan: #20a198
   - Green: #859a00
*/

html, body, table {
  width: 100%;
  height: 100%;
}

/* general settings for the website and text */

body {
  min-width: 800px;
  padding: 0;
  margin: 0;
  border: 0;

  /* colors */
  color: #4a6167;
  background-color: #fef6ee;

  /* font */
  font-family: "Lato", "Century Gothic", sans-serif;
  font-size: 100%;
  text-align: left;
  line-height: normal;
}

h1, h2, h3, h4 {
  /* clear: left; */
  color: #576e75;
  font-weight: normal;
}

h1 {
  font-size: 2em; /* xx-large */
  margin: 0 0 0.75em 0;
}

h2 {
  font-size: 1.5em; /* x-large */
  margin: 0 0 0.5em 0;
}

h3 {
  font-size: 1.2em; /* lesser large */
  margin: 0 0 0.5em 0;
}

h4 {
  margin: 0.5em 0 0 0;
}

ol, ul {
  padding: 0 0 0.5em 2em;
}

ol {
  list-style-type: decimal;
}

ul {
  list-style-type: disc;
}

p {
  margin: 0 0 0.5em 0;
}

a, a:hover {
  text-decoration: none;
  color: #6b6fc7;  /* new */
}

a {
  /* color: #6b6fc7; */
  border-bottom: 1px solid #eee8d4;
}

a:hover {
  /* color: #6b6fc7; */
  border-bottom: 1px solid #6b6fc7;
}

a.anchor {
  position: relative;
  top: -2em;
}

/* the banner image */

#banner {
  width: 100%;
  height: 200px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
}

#banner > img {
  width: 100%;
  display: none;
}

/* main menu */

#menubar-wrapper {
  margin: 0;
  border: 0;
  padding: 0;
}
#menubar {
  display: inline-block;
  width: 100%;
  z-index: 1;
}
#menushadow {
  width: 100%;
  height: 15px;
  background-image: url("../img/bar_bg.png");
  background-repeat: repeat-x;
  display: inline-block;
}

ul.menu, ul.floatmenu, ul.quick {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.menu, ul.quick {
  white-space: nowrap;
}

ul.menu {
  width: 100%;
  background-color: #eee8d4;
  border-top: 1px solid #fdf6ed;
  border-bottom: 1px solid #e3dac6;
  padding: 0.1em 0 0.1em 0;
  display: inline-block;
  z-index: 1;
}

ul.submenu, ul.subsubmenu {
  width: auto;
  display: none;
  position: absolute;
  padding: 0;
  -webkit-box-shadow: 2px 3px 10px black;
  -moz-box-shadow: 2px 3px 10px black;
  box-shadow: 2px 3px 10px black;
}

ul.menu li {
  padding: 0.25em;
  position: relative;
  color: #4a6167; /*#647b83;*/
  background-color: #eee8d4;
}

ul.menu li:hover {
  background-color: #e3dac6;
}

ul.menu a {
  border: 0;
  color: #4a6167; /*#647b83;*/
  display: block;
}

ul.menu a:hover {
  border: 0;
  color: #4a6167; /*#647b83;*/
}

ul.menu li.sep_bot {
  border-bottom: 1px solid #e3dac6;
}

ul.menu li.sep_top {
  border-top: 1px solid #fdf6ed;
}

ul.menu li.inline-title {
  font-style: italic;
}

ul.menu li.inline-title:hover {
  background-color: #eee8d4;
}

ul.menu li.inline-item {
  padding-left: 2em;
}

ul.menu li.arrow > a {
  padding-right: 1em;
}

ul.menu li.arrow::before {
  content: ">";
  float: right;
}

ul.menu > li {
  float: left;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

ul.menu > li:first-child {
  margin-left: 0.5em;
}

ul.submenu li:first-child {
  margin: 0;
}

ul.submenu {
  left: 0;
  top: 100%;
}

ul.submenu li {
  float: none;
}

ul.subsubmenu {
  left: 100%;
  top: 0;
}

#menu > li:hover > ul {
  display: block;
}

#menu > li:hover > ul > li > ul {
  display: none;
}

#menu > li > ul > li:hover > ul {
  display: block;
}

#menu > li:last-child {
 margin: 0 0.5em 0 0;
 float: right;
}
#menu > li:last-child input[type=text] {
 margin: 0;
 padding: 0;
 width: 100%;
}

/* floating menu*/

#floatmenu {
  float: left;
  clear: left;
  width: 20%;
  position: relative;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 0 1em 0 1em;
}

ul.floatmenu {
  margin: 1em 0 0 0;
}

ul.floatmenu a {
  color: #93a1a1;
  border: 0;
}

ul.floatmenu a:hover {
  color: #576e75;
}

/* main page content */

#page {
  float: right;
  clear: right;
  width: 80%;
  min-height: 100%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 0 2em 0 0;
}

/* horizontal divider */

hr.top {
  float: left;
  clear: both;
  width: 100%;
  height: 0;
  padding: 0;
  margin: 1em 0 0 0;
  border: 0;
  border-top: 1px solid #eee8d4;
  border-bottom: 1px solid #fdf6e2;
}

/* quick links at the bottom */

#quick {
  background-color: #eee8d4;
  text-align: center;
  float: left;
  clear: both;
  width: 100%;
}

#quick > div {
  display: inline-block;
  color: #576e75;
  font-size: 0.8em; /* small */
  margin: 1em 0 1em 0;
  text-align: left;
}

ul.quick {

}

ul.quick > li {
  float: left;
}

ul.quick > li > ul {
  list-style: none;
  padding: 0 2em 0 0;
}

ul.quick a {
  color: #93a1a1;
  border: 0;
}

ul.quick a:hover {
  color: #576e75;
  border: 0;
}

/* containers that wrap images for placement for content pages */

div.left {
  float: left;
  width: 50%;
  margin: 0 1em 0 0;
}

div.right {
  float: right;
  width: 50%;
  margin: 0 0 0 1em;
}

div.center {
  text-align: center;
  margin: 0;
}

div.left > img, div.right > img, div.center > img {
  width: 100%;
}

div.half {
  width: 50%;
}

div.third {
  width: 33%;
}

div.fourth {
  width: 25%;
}

div.fifth {
  width: 20%;
}

div.sixth {
  width: 17%;
}

div.eighth {
  width: 12.5%;
}

div.tenth {
  width: 10%;
}

div.twelfth {
  width: 8.33%;
}

div.icon {
  width: 4%;
}

.inline-element {
  display:inline-block;
}

/* paragraph styles */

p.large-paragraph {
  margin: 0 0 1em 0;
  font-size: 1.2em;
}

p.part {
  margin: 1em 0 0 0;
  font-size: 1.75em;
  font-weight: bold;
  font-style: italic;
}

p.quote {
  margin: 1em 0 0.5em 2em;
  font-style: italic;
}

p.poem {
  margin: 0 0 0 2em;
  font-style: italic;
}

p.poem2 {
  margin: 0 0 0 4em;
  font-style: italic;
}

p.narrative, p.n {
  margin: 0.5em 0 0.5em 2em;
  font-style: italic;
  font-size: 0.92em;
}

p.sutta {
  margin: 1em 0 0.5em 2em;
  font-style: italic;
}

p.quotecenter {
  margin: 1em 4em 0.5em 4em;
  text-align: center;
  font-style: italic;
}

p.author {
  margin: 0 0 0.5em 0;
  text-align: right;
}

p.block {
  margin: 1em 0 0.5em 4em;
}

p.block2 {
  margin: 0 0 0 6em;
}

p.footnote, p.note {
  font-size: 0.8em; /* small */
}

p.copyright {
  margin: 1em 0 0.5em 0;
  font-size: 0.8em; /* small */
  font-style: italic;
}

p.event {
  margin: 0 0 0 0;
  font-style: italic;
  font-weight: bold;
  color: #754240;
}

p.edate {
  margin: 0;
  font-style: italic;
  color: #754240;
}

p.date {
  margin: 0 0 2em 0;
  font-style: italic;
  color: #754240;
  }

p.edescript {
  margin: 0 3em 0.75em 3em;
}

p.hang, p.hanging {
  margin: .7em 0 0 3em;
  text-indent: -3em;
}

p.hang2, p.hanging2 {
  margin: .7em 0 0 6em;
  text-indent: -3em;
}

p.glossary-term, p.term {
  margin: 0;
  font-style: oblique;
}

p.glossary-def, p.def {
  margin: 0 0 0.5em 1em;
}

p.topic {
  overflow: hidden;
  padding-bottom: 0;
  padding-top: 0;
  margin-bottom: 0;
  margin-top: 0;
}

p.subtopic {
  font-size: 0.9em;
  margin-left: 2em;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: hidden;
}

p.subtopic + p.topic {
  margin-top: 0.4em;
}

p.TOC {
  margin: 0 0 0 4em;
  text-indent: -2em;
  font-size: 1em;
}

p.TOC2 {
  margin: 0 0 0 6em;
  text-indent: -2em;
  font-size: 1em;
}

p.resc, p.r {
  margin: 0 0 0 2em;
  font-size: -1em;
  display:inline-block;
}

p.site1 {
  margin: 0.5em 0 0 0;
  text-indent: 0;
  font-size: 1em;
}

p.site2 {
  margin: 0 0 0 2em;
  font-size: .9em;
}

p.site3 {
  margin: 0 0 0 6em;
  text-indent: -2em;
  font-size: .8em;
  font-style: oblique;
}

p.comment > em {
  font-style: italic;
}
p.comment {
  padding-bottom: 3em;
}

p.form-ok {
  margin: 1em 0 1em 0;
  color: #859a00;
}

p.form-fail {
  margin: 1em 0 1em 0;
  color: #de3027;
}

p.breadcrumbs {
  font-size: 0.8em;
  color: grey;
  margin: 0 0 2em 0;
}

/* text styles */

b, strong, span.strong {
  font-weight: bold;
}

i, em, span.em {
  font-style: oblique;
}

span.highlight {
  color: #4a6167;
  background-color: #de3027;
 }

/* form styles */

#contact {
  width: 100%;
}

#form-site {
  display: none;
}

input[type=text], textarea {
  color: #eee8d4;
  background-color: #fdf6e2;
  border: 1px solid #93a1a1;
  font-family: inherit;
  font-size: inherit;
}

input[type=text] {
  margin-right: 1em;
  width: 40%;
}

textarea {
  width: 80%;
  height: 15em;
  resize: none;
}

input:focus, textarea:focus {
  outline: none;
  color: #647b83;
  background-color: #fefbee;
  border: 1px solid #576e75;
}

input[type=submit], input[type=reset] {
  color: #647b83;
  background-color: #fdf6e2;
  border: 1px solid #93a1a1;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  cursor: pointer;
}

input[type=submit]:hover, input[type=reset]:hover {
  background-color: #fefbee;
  border: 1px solid #647b83;
}

/* if the website is prepared for print, then the following styling
   is applied in addition; this causes select elements to be either
   shown (banner image replaces background image for print) or
   hidden (menu and table data) */

@media print {

  @page {
    size: auto;
    margin: 0.5in 0.5in 0.5in 0.5in;
  }

  body {
    color: black;
    background-color: white;
  }

  a {
    border: 0;
  }

  p {
    page-break-inside: avoid;
  }

  #banner > img {
    display: block;
  }

  #page {
    width: 100%;
  }

  #menubar-wrapper, /* main menu bar */
  #floatmenu, /* the floating menu to the left */
  p.breadcrumbs, /* the breadcrumbs trail */
  hr.top,
  #quick /* the bottom site map */ {
    display: none;
  }
}
