body {
  margin-left: 1em;
  margin-right: 1em;
}

img {
   padding:1px;
   border:1px solid #021a40;
}

figcaption {
  margin: 2px;
}

figure {
    margin: 0 0 0 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 1px;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  text-align: center;
}

.side-by-side {
    display: flex;
    flex-direction: row;
}

.content {
  position: relative;
  width: auto;
  min-width: 120px;
}

p, h1, h2, h3, h4, h5, h6, li, ul, #nav-bottom {
  max-width: 640px;
}

.wide {
  max-width: 100%;
}

#nav-bottom h2 {
  font-size: 1.15em;
}

#nav-bottom a {
  white-space: nowrap;
}

/* nav right */

#nav-right {
  max-width: 500px;
  border: none;
  padding: 10px;
  z-index: 1;
}

#nav-right div {
  display: none;
}

#nav-right div.visible {
  display: block;
}

/* responsive grids */
ul.layout-grid.narrow,
ul.photo-grid.narrow {
  max-width: 640px;
}

ul.layout-grid,
ul.photo-grid,
ul.menu,
.header h1 {
  max-width: 100%;
}

.layout-grid,
.photo-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
}

.layout-grid li,
.photo-grid li {
  padding: 10px;
}

.text li {
    padding: 25px;
}

/* horizontal centering */

#content table,
.content table,
#header table,
#nav-bottom table,
.center img,
img.center {
  margin-left: auto;
  margin-right: auto;
}

td {
  text-align: center;
}

/* right alignment for blocks, including images with captions */

.align-right {
  display: block;
  float: right;
}

/* horizontal line rules */

hr {
  clear: both;
  border-bottom: 0;
  border-top: 1px solid #000;
  border-right: 0;
  border-left: 0;
  margin: 10px 0;
  min-height: 0;
  height: 1px;
}

hr.short {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

hr.double {
	border-top: 1px solid #000;
	border-bottom: 1px solid #fff;
}

hr.double:after {
	content: '';
	display: block;
	margin-top: 2px;
	border-top: 1px solid #000;
	border-bottom: 1px solid #fff;
}

hr.blank {
  border-top: 0;
  height: 10px;
}

.position-center {
  margin-left: auto;
  margin-right: auto;
}

.fit-content {
  width: fit-content;
}

.full {
  width: 100%;
  height: 100%;
}

.alert {
  font-size: x-large;
  font-weight: bold;
  line-height: 1.25em;
  color: red;
}

.blackAlert {
  font-size: x-large;
  font-weight: bold;
  line-height: 1.25em;
 }
 