@import url('normalize.css');

body
{
  background: white;
  color: black;
  font-family: arial, helvetica, sans-serif;
}

h1, h2, h3, h4, h5
{

}

h2
{
  margin: 10px 0 5px;
}

/* leave no space above when at top of container */
h1.top, h2.top
{
  margin-top: 0;
}

p { margin: 5px 0 5px }

div.wholepage
{
  padding: 5px;
  background: #cff;
  color: black;
  min-height: 500px;
  border-radius: 20px;
  max-width: 1000px;
}

div.bannercontent
{
  display: inline-block;
  vertical-align: top;
  width: 90%;
  width: calc(100% - 120px);
}

img.banner
{
  display: block;
  width: 100%;
}

/* head.php - navigation menu */
div.navmenu
{
  display: inline-block;
  vertical-align: top;
  width: 120px;
  border-radius: 20px;
  background: #eff;
  padding: 10px 0;
}


a.navlink
{
  display: block;
  font-size: 100%;
  text-decoration: none;
  margin: 20px 5px;
  background: #cee url('images/button-bg.png');
  background-position: 50% 50%;
  color: black;
  border-radius: 5px;
  padding: 0 5px;
  border-bottom: 1px solid #9aa;
  border-right: 1px solid #9aa;
}

a.selflink
{
  background: #d0ddd0 url('images/button-current.png');
  border-top: 1px solid #9aa;
  border-left: 1px solid #9aa;
}

div.testmode
{
  font-weight: bold;
  color: #c00;
  text-align: center;
  background: #fcc
}


div.content
{
  margin: 10px;
  padding: 10px;
  background: white;
  color: black;
  border-radius: 10px;
  font-family: arial,helvetica,sans-serif;
  line-height: 1.3;
}

@media (max-width: 500px)
{
  div.content 
  { 
    margin: 2px; 
    padding: 2px;
  }
}

div.hometext
{
  display: inline-block; 
  width: 40%;
  width: calc(50% - 30px);
  vertical-align: top;
}

div.homepics
{
  display: inline-block; 
  width: 40%;
  width: calc(50% - 30px);
  vertical-align: top;
  border-left: 1px solid #aaa; 
  padding-left: 20px
}

div.homepics img
{
  display: block;
  width: 90%;
  width: calc(100% - 22px);
  margin: 10px;
}


@media screen and ( max-width: 600px)
{
  div.wholepage
  {
    padding: 2px;
    width: 100%;
    width: calc(100% - 10px);
  }

  div.bannercontent
  {
    width: 100%;
    width: calc(100% - 5px);
  }

  div.content
  {
    margin: 5px;
  }

  div.navmenu
  {
    display: block;
    width: 100%;
    height: max-content;
    padding: 0;
  }

  a.navlink
  {
    display: inline-block;
    margin: 5px;
  }
}

/* debug */
table.reqvars 
{ 
  margin: 10px 0;
  color: black;
  background: white;
}
table.reqvars tr td 
{ 
  border: 1px solid black; 
  font-family: monospace; 
  font-size: 80%;
  padding: 2px;
}


.clear
{ clear: both; height: 10px }

/* home page */

table.prog_summary
{
  margin: 0 auto 10px 10px;
}


table.prog_summary tr td
{
  padding: 2px;
  vertical-align: top;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

table.prog_summary tr td.date
{
  white-space: nowrap; 
  width: 100px; 
  font-weight: bold;
}
table.prog_summary tr td.artist
{
  min-width: 200px;
}

@media screen and (max-width: 700px)
{
  div.hometext
  {
    width: 100%;
  }

  div.homepics
  {
    width: 100%;
    display: block;
    border: none;
    padding: 10px;
  }

  table.prog_summary
  {
    margin: 0;
  }
}
p.aboutpics { font-style: italic; padding-left: 0 }

/* buttons */
form.inlinebutton
{
  display: inline-block; 
  margin-right: 20px;
}

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

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


/* venue page */

div.venue
{
  max-width: 600px;
}

div.venue div.addresscard
{
  max-width: 400px; 
  background: #aaa; 
  padding: 20px;
}
div.venue div.addresscard div.address
{
  background: white; 
  border-radius: 10px; 
  padding: 10px;
}
div.venue img
{
  display: block; 
  margin: 20px;
  width: calc(100% - 40px);
}

/* contact page */

input.spamtrap
{
  display: none;
}

table.links tr td
{
  border: 1px solid #999;
  vertical-align: top;
  padding: 5px;
}

table.links tr td:first-child
{
  width: 25%;
}

/* what's on page */

div.year_heading
{
  background: #9cf;
  color: white;
  text-align: center;
}

div.evt_header
{
  width: 100%;
  clear: both;
  border-top: 1px solid #999;
  padding: 10px 0;
}

div.evt_header div.date
{
  display: inline-block;
  white-space: nowrap; 
  width: 70px; 
  font-weight: bold;
}

div.evt_header div.artist_title
{
  display: inline-block;
  font-weight: bold;
  vertical-align: top;
  /* max-width: 300px; */
}

img.artist
{
  display: block; 
  float: right; 
  margin-left: 20px;
  width: 50%;
  max-width: 300px;
}

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

form.cancelbutton { margin: 10px 0 }

@media screen and ( max-width: 700px )
{
  img.artist
  { 
    width: 100%; 
    float: none;
    margin-left: 0;
  }
}

/* edit page */
table.edit tr td
{
  border: 1px solid #666;
  padding: 2px;
}

/*** past acts page ***/
table.pastacts tr td
{
  padding: 10px 2px;
  vertical-align: top;
  border-top: 1px solid #99f;
  background: #eee;
}

table.pastacts td.date
{
  width: 20%;
}

/* datarec form for contact page message */
/*
form.datarec_form 
{ background: #cef; margin: 10px; padding: 10px; }

div.form_input_pair 
{ margin: 5px; padding: 5px; background: #ade;}

div.form_input_pair div.label 
{ display: inline-block; width: 15%;  min-width: 50px; vertical-align: top}

div.form_input_pair div.input 
{ display: inline-block; width: 80%; min-width: 200px;}

form.datarec_form div.form_input_pair div.input input,
form.datarec_form div.form_input_pair div.input textarea
{ max-width: 98%; }

form.datarec_form.edit_date div.form_input_pair div.label 
{ width: 35%; min-width: 100px;}

form.datarec_form.edit_date div.form_input_pair div.input
{
  width: 60%; min-width: 200px;
}


@media screen and (max-width: 500px)
{
  div.form_input_pair div.label,
  div.form_input_pair div.input,
  form.datarec_form.edit_date div.form_input_pair div.label,
  form.datarec_form.edit_date div.form_input_pair div.input
  {
    width: 100%;
    min-width: 50px;
  }
}
*/

form.datarec_form 
{ 
  background: #bee; 
  margin: 10px 0; 
  padding: 10px; 
}

div.form_input_pair 
{ 
  display: grid; grid-template-columns: 1fr 3fr;    
  background: #bee; 
  margin: 10px 0;
}
div.form_input_pair div.input input[type=text],
div.form_input_pair div.input textarea 
{ width: 96% }

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


@media (max-width: 500px)
{
  form.datarec_form
  {
    margin: 5px 0;
    padding: 0;
  }
  div.form_input_pair 
  { 
    display: block;
    margin: 10px 0;

  } 
}

/******************/

div.msgbox, div.errorbox
{
  width: max-content;
  max-width: 95%;
  padding: 10px;
  border-radius: 5px;
}

div.msgbox
{ 
  border: 2px solid green;
  color: green;
}

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


/* confirm message sent */
div.msgconf
{
  font-size: 150%; 
  padding: 20px;
}

/* login */
table.loginform
{
  margin: 40px auto 20px 0;
  width: 400px;
}

table.loginform tr td
{
  padding-right: 20px;
}

div.delenda
{
  border: 1px solid #900;
  border-radius: 5px;
  padding: 5px;
  margin: 0 0 10px 0;
}