/*
css_rr_basics.css
Author: Larry Ching
Date Created: Ar 6, 2007
June 2007: site redesign
*/

body {
  font: 1em Arial, Helvetica, Verdana, sans-serif;
  color: #000;
  /* background-color: #DDF; */
  text-align: center;
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
}

p {
  text-align: justify;
  margin: 0 0 0.5em 0;
}

h1 {
  font-size: 2em;
  margin: 0 0 0.5em 0;
}

h2 {
  font-size: 1.5em;
  margin: 0 0 0.5em 0;
}

h3 {
  font-size: 1.3em;
  margin: 0 0 0.5em 0;
}

h4 {
  font-size: 1.0em;
  margin: 0.5em 0 0.25em 0;
}

#browsers ul, #references ol {
  padding-left: 40px;
  margin-bottom: 0.5em;
}
.clearboth {
  clear: both;
}

.superref {
  font-size: 0.5em;
  font-weight: bold;
  vertical-align: super;
}

.superref a{
  text-decoration: none;
}

#container {
  min-width: 875px;
  max-width: 900px;
  /* padding: 1em 0.5em 0.5em 0.5em; */
  text-align: left;
  /* margin: 0 auto; */
  margin: 10px;
}

#main {
  /*background-color: #DDF; */
  background-color: #FFF;
  /*padding: 1em 1em 1em 1em;
  margin-right: 120px;
  margin-left: 10px; */
  
  /* border: 1px solid #00F; */
  max-width: 750px;
  min-width: 715px;
  text-align: left;
  margin-left: 1em;
  margin-top: 1.75em;
  margin-right: 9.5em; 
}

#maintitle {
  font-size: 1.9em;
  text-align: left;
}

div#topnav {
  top: 9em;
  margin-right: 1em;
}

#offsite {
  top: 24em;
  margin-right: 1em;
}

.h2txt {
  margin: 0 0.5em;
}

#references {
  font-size: 0.8em;
  margin: 1em 0 0.5em 0;
}

#references p {
  font-weight: bold;
  font-style: italic;
}

#references * a{
  text-decoration: none;
}

#footer {
  width: 100%;
  text-align: center;
  font-size: 0.8em;
  margin: 1em auto 0.5em auto;
}

#footer p {
  text-align: center;
}

.codeblock {
  background-color: #FC8;
  border: 1px solid #006;
  padding: 1em;
  /* font-size: 0.8em; Replaced due to bad Opera behavior */
  font-size: smaller;
  margin-bottom: 0.5em;
}

.code_inline {
  font-family: Courier, New Courier, fixed;
  font-weight: bold;
}

#code1 {
  width: 380px;
  margin-right: 1em;
}

#code2 {
  width: 380px;
  margin-left: 1em;
}

.floatleft {
  float: left;
}

.floatright {
  float: right;
}

div#buffer {
  /* width: 100%; */
  min-width: 740px;
  max-width: 900px;
  text-align: center;
  margin: 1em 0 1em 0;
}

hr#endrule {
  width: 80%;
  text-align: center;
}
/* ********** Simple Example ********** */

#simplerr {
  position: relative;
  width: 230px;
  height: 30px;
  font-size: 16px;
  border: 1px solid #00C;
  margin: 0.5em 0 0.5em 0.5em
}

#simple_link {
  position: relative;
  display: block;
  height: 26px;
  width: 220px;
  border: 1px dashed #F00;
  text-decoration: none;
}

#simple_link span {
  position: absolute;
  margin: 2px;
  border: 2px solid #EEE;
}

#simple_link .area_a {
  top: 2px;
  left: 3px;
}

#simple_link .area_b {
  top: 2px;
  right: 8px;
}

#simple_link .area_c {
  /* For the rollover to work for area_c
     in IE 7, the background must be set,
     or else only the border would trigger 
     the :hover. A transparent 1-pixel image
     can be tiled in the background, or the
     background-color set to a non-transparent
     color value. */
  /* background-image: url(images/spacer.gif); */
  background-color: #DDF;
  border-color: transparent;
  top: 2px;
  right: -350px;
  width: 11em;
  height: 20px;
}

#simple_link:hover .area_a {
  border: 2px dotted #AA0;
}

#simple_link:hover .area_b {
  border: 2px dashed #0DD;
}

#simple_link:hover .area_c {
  font-style: italic;
  border-color: #CC0;
}



/* ******* End Simple Example ******** */

/* ***** Sibling Selector ****** */

#outline {
  border: 2px solid #AAA;
  background-color: #EDE;
  padding: 0.5em;
  width: 18em;
}

#outline * {
  padding: 0;
  margin: 0;
  font-size: 0.8em;
}

div#siblingtest {
  width: 16em;
  height: 3em;
  font-size: 16px;
  /* Do not use a border - causes faulty :hover 
     behaviour in Safari  */
  /* border: 1px solid #00C; */ 
  margin: 0.5em auto 0.5em auto;
  /* Padding disables :hover in Safari */
  /* padding: 0.5em; */  
}

div#siblingtest div.mainchild {
  color: #808;
  border: 2px solid #CC0;
  text-decoration: none;
}

div#siblingtest div.mainchild:hover {
  color: #000;
}

div#siblingtest div.mainchild + div#a_sibling {
  border: 2px solid #0D0;
}

div#siblingtest div.mainchild:hover + div#a_sibling {
  color: #F33;
  border: 2px dotted #D0D;
}

/* Mysterious work-around for Safari :hover bug */
div#a_sibling *:hover { } 


/* *** End Sibling Selector *** */

/* *** Final Examples *** */
#two_more {
  position: relative;
  height: 255px;
  /* border: 1px solid #00C; */
}

#horseanimation {
  position: absolute;
  float: left;
  top: 0px;
  left: 0px;
}

#anatomyquiz {
  position: absolute;
  float: right;
  top: 0px;
  right: 0px;
}

#two_more_text {
  margin: 0.5em 315px 0.5em 200px;
}

/* *** Final Examples *** */
