@import url('normalize.css');

/**** fonts ****/

@font-face
{
  font-family: Arcena;
  src: url(fonts/arcena.ttf);
}


body
{
  background: #fec url(images/leafyparchment-tile-light2.jpg);
  color: #f0f;
  /* font-family: Palatino Linotype, Book Antiqua, Palatino, serif; */
  font-family: Arcena, '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%; }

.centreblock { margin-left: auto; margin-right: auto; }
.centretext { text-align: center }

p 
{ 
  margin-top: 8px;
  margin-bottom: 8px;
}

/*
 * 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: #fec url(images/leafyparchment-tile-light.jpg); */
  color: black;
  max-width: 1000px;
  margin: auto;
}

/* contains nav information, full width, colour background or images */
div.navheader
{
  background: transparent;
}

/* contains nav buttons or icon, set positioning */
div.navmenu
{
  height: 100px;
  width: 100%;
  max-width: 1200px;
  margin: 10px auto;
  background: url(images/leafy-banner-bg2.webp) top no-repeat;
  background-size: 700px;
  padding: 30px 5px 5px;
  text-align: center;
}

div.navmenu h1
{
  color: #630;
  margin: 10px 0 0;
  padding: 0;
}


/* under nav header, all page content */
div.content
{
  padding: 5px;
  background: transparent;
  color: black;
  position:  relative;
}

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

}

/* buttons for wide screen menu */
a.navlink
{
  display: inline-block;
  vertical-align: top;
  font-size: 100%;
  text-decoration: none;
  margin: 3px 1px;
  width: max-content;
  width: max-content;
  padding: 3px 4px;
  background: #ffe;
  border: #eed 2px outset;
  border-radius: 3px;
  color: #930;
  text-align: center;
  /* font-family: sans-serif; */
}

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

a.selflink, a.selflink:hover
{
  color: black;
  text-decoration: none;
  border-bottom: 2px solid black;
  background: #eed;
}

/* 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.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: 30%;
    border: none;
  }

  a.navlink.selflink
  {
    text-decoration: underline;
  }

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

/* login status */
div.loginstatus
{
  width: max-content;
  margin: 0 0 0 auto;
  color: green;
}

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

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

div.textblock
{
  width: 800px;
  max-width: 98%;
  min-width: 300px;
  margin: 0 auto;
  padding: 5px;
}

div.textblock.white
{
  background: white;
}


div.panel
{
  background: white;
  max-width: 600px;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
}

div.panel.centred
{
  margin: 10px auto;
}

/************ general form input buttons ********/

input[type='submit']
{
  background: #efe linear-gradient(#f8fff8, #ded);
  border: 2px #efe outset;
  border-radius: 5px;
  font-family: sans-serif;
}

form.cancelbutton
{
  margin: 20px 0 0;
  border-top: 1px solid black;
  padding: 10px 0;
}

form.redbutton input[type='submit']
{
  background: linear-gradient(#fcc, red);
  border: 2px #fcc outset;
}

form.navbutton input
{
  background: linear-gradient(#fff, #ec6);
}


form.centrebutton 
{ 
  width: max-content; 
  margin: 0 auto;
}

form.inline { display: inline-block; }

/************* msgbox and errorbox ************/

div.msgbox, div.errorbox
{
  width: max-content;
  max-width: 90%;
  margin: 10px;
  padding: 10px;
  border-radius: 5px;
  background: white;
  font-family: sans-serif;
}

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

div.msgbox
{
  color: #090;
  border: 2px solid #9c9;
}


div.querybox
{
  width: max-content;
  max-width: 90%;
  background: white;
  padding: 5px;
  margin: 10px 0;
}

/********** debug ***********/
table.reqvars { border: 1px solid black; }
table.reqvars tr td
{
  background: white;
  border: 1px solid black;
  padding: 1px;
  font-family: sans-serif;
  font-size: 80%;
  vertical-align: top;
}

/************ formdata forms ***********/
form.datarec_form { background: #db7; margin: 10px; padding: 10px; }
div.form_input_pair { margin: 5px; padding: 5px; background: #f0ece0;}
div.form_input_pair div.label 
{ 
  display: inline-block; 
  width: 20%;
  vertical-align: top;
}
div.form_input_pair div.input { display: inline-block; width: 70%; }
div.form_input_pair div.input input,
div.form_input_pair div.input textarea { max-width: 100% }

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

}


/******* family tree pages *****/

table.familytree
{
  width: 95%;
}
table.familytree tr td
{
  background: white;
  width: 22%;
  border: 1px solid #999;
  padding: 2px;
}

table.familytree.smallscreen { display: none; }

@media screen and (max-width: 500px)
{
  table.familytree { display: none; }
  table.familytree.smallscreen 
  {
    display: block;
    width: 100%; 
  }
  table.familytree.smallscreen tr td
  {
    width: 30%;
    padding: 1px;
  }
}

table.familytree tr td div.longinfo, div.ftdetails div.longinfo
{
  width: 95%;
  width: calc(100% - 6px);
  border-radius: 4px;
  background: #f0f0e0;
  margin: 5px auto;
}

form.rightbutton
{
  float: right;
  width: max-content;
}

form.rightbutton input, form.leftbutton input
{
  background: linear-gradient(#fff, #ec6);
}

table.familytree form.rightbutton.col3 { display: none; }

table.familytree tr td.f { background: #e8f0ff; }
table.familytree tr td.m { background: #ffe8e8; }


table.familytree.smallscreen form.rightbutton.col3
{
  display: block;
}
table.familytree.smallscreen form.rightbutton.col3 input
{ 
  padding: 0 2px;
  margin: 0 2px;
}

div.ftdetails
{
  width: max-content;
  margin: 0 auto 10px;
  min-width: 250px;
  max-width: 90%;
  padding: 10px;
  background: white;
  border-radius: 10px;
}

form.vspace { margin-top: 10px; margin-bottom: 10px; }

div.ftdetails img
{
  display: block;
  max-width: 100%;
  margin: auto;
}

input.photocaption { width: 400px; }
@media screen and ( max-width:  500px)
{
  input.photocaption { width: 270px; }
}

div.testmode
{
  color: red;
  background: #fee;
  text-align: center;
  border: 1px solid red;
}

/******************** footer *****************/

div.footer
{
  margin: 60px 0 0 0;
  background: #dca;
  padding: 1px;
  border-top: 1px solid #976;
}

div.treewindlink
{
  margin:  auto;
  width:  max-content;
  font-size:  80%;
  font-family:  sans-serif;
  color:  #663;
  text-align:  center;
  padding: 1px;
}


div.treewindlink a
{
  text-decoration:  none;
}

div.treewindlink a:hover
{
  text-decoration:  underline;
}

/********** yorkshire project *****/
h4.songtitle 
{ 
  text-align: left 
}
