/* Thanks to Steve Friedl (www.unixwiz.net) and Chris Mospaw (www.mospaw.com)
 * for the original stylesheet.  Modifications and blunders added by Ray.
 */

/* just a note for older browsers */
#warning { display: none; }

.right    { float: right;
      padding: 4px 0 4px 4px; }
.left     { float: left;
      padding: 4px 4px 4px 0; }
.centered { display: block;
      text-align: center;
      padding: 4px;
      margin: 0; }

.cleared  { clear: both; }

TABLE {
  border-collapse: collapse;
}
th, td {
  padding: 2px;
}

HTML {
  position: absolute;
  background-color: #FBFBF2;
  width: 100%; /* Necessary for IE 5.2 on Mac */
}

BODY {
  font-family: Verdana, Tahoma, Trebuchet,
    "Trebuchet MS", Arial, Geneva, Helvetica, sans-serif;
  position: relative;
  background: url(images/pageframe-right.gif) #ffffff right top repeat-y;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%; /* Necessary for IE 5.2 on Mac */
  max-width: 1100px;
}

/* My main logo in the upper left */

#logo IMG {
  position: absolute;
  top:  5px;
  left: 5px;
  width: 140px; height: 90px; /* was 140x90 */
  padding: 0;
  margin: 0;
  border: 0;
  z-index: 1; /* makes it visible above the rest of the page */
}

/* Header Information */

#pageheader {
  width: auto;
  right: 40px;
  left:  0;
  position: relative;
  background: url(images/pageframe-left-160.gif) left top repeat-y;
  margin: 0;
  padding-top:     0px;
  padding-right:  23px;
  padding-left:  165px;
  padding-bottom: 18px;
  line-height: 1.4em;
}

#pageheader p {
  margin: 0;
  border: 0;
  padding: 0 0 1em 0;
}

.footnote {
  font-size: 75%;
}

/* h1 used for the top top title of the page */
#pageheader h1 {
  padding: 12px 0.5em 0 0;
  margin: 0;
  text-align: right;
  font-size: 150%;
  font-weight: normal;
  color: gray;
}

/* h2 used for the subtitle of the page (if any) */
#pageheader h2 {
  margin: 0;
  padding: 0.5em 0.5em 0.5em 0;
  font-size: 125%;
  text-align: right;
  border-bottom: 3px solid #00F;
}

/* Nav menu on the left */

#navmenu {
  font-size: 75%;
  position: absolute;
  top:  100px;
  left: 2px;
  width: 165px;
  z-index: 2;
  padding: 0;
  margin: 0;
  border: 0;
}

#navmenu ul {
  list-style: none;
  padding: 0;
  margin: 0 33px 0 5px;
  border: 0;
}

#navmenu li {
  margin: 0;
  padding: 0;
  width: 100%;
}

#navmenu a.navmenu {
  background: url(images/menublock.gif) left center no-repeat;
  display: block;
  color: #003;
  padding: 0;
  text-decoration: none;
  padding: 3px 3px 3px 12px;
  margin: 0 3px 0 8px;
  width: 100%;
}

#navmenu a.navmenu:hover {
  background: url(images/menuback.gif) #00F right top repeat-y;
  font-weight: bold;
  color: #fff;
  border-left:   2px solid #000;
  border-top:    1px solid #000;
  border-bottom: 1px solid #000;
  margin-left: 6px;
  padding: 2px 3px 2px 12px;
}

#menufooter {
  text-align: center;
}

#menufooter img {
  padding: 5px 5px 5px 5px;
}

/* Main content */

#pagecontent {
  width: auto;
  right: 40px;
  left: 0;
  position: relative;
  background: url(images/pageframe-left-160.gif) left top repeat-y;
  margin: 0;
  padding-top: 1px;  /* quirk for FF 1.0.2 */
  padding-right: 33px;
  padding-bottom: 1px;   /* quirk for FF 1.0.2: if 0, leaves gap */
  padding-left: 170px;
  /* line-height: 1.4em; */
}

#pagecontent a         { text-decoration: none; border-bottom: 1px dotted #C77; }
#pagecontent a:visited { text-decoration: none; border-bottom: 1px dotted #D77; }
#pagecontent a:hover   { text-decoration: none; border-bottom: 1px solid #049;}

#pagecontent p {
  margin: 0px;
  border: 0;
  padding: 0 0 0.5em 0;
}

#pagecontent hr {
  text-decoration: none;
  color: #F00;
  height: 0;
  border-bottom: 2px solid #f00;
}

#pagecontent blockquote {
  padding: 6px;
  width: 80%;
  text-align: left;
  display: block;
  margin-top: 4pt;
}

#pagecontent blockquote hr {
  text-decoration: none;
  color: #966;
  height: 0;
  border-bottom: 1px solid #966;
}

/* Make images > screen width fit to screen. */
#pagecontent img {
  max-width: 100%;
  height: auto;
}

/* We really like our monospace to use the coolest fonts available */
#pagecontent PRE,
#pagecontent TT {
    font-family: Consolas, "Lucida Console", "Courier New", Courier, Aria, monospace;
}

/* top-level header: blue border on top & the left */
#pagecontent H1 {
  font-size: 120%;
  font-weight: normal;
  padding-left: 8px;
  margin-top: 16pt;
  border-top: solid blue 2px;
  border-left: solid blue 2px;
}

#pagecontent H2 {
  font-size: 110%;
  padding-left: 8px;
  border-left: blue solid 8px;
  margin-top: 8pt;
  margin-bottom: 6pt;
}

#pagecontent H3 {
  font-size: 102%;
  padding-left: 3px;
  border-left: blue dotted 8px;
  margin-top: 8pt;
  margin-bottom: 6pt;
}

/* blocklabel & codeblock need the same margin-left */
#pagecontent .blocklabel {
  background: url(images/mglass.gif) left center no-repeat;
  margin-left: 3em;
  text-indent: 14px;  /* 11px = width of mglass.gif */
  font-size: 90%;
  border-width: 2px;
  line-height: 1.4em;
  margin-bottom: -0.75em;
}

/* used in (PRE class="codeblock") FEE */
#pagecontent .codeblock {
  border-top: solid 2px;
  border-left: solid 2px;
  border-bottom: solid 2px;
  border-color: #C0C0C0;
  margin-left: 3em;
  padding: 0.5em;
  background: #00A;
  width: 85%;
  font-size: 90%;
  color: white;
  overflow-x: auto;
}

/* Thicker, red border to indicate a bad example */
#pagecontent .badcodeblock {
  border-top: solid 3px; 
  border-left: solid 3px;
  border-bottom: solid 3px;
  border-color: #FF0000;
  margin-left: 3em;
  padding: 0.5em;
  background: #500000;
  width: 85%;
  font-size: 90%;
  color: white;
  overflow-x: auto;
}

/* used in (PRE class="email") */
#pagecontent .email {
  border-top-style: solid;
  border-bottom-style: solid;
  border-color: #888;
  margin-left: 3em;
  padding: .5em;
  background: #FEE;
  width: 80%;
  font-size: 90%;
}

/* used in right-aligned images */
#pagecontent .imageright {
  float: right;
}

/* dimensions of the little red bricks */
#pagecontent .redbrick {
  height: 14px;
  width:  6px;
}

/* for DL lists representing cmdline options */

#pagecontent .cmdopt DT {
  font-family: "Lucida Console", "Courier New", Courier, Arial, monospace;
  font-weight: bold;
  font-size: 100%;
  margin-left: 1em;
  text-indent: 0.5em;
  margin-top: 12pt;
  border-top-style: solid;
  border-left-style: solid;
  border-color: blue;
  border-width: 1px;
  background: #DDDDFF;
  width: 50%;
}
#pagecontent .cmdopt DD {
  margin-top: 6pt;
}

/* "LI" should always spaced a bit, but we do have an option for nospace */
#pagecontent LI { margin-top: 0.5em; }

#pagecontent .nospace LI { margin-top: 0; }

#pagecontent .redbrick IMG {
  height: 14px;
  width: 6px;
}

#pagecontent .reddot IMG {
  height: 6px;
  width:  6px;
}

#pagecontent .smiley IMG {
  height: 15px;
  width:  15px;
}

#pagecontent .required IMG {
  height: 16px;
  width:  29px;
}

/* dotted boxes at the start of the document: "work in progress",
 * "warnings" or "this is obsolete".
 */
#pagecontent .obsolete,
#pagecontent .wip,
#pagecontent .topnote {
  border: dashed black 2px;
  padding: 4px;
  margin-left: 5em;
  margin-bottom: 1em;
  width: 75%;
  background-color: #DDDDFF;
  font-size: 100%;
}
/* WAS background-color #f6c; then #FF8C00; */

#pagecontent .small {
  font-size: 70%;
}

#pagecontent .warning {
  border: dashed black 2px;
  padding: 4px;
  margin-left: 5em;
  margin-bottom: 1em;
  width: 75%;
  background-color: #FF9999;
  font-size: 100%;
}

/* a DL with dotted-line left decorations */
#pagecontent DL.defnlist {
  margin-left: 0.5em;
}
#pagecontent .defnlist DT {
  font-weight: bold;
  border-left: blue dotted 5px;
  padding-left: 8px;  /* between border & text */
  margin-top: 6pt;
}
#pagecontent .defnlist DD {
  margin-left: 2em;
  margin-top: 6pt;
}

/* standard information tables: mainly includes just
 * spacing
 */

#pagecontent TABLE.standard {
        margin-left:   2em;
        border: solid black 1px;
}
#pagecontent .standard TH,
#pagecontent .standard TD {
        border: solid black 1px;
        padding: 6px;
}
#pagecontent .standard TD {
        vertical-align: top;
}
#pagecontent .standard TH {
        background-color: #f6c;
}
#pagecontent .standard CAPTION {
        font-weight: bold;
        margin-bottom: 0.5em;
}

/* inline image, ala <blockquote> */
#pagecontent IMG.leftImage {
        margin-left: 2em;
}

#pagecontent IMG.floatRight,
#pagecontent IMG.floatRightTop {
        float: right;
        border: 0;
        margin: 1em 0 1em 1em;
}

#pagecontent IMG.floatRightTop {
        margin-top: 0;
}

#pagecontent IMG.floatLeft {
        float: left;
        margin: 4px 0 4px 0;
}

#pagecontent IMG.floatFarLeft {
        float: left;
        margin: 4px 2em 4px 2px;
}

.image-txt-container {
  display:flex;
  align-items:center;
  flex-direction: row;
}

/* used by the @NAV{} business */

#navmore {
  margin-top: 2em;
  margin-bottom: 1em;
}

#navmore A {
  display: inline;
  background-color: #f6c;
  padding: 0.5em 1em 0.5em 1em;
  border: dashed black 1px;
}

/* MVP logo requires 1/2 of height spacing on all sides */
#logogroup IMG {
  margin: 36px;
}

.alert {
	color: red;
}

/* PAGEFOOTER BELOW CONTENT AREA */

#pagefooter {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: url(images/pageframe-b-left-160.gif) #FBFBF2 no-repeat left top;
}

#pagefooter .bottomright {
  position: relative;
  font-size: 1px; color: #FBFBF2;
  background:
    url(images/pageframe-b-right.gif)
    no-repeat
    top
    right;
  float: right;
  height: 17px;
  width: 56px;
  margin: 0;
  padding: 0;
  border: 0;
}

#pagefooter .pagefootercontent {
  padding-top:    18px;
  padding-bottom:  8px;
  padding-left:  197px;
  padding-right: 20px;
  margin: 0;
  font-size: .75em;
  color: #A6857E;
  text-align: right;
}

#pagefooter .pagefootercontent IMG {
  vertical-align: middle;
}

#pagefooter .pagefootercontent a {
  color: #89B;
  text-decoration: none;
}

#pagefooter .pagefootercontent a:hover {
  color: #A6857E;
  text-decoration: underline;
}

#pagefooter .divbrick {
  border-left: solid purple 0.5em;
  margin-left: 0.25em;
}

#helpmenu {
  display: none;
}

/*
 * PRINTING STYLESHEET: turn off the fancy nav stuff that
 * doesn't look right.
 */

@media print {
    
  HTML          { background: none; }
  BODY          { background: none; font-size: 10pt; }
  #pageheader   { background: none; }
  #pagecontent  { background: none; }
  #pagefooter   { background: none; }
  #navmenu      { display: none;    }
  #navmore      { display: none;    }

  .noprint { display: none; }
  
  #logo {
    padding-right: 2em;
  }
  #logo IMG { width: 100px; height: 64px; }
  
  #pageheader {
    border: none;
  }

  #pageheader h1,
  #pageheader h2 {
    padding-right: 0;
    margin-right: 0;
  }

  #pageheader h2 {
    border-bottom: none;
  }

  #pagecontent {
    right: 0;
    border-top:    black solid 2px;
    border-bottom: black solid 2px;
    padding-top: 1em;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  #pagecontent .codeblock { color: black; }
  #pagecontent .badcodeblock { color: black; }
  
  #pagefooter .menublock {
    border-left-color: black;
  }

  #pagefooter {
    border-top: none;
  }

  #pagefooter .pagefootercontent {
    color: black;
    padding-left: 0;
    text-align: left;
    font-size: 100%;
  }

  #pagefooter .bottomright { display: none; }
  
  /* Do not color or underline printed links */
  a                 { color: black; text-decoration: none; border-bottom: none; }
  a:link       { color: black; text-decoration: none; border-bottom: none; }
  a:visited { color: black; text-decoration: none; border-bottom: none; }
  a:hover     { color: black; text-decoration: none; border-bottom: none; }
  a:active   { color: black; text-decoration: none; border-bottom: none; }
  
}

/*
 * MOBILE STYLESHEET
 */
 
@media screen and (max-width:600px) {
  HTML { background: none; }
  BODY { background: none; }
  #pageheader { padding-left: 5px; padding-right: 5px; background: none; margin-left: 105px; padding-bottom: 5px; }
  #pageheader h2 { border-bottom: none; }
  #logo IMG { width: 100px; height: 64px; }
  #navmenu { display: none; width: 0px; background: none; }
  #pagecontent { background: none; padding-left: 5px; padding-right: 5px; padding-top: 10px; border-top: 3px solid #00F;}
  #pagecontent .topnote { margin-left: 10px; margin-right: 10px; width: 90%}
  #pagecontent .warning { margin-left: 10px; margin-right: 10px; width: 90%}
  #pagecontent .codeblock { margin-left: 6px; margin-right: 6px; padding: 2px; width: 96%; }
  #pagecontent .badcodeblock { margin-left: 6px; margin-right: 6px; padding: 2px; width: 96%; }
  #pagecontent .cmdopt DT { width: 50%; }
  #pagefooter { background: none; }
  #pagefooter .bottomright { background: none; }
  #pagefooter .pagefootercontent { padding-left: 5px; padding-right: 5px; }
  #helpmenu { display: inline; }
}
