@import url('normalize.css');

/* Roboto regular/bold normal/italic for text */
@import url('fonts/Roboto.css');
/* For main headings */
/* @import url('fonts/Aclonica.css'); */
@import url('fonts/FuzzyBubbles.css');

body
{
  background: #e8ffd0;
  color: black;
  width: 100%;
  margin: auto;
  font-family: 'Roboto', sans-serif;
}

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

h1 { font-size: 150% }
h2 { font-size: 140% }
h3 { font-size: 130% }
h4 { font-size: 120%; }
h5 { font-size: 110%; }
h6 { font-size: 100%; }

  


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


/* contains nav information, full width, colour background or images */
header
{
  background: black;
}

div.underconstruction
{
  background: red;
  padding: 10px;
  color: white;
  font-weight: bold;
  font-size: 120%;
}

header div.banner h1
{
  text-align: center;
  color: #8f0;
  font-family: FuzzyBubbles, Aclonica, sans-serif; 
  font-size: clamp(150%, 7vw, 400%);
  font-style: normal;
}

/* contains nav buttons or icon, set positioning */
nav
{
  display: flex;
  gap: 5px;
  justify-content: center;
  width: max-content;
  margin: auto;
  padding: 5px;
  text-align: center;
}

/* under nav header, all page content between header and footer */
main
{
  max-width: 1000px;
  margin: auto;
  padding: 5px;
  background: none;

  color: black;
}


/* buttons for wide screen menu */
nav a
{
  display: block;
  font-size: 100%;
  text-decoration: none;
  margin: 5px 10px;
  margin: 5px 0.9vw;
  width: max-content;
  padding: 2px 0;
  color: #fe9;
  text-align: center;
}

nav a:hover
{
  background: #870;
}

nav a.selflink, nav a.selflink:hover
{
  border-bottom: 2px solid #fe9;
}

/* 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: 700px )
{
  nav { display: none }
  /* contains site name/logo and hamburger icon */
  nav.small 
  { 
    display: block; 
    text-align: center;
    padding: 0 10px;
    min-height: 30px;
    width: auto;
  }
  /* styles for dropdown menu */
  nav a 
  { 
    display: block;
    margin: 0 auto 10px;
    width: 100%;
  }

  /* menu icon ("hamburger") and 'menu' text if shown */
  div.menuiconcontainer, div.menuiconcontainer a
  { 
    background: none;
    display: block; 
    float: right;
    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;
  }
}

/* lists */

ul
{
  padding-left: 30px;
}

ul li
{

  margin-bottom: 20px;
  line-height: 1.3;
}

@media (max-width: 500px)
{
  ul { padding-left: 20px }
  ul li { margin-bottom: 10px }
}

/* 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
{
  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;
}

/********* images ************/

img.fullwidth /* fit across containing block */
{
  display: block;
  width: 100%;
  margin: 20px 0;
}

img.right40
{
  float: right;
  margin-left: 10px;
  width: 40%;
}

img.right50
{
  float: right;
  margin-left: 10px;
  width: 50%;
}



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

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

/* make sure all button and text inputs have black text */
input { color: black }

/* 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: 80%;
  max-width: 50em;
  padding: 40px;
  margin: 10px;
  border-radius: 5px;
  background: white;
  color: darkgreen;
  line-height: 1.6;
}

@media (max-width: 500px)
{
  div.text
  {
    width: auto;
    padding: 10px;
    line-height: 1.4;
    font-size: 95%;
  }
}

div.centred
{
  margin: 10px auto;
}

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

div.formwrapper 
{ 
  background: #aca; 
  padding: 10px;
  margin: 20px 0;
}
div.form_input_pair 
{ 
  display: grid;
  grid-template-columns: 1fr 4fr;
  margin: 1px; padding: 5px; 
  background: #aca;
  color: black;
}

div.form_input_pair div.input input,
div.form_input_pair div.input textarea { width: 95% }
div.form_input_pair div.input input[type=checkbox] { width: auto }
form.datarec_form div.form_input_pair div.info
{ 
  color: green;
  background: white;
  font-style: italic;
  text-align: center;
}
form.datarec_form div.form_input_pair div.error
{
  color: red;
  background: white;
  font-style: italic;
  text-align: center;
  border: 2px solid #fcc;
}
form.datarec_form input[type=submit]
{
  background: linear-gradient(white, #9f9);
  color: black;
}

@media (max-width: 500px)
{
  div.form_input_pair { grid-template-columns: 1fr; }
}

/********************** 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 }