﻿/* ============================================================
   ORIGINAL FLOAT RULES — KEEP FOR EASY REVERSIONS
   Uncomment these and delete the flexbox versions below
   if you ever want to restore the old behavior.
----------------------------------------------------------------
.figstyleLeft { float:left; margin-right:10px; margin-left:35px; padding-top:5px; }
.figstyleRight { float:right; margin-left:8px; margin-right:35px; padding-top:5px; }
================================================================ */

/* ============================================================
   MODERN RESET
   Lightweight, accessible, replaces the old 30‑selector reset
============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   CSS VARIABLES — makes future edits easier
============================================================ */
:root {
  --crimson: #770000;
  --paper: lightgoldenrodyellow;
  --ink: #000000;
  --nav-bg: #333333;
  --body-bg: #808080;
}

/* ============================================================
   GLOBAL STYLES
============================================================ */
body {
  background-color: var(--body-bg);
  font-family: "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  color: var(--ink);
  line-height: 1.1;
}

hr {
  border: none;
  border-top: 1px solid #333333;
}

sup {
  vertical-align: 25%;
  font-size: 10px;
  color: var(--crimson);
}

/* Headings */
h1 { font-size: 28px; font-weight: normal}
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

/* Text elements */
p, table, li, tr, td {
  font-size: 14px;
  color: var(--ink);
}

img {
  margin: 0;
  padding: 0;
  max-width: 100%;   /* responsive images */
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 12px;
  color: black;
  background-color: var(--paper);
  border-bottom: 1px solid black;
  padding: 0 0 5px 0;
  text-align: center;
}

/* Tables */
table, td, th {
  border: 1px solid black;
  border-collapse: collapse;
  background-color: #f5f5f5;
  margin: 0 35px;
  text-align: left;
  padding: 8px;
}

/* ============================================================
   COLOR CLASSES
============================================================ */
.crimson { color: var(--crimson); }

/* ============================================================
   MODERNIZED FIGURE ALIGNMENT (FLEXBOX)
   — preserves your look
   — images shrink proportionally
   — captions stay same width as image
============================================================ */

/* Modernized but float-based figure rules (correct behavior) */

.figstyleLeft {
  float: left;
  margin-right: 10px;
  margin-left: 35px;
  padding-top: 5px;
  max-width: 45%;
}

.figstyleRight {
  float: right;
  margin-left: 8px;
  margin-right: 35px;
  padding-top: 5px;
  max-width: 225px;
}

.figstyleLeft img,
.figstyleRight img {
  width: 100%;
  height: auto;
}


img.blackborder {
  border: 1px solid black;
  background-color: black;
}

/* Legacy image styles (kept for compatibility) */
.styleRight { float:right; border:1px solid black; margin-left:7px; }
.styleLeft { float:left; margin-right:8px; }
.styleCenter { border:1px solid black; display:block; margin:0 auto; }
.styleNeutral { float:none; border:1px solid black; }

p.clear { clear: both; }

/* ============================================================
   LAYOUT CONTAINERS — modernized to responsive
============================================================ */
#topper,
nav,
#content,
#bottomer,
#copyblock,
#copyblock2 {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* Topper */
#topper {
  margin-top: 20px;
}

#topper img {
  display: block;
  border: 1px solid black;
}

#topper h1 {
  text-align: center;
  color: black;
  background-color: var(--paper);
  padding: 10px 0;
  border-top: 20px solid black;
}

#topper p {
  text-align: center;
  margin-bottom: 0;
}

/* ============================================================
   NAVIGATION — unchanged per your request
============================================================ */
nav {
  background-color: white;
  padding: 0;
}

nav ul {
  width: 100%;
  height: 20px;
  background-color: var(--nav-bg);
  padding: 0;
  margin: 0;
  float: left;
}

nav ul li {
  display: inline;
}

nav ul li a {
  padding: 0 20px 0 35px;
}

nav a:link,
nav a:visited,
nav a:active,
nav a:focus {
  color: #ffffff;
  text-decoration: none;
}

nav a:hover {
  background-color: var(--crimson);
  color: #ffffff;
}

/* ============================================================
   CONTENT AREA
============================================================ */
#content {
  background-color: var(--paper);
  padding: 20px 0;
  margin-top: 10px;
}

#content small {
  font-size: 12px;
  line-height: 1.1;
  display: block;
}

#content hr {
  margin: 0 35px 4px 35px;
  border-top: 1px solid #333333;
}

#content ul {
  padding: 0 35px 0 100px;
  list-style: circle outside;
}

#content h1,
#content h2,
#content h3,
#content h5 {
  padding: 0 35px 4px 35px;
}

#content h2 { font-size: 24px; }
#content h3 { font-size: 18px; }
#content h5 { font-size: 12px; color: #990000; }

#content p {
  padding: 0 35px;
  margin: 10px 0;
  letter-spacing: normal;
}

#content table, td, th {
  background-color: var(--paper);
  width: 835px;
}

/* ============================================================
   BOTTOMER
============================================================ */
#bottomer {
  background-color: black;
  height: 24px;
  color: white;
  margin: 0 auto 20px auto;
}

#bottomer p {
  text-align: center;
  font-size: 12px;
  padding: 4px 35px;
}