
/*** BACKGROUND  ***/

body {
  background-color: white;
  color: black;
  margin: 0;
}


/*** FONTS ***/

body {
  font-family: Helvetica, sans-serif;
}

pre, code, input[type=text], textarea {
  font-family: Courier, monospace;
  font-size: small;
}

input[type=submit], input[type=reset] {
  font-family: Helvetica, sans-serif;
  font-size: small;
}

/* prefer Times in paper */
@media print {
  body {
    font-family: Times, serif;
    font-size: 10pt;
  }
  pre, code, input[type=text], textarea {
    font-family: Courier, monospace;
    font-size: 10pt;
  }
}


/*** CENTERED TOP-LEVEL CONTAINER ***/

.sg_center {
  max-width: 840px;
  min-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}



/*** CONTENT CONTAINER ***/

/* add empty space around content part */
#sg_content {
  text-align: left;
  padding-left: 2ex;
  padding-right: 1ex;
  margin-top: 0;
  margin-left: 16ex;
  margin-bottom: 2ex;
  border-left: 1px solid #99ccdd;
}

@media print {
  /* use full page width */
  #sg_content {
    margin-left: 0;
    margin-right: 0;
    border-left: 0;
  }
}


/*** TOPBAR ***/

#sg_topbar {
  color: white;
  background: #666666;
  padding-top: 4px;
  padding-bottom: 4px;
  width: 100%;
  margin-bottom: 2ex;
  font-size: 100%;
}

#sg_topbar a {
  padding-left: 0.5ex;
  padding-right: 0.5ex;
}

#sg_topbar a, #sg_topbar a:active, #sg_topbar a:visited {
  color: #fecb66;
  text-decoration: none;
  font-weight: normal;
}

#sg_topbar a:hover, #sg_topbar a:visited:hover {
  color: #fff0a0;
  text-decoration: none;
  font-weight: normal;
}

#sg_topbar #sg_linkbar {
  text-align: right;
  margin-right: 1ex;
}

#sg_topbar #sg_logo {
  text-align: left;
  float: left;
  margin-left: 1ex;
}

@media print {
  /* hide topbar from printout */
  #sg_topbar {
    display: none;
  }
}


/*** MENUS ***/

/* highlight current topic in topbar */
#sg_indexpage #sg_topbar #sg_home,
#sg_direntpage #sg_topbar #sg_util,
#sg_jsphotopage #sg_topbar #sg_util,
#sg_mixerpage #sg_topbar #sg_util,
#sg_yabwritepage #sg_topbar #sg_util,
#sg_openttdpage #sg_topbar #sg_game,
#sg_freecellpage #sg_topbar #sg_game,
#sg_potrispage #sg_topbar #sg_game,
#sg_ps2yabasicpage #sg_topbar #sg_game, 
#sg_virtualboxpage #sg_topbar #sg_solaris,
#sg_seamonkeypage #sg_topbar #sg_solaris,
#sg_openttd-solarispage #sg_topbar #sg_solaris,
#sg_icewmpage #sg_topbar #sg_solaris,
#sg_mplayerpage #sg_topbar #sg_solaris,
#sg_xfigpage #sg_topbar #sg_solaris,
#sg_subversionpage #sg_topbar #sg_solaris,
#sg_aboutpage #sg_topbar #sg_info,
#sg_personpage #sg_topbar #sg_info,
#sg_newspage #sg_topbar #sg_info,
#sg_thankspage #sg_topbar #sg_info,
#sg_contactpage #sg_topbar #sg_info,
#sg_sitemappage #sg_topbar #sg_sitemap
{
  font-weight: bold;
}

/* hide all sub-menus by default */
#sg_gamemenu, #sg_utilmenu, #sg_infomenu, #sg_othermenu, #sg_solarismenu {
  display: none;
}

/* show proper sub-menu in the sidebar */
#sg_direntpage #sg_utilmenu,
#sg_jsphotopage #sg_utilmenu,
#sg_mixerpage #sg_utilmenu,
#sg_yabwritepage #sg_utilmenu,
#sg_openttdpage #sg_gamemenu,
#sg_freecellpage #sg_gamemenu,
#sg_potrispage #sg_gamemenu,
#sg_ps2yabasicpage #sg_gamemenu,
#sg_virtualboxpage #sg_solarismenu,
#sg_seamonkeypage #sg_solarismenu,
#sg_openttd-solarispage #sg_solarismenu,
#sg_icewmpage #sg_solarismenu,
#sg_mplayerpage #sg_solarismenu,
#sg_xfigpage #sg_solarismenu,
#sg_subversionpage #sg_solarismenu,
#sg_aboutpage #sg_infomenu,
#sg_personpage #sg_infomenu,
#sg_newspage #sg_infomenu,
#sg_thankspage #sg_infomenu,
#sg_contactpage #sg_infomenu, 
#sg_sitemappage #sg_othermenu,
#sg_indexpage #sg_othermenu,
#sg_contact-donepage #sg_othermenu,
#sg_errorpage #sg_othermenu,
#sg_whatsmyippage #sg_othermenu
{
  display: block;
}

/* highlight current page in sidebar */
#sg_openttdpage #sg_openttd,
#sg_freecellpage #sg_freecell,
#sg_potrispage #sg_potris,
#sg_ps2yabasicpage #sg_ps2yabasic,
#sg_direntpage #sg_dirent,
#sg_virtualboxpage #sg_virtualbox,
#sg_jsphotopage #sg_jsphoto,
#sg_mixerpage #sg_mixer,
#sg_yabwritepage #sg_yabwrite,
#sg_virtualboxpage #sg_virtualbox,
#sg_seamonkeypage #sg_seamonkey,
#sg_openttd-solarispage #sg_openttd-solaris,
#sg_icewmpage #sg_icewm,
#sg_mplayerpage #sg_mplayer,
#sg_xfigpage #sg_xfig,
#sg_subversionpage #sg_subversion,
#sg_aboutpage #sg_about,
#sg_personpage #sg_person,
#sg_newspage #sg_news,
#sg_thankspage #sg_thanks,
#sg_contactpage #sg_contact {
  list-style-image: url(arrow.gif);
  font-weight: bold;
}



/*** SIDEBAR ***/

#sg_sidebar {
  text-align: right;
  width: 14ex;
  float: left;
  margin: 0;
  padding: 0;
}

#sg_sidebar a, #sg_sidebar a:active, #sg_sidebar a:visited {
  color: #3366cc;
  text-decoration: none;
}

#sg_sidebar a:hover, #sg_sidebar a:visited:hover {
  color: #3366cc;
  text-decoration: underline;
}

#sg_sidebar h1 {
  font-size: 100%;
  color: black;
  font-weight: bold;
  margin-top: 0;
}

#sg_sidebar ul {
  list-style: none;
  padding-left: 0;
}

@media print {
  /* hide sidebar from printout */
  #sg_sidebar {
    display: none;
  }
}


/*** MARGINAL NOTES ***/

.sg_margin {
  float: right;
  padding: 1ex;
  margin: 1ex;
  margin-right: 0;
  border: 1px solid #b0b0b0;
  background-color: #fffce0;
  font-size: small;
  max-width: 24ex;
}


/*** LINKS ***/ 

a, a:active, a:visited {
  color: #3366cc;
  text-decoration: none;
}

a:hover, a:hover:visited {
  color: #3366cc;
  text-decoration: underline;
}

@media print {
  /* underline links */
  a, a:active, a:visited, a:hover, a:visited:hover {
    text-decoration: none;
    color: black;
  }
}


/*** TABLES ***/

/* add space between cells in tables */
td, th {
  padding-left: 0.5ex;
  padding-right: 0.5ex;
  padding-top: 1px;
  padding-bottom: 1px;
  font-size: small;
}

/* separate table header from data rows */
th {
  border-bottom: 1px solid black;
  text-align: left;
}


/*** SUPERSCRIPTS ***/

/* superscipts do not increase line height */
.sg_ref, sup {
  position: relative;
  vertical-align: top;
  top: -0.25em;
  font-size: x-small;
}



/*** FLOATING IMAGES ***/

img {
  border: 1px solid black;
}

#sg_sidebar img, #sg_topbar img {
  border: 0;
}

#sg_tocimage {
  float: right;
  padding: 1ex;
  margin-left: 2ex;
}

.sg_rimage {
  float: right;
  margin-left: 1ex;
  margin-bottom: 1ex;
}
.sg_cimage {
  margin-bottom: 1ex;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sg_imgcaption {
  font-weight: bold;
  text-align: center;
  font-size: small;
  font-style: italic;
}


/*** TITLES AND SUBTITLES ***/

/* page title */
.sg_pagehead {
  font-size: 150%;
}
#sg_errorpage .sg_pagehead {
  color: #cc3333;
}

/* regular in-page titles */
h1 {
  font-size: 120%;
  font-weight: bold;
  color: #ff9900;
  page-break-after: avoid;
}
h2 {
  font-size: 100%;
  font-weight: bold;
  page-break-after: avoid;
}
h3 {
  font-size: small;
  font-weight: bold;
  page-break-after: avoid;
  margin-bottom: 0;
}
h3 + p {
  margin-top: 0;
}
@media print {
  h1 {
    color: black;
  }
}


/*** PARAGRAPHS ***/

p, li, .sg_toplink {
  line-height: 150%;
  font-size: small;
}

pre {
  margin-left: 0;
  margin-right: 0;
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 0.5ex;
  border: 1px solid #b0b0b0;
  background-color: #fffce0;
}

@media print {
  pre {
    border: 0;
    background: white;
  }
}


/*** TABLE OF CONTENTS ***/

/* first and second level titles in toc */
.sg_toc1 {
  padding-left: 0;
  font-size: 100%;
}
.sg_toc2 {
  padding-left: 4ex;
  font-size: small;
}

/* show section numbers */
.sg_sectno {
  display: inline;
}
.sg_toctitle {
  margin-left: 1ex;
}

@media print {
  /* hide links to the top */
  .sg_toplink {
    display: none;
  }

  /* normal line height for toc */
  .sg_toc1, .sg_toc2 {
    line-height: 150%;
  }
}



/*** REFERENCES ***/

.sg_refname {
  text-transform: capitalize;
}


/*** FORMS ***/

input[type=text] {
  font-weight: normal;
}

textarea {
  font-weight: normal;
  width: 98%;
}

input[type=submit], input[type=reset] {
  margin-left: 0.25ex;
  margin-right: 0.25ex;
}


/*** CHANGELOG/NEWS ***/

.newsitem {
  margin-bottom: 1em;
  max-width: 60ex;
}

.newsitem h1 {
  font-weight: bold;
  font-size: 100%;
  margin-top: 1ex;
  margin-bottom: 0.5ex;
  page-break-after: avoid;
}

.newsitem p {
  margin-top: 0.5ex;
}

.newsitem span {
  margin-bottom: 1ex;
  font-size: small;
  font-weight: bold;
}


/*** FANCY CHECK BUTTON ***/

.sg_checkbtn {
  display: block;
  height: 32px;
  padding-left: 32px;
  padding-top: 6px;
  vertical-align: bottom;
  background: no-repeat transparent url(off.gif);
  font-size: small;
  margin-bottom: -2ex;
  margin-left: -8px;
}
