/* CSS for public pages */

/* Todo: macintosh style headings and dividers: try multiple thin lines */
/* Todo: Set margins and possibly widths using clamp to ensure full reponsiveness */
/* Todo: Simplefy CCS for buttons by inheriting css for sign-in and big-button from submit-button. */
/* Todo: Will server side errors ever appear in the public pages? If yes, then ypdate the relevant CSS and HTML */

/* variables for all colors and font sizes */

/* For a black background with white text */
/*:root {
  --primary-bg-color: #000000;
  --primary-color: #ffffff;
  --reverse-bg-color: #ffffff;
  --reverse-color: #000000;
  --warning-color: #E7180B;
  --primary-link-color: #5A9CED;
  --greyed-bg-color: #CCD1D1;
  --primary-link-hover-color: #388df5;
  --primary-link-visited-color: #83b2eb;
  --fs-1: clamp(1.00rem, calc(0.98rem + 0.13vw), 1.13rem);;
  --fs-2: clamp(1.25rem, calc(1.20rem + 0.25vw), 1.50rem);
  --fs-3: clamp(1.56rem, calc(1.48rem + 0.44vw), 2.00rem);
  --fs-4: clamp(1.95rem, calc(1.81rem + 0.71vw), 2.66rem)
}*/

/* For a white background with black text */
:root {
  --primary-bg-color: #ffffff;
  --primary-color: #000000;
  --reverse-bg-color: #000000;
  --reverse-color: #ffffff;
  --warning-color: #E7180B;
  --primary-link-color: #2d56b5;
  --greyed-bg-color: #CCD1D1;
  --greyed-fg-color: #889999;
  --primary-link-hover-color: #0e45c7;
  --primary-link-visited-color: #5485f7;
  --reverse-bg-link-hover-color: #88a3e3;
  --fs-1: clamp(1.00rem, calc(0.98rem + 0.13vw), 1.13rem);;
  --fs-2: clamp(1.25rem, calc(1.20rem + 0.25vw), 1.50rem);
  --fs-3: clamp(1.56rem, calc(1.48rem + 0.44vw), 2.00rem);
  --fs-4: clamp(1.95rem, calc(1.81rem + 0.71vw), 2.66rem)
}

/* CSS for common elements */
html {
    margin: 0;
    padding: 0;
}

* {
  box-sizing: border-box;
  font-family: inherit;
}

body {
  background-image: url("/images/circles_interlaced.png");
  background-repeat: repeat;
  font-family: Verdana, Arial, sans-serif;
  color: var(--primary-color);
  padding: 0;
  margin: 0 auto;
  width: 70%;
  max-width: 70rem;
}

h1{
  font-size: var(--fs-4);
  line-height: 1.2;
}

h2{
  font-size: var(--fs-3);
  line-height: 1.3;
}

h3{
  font-size: var(--fs-2);
  line-height: 1.4;
}

p, table, a, button, ul, li {
  font-size: var(--fs-1);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: Trebuchet MS, Verdana, Arial, sans-serif;
}

h1, h2 {
  text-align: center;
}

blockquote {
  font-size: var(--fs-1);
  background-color: var(--reverse-bg-color);
  color: var(--reverse-color);
  padding: 0.5rem;
  line-height: 1.5rem;
  border-radius: 0.5rem;
}

q {
  font-style: italic;
}

li {
  padding: 0.5rem;
}

ul li::marker {
  font-size: 2rem;
}

address {
  font-size: var(--fs-1);
  font-style: normal;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: color 0.3s;
}

a:link {
  color: var(--primary-link-color);
}

a:visited {
  color: var(--primary-link-visited-color);
}

a:hover {
  color: var(--primary-link-hover-color);
}

.big-link {
  text-align: center;
  margin-bottom: 4rem;
}

.big-link a {
  font-size: 2rem;
}

header {
  background-color: var(--reverse-bg-color);
  display: flex;
  justify-content: space-between;
}

.logo {
  align-self: center;
}

.logo h1 {
  padding-left: var(--fs-1);
  font-size: var(--fs-3);
  text-align: left;
  color: var(--reverse-color);
}

header h1 span {
  font-size: var(--fs-1);
}

.sign-in-link {
  position: relative;
  color: var(--primary-color);
  min-width: fit-content;
  padding-right: var(--fs-1);
  padding-left: var(--fs-1);
}

a.sign-in-button {
  font-size: var(--fs-1);
  padding: 0.3rem 0.5rem;
  border: none;
  border-radius: 1rem;
  color: var(--primary-color);
  background-color: var(--primary-bg-color);
  text-decoration: none;
  cursor: pointer;
}

main {
  border: none;
  background-color: var(--primary-bg-color);
  padding: 1.25rem;
}

nav {
  background-color: var(--reverse-bg-color)
}

.top-nav {
  overflow: hidden;
  background-color: var(--reverse-bg-color);
}

.top-nav a {
  float: left;
  display: block;
  color: var(--reverse-color);
  text-align: center;
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  font-size: 17px;
}

.top-nav a:hover {
  background-color: var(--reverse-color);
  color: var(--primary-color);
}

.top-nav a.active {
  background-color: var(--primary-bg-color);
  color: var(--primary-color);
}

.top-nav .icon {
  display: none;
}

a.email {
  font-family: monospace;
}

footer {
  display: flex;
  background-color: var(--reverse-bg-color);
  border-top: 2px solid var(--reverse-color);
  border-left: none;
  border-right: none;
  border-bottom: none;
  color: var(--primary-color);
  padding: 0rem 1rem;
}

footer a {
  color: var(--reverse-color);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:visited {
  color: var(--reverse-color);
}

footer a:link {
  color: var(--reverse-color);
}
footer a:hover {
  color: var(--reverse-bg-link-hover-color);
}

.container {
  width: 1200px;
  margin: 1rem auto;
}

.footer-row {
  display: flex;
  margin-bottom: 0.5rem;
}

.footer-column {
  flex-basis: 200px;
  flex-grow: 1;
  text-align: center;
  padding: 0rem 0;
  word-break: break-all;
}

.footer-link {
  display: block;
  font-size: var(--fs-2);
  width: max-content;
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
}

.copyright {
  font-size: var(--fs-1);
  color: var(--reverse-color);
}

.footer-social {
  font-size: var(--fs-4);
}

a.footer-email{
  color: var(--reverse-color);
}

@media (max-width: 600px)
{

  .footer-row.bottom-row
  {
    flex-wrap: wrap;
  }
  .footer-row.bottom-row .footer-column
  {
    flex-basis: 100%;
  }
}

/* image slideshow */
.slideshow-container {
  margin: 2rem auto;
}

.slideshow {
  max-width: 800px;
  padding: 0 2rem;
  position: relative;
  margin: auto;
}

.slides {
  display: none;
}

.slides img {
  width: 100%;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  color: var(--primary-color);
  font-size: 2rem;
  transition: 0.6s ease;
  user-select: none;
}

.next {
  right: 0;
}

.prev {
  left: 0;
}

.prev:hover, .next:hover {
  color: var(--primary-color);
}

.dot {
  cursor: pointer;
  height: 1rem;
  width: 1rem;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: var(--primary-color);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Embedded YouTube videos */

.youtube {
  position: relative;
  overflow: hidden;
  width: 90%;
  padding-top: 56.25%;
  margin: auto;
  border: none;
  background-color: var(--primary-bg-color);
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* Index page specific */

a.big-button {
  font-size: var(--fs-2);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 2rem;
  color: var(--reverse-color);
  background-color: var(--reverse-bg-color);
  text-decoration: none;
}

.next-performances-table {
  display: grid;
  grid-template-columns: 1fr 2fr;
  row-gap: 0.75rem;
  text-align: left;
  margin: 0 auto;
  max-width: 50rem;
  font-size: var(--fs-1);
}

/* Programme page specific */

div.prog-outer {
  background: var(--primary-bg-color);
  max-width: 50rem;
  margin: 0 auto;
  color: var(--primary-color);
}

table.prog {
  border-collapse: collapse;
  border-bottom: 2px solid var(--primary-color);
  border-top: 2px solid var(--primary-color);
  border-right: none;
  border-left: none;
  color: var(--primary-color);
}

table.prog tr td {
  vertical-align: top;
  padding: 0.5rem;
  background: var(--primary-bg-color);
  border-bottom: 2px solid var(--primary-color);
  border-top: 2px solid var(--primary-color);
  border-right: none;
  border-left: none;
}

table.prog tr td.date {
  white-space: nowrap;
}

table.prog tr.prog-date {
  background: var(--primary-bg-color);
}

table.prog tr.old-date {
  background: var(--greyed-bg-color);
}

table.prog tr.old-date td {
  background: var(--greyed-bg-color);
  color: var(--greyed-fg-color);
}

@media (max-width: 500px)
{
  table.prog tr td.date { white-space: normal; }
}

/* Gallery page specific */

div.gallery-list {
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 1rem;
  height: auto;
}

.gallery-link i {
  font-size: var(--fs-2);
  color: var(--primary-color);
  padding-right: 2rem;
}

.gallery-link a {
  display: block;
  padding: 0.75rem;
  color: var(--primary-link-color);
}

.gallery-link a:visited {
  color: var(--primary-link-visited-color);
}

.gallery-link a:hover {
  color: var(--primary-link-hover-color);
}

div.gal-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

div.thumb {
  height: auto;
  background: var(--primary-bg-color);
  border: none;
  border-radius: 0.5rem;
  text-align: center;
  text-wrap: wrap;
  color: var(--primary-color);
  max-width: 45%;
}

div.thumb a {
display: block;
padding: 0.5rem;
margin: auto;
}

div.thumb img {
  display: block;
  margin: auto;
  max-height: 130px;
  max-width: 100%;
  aspect-ratio: auto;
}

/* video page specific */

video {
  display: block;
  margin: 1rem auto;
  width: 100%;
  max-width: 700px;
}

.video-link {
  margin-bottom: 1rem;
}

.video-link i {
  font-size: var(--fs-2);
  color: var(--primary-color);
  padding-right: 2rem;
}

.video-link p {
  padding-left: 2rem;
  margin: 0;
}

/* Specific to Music page */

.musicians_image {
  display: table;
  margin: 0 auto;
}

.musicians_image img {
  max-width: 100%;
  border-radius: 0.5rem;
}

figcaption {
  display: table-caption;
  caption-side: bottom;
}

/* Specific to News page */

.news-item {
  margin:  0 auto;
  padding: 1rem;
  border-radius: 0.5rem;
  width: 100%;
}

img.news-pic {
  display: block;
  max-width: 100%;
  /*padding: 0.5rem;*/
  margin: 0.5rem auto;
  border-radius: 0.5rem;
}

/* Specific to Quotes page */

.quote {
  border-bottom: 2px solid var(--primary-color);
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.quote:last-child {
  border: none;
}

/* Specific to Chris tribute page */

.tribute-intro {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;

}
.tribute-intro div {
  width: 400px;
}

.tribute-intro-pic {
  max-width: 100%;
  flex-shrink: 2;
  flex-grow: 0;
}

.tribute-intro-text {
  flex-shrink: 1;
  flex-grow: 5;
}

.tribute-intro img {
  max-width: 100%;
}

.tribute-intro-text p {
  padding: 1rem;
  line-height: 2rem;
}

/* Specific to Rob tribute page */
figure.full {
  margin: 1rem auto;
}

figure.full img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

figure.full figcaption {
  text-align: center;
  display: block;
}

img.half {
  display: block;
  float: right;
  max-width: 50%;
  padding: 0 0.5rem 0 0.5rem;
}

.poem {
  padding-left: 1rem;
  font-style: italic;
  line-height: 2rem;
}

div.clear-fix {
  overflow: auto;
}

/* Specific to Contacts page */

.google-map {
    display: block;
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 0 auto;
}

/* From original style.css */
/* error pages */
body.errorpage
{
  background: black;
  color: white;
  text-align: center;
}
body.errorpage h1
{
  margin: 20px 0;
}
div.errorpage
{
  width: 600px;
  max-width: 90%;
  border: thin solid white;
  margin: 10px auto;
}
div.errorpage div.footer
{
  margin-top: 10px;
  background: white;
  color: black;
  padding: 5px
}
div.errorpage span.email
{
  display: block;
  margin: auto;
  max-width: 100%
}

/*********** message and error boxes ***********/
/* taken from original style.css */
div.errorbox, div.msgbox
{
  width: max-content;
  max-width: 90%;
  margin: 10px;
  padding: 10px;
  background: white;
  font-family: sans-serif;
  border-radius: 10px;
}

div.errorbox
{
  border: 3px solid #900;
  color: #900;
  background: #fff4f4;
}
div.msgbox
{
  border: 3px solid #090;
  color: #090;
  background: #f4fff4;
}

/* General data record forms */

.form-container {
  width: 40rem;
  max-width: 95%;
}
::file-selector-button, input[type="submit"] {
  font-size: var(--fs-1);
  padding: .3rem 1rem;
  border: none;
  border-radius: 1rem;
  color: var(--reverse-color);
  background-color: var(--reverse-bg-color);
  cursor: pointer;
}

input[type="submit"].submit-button {
  margin: 1rem 0 0.5rem 0;
}

input[type="submit"].warning{
  color: var(--warning-color);
}

form div.form-input-pair {
  background: var(--primary-bg-color);
  color: var(--primary-color);
  font-size: var(--fs-1);
  margin: 1rem 0;
}

form div.form-input-pair > div {
   margin: 0.5rem 0;
}

input[type=text] {
  font-size: var(--fs-1);
  width: 40rem;
  max-width: 95%;
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  padding: 0.3rem;
}

textarea {
  width: 40rem;
  height: calc(3 * 1.5 * var(--fs-1));
  font-size: var(--fs-1);
  max-width: 95%;
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  padding: 0.3rem;
}

/* View photo page for galleries */
  picture img.photo {
  max-width: 100%;
  display: block;
  margin: 1rem auto;
}

div.photo-info {
  display: grid;
  grid-template-columns: 8rem 1fr;
  margin: 1rem 0;
}

div.gal-nav {
  margin: 0 auto;
  background: var(--primary-bg-color);
  color: var(--primary-bg-color);
  display: grid;
  grid-template-columns: 5rem 10rem 5rem;
  gap: 1rem;
  justify-items: center;
  justify-content: center;
  justify-self: center;
}

@media screen and (max-width: 1280px) {
  div.gallery-list{
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 767px) {
  body { width: 85% }
}

@media screen and (max-width: 600px) {
  .top-nav a:not(:first-child) {display: none;}
  .top-nav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .top-nav.responsive {position: relative;}
  .top-nav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .top-nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

@media screen and (max-width: 600px) {
  div.gallery-list { display:block; }
}

/* For screens less than 480px wide */
@media screen and ( max-width: 480px ) {
  body { width: 100%; }
}




