* {
  box-sizing: border-box;
  }

body {
  background-color: #222222;
  color: #DDDDDD;
  padding: 10px;
  margin: 0 auto;
  max-width: 60rem; 
}

/* Style the topnav */
ul.topnav {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333333;
}

/* Style links in topnav */
ul.topnav a {
  display: block;
  color: #f1f1f1;
  padding: 14px 16px;
  text-decoration: none;
  text-align: center;
}

/* Change color on hover */
ul.topnav li a:hover {
  background-color: #dddddd;
  color: black;
}

/* flex layout */
div.flex-container {
  display: flex;
  /* Show the flex items horizontally */
  flex-direction: row;
}

div.flex-container > div {
  margin: 1rem;
}

div.flex-container > p {
	padding-right: 1rem;
}

/* Use media query and show the flex items vertically if screen width is less than 600px */
@media screen and (max-width:800px) {
  div.flex-container, ul.topnav {
    flex-direction: column;
  }
}

p {
   font-size: 1.2rem ;
}

pre {
    font-size: 1rem ;
    margin-left: 2rem;
    margin-right: 1rem;
}

li {
   font-size: 1.2rem ;
}

blockquote {
   font-style: italic;
}

p.nav {
  text-align: right;
}

img.logo {
  float: right;
   width: 8rem;
}

h1 {
/*  font-family: sans-serif; */
  color: #BBBBBB;
}

h2 {
/*  font-family: sans-serif; */
  color: #BBBBBB;
  margin-top: 2rem;
  margin-bottom: -0.2rem;
}

h2.subtitle {
  font-style: italic;
  font-size: 1.4rem;
  margin-top: -1rem;
}

span.monospace {
  font-family: monospace, monospace;
}

img.right {
  float: right;
  width: 20%;
  max-width: 320px;
  min-width: 240px;
  height: auto; 
  padding: 5px;
}

img.left {
  float: left;
  width: 20%;
  max-width: 320px;
  min-width: 240px;
  height: auto; 
  padding: 5px;
}

img.center {
   width: 100%;
   padding: 2px;
   max-width: 42rem;
}

 /* unvisited link */
a:link {
  color: #fa511f;
}

/* visited link */
a:visited {
  color: #1d8a8e;
}

/* mouse over link */
a:hover {
  color: #eba544;
}

/* selected link */
a:active {
  color: #60bff6;
} 
