@font-face {
  font-family: "MonoCondensed";
  src: local("DejaVu Sans Mono Condensed"), url("http://horstmann.com/MySlidy/DejaVuSansMonoCondensed.otf") format("opentype");
}

@font-face {
  font-family: "Handwriting";
  src: local("MarkingPen"), url("http://horstmann.com/MySlidy/MarkingPen.otf") format("opentype");
}

@import url(http://fonts.googleapis.com/css?family=Cabin:400,700,400italic,700italic);

h1 { 
    border-bottom-style: double;
    border-bottom-color: #00008B /* darkblue */;
    border-bottom-width: thick; 
    clear: both; 
}

body {
   font-family: sans-serif; /* so that entities come out ok */
}

h1, h2, h3, h4 {
  font-family: "Cabin", sans-serif;
  font-weight: bold;
}

code, tt, pre { 
  font-family: "MonoCondensed", monospace, Courier;
  color: #444;
}

code b { 
  color: black;
}

blockquote {
  background: #eee;
  padding: 1em;
  font-size: 0.8em;
}

pre {  clear: none;
  background-color: #FFFEED;
  border-color: #ccc;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding: 0.5em;
  border-style: solid;
  border-width: 1px;
}


pre strong { 
  color: red;
}

pre em { 
  color: gray;
}

a:link { color: #00008B /* darkblue */
}

a:visited { color: #9090a0 /* darkblue */
}

ul > li { 
 list-style-type: square;
}

ol > li { 
  margin-bottom: 0.5em;
}

.u {
  text-decoration: underline;
}

.note {    
  background-image: url("images/note-icon.gif");
  background-repeat: no-repeat;
  padding-left: 25px;
  padding-bottom: 5px;
}

.caution {    
  background-image: url("images/caution-icon.gif");
  background-repeat: no-repeat;
  padding-left: 25px;
  padding-bottom: 5px;
}

.question { 
  background-image: url("images/question-icon.png");
  background-repeat: no-repeat;
  padding-left: 25px;
}

.optional { 
  background-image: url("images/optional-icon.png");
  background-repeat: no-repeat;
  padding-left: 25px;
  padding-bottom: 5px;
}

.windows {    
  background-image: url("images/windows-icon.png");
  background-repeat: no-repeat;
  padding-left: 25px;
  padding-bottom: 5px;
}

.url {
  text-decoration: underline; 
}

.u {
  text-decoration: underline; 
}

del {
  text-decoration: line-through;
}

.napkin, .hand, samp { 
  font-family: "Handwriting", "Comic Sans MS";
}

.napkin { 
  font-size: 1.2em;
  border-collapse: collapse;
}

.napkin td { 
   border-style: solid;
   border-width: thin;   
}

pre.napkin { 
  background-color: #B0E0E6 /* powderblue */;
}

dt {
  font-weight: bold;
  margin-top: 0.2em;
  margin-bottom: 0.3em;
}

table { 
  border-collapse: collapse;
  border-style: none;
  font-size: 0.9em;
  margin-left: 2em;
}


tr { 
  background: #eee;
   border-bottom-style: solid;
   border-bottom-width: thin;   
  border-bottom-color: white;
}

tr:hover { 
  background: #ccc;
}

th { 
  border-style: none;
  background: firebrick;
  padding: 0.5em;
  color: white;
}

td { 
  border-style: solid thin white;
  padding: 0.5em;
  margin: 1em;
}

td.selected { 
   background: #7cccc8;
}

td.gray { 
  background: #bde4e1;
}

.horizontalmenu {
 font-size: 90%;
}

.horizontalmenu ul {
 list-style: none;
 padding: 0;
}

.horizontalmenu li {
 display: inline;
 margin: 0.1em;
}

.horizontalmenu a:link, .horizontalmenu a:visited {
 padding: 0.4em 1em 0.4em 1em;  
 color: #FFFFFF;
 background-color: #B51032;
 text-decoration: none;
}

.horizontalmenu a:hover {
 color: #FFFFFF;
 background-color: #711515;
}

.title { 
 margin: 0em;
 padding: 0.35em;
 font-size: 2em;
 font-weight: bold;
 color: white;
 background-color: #222;
 font-family: "Cabin", sans-serif;
}

.lower-alpha, .lower { 
 list-style: lower-alpha;
}

.upper { 
 list-style: upper-alpha;
}

.note:before {    
  content: " Note: ";
  font-weight: bold;
}

.note, .caution {
  border-color: #ccc;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border-style: solid;
  border-width: 1px;
}

.outcome:before {    
  content: " Outcome: ";
  font-weight: bold;
}

.outcome {
  background-color: cornsilk;
}

.rubric:before {    
  content: " Rubric: ";
  font-weight: bold;
}

.rubric {
  background-color: cornsilk;
}



.answer { 
  border-style: solid;
  border-width: 0.25pt;
}

.answer td { 
  border-style: dotted;
  border-width: 0.25pt;
}


.textfield { 
  border-style: solid;
  border-width: 0.25pt;
  width: 100%;
}


.textfield td { 
  height: 3ex;
  border-style: dotted;
  border-width: 0.25pt;
}

@media print { 

  .answer td { 
    padding: 0.5ex;
  }

  pre { 
    font-size: 8pt;
  }

  .solution {
    color: white;
    font-size: 1pt;
  } 
  .solution table { 
    color: black;
    page-break-inside: avoid;
  }   

  .solution table td { 
    color: white;
    border-color: black;
    padding: 0.125in;
  }

  .outcome, .note { 
    display: none;
  }

  .solution img { 
    visibility: hidden;
    padding: 0.5in 0.5in 0.5in 0.5in; 
  }

}

@media screen { .solution {
  color: red;
  font-style: italic;  
  } }

.wordchoice { 
  text-decoration: underline;
  letter-spacing: 1in;
 }

.wordchoice .solution { 
  letter-spacing: normal;
 }

.description { 
  padding-left: 0.5in;
  padding-right: 0.5in;
  font-style: italic;  
 }


@page :right {
  @bottom-right {
    content: counter(page);
  }
}

var, .var {
  font-style: italic;
  font-family: serif;
}

abbr, .gray { 
  color: gray;
}

pre cite, code cite, pre span.rm, code span.rm, pre span.c, code span.c {
  font-style: normal;
  font-family:  serif
}

acronym, .black { 
  color: white;
  background: black;
}

dl.calendar {
    margin: 1em;
    font-family: sans-serif;
    font-size: 0.8em;
}

dl.calendar > dt{
  display: inline-block;
  min-width: 18em;
  margin-right: 1em; 
  font-weight: bold;
}

dl.calendar > dd {
  display: inline;
  margin: 0;
}

dl.calendar > dd:after{
display: block;
content: '';
}

