@import url('normalize.css');

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

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

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

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


body
{
  background: white;
  color: #f0f;
  font-family: 'Roboto', 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%; }

td.smaller { font-size: 90%; }

p { margin: 0.75em 0 }

/*
 * 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 window is wider than page
 */
div.wholepage
{
  background: white;
  color: black;
  width: 100%;
  max-width: 1600px;
  margin: auto;
}

/* contains nav information, full width, colour background or images */
div.navheader
{
  background: #570;
  color: white;
}

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

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

div.centred { margin-left: auto; margin-right: auto; }

a:link, a:visited
{
  text-decoration: underline;
  color: #006;
  background: #eef;
  white-space: nowrap;
  padding: 1px 2px;
}


/* buttons for wide screen menu */
a.navlink
{
  display: inline-block;
  vertical-align: top;
  font-size: 120%;
  text-decoration: none;
  margin: 5px;
  width: max-content;
  min-width: 80px;
  padding: 2px 0;
  border-radius: 5px;
  background: none;
  color: #ddf;
  text-align: center;
}

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

a.selflink, a.selflink:hover
{
  color: black;
  background: #9b4;
}

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

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

/* buttons */

div.buttons
{
  margin: 5px 0;
  padding: 5px 0;
  background: #edc;
}

form.inlinebutton
{
  display: inline-block;
  width: max-content;
  margin: 0 5px;
}

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

form.vspacedbutton { margin: 10px 0 }

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

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

div.panel
{
  background: white;
  max-width: 600px;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  line-height: 1.4em;
  color: #333;
}

div.panel.wide
{
  max-width: 800px;
}

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

@media screen and (max-width: 500px)
{
  div.panel { padding: 3px; margin: 3px; }
}

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

div.errorbox
{
  padding: 10px;
  border: 2px solid red;
  color: red;
  background: white;
  max-width: 600px;
  margin: 10px auto;
  border-radius: 5px;
}

div.msgbox
{
  padding: 10px;
  border: 2px solid green;
  color: green;
  background: white;
  max-width: 600px;
  margin: 10px auto;
  border-radius: 5px;
}

/******* debug *********/

table.reqvars { width: 800px; max-width: 100%; margin: 10px 0; }
table.reqvars tr td
{
  vertical-align: top;
  background: white;
  color: black;
  font-size: 90%;
  border: 1px solid #999;
  line-height: 1.2;
  padding: 1px 2px;
}

form.login 
{ 
  max-width: 300px;
  margin: 10px auto;
  background: #fec;
  padding: 10px;
  border-radius: 10px;
}

table.login tr td input
{
  max-width: 200px;
  border: none;
  padding: 5px;
}

table.login tr td
{
  padding: 5px;
}


/******* home page *******/

picture.home-main img
{
  display: block;
  margin: 10px auto;
  width: 800px;
  width: 600px;
  height: auto;
  max-width: 90%;
  border: 5px solid white;
}

div.newsite
{
  margin: 10px;
  color: #a00;
  font-size: 90%;
  padding: 5px;
  border: 1px solid #c00;
  border-radius: 5px;
  background: #fdc;
}

a.nobg { background: none }

img.tmd
{
  display: block;
  width: 100%;
  margin: 20px 0;
}

/******* links page *******/


ul.links
{
  list-style: none;
  padding-left: 20px;
}

ul.links li
{
  margin-top: 15px;
  background: #fed;
  padding: 5px;
  border-radius: 5px;
}


/********** contact page ***********/

input.scode { display: none; }
form.datarec_form { background: #edc; margin: 5px; padding: 10px; }
div.form_input_pair { display: grid; grid-template-columns: 1fr 5fr;    
  background: #edc; margin: 10px 0;}
div.form_input_pair div.input input[type=text],
div.form_input_pair div.input textarea { width: 99% }
div.form_input_pair div.info 
{ 
  grid-column-start: 1; 
  grid-column-end: 3;
  background: #fed;
  color: green;
  font-style: italic;
}

@media screen and ( max-width: 700px)
{ 
  form.datarec_form { padding: 2px; }
  div.form_input_pair { display: block; margin: 2px; padding: 2px; }
}

table.phones tr td { padding: 1px 10px; }

/********* media/music downloads page *********/

div.loginbox
{
  float: right;
  color: #060;
  border: 1px solid #060;
  border-radius: 5px;
  padding: 3px;
  font-size: 90%;
  width: max-content;
}

div.mediamenu
{
  margin: 10px auto;
}

div.mediamenu a
{
  background: #eee;
  background: linear-gradient(#f0f0f0, #d8d8d8);
  color: black;
  border: outset 2px #e0e0e0;
  padding: 2px 5px;
  border-radius: 5px;
}

table.medialist { border-top: 1px solid #999; }
table.medialist tr td 
{ 
  font-size: 90%; 
  border-bottom: 1px solid #999;
  padding: 2px; 
}
table.medialist tr td a
{ 
  background: #e8ffe0;
  color: #030; 
  white-space: normal;
}

table.medialist tr td.date, table.medialist tr th.date 
{ 
  font-size: 80%; 
  white-space: nowrap;
}

table.media_details { width: 100% }

table.media_details tr td
{
  border: 1px solid #9c9;
  padding: 5px 10px;
  line-height: 1.2;
}

table.media_details tr td:first-child
{
  width: 20%;  
}


table.medialist tr td.flags { background: #d8e0d0; }

@media screen and ( max-width: 500px)
{
  table.medialist tr td.date, table.medialist tr th.date,
  table.medialist tr td.who, table.medialist tr th.who
  { display: none }  

  table.media_details tr td { padding: 2px 3px; }
  table.media_details tr td:first-child { font-size: 80%; }
}

table.medialist tr.newdate td { border-top: 2px solid #960; }


div.disclaimer
{
  margin: 0 auto;
  width: 600px;
  max-width: 95%;
  border: 1px solid #fc0;
  border-radius: 5px;
  padding: 5px;
  color: #600;
}

img.svgmusic { width: calc(100% - 20px); }

div.abcsvg
{
  margin: 10px 0;
  border-top: 2px solid #aaa;
  padding-top: 10px;
}

div.abcsvg img 
{ 
  border: 1px solid black;
  width: 100%;
}

/* Video */
video
{
  width: 100%;
  margin: 20px 0;
}