/****************************
**  Style for all devices  **
****************************/

/*
General
*/

body{
  font-family: sans-serif;
  background-color: #000000;
  color: #d3d3d3;
  margin: 0;
  padding: 1em;
  line-height: 1.6;
 }

section {
  border-bottom: solid thin #333333;
  padding: 1.5em 0;
 }

/*
Page header
*/

header {
  margin: -0.5em -0.5em 0 -0.5em;
  text-align: center;
  background-color: #111111;
  padding: 1em;
  border-bottom: 2px solid #dc143c;
 }

/*
Section headings
 */

h1, h2, h3, h4, h5, h6, h7 {
  font-family: serif;
  font-weight: normal;
  color: #dc143c;
 }

h1 {
  text-align: center;
  color: #ffffff;
 }

/*
Navigation
*/

nav a {
  text-decoration: none;
  color: #d3d3d3;
 }

nav a:hover {
  color: #dc143c;
 }

nav h1 {
  font-family: serif;
  margin: 0 0 0.5em 0;
} 


/*
General content elements and styles
*/

ul, ol {
  color: #dc143c;
  font-weight: bold;
  font-family: serif;
  font-size: 1.2em;
 }

ul {
  list-style: square outside;
 }

ol span {
  color: #d3d3d3;
  font-weight: normal;
  font-family: sans-serif;
  font-size: 0.84em;
 }
 
ul span {
  color: #d3d3d3;
  font-weight: normal;
  font-family: sans-serif;
  font-size: 0.84em;
 }
 
blockquote {
  border-left: solid thick #dc143c;
  padding-left: 1em;
  margin-left: 1em;
  background-color: #111111;
  padding: 1em;
 }
 
em {
  font-style: italic;
 }

strong {
  font-weight: bold;
  color: #dc143c;
 }

/* Nav to-top elements */

nav.to-top {
  display: block;
  padding: 2.5em 0.5em 0.5em 2.5em;
  margin: 0;
  width: auto;
  position: absolute;
  right: 2em;
  left: auto;
  border-style: none;
  background-color: transparent;
 }

nav.to-top a {
  margin: 0; border: 0;
  text-decoration: none;
  color: #dc143c;
  font-size: 0.8em;
  font-weight: bold;
  font-family: sans-serif;
 }

nav.to-top a:hover {
  text-decoration: underline;
 }

 
/********************************************
**  Style for devices with small displays  **
********************************************/
@media (max-width: 46.9em){

/*
General
*/

section {
  margin: 0 -0.5em 1em -0.5em;
  padding: 1em;
  background-color: #111111;
  border-radius: 8px;
  margin-bottom: 1.5em;
 }

/*
Page header
*/

header h1 {
  padding: 0.5em 0 0 0;
  font-size: 2.5em;
 }

/*
Section headings
 */

h2, h3, h4, h5, h6, h7 {
  margin: 0.2em 0 0 1em;
  padding: 0.1em;
 }

h1 {
  font-size: 1.5em;
/*  margin: 0 0 1em 0;*/
 }

h2 {
  font-size: 1.2em;
}

h3 {
 font-size: 1.13em;
 }
 
h4 {
  font-size: 1.07em;
 }


/*
Navigation
*/

/* Nav bar */

nav {
  margin: 1em auto;
  padding: 1em;
  max-width: 90%;
  border: solid thin #333333;
  background-color: #111111;
  border-radius: 8px;
 }

nav ul {
  margin: 0;
  list-style: square outside;
 }

nav a {
  font-family: serif;
 }

nav a:hover {
  font-weight: bold;
 }

}


/********************************************
**  Style for devices with large displays  **
********************************************/
@media (min-width: 47em) {


/*
General
*/

section {
  margin: 0 auto 2em auto;
  padding: 2em;
  max-width: 1200px;
  background-color: #111111;
  border-radius: 8px;
 }


/*
Page header
*/
 
header {
  margin: 0 -0.5em 0 -0.5em;
 }
 
header h1 {
  padding: 0.5em 0 0 0;
  font-size: 4em;
 }


/*
Section headings
 */

h2, h3, h4, h5, h6, h7 {
  margin: 0.8em 0 0 7%;
  padding: 0.2em;
 }

h1 {
  font-size: 2em;
  text-align: center;
  margin: 0 0 1em 0;
 }

h2 {
  font-size: 1.65em;
}

h3 {
 font-size: 1.4em;
 }
 
h4 {
  font-size: 1.15em;
 }


/*
Other content elements
*/

blockquote {
  padding: 1em 1em 1em 2em;
  margin: 1em 2em;
  background-color: #222222;
  border-radius: 4px;
 }

ul, ol{
 padding: 0 6em 0 6em;
 }


/*
Navigation
*/

/* Nav bar */

nav {
  padding: 0 0 3.5em 0;
  margin: 0 0 0 0;
 }

nav h1 {
  display: none;*//* (display off-page?) */
 }

nav ul {
  margin: 0 auto;
  padding: 1em;
  max-width: 800px;
  border: solid thin #333333;
  list-style: none outside;
  background-color: #111111;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
 }

nav li {
  margin: 0.5em;
  flex: 1;
  text-align: center;
 }
 
nav li ul {
  display: none;
 }

nav a {
  font-size: 1.1em;
  font-weight: bold;
  font-family: sans-serif;
 }

}


/**************************
**  Style for printouts  **
**************************/
@media print {

nav.to-top {
  display: none;
 }

}

/* Additional mobile responsiveness improvements */
@media (max-width: 768px) {
  body {
    padding: 0.5em;
    font-size: 16px;
  }
  
  header h1 {
    font-size: 2em;
    padding: 0.5em 0;
  }
  
  section {
    margin: 0 0 1em 0;
    padding: 1em;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 1.3em;
  }
  
  nav ul {
    flex-direction: column;
    padding: 0.5em;
  }
  
  nav li {
    margin: 0.25em 0;
    width: 100%;
  }
  
  nav a {
    display: block;
    padding: 0.5em;
    border: 1px solid #333333;
    border-radius: 4px;
    text-align: center;
  }
  
  nav a:hover {
    background-color: #222222;
  }
}


