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

/* This is the stylesheet for the ``Introduction to general linguistics''
   course, LIN 114, for fall semester, 2009.
*/

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

/* created July 28, 2008
   last revised October 26, 2009
*/

/* Use a beige background for the document. */

body {
  background: #F5F5DC;
  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;
}

/* Shrink and indent the readings. */

span.reading {
  font-size: smaller;
  padding-left: 1em;
}

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

div.footer {
  font-size: smaller;
}


/* The XHTML and CSS validation logos and the Creative Commons logo have a
   common width and height.  Display them 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: 29%;
    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: 59%;
    margin-left: 37%;
    margin-bottom: 4%;
  }

  /* ``Small body'' sections are laid out like other body sections, but in
     a smaller font.
  */

  div.small-body {
    text-align: left;
    font-size: smaller;
    background: white;
    border: thin solid;
    padding: 1em;
    width: 59%;
    margin-left: 37%;
    margin-bottom: 4%;
  }

  /* Extra page navigation is not needed on screen. */

  div.page-navigation {
    display: none;
  }

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

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

@media print {

  html {
    font-size: smaller;
  }

  /* Suppress the sidebar when printing. */

  div.side {
    display: none;
  }

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

  /* ``Small body'' sections are laid out like other body sections, but in
     a smaller font.
  */

  div.small-body {
    text-align: left;
    font-size: smaller;
    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;
  }
}
