/* Emacs: This is a cascading style sheet (CSS2).  Use -*- text -*- mode.
*/

/* This is the stylesheet for the ``Foundations of computer science I''
   course, CSC 151, for spring semester, 2005.
*/

/* John David Stone
   Department of Computer Science
   Grinnell College
   stone@cs.grinnell.edu
*/

/* created June 27, 2001
   last revised April 27, 2007
*/

/* Use a light blue background for the document. */

body {
  background: #C0C0FF;
  color: black;
  margin: 4%;
  text-align: center;
}

/* Position the main header in the center at the top. */

h1 {
  background: white;
  border: thin solid;
  padding: 1.5em;
}

/* Adjust the space around items in the link farms. */

p.link-farm {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

/* Box program code and display it against a lightly shaded background. */

pre.code {
  background: #e8e8e8;
  color: black;
  border: thin solid;
  padding: 2%;
}

pre.interactive {
  padding: 0%;
  margin: 0%;
}

/* Adjust the colors of Scheme output to conform to DrScheme's
   conventions.
*/

span.schemeresult {
  background: white;
  color: navy;
  font-weight: bold;
}

pre.schemeoutput {
  background: white;
  color: purple;
  font-weight: bold;
  font-family: Courier, monospace;
  border: solid black thin;
  padding: 0.3em;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

span.schemeinput {
  background: white;
  color: green;
  font-weight: bold;
  font-family: Courier, monospace;
}

span.schemeerror {
  background: white;
  color: red;
  font-style: oblique;
  font-stretch: condensed;
  font-weight: normal;
  font-family: Courier, monospace;
}

span.schemeerrorproc {
  background: white;
  color: blue;
  font-style: oblique;
  font-stretch: condensed;
  font-weight: normal;
  font-family: Courier, monospace;
  text-decoration: underline;
}

/* Set the footer at the end, centered, without an enclosing box. */

div.footer {
  font-size: smaller;
}


/* The XHTML and CSS validation logos have a common width and height.
   Display them without borders.
*/

img.validation-logo {
  border: 0;
  width: 88px;
  height: 31px;
}

/* In fact, display all the logos, including the Creative Commons logo,
   without borders.
*/

img.logo {
  border: 0;
  width: 88px;
  height: 31px;
}

@media screen {

  /* Allocate about a third of the width of the document for the navigation
     block and the sidebar, placing them at the left of the window.
  */

  div.side {
    float: left;
    clear: left;
    text-align: left;
    font-size: smaller;
    background: white;
    border: thin solid;
    padding: 1em;
    width: 18%;
    margin-bottom: 4%;
  }

  /* Allocate most of the rest of the space for the body of the document,
     placing it at the right.
  */

  div.body {
    text-align: left;
    background: white;
    border: thin solid;
    padding: 1em;
    width: 70%;
    margin-left: 26%;
    margin-bottom: 4%;
  }

  /* Suppress the URL information, which should already be available in
     the user's browser.
  */

  div#url-block {
    display: none;
  }
}

@media print {

  /* Suppress the sidebar when printing. */

  div.side {
    display: none;
  }

  div.body {
    text-align: left;
    background: white;
    border: thin solid;
    padding: 1em;
    margin-bottom: 4%;
  }

  /* Navigation information makes no sense in hard copy. */

  div.page-navigation {
    display: none;
  }

  div#navigation-block {
    display: none;
  }
}
