@import url('normalize.css');


/* Merriweather 300 Light */
@font-face {
  font-family: Merriweather;
  font-weight: 300;
  font-style: normal;
  src: url('/fonts/Merriweather-Light.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: Merriweather;
  font-weight: 300;
  font-style: italic;
  src: url('/fonts/Merriweather-LightItalic.woff') format('woff');
  font-display: swap;
}

/* Merriweather 400 Regular */
@font-face {
  font-family: Merriweather;
  font-weight: 400;
  font-style: normal;
  src: url('/fonts/Merriweather-Regular.woff') format('woff');
  font-display: swap;
}

/* Merriweather 400 Italic */
@font-face {
  font-family: Merriweather;
  font-weight: 400;
  font-style: italic;
  src: url('/fonts/Merriweather-Italic.woff') format('woff');
  font-display: swap;
}

/* Merriweather 700 Bold */
@font-face {
  font-family: Merriweather;
  font-weight: 700;
  font-style: normal;
  src: url('/fonts/Merriweather-Bold.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: Merriweather;
  font-weight: 700;
  font-style: italic;
  src: url('/fonts/Merriweather-BoldItalic.woff') format('woff');
  font-display: swap;
}

/* Merriweather 900 Black */
@font-face {
  font-family: Merriweather;
  font-weight: 900;
  font-style: normal;
  src: url('/fonts/Merriweather-Black.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: Merriweather;
  font-weight: 900;
  font-style: italic;
  src: url('/fonts/Merriweather-BlackItalic.woff') format('woff');
  font-display: swap;
}


body
{
  background: black;
  color: white;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  font-family: Merriweather, serif;
  line-height: 1.6;
  font-size: 110%;
}

@media (max-width: 500px)
{
  body {font-size: 100%; }
}

h1, h2, h3, h4, h5, h6
{
  margin: 5px 0 5px;
  text-align: center;
}

h1 { font-size: 250%; font-weight: normal; color: black }
h2 { font-size: 140%; text-align: left;  color: black; margin-top: 40px}
h3 { font-size: 130%; }
h4 { font-size: 120%; }
h5 { font-size: 110%; }
h6 { font-size: 100%; }

@media (max-width: 500px)
{
  h2 { margin-top: 20px }
}

h3.review 
{ 
  font-size: 110%;
  color: #900; 
  font-style: italic;
  text-align: left;
  margin: 40px 0;
} 

@media (max-width: 500px)
{
  h1 { font-size: 180% }
}


/*
 * Overall page layout
 *   +-----------------body-----------------------+
 *   | +-----------------header-----------------+ |
 *   | |      +------------nav----------+       | |
 *   | |      |                         |       | |
 *   | |      +-------------------------+       | |
 *   | +----------------------------------------+ |
 *   | +------------------main------------------+ |
 *   | |                                        | |
 *   | +----------------------------------------+ |
 *   +--------------------------------------------+
 */


/* contains nav information, full width, colour background or images */
header
{
  background: white;
  color: black;
  text-align: center;
  padding: 40px 0;
}

@media (max-width: 500px)
{
  header { padding: 20px 0 }
}

header div.subheader
{
  color: #999;
  font-size: 110%;
}

@media (max-width: 700px)
{
  header div.subheader { font-size: 100% }
}

/* contains nav buttons or icon, set positioning */
nav
{
  background: black;
  color: white;
  text-align: center;
  padding: 10px 0;
}

/* under nav header, all page content between header and footer */
main
{
  padding: 5px 20px;
  background: white;
  color: #333;
}

@media (max-width: 500px )
{
  main { padding: 5px 10px; }
}

/* narrower column holding main content */
div.content
{
  width: auto;
  max-width: 700px;
  margin: auto;
  padding-top: 40px;
}


@media screen and ( max-width: 500px )
{
  div.content { padding-top: 20px }
}

/* buttons for wide screen menu */
nav a
{
  display: inline-block;
  vertical-align: top;
  font-size: 100%;
  font-weight: bold;
  text-decoration: none;
  margin: 5px;
  width: max-content;
  width: 80px;
  padding: 2px 0;
  background: none;
  color: white;
  text-align: center;
}

nav a:hover
{
  color: #aaa;
}

nav a.selflink, nav a.selflink:hover
{
  color: #aaa;
}

/* hide small menu and icon for wide screen */
nav.small { display: none }
div.menuicon { display: none }
div.menuiconcontainer { display: none }

/* Nav menu changes for small screen */

@media screen and ( max-width: 500px )
{
  nav { display: none }
  /* contains site name/logo and hamburger icon */
  nav.small 
  { 
    display: block; 
    text-align: center;
    padding: 10px;
    min-height: 30px;
  }
  /* styles for dropdown menu */
  nav a 
  { 
    display: block;
    margin: 10px auto;
    width: 100%;
  }

  /* menu icon ("hamburger") and 'menu' text if shown */
  div.menuiconcontainer, div.menuiconcontainer a
  { 
    background: none;
    display: block; 
    margin: auto;
    color: white;
    text-decoration: none;
    font-size: 90%;
  }


  div.menuicon
  {
    background: none;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    height: 20px;
  }

  div.menuicon div.menuline
  {
    display: block;
    margin: 3px;
    height: 3px;
    width: 18px;
    background: white;
  }
}

/* captioned images */
div.caption 
{ 
  font-family: 'Times New Roman', serif; 
  font-style: italic; 
  text-align: center;
  color: black;
  background: white;
}

/*********** reqvars debug info *******/
table.reqvars { margin: 5px 0 }
table.reqvars tr td
{
  font-size: 90%;
  font-family: monospace;
  vertical-align: top;
  background: white;
  color: black;
  border: 1px solid #ccc;
  padding: 2px;
}


/*********** message and error boxes ***********/
div.errorbox, div.msgbox
{
  font-family: sans-serif;
  width: max-content;
  max-width: 90%;
  padding: 10px;
  background: white;
}

div.errorbox
{
  border: 2px solid #900;
  color: #900;
}
div.msgbox
{
  border: 2px solid #090;
  color: #090;
}

/***************** navigation and action buttons **********/

/*
 * actionbutton and navbutton are implemented as a form
 * default form is display:block with no margins 
 */

/* vertical space between buttons */
form.spacedbutton
{
  margin-top: 10px;
  margin-bottom: 10px;
}

/* inline with 10px gap */
form.inlinebutton 
{ 
  display: inline-block; 
  width: max-content; 
  margin-right: 20px;
}

form.delbutton input[type=submit]
{ background: linear-gradient(white, #f99); }

form.greenbutton input[type=submit]
{ background: linear-gradient(white, lightgreen) }

/* adapt the examples above for other coloured buttons */


/**** text boxes ****/

div.text
{
  width: 90%;
  max-width: 800px;
  margin: auto;
}

/********** DataRec class and derivatives: form components ********/

/* forms */
form.datarec_form 
{ 
  background: var(--accentbg); 
  margin: 5px; 
  padding: 5px; 

}
div.form_input_pair 
{ 
  display: grid;
  grid-template-columns: 1fr 8fr;
  background: var(--accentbg);
  margin: 10px 0;
}

form.datarec_form.mail div.form_input_pair 
{ 
  grid-template-columns: 80px 1fr;
}

div.form_input_pair div.input input[type=text],
div.form_input_pair div.input textarea { width: 99% }

div.form_input_pair div.info,
div.form_input_pair div.error
{
  grid-column-start: 2;
  grid-column-end: 3;
}

@media (max-width: 500px)
{

  div.form_input_pair 
  { 
    grid-template-columns: 1fr;
  }
  
}

input.escode  {display: none}



/********************** Authenticator (login) forms ***************/

div.auth_form 
{ 
  width: 90%; 
  max-width: 500px;
  margin: 0 auto; 
  padding: 10px;
  background: #ccf;
} 
div.auth_form input { width: 90%}
div.auth_form input[type="submit"] { width: max-content }
div.auth_form table tr td { padding: 0 2px }
div.auth_error { color: red; background: white; padding: 5px }