/* web.css - web design sample stylesheet */
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.3em;
  color: #000000;
  background: #ececec;
  }

a {					/* all links */
  text-decoration: none;
  padding: 1px 2px;
  font-size: larger;
  font-variant: small-caps;
  }

a:link { color: #000088; }		/* for unvisited links */
a:visited { color: #444488; }		/* for visited links */
a:active { color: #0000ff; }		/* when link is clicked */
a:hover { background: #ffffff; } 	/* when mouse is over link */

.link {
  display: block;
  text-align: center;
  }

h1 { font-size: 180%; text-align: center; }

h2 {
  font-size: 140%;
  text-align: left;
  }

h3 {
  font-size: 120%;
  text-align: left;
  padding: 0.5em 0.5em 0.5em 0.8em ;
  background: rgba(0,0,0,0.1);
  counter-increment: chapter;
  counter-reset: section;
  }

h3:before {
  content: counter(chapter) " ";
  opacity: 0.3;
  }

h4 {
  text-align: left;
  padding: 0.2em 0.2em 0.2em 1.6em ;
  background: rgba(0,0,0,0.05);
  counter-increment: section;
  }

h4:before {
  content: counter(chapter) "."  counter(section) " ";
  opacity: 0.3;
  }

footer {
  position: relative;
  margin: auto;
  text-align: center;
  padding: 1em;
  background: rgba(0,0,0,0.05);
  border-top: solid;
  border-top-width: 0.5em;
  border-color: rgba(0,0,0,0.2);
  }

address {
  text-align: right;
  padding-right: 1em;
  }

code { color: #006666; }
var { color: #006600; }
samp { color: #660066; }

dt { font-weight: bold; }
dd { font-size: 90%; }

table { border-collapse: collapse; }

td {
  padding: 0px 8px;
  vertical-align: top;
  }

.pinmenu {			/* pin menu position in browser window */
  position: fixed;
  right: 0px;
  top: 0px;
  margin-top: 2em;
  width: 12em;
  background: #aaaaaa;
  opacity: 0.1;			/* make almost transparent */
  transition: opacity 0.2s;		/* fade in/out */
  -moz-transition: opacity 0.2s;	 /* Firefox 4 */
  -webkit-transition: opacity 0.2s;	 /* Safari and Chrome */
  -o-transition: opacity 0.2s;		 /* Opera */
  }

.pinmenu:hover{	opacity: 0.9; }		/* make almost opaque on hover */

.pinmenu a {				/* set menu link style */
  display: block;
  text-align: center;
  margin: 0.3em;
  }

.group { position: relative; }	/* set reference position for submenu */

.sub {			/* position submenu & set style */
  position: absolute;
  left: -12em ;
  top: -0.3em;		/* line up with ".pinmenu a", allowing for margin */
  width: 12em;
  display: block;
  visibility: hidden;
  background: #cccccc;			/* give submenu a backround */
  outline: #aaaaaa solid 0.3em;	/* add outline */
  opacity: 0;				/* set to fade in/out */
  transition: visibility 0.5s;	/* make hover linger to ease pointer movement */
  -moz-transition: visibility 0.5s;	/* Firefox 4 */
  -webkit-transition: visibility 0.5s;	/* Safari and Chrome */
  -o-transition: visibility 0.5s;	/* Opera */
  }

.group:hover { background: #cccccc; }	/* show .group .sub relationship */

.group:hover .sub {		/* when hover over .group, make .sub opaque */
  visibility: visible;
  opacity: 1;				/* opacity inherits from .pinmenu */
  transition: opacity 0.2s;		/* fade in/out */
  -moz-transition: opacity 0.2s;	 /* Firefox 4 */
  -webkit-transition: opacity 0.2s;	 /* Safari and Chrome */
  -o-transition: opacity 0.2s;		 /* Opera */
  z-index: -1;				/* move .sub below .group */
  }

/*
img#mog {
  visibility: hidden;
  height: 0px;
  }
*/

p.roller {
  width: 128px;
  height: 24px;
  background: url("images/my-button128x24.png");
  }

p.roller a {
  display: block;
  width: 128px;
  height: 21px;
  padding: 3px 0px 0px 0px;
  text-align: center;
  }

p.roller a:hover {
  background: url("images/my-button128x24-hover.png");
  }

.popup {			/* position image below link and hide */
  position: absolute;
  visibility: hidden;
  margin-top: 2.5em;		/* leave gap for text & next popup below */
  margin-left: -0.3em;		/* offset for padding */
  color: #000000;
  background: #ffffff;
  padding: 0 1em 1em 1em;	/* pad except top */
  box-shadow: 0em -1em 0em rgba(255,255,255,1);
  				/* fill gap, without hover over
  				filled but hides when pointed at */
  z-index: 1;
  }

.poptext {
  color: #550077;
  padding: 0.3em;
  }

.poptext:hover {		/* when mouse is over pop, highlight */
  background: #ffffff;
  }

.poptext:hover .popup {		/* when mouse is over pop, show image */
  visibility: visible;
  }

.info {
  padding: 0.1em 0.5em;
  border: 0.15em solid #ffffff;
  border-radius: 1em;
  margin: 0.5em;
  background: #3333aa;
  text-align: center;
  font-style: italic;
  color: #ffffff;
  }

.infopop {			/* position infopop over info and hide */
  position: absolute;
  visibility: hidden;
  margin-top: -0.3em;
  margin-left: -0.7em;
  padding: 1em;
  background: #e0e0e0;
  opacity: 0.9;
  color: #000066;
  font-style: normal;
  line-height: 1.5em;
  z-index: 1;
  }

.info:hover .infopop {
  visibility: visible;
  }
  

.fade { opacity: 0.5; }

.thumbpop {			/* position image over link and hide */
  position: absolute;
  visibility: hidden;
  margin-top: 0em;
  margin-left: 0em;
  z-index: 1;
  }

.popright {			/* position image over link and hide */
  position: absolute;
  visibility: hidden;
  margin-top: 0em;
  right: 1em;		/* position to right of screen */
  z-index: 1;
  }

.thumbtext {
  display: block;		/* sepatrate line */
  visibility: hidden;
  margin-top: -0.3em;		/* minus line height */
  padding: 0.5em;
  color: #000000;
  background: #ffffff;
  }

.pop {
  color: #440066;
  padding: 0.3em;
  }

.pop:hover .popup {
  visibility: visible;
  }

.pop:hover .thumbpop {
  visibility: visible;
  }

.pop:hover .popright {
  visibility: visible;
  }

.pop:hover .poptext {
  visibility: visible;
  }

.pop:hover .thumbtext {
  visibility: visible;
  }

aside {
  margin: 1em;
  margin-left: 4em;
  padding: 0.5em;
  border-radius: 0.5em;
  background: rgba(128,128,0,0.2);
  box-shadow: 0em 0em 0.7em rgba(128,128,0,0.4);
  }

.picspace {
  position: relative;
  line-height: 300px;
  width: auto;
  display: inline;
  visibility: hidden;
  }
