@import url('normalize.css');



body
{
  background: #fc0;
  background: linear-gradient(to right, #ff9933, #ffeecc);
  background-size: 200%;
  color: black;
  font-family: Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6
{
  margin: 5px 0 5px;
}

h1 { font-size: 200%; color: yellow; font-family: serif }
h2 { font-size: 140%; text-align: center; }
h3 { font-size: 130% }
h4 { font-size: 120%; }
h5 { font-size: 110%; }
h6 { font-size: 100%; }

.centertext { text-align: center; }

a
{
  background: #fd9;
  color: #600;
  text-decoration: none;
  padding: 0 5px;
}

a:hover { background: #ec3; text-decoration: underline }

/*** lists ***/

ol li, ul li
{
  margin-top: 5px;
}

/*
 * 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: transparent;
  color: black;
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

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

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

/* under nav header, all page content */
div.content
{
  background: transparent;
  color: black;
}


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

/* reduce size for intermediate screen sizes */
@media screen and ( max-width: 900px )
{
  a.navlink 
  { 
    font-size: 100%; 
    margin: 2px;
  }
}

a.navlink:hover
{
  border: 1px solid #ec3;
}

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

/* 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: 650px )
{
  div.navmenu { display: none }
  /* contains site name/logo and hamburger icon */
  div.smallnavmenu 
  { 
    display: block; 
    text-align: center;
    padding: 10px;
    min-height: 30px;
  }
  div.smallnavmenu h1 
  { 
    display: inline-block;
    vertical-align: middle;
    text-align: left; 
    width: max-content;
    font-size: 100%; 
    color: yellow 
  }
  div.smallnavmenu a { background: transparent; }

  div.smallnavmenu a.selflink { background: #ec3 }

  /* 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;
    text-decoration: none;
    font-size: 90%;
  }

/* adjustment for very small screen (Nokia 8110 4G) */
@media screen and ( max-width: 310px )
{
  div.smallnavmenu { padding: 5px; }
  div.smallnavmenu h1 { width: 120px; }
  div.menuiconcontainer, div.menuiconcontainer a { margin-top: 5px; }
}

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

div.navmenu picture
{
  display: block;
  width: 100%;
}

div.navmenu picture img
{
  width: 100%
}


/******* buttons *******/
input[type=submit], button { background: linear-gradient(#fff, #ccc) }
form.inlinebutton { display: inline-block; }
input.redbutton, button.redbutton,
form.delbutton input[type=submit]
{ 
  background: linear-gradient(#fcc, #f00); 
}


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

div.panel
{
  margin: 10px auto;
  background: #fea;
  border-radius: 10px;
  padding: 10px;
  width: 90%;
  width: calc(100% - 30px);
  max-width: 600px;
}

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

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


div.text
{
  margin: 10px auto;
  width: 600px;
  max-width: 95%;
}

div.msgbox, div.errorbox
{
  margin: 10px auto;
  border: 1px solid #060;
  padding: 5px;
  width: max-content;
  color: #060;
  background: white;
}

div.errorbox { color: #600; border: 1px solid #600; }

/************** authentication *************/
div.auth_form 
{ 
  
  max-width: 500px;
  margin: 30px auto 0; 
  padding: 10px;
  background: #fea;
  border-radius: 10px;
} 
div.auth_form input { width: 90%}
div.auth_form input[type="submit"] 
{ 
  width: max-content;
  margin: 10px 0;
}
div.auth_form table tr td { padding: 0 2px }
div.auth_error { color: red; background: white; padding: 5px }

div.auth_form div.passwordreset
{
  margin-top: 10px;
  border-top: 1px solid red;
  padding-top: 10px;
}


/************** debug ************/
table.reqvars { background: white; font-family: monospace; font-size: 90%; }
table.reqvars tr td { border: 1px solid #ccc; vertical-align: top; padding: 2px; }
table.reqvars tr td.reqvalue { max-width: 500px }

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

div.timeplace
{
  margin: 10px auto;
  text-align: center;
  width: 500px;
  max-width: 95%;
}

div.hometop
{
  margin: 10px auto;
  width: 100%;
  max-width: 1000px;
  text-align: center;
}
img.bpman 
{ 
  display: inline-block;
  vertical-align: middle;
  width: 20%;
  min-width: 100px;
  max-width: 150px;
}
div.welcome 
{
  display: inline-block;
  vertical-align: middle;
  font-weight: bold;
  width: 50%;
}
img.klycofa 
{ 
  display: inline-block;
  vertical-align: middle;
  width: 20%;
  min-width: 100px;
  max-width: 150px;
}

@media screen and ( max-width: 500px )
{
  img.bpman, img.klycofa
  { 
    display: block;
    margin: auto;
  }
  div.welcome { display: block; width: 100% }
}


div.facebooklink
{
  margin: 10px auto;
  text-align: center;
  background: #ffd;
  width: 600px;
  max-width: 90%;
  font-size: 90%;
  padding: 10px;
  border-radius: 10px;
}

div.bulletin
{
  margin: 20px auto;
  text-align: center;
  width: 600px;
  max-width: 90%;
  padding: 10px;
  border-radius: 10px;
  background: #fec;
}

div.venueaddress
{
  margin: 10px auto;
  width: max-content;
  max-width: 100%;
  text-align: left;
  background: #ffe;
  padding: 10px;
}

div.winter
{
  background: white;
  color: #333;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid red;
  border-radius: 10px;
  width: 600px;
  max-width: 90%;
}
div.winter i { color: #993 }

div.bulletin h3
{
  color: #c00;
}

div.ukraineflag
{
  background: url(images/ukraineflag-bg.png) 100%;

}

img.ukraineflag
{
  display: block;
  width: 50%;
  min-width: 200px;
  margin: 0 auto;
}

div.snowflash
{
  border: 5px solid red;
  border-radius: 20px;
  color: #900;
  background: white;
  font-size: 150%;
  font-weight: bold;
  padding: 30px 20px;
  text-align: center;
}


/************** contact page ***********/
div.contact
{
  margin: 10px auto;
  background: #fec;
  border: 1px solid #900;
  border-radius: 10px;
  padding: 10px;
  width: 500px;
  max-width: 95%;
}

input.escode { display: none }




/********* forms for progamme edit and contact page ***********/

div.formwrapper { background: #fd6; margin: 10px; padding: 10px; }
form.datarec_form { margin-bottom: 10px }

div.form_input_pair 
{
  display: grid;
  grid-template-columns: 1fr 4fr;
  margin: 5px; 
  padding: 5px; 
  background: #feb;
}

div.form_input_pair div.input input[type=text],
div.form_input_pair div.input textarea { width: calc(100% - 5px) }
div.form_input_pair div.info 
{ 
  grid-column-start: 2; 
  grid-column-end: 3;
  background: #dec;
}

@media (max-width: 500px)
{
  div.formwrapper { margin: 2px; padding: 2px }
  div.form_input_pair { display: block }
}




/********* gallery *****************/

div.galleryindex { max-width: 600px; margin: auto; }

div.galleryitem
{
  display: inline-block;
  vertical-align: top;
  width: 130px;
  margin: 10px;
  font-size: 80%;
}
div.galleryitem img
{
  text-align: center;
  border-radius: 50%;
}
div.galleryitem a { background: transparent }

/* captioned images */
div.captioned_image
{
  display: inline-block;
  vertical-align: bottom;
  margin: 10px 10px;
  width: 40%;
  background: #ffd;
  padding: 10px;
  border-radius: 10px;
}
div.captioned_image img
{
  max-width: 100%;
}

div.caption 
{ 
  font-family: 'Times New Roman', serif; 
  font-size: 100%;
  font-style: italic; 
  color: black;
  width: 400px;
  max-width: 100%;
}

div.text form.indexbutton { width: max-content; margin: 20px auto; }
table.robbed { margin: 10px auto }
table.robbed tr td { padding: 2px 5px; font-weight: bold; color: #030;}

@media screen and ( max-width: 500px )
{
  div.captioned_image 
  { 
    width: 90%; 
    width: calc(100% - 30px);
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
  }
}

/************** map page **************/
div.bingmaplinks
{
  white-space: nowrap; 
  text-align: center; 
  width: 500px; 
  padding: 6px 0;
}

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

iframe.gmap
{
  width: 99%;
  width: calc(100% - 10px);
  height: 400px;
}

a.map
{
  background: none;
}

/************ news page ***********/

div.news
{
  width: 80%;
  max-width: 800px;
  background: white;
  color: black;
  padding: 10px;
  margin: 10px auto;
  border-radius: 10px;
}

div.news figure img
{
  display: block;
  width: 100%;
}

div.news figure figcaption
{
  text-align: center;
  font-style: italic;
}

@media (max-width: 500px)
{
  div.news 
  { 
    width: 95%;
    width: calc(100% - 24px);
  }

  figure
  {
    margin-right: 0;
    margin-left: 0;
  }

}

.cancelled, .cancelled a
{
  background: #edc;
  color: #933;
}
