@import url('normalize.css');


@font-face 
{
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/dancingscript.ttf);
}
@font-face 
{
  font-family: 'Oleo Script';
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/oleoscript.ttf);
}


body
{
  background: #f0f8ff;
  color: #f0f;
  font-family: Helvetica, Arial, sans-serif;
}

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

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

@media screen and (max-width: 500px)
{
  h1 { font-size: 125% }
  h2 { font-size: 120% }
  h3 { font-size: 115% }
  h4 { font-size: 110%; }
  h5 { font-size: 105%; }
  h6 { font-size: 100%; }
}

p
{
  margin: 0.5em auto;
}  


/*
 * Overall page layout
 *   +------------wholepage-----------------------+
 *   | +--------------navheader-----------------+ |
 *   | |      +----------navmenu--------+       | |
 *   | |      |                         |       | |
 *   | |      +-------------------------+       | |
 *   | +----------------------------------------+ |
 *   | +---------------content------------------+ |
 *   | |                                        | |
 *   | +----------------------------------------+ |
 *   +--------------------------------------------+
 */

/* 
 * Set size limits and background for the whole page, both navigation
 * and content. Centred as a block if page is wide enough
 */
div.wholepage
{
  background: #f0f8ff;
  color: #009;
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

div.navheader img.banner
{
  width: 800px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

div.navheader img.smallbanner
{
  width: 300px;
  display: block;
  margin: 0 auto;
}


div.title h1
{
  margin: 0 auto 10px;
  padding: 0;
  font-size: 300%;
  font-family: 'Oleo Script', cursive;
  line-height: 80%;
}

div.navheader div.president
{
  text-align: center;
  font-size: 120%;
  font-family: 'Dancing Script', cursive;
}

/* contains nav information, full width, colour background or images */
div.navheader
{
  background: white;
  /* border-bottom: 1px solid green; */
}

div.navheader.nonhome
{
  height: 50px;
  background: url('images/devonfolk-logo-50h.jpg') no-repeat;
}



/* contains nav buttons or icon, set positioning */
div.navmenu
{
  width: max-content;
  margin: 0 auto 0;
  padding: 5px;
  text-align: center;
}



div.navmenu div.title
{
  font-size: 120%;
}

div.loginstatus
{
  float: right;
  padding: 10px;
  color: green;
  font-size: 90%;
  position: relative;
  top: -20px;
}

/* under nav header, all page content */
div.content
{
  padding: 5px;
  background: #f0f8ff;
  color: #009;
}

@media screen and ( max-width: 500px )
{
  div.content, div.content.wide { padding: 5px 0 }
}

/* text links */
a
{
  text-decoration: none;
  background: #def;
}

a:hover
{
  text-decoration: underline;
}


/* buttons for wide screen menu */
a.navlink
{
  display: inline-block;
  vertical-align: top;
  font-size: 90%;
  text-decoration: none;
  margin: 0 5px;
  width: max-content;
  width: 100px;
  border-radius: 5px;
  text-align: center;
  color: #009;
  /* background: linear-gradient(#eff, #cde); */
  background: none;
}

@media screen and ( max-width: 700px)
{
  a.navlink { width: max-content }
}

div.navheader.nonhome a.navlink
{
  margin-top: 20px;
}

a.navlink:hover
{
  background: #7be;
  color: black;
}

a.selflink, a.selflink:hover
{
  text-decoration: underline;
  color: #009;
}

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

/* Nav menu changes for small screen */

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

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


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

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

div.footer
{
  text-align: center;
  background: white;
  color: green;
}

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

/*********** general buttons ********/
input[type=submit]
{
  background: linear-gradient(white, #ccc);
  border: 2px outset #ddd;
  margin: 5px 0;
}

form.inlinebutton 
{ 
  display: inline-block; 
  width: max-content;
}

form.nomargin input[type="submit"] { margin: 0 }

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

form.greenbutton input[type=submit]
{
  background: linear-gradient(#efe, #0f0);
}

/**** navigation buttons ****/

form.navbutton { width: max-content }

form.navbutton input[type=submit]
{
  background: #def linear-gradient(#eff, #cde);
  padding: 10px 5px;
  border: 3px outset #99f;
  border-radius: 10px;
  margin: 0 auto;
}

form.spacedbutton
{
  margin: 5px 0 5px;
}


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

div.panel
{
  background: #fff4e0;
  max-width: 800px;
  padding: 10px;
  border-radius: 5px;
  margin: 10px auto;  /* panel is always centred */
}

div.panel.wide
{
  max-width: 95%
}

@media screen and ( max-width: 500px )
{
  div.panel, div.panel.wide
  {
    font-size: 90%;
    max-width: 100%; 
    padding: 2px; 
    border-radius: 0 
  }
}

.centred
{
  display: block;
  margin: 10px auto;
}

.centretext
{
  text-align: center;
}

/* to contain anything we don't want too wide */
div.narrow
{
  width: 500px;
  max-width: 95%;
  margin: auto;
}

.greyedout { color: #666; background: #eee }

/* default form CSS */

form.datarec_form 
{ 
  background: #ddd; 
  margin: 5px; 
  padding: 0 0 5px 0; 
  max-width: 98%;
}
div.form_input_pair { margin: 2px; padding: 2px; background: #eee;}
div.form_input_pair div.label 
{ 
  display: inline-block; 
  width: 30%;
  vertical-align: top;
}
div.form_input_pair div.input { display: inline-block; width: 68%; }
div.form_input_pair div.input input,
div.form_input_pair div.input textarea 
{ 
  max-width: 98%;
  max-width: calc(100% - 10px);
}

div.form_input_pair label.publish
{
  display: inline-block;
  width: 250px;
}

@media screen and (max-width: 600px)
{
  form.datarec_form { margin: 0; padding: 0 }
  div.form_input_pair div.label { display: block; width: 100%; }
  div.form_input_pair div.input { display: block; width: 100%; }
}

/******* error and message boxes ****/

div.errorbox
{
  width: max-content;
  max-width: 80%;
  padding: 10px;
  margin: 10px;
  border: 2px solid red;
  color: #c00;
}

div.msgbox
{
  width: max-content;
  max-width: 80%;
  padding: 10px;
  margin: 10px;
  border: 2px solid green;
  color: #090;
}

div.testmode
{
  border: 2px solid red;
  font-weight: bold;
  color: #600;
  background: #fcc;
  text-align: center;
  margin: auto;
}

/******* tables *****/

table.data
{
  margin: 10px auto;
}


table.data tr td, table.data tr th
{
  padding: 3px 20px 3px 2px;
  border: 1px solid #999; 
  vertical-align: top;
  background: white;
}

table tr.nopublish
{
  background: #ddd;
  color: #666;
}

table tr.noshow
{
  display: none;
}

/****** datarec *****/

table.datarec_debug tr td
{
  padding: 1px 5px;
  border: 1px solid #fcc;
}

/* authenticator */
div.auth_form 
{ 
  width: 90%; 
  max-width: 600px;
  margin: 10px auto; 
  padding: 10px;
  background: #aca;
  padding: 10px;
} 
div.auth_form div.label {display: inline-block; width: 20%; margin: 5px 0 } 
div.auth_form div.field {display: inline-block; width: 78% } 
div.auth_form input { width: 90%; }
div.auth_form input[type="submit"] { width: max-content }
div.auth_form div.passwordreset 
{ 
  margin: 10px 0 0;
  border: 1px solid #060;
  border-radius: 10px;
  padding: 5px;
  background: #cdc;
}
div.auth_form table tr td { padding: 0 2px }
div.auth_form div.newuser
{
  margin: 5px;
  padding: 5px;
  background: white;
  border-radius: 5px;
  color: #900;
}

div.auth_error { color: red; background: white; padding: 5px }


form.user
{
  background: #aca;
}


@media screen and ( max-width: 500px )
{
  div.auth_form
  {
    padding: 5px;
    width: calc(100% - 20px);
  }

  div.auth_form div.label, div.auth_form div.field
  { 
    display : block;
    width: 100%;
  }
}

/****** entry registration/edit form **********/
/* div.category.form_input_pair, div.cat_title.form_input_pair
{
  margin: 0 5px;
  padding: 2px;
  background: #cdc;
}

div.category div.label { display: none }
div.category div.input 
{ 
  width: 99%;
  border-top: 1px solid #ded; 
}

div.category span.checkbox
{
  display: inline-block;
  width: 18%;
  font-style: italic;
  color: #333;
  font-size: 90%;
  margin: 0 5px 0 0;
}

div.category span.checkbox:first-child
{
  background: #cfc;
  color: black;
  font-style: normal;
  font-size: 100%;
}

div.activity div.label
{
  width: 10%;
}

div.activity div.input
{
  width: 88%;
}

div.activity span.checkbox
{
  display: inline-block;
  width: 130px;
  width: max-content;
  margin: 0 20px;
} */

@media screen and (max-width: 800px)
{

  div.activity span.checkbox
  {
    width: 150px;
  }
  div.category span.checkbox
  {
    width: 150px;
  }
  div.category div.input
  {
    border-top: 1px solid black;
  }
  div.category span.checkbox:first-child
  {
    width: 100%;
  }
}

div.reginfo.form_input_pair div.label,
div.activityinfo.form_input_pair div.label
{
  display: none;
}

div.reginfo.form_input_pair div.input,
div.activityinfo.form_input_pair div.input
{
  width: 100%;
  background: #fec;
  font-size: 90%;
}

/* entry details display */

div.details
{
  background: white;
  margin: 10px auto;
  width: max-content;
  max-width: 90%;
  padding: 10px;
}

div.details table
{
  margin: 10px;
  width: 800px;
  max-width: 100%;
}

div.details table tr td
{
  padding: 3px;
  border: 1px solid #999; 
  vertical-align: top;
}

div.details table tr td:first-child
{
  width: 150px;
  font-weight: bold;
}

div.details table tr.photo td
{
  text-align: center;
  font-weight: normal;
}

div.details table tr.photo td img
{
  max-width: 100%;
}

table.activity { border: 1px solid #999 }

div.details table.activity tr td
{
  border-top: none;
  border-bottom: none;
}

@media screen and ( max-width: 500px )
{

  div.details 
  { 
    padding: 2px;
    margin: 2px;
    max-width: 95%;
    max-width: calc(100% - 4px);
  }

  div.details table tr td:first-child
{
  width: max-content;
}

  div.details table { margin: 0 }

  div.panel table.data { margin: 5px}

  div.panel table tr td, div.panel table tr th
  {
    font-size: 90%;
  }

  div.details table.data tr td
  {
    display: block;
  }
}
