/*
Website Design/Build:
Kevin Snell
Formulate Communicative Design
www.formulate.ca
*/


/* CSS VARIABLES */
:root {

  /* Base font size */
  font-size: 16px;
  
  /* Colour palette */
  --colour-primary: #00549A;
  --colour-secondary: #255E2F;
  --colour-text: #666666;
  --colour-link: #00549A;
  --colour-link-hover: #DB7500;

}

/* RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body { 
  margin: 0; 
  padding: 0; 
  color: var(--colour-text);
  font-size: 18px;
  line-height: 1.3;
  font-family: "Inter", sans-serif;
}


/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
  font-weight: 400;
  color: #000;
  font-family: "Inter", sans-serif;
}

h1 {
  letter-spacing:1px;
  font-size:28px;
  width:fit-content;
  margin:0 auto 40px auto;
  padding:0 0 12px 0;
  text-align:center;
  border-bottom:1px dotted var(--colour-link);
}

h2 {
  margin:40px 0 0 0;
  font-size:28px;
}

h3 {
  margin:30px 0 0 0;
  font-size:22px;
}

h4 {
  margin:20px 0 0 0;
  font-size:18px;
}

h4.message {
  text-align:center;
  margin-bottom:30px;
  font-size:20px;
}

a { 
  color: var(--colour-link); 
  text-decoration: underline;
}

a:hover { 
  text-decoration: underline; 
  color: var(--colour-link-hover); 
}

em { 
  color: var(--colour-text); 
}

hr {
  margin:30px 0;
}

.align_center {
  text-align:center;
}

#content p {
  line-height:1.4em;
}

#content ol, #content ul {
  margin:15px 0 0 0;
}

#content ul li {
  padding:3px 0;
}

#content ol li {
  padding:5px 0;
}

#content table {
  margin:25px 0 30px 0;
  width:auto !important;
  max-width:100% !important;
  border-collapse:collapse;
  border:none;
  border-top:1px solid #ddd;
  font-size:17px;
  table-layout: auto !important;
}

#content table,
#content table col,
#content table th,
#content table td {
  width:auto !important;
}

#content table tr {
    border-bottom:1px solid #ddd;
}

#content table tbody tr:nth-child(odd) {
  background-color: #f6f6f6;
}

#content table tbody tr td {
  padding:5px 15px;
  border:none;
  border-right:3px solid #fff;
}

#content table ul, #content table ol {
  margin:0;
  padding:5px 0 0 18px;
}

#content table ul li, #content table ol li {
  margin:0;
  padding:2px 0;
}



/* BUTTONS */

.uk-button { 
  margin: 15px 0; 
  background: var(--colour-primary); 
  color: #fff; 
  font-size: 15px;
  font-weight: 400; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  height: 40px; 
  line-height: 40px;
  border-radius: 6px;
  padding:0 30px;
}

.uk-button.uk-button-secondary {
  background:#515151;
}

.uk-button.uk-button-large {
  margin:25px 0;
  font-size:16px;
  height:44px;
  line-height:44px;
  padding:0 40px;
}

.uk-button.transparent {
  background:none;
  border:1px solid var(--colour-primary);
  color:var(--colour-primary);
}

.uk-button:hover { 
  background: var(--colour-link-hover); 
  color: #fff !important; 
}

.uk-button.transparent:hover {
  border-color:var(--colour-link-hover);
}


/* COMPONENTS */

img.align_center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img.align_right {
  display:block;
  float:right;
  width:100% !important;
  max-width:400px !important;
  margin:0 0 20px 40px !important;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map {
  position: relative;
  width: 100%;
  padding-bottom: 50%;
  overflow: hidden;
  border-top:3px solid var(--colour-primary);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#editpage { 
  position: fixed; 
  top: 5px; 
  left: 1%;  
  z-index: 9999; 
}

#editpage a { 
  float: left; 
  padding: 0.1875rem 0.375rem 0.3125rem 0.375rem; 
  background: #db1174; 
  color: #FFB8DB; 
  display: block; 
  font-weight: normal; 
  font-size: 0.875rem; 
  z-index: 9999; 
  margin: 0 0.0625rem; 
  text-decoration: none; 
  line-height: 1em; 
  stroke-width: 0.125rem; 
  border-radius: 0.1875rem;
}

#editpage a:hover { 
  background: #ffffcc; 
  color: #000; 
  text-decoration: none; 
}


/* HEADER */

#header {
  background:#fff;
  z-index:999;
  box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.15);
}

#header #alert {
  background:var(--colour-link-hover);
  color:#fff;
  text-align:0;
  font-size:15px;
  padding:5px 10px;
}

#header #alert p {
  text-align:center;
  margin:0;
}

#header #alert p a {
  color:#fff;
}

#header #alert p a:hover {
  color:#000;
}

#header #topbar {
  background: var(--colour-primary);
  color:#fff;
  text-align:center;
  padding:7px 10px 8px 10px;
  font-size:15px;
}

#header #topbar ul {
  margin:0;
  padding:0;
  list-style:none;
}

#header #topbar ul li {
  display:inline;
  padding:0 10px;
}

#header #topbar ul li a {
  color:#fff;
  text-decoration:none;
}

#header #topbar ul li a:hover {
  color:#FFB765;
}

#header #topbar ul li a span.uk-icon {
  position:relative;
  top:-1px;
  margin-right:3px;
}

#header #topbar ul li a span.uk-icon svg {
  filter: drop-shadow(0 0 .5px currentColor);
}

#header #topbar ul li.basket, #header #topbar ul li.login {
  display:inline-block !important;
}

#header .uk-grid {
  width:100%;
  min-height:100px;
}

#header .logo img {
  width: 100%;
  max-width: 400px;
  position:relative;
  top:1px;
}


/* MAIN NAV */

#header .nav {
  text-align: right;
}

#header .nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .nav ul li {
  display: inline;
  padding: 0 12px;
}
#header .nav li.toggle {
  padding:0;
}

#header .nav li.toggle a.uk-button {
  padding:0 20px;
}

#header .nav li.toggle a span {
  padding-left:8px;
}

#header .nav li.toggle a span.uk-icon {
  position:relative;
  top:-1px;
  padding-left:0;
}

#header .nav ul li.last {
  padding-right:0;
}

#header .nav ul li a {
  font-size: 17px;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
}

#header .nav ul li a:hover {
  color:var(--colour-link-hover);
}

#header .nav ul li a:hover {
  color: var(--colour-link-hover);
}

#header .nav ul li a.uk-button {
  font-size:15px;
  color:#fff;
}

#header .nav ul li ul.uk-drop {
  background:#003562;
  margin:0;
  padding:10px 0;
  list-style:none;
  text-align:left;
  width:fit-content;
}

#header .nav ul li ul.uk-drop li {
  display:block;
  padding:0;
}

#header .nav ul li ul.uk-drop li a {
  display:block;
  padding:5px 18px;
  text-transform:initial;
  font-size:17px;
  color:#fff;
}

#header .nav ul li ul.uk-drop li a:hover {
  background:var(--colour-link-hover);
}

.uk-offcanvas-overlay::before {
  background:rgba(0,0,0,.4);
}

.uk-offcanvas-bar {
  width:fit-content;
  min-width:325px;
}

.uk-offcanvas-bar .uk-nav-default {
  font-size:20px;
}

.uk-offcanvas-bar .uk-nav-default li {
  padding:3px 0;
}

.uk-offcanvas-bar .uk-nav-default > li > a {
  color:#fff;
}

.uk-offcanvas-bar .uk-nav-default > li > a:hover {
  color:var(--colour-link-hover);
}

.uk-offcanvas-bar .uk-nav-default li ul li a {
  font-size:18px;
  color:#a4a4a4;
}

.uk-offcanvas-bar .uk-nav-default li ul li a:hover {
  color:var(--colour-link-hover);
}



/* BREADCRUMBS */

#breadcrumbs {
  background:var(--colour-primary);
  color:#fff;
  font-size:16px;
  padding:10px 0 11px 0;
  font-weight:300;
  position: sticky;
  top: var(--header-height, 0px); /* fallback 0 */
  z-index: 998;
}

#breadcrumbs ul {
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  align-items:center;
}

#breadcrumbs ul li {
  display:inline-flex;
}

#breadcrumbs ul li:after {
  content: "/";
  padding:0 10px;
}

#breadcrumbs ul li.last:after {
  content: "";
  padding:0;
}

#breadcrumbs ul li.all_events {
  margin-left:auto;
}

#breadcrumbs ul li.all_events:after {
  content: "";
  padding:0;
}

#breadcrumbs ul li a {
  color:#fff;
  text-decoration:none;
}

#breadcrumbs ul li a:hover {
  color:#FFB765;
  text-decoration:none;
}



/* LAYOUT */

.padded {
  padding:0 20px;
}

#hero {
  position: relative;
  overflow: hidden;
  background: #000;
}

#hero div:first-child img {
  position: static;
  display: block;
  width: 100%;
  height: auto;      /* this image defines the slideshow height */
}

/* OTHER images: fill the height, maintain aspect ratio, centered */
#hero div:not(:first-child) img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;      /* match the container height set by first image */
  width: auto;       /* maintain aspect ratio → black bars on sides */
  max-width: none;
  display: block;

}

#hero h1 {
  margin:0;
  font-size:30px;
  font-weight:400;
  letter-spacing:5%;
  line-height:1.1em;
  text-align:center;
  color:#fff;
}

#layout {
  width:100%;
  padding:40px 0 60px 0;
}

#content {
  max-width:1200px;
  margin:0 auto;
}

#content p img {
  width:100%;
  max-width:800px;
  margin:40px auto;
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.2);
  border-radius:6px;
}

#content div.sidebar > h2 {
  margin-top:0;
}


/* FOOTER */

#footer {
  background:var(--colour-primary);
  padding:40px 0 20px 0;
  color:#fff;
}

#footer a {
  color:#fff;
  text-decoration:none;
}

#footer a:hover {
  color:#FFB765;
}

#footer .contact {
  text-align:center;
}

#footer .contact p {
  margin:0 0 20px 0;
  line-height:1.4em;
}

#footer .contact p.logo img {
  width:100%;
  max-width:340px;
}

#footer .contact p a.phone {
  font-size:20px;
}

#footer .contact p a.email {
  font-size:16px;
}

#footer .contact div.location {
  font-size:16px;
}

#footer .contact div.location a span.uk-icon {
  filter: drop-shadow(0 0 .5px currentColor);
  float:left;
  margin-right:9px;
  position:relative;
  top:2px;
}

#footer .contact div.location p.text {
  overflow:hidden;
}

#footer .contact p.social a {
  margin:0 5px;
}

#footer .contact p.social a.facebook {
  border:2px solid #fff;
  border-radius:50%;
  padding:4px;
}

#footer .contact p.social a:hover {
  border-color:#FFB765;
}

#footer .links {
  text-align:center;
}

#footer .links > div.uk-grid {
  width:fit-content;
  margin:0 auto;
}

#footer .links ul {
  margin:0 auto;
  padding:0;
  width:fit-content;
  list-style:none;
  text-align:center;
  font-size:17px;
}

#footer .links ul li {
  margin:0;
  padding:5px 20px;
  white-space: nowrap;
}

#footer .supporters {
  text-align:center;
}

#footer .supporters h3 {
  color:#fff;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:20px;
  margin:25px 0 20px 0;
}

#footer .supporters p {
  margin:15px 0;
}

#footer .supporters img.bell {
  width:60px;
}

#footer .supporters img.surrey {
  width:180px;
}

div.copyright {
  background:#003562;
  text-align:center;
  padding:12px 0 12px 0;
  font-size:14px;
  color:#AEBFE4;
}

div.copyright p {
  margin:0;
}

div.copyright span {
  padding:0 20px;
}

div.copyright a.credit img {
  width:18px;
  height:18px;
  position:relative;
  top:-2px;
  margin-right:2px;
  opacity:.4;
}

div.copyright a.credit span {
  padding:0;
  border-bottom:1px dotted #D6DCFF;
}

div.copyright a.credit {
  color:#AEBFE4;
  margin-top:10px;
  text-decoration:none;
  display:block;
}

div.copyright a.credit:hover {
  color:var(--colour-link-hover);
}

div.copyright a.credit:hover span {
  border-color:var(--colour-link-hover);
}



/* EVENTS FILTER */

#filters {
  margin:-10px 0 35px 0;
  text-align:center;
}

#filters > div {
  display:inline-block;
  margin:8px;
}

#filters > div.events_search {
  width:100%;
  max-width:400px;
}

#filters form.uk-search {
  width:100%;
}

#filters form.uk-search .uk-search-input {
  width:100%;
  margin:0; 
  padding:0 0 0 35px;
  font-size:16px;
  height: 40px; 
  line-height: 40px;
  border-radius: 6px;
  border:1px solid #888888;
}

#filters > div a.uk-button {
  margin:0;
  padding:0 15px;
  min-width:175px;
  height:40px;
  line-height:38px;
}

#filters > div a span.uk-icon {
  position:relative;
  top:-2px;
  margin:0 10px 0 -5px;
  color:#fff;
}

#filters > div a:hover span.uk-icon {
  color:#fff;
}



/* EVENT CARD */

#content .events .event {
  display: flex;
  flex-direction: column;
  width:100%;
  max-width:420px;
  height: 100%;
  border-radius:6px;
  overflow:hidden;
  margin:0 auto;
}

#content .events .card p {
  margin:10px 0;
  line-height:1.4em;
  font-size:15px;
}

#content .events .card p.image {
  margin:0;
  line-height:1em;
  overflow:hidden;
}

#content .events .card p.image img {
  width:100%;
  max-width:100%;
  box-shadow:none;
  border-radius:0;
  margin:0;
}

#content .events .card div.content {
  padding:10px 15px 0 15px;
}

#content .events .card h2 {
  margin:5px 0 0 0;
  font-size:20px;
  line-height:1.1em;
}

#content .events .card h2 a {
  text-decoration:none;
}

#content .events .card p.dates {
  font-size:16px;
  color:#000;
}

#content .events .card p.dates span.uk-icon {
  position:relative;
  top:-2px;
  margin:0 4px 0 10px;
}

#content .events .card .description .BoldText {
  font-weight:bold;
}

#content .events .card .description .ItalicText {
  font-style:italic;
}

#content .events .card .description .UnderlineText {
  text-decoration:underline;
}

#content .events .card p.button {
  margin:0;
  text-align:center;
  margin-top: auto;
}

#content .events .card p.button a.uk-button {
  margin:5px 0 18px 0;
  font-size:14px;
  height:38px;
  line-height:38px;
}


/* EVENT */

#content.event h1 {
  text-transform:initial;
  padding:0;
  border:none;
  text-align:center;
}

#content.event p.image {
  margin:0 0 30px 0;
}

#content.event p.image img {
  margin:0;
}

#content.event .sidebar {
  color:#515151;
  line-height:1.3em;
}
#content.event .sidebar h2 {
  margin:25px 0 5px 0;
  font-size:20px;
  text-transform:uppercase;
  font-weight:500;
  letter-spacing:1px;
}

#content.event .sidebar p {
  margin:3px 0 0 0;
  font-size:17px;
}

#content.event .sidebar div.dates h2 {
  margin-top:0;
}

#content.event .sidebar div.dates p {
  font-size:20px;
}

#content.event .sidebar div.dates p span.uk-icon {
  position:relative;
  top:-1px;
  margin:0 4px 0 12px;
}

#content.event .sidebar div.prices p.taxes {
  margin:5px 0;
  font-size:14px;
  font-style:italic;
  color:#a4a4a4;
  line-height:1.2em;
}

#content.event .sidebar p.buy_button .uk-button {
  margin:10px 0 5px 0;
}

#content.event .sidebar div.venue p a span.uk-icon {
  filter: drop-shadow(0 0 .5px currentColor);
}

#content.event .sidebar div.venue p a {
  text-decoration:none;
  font-size:15px;
}

#content.event .BoldText {
  font-weight:bold;
}

#content.event .ItalicText {
  font-style:italic;
}

#content.event .UnderlineText {
  text-decoration:underline;
}

#tickets ul {
  margin:10px 0;
  padding:0;
  list-style:none;
  font-size:20px;
}

#tickets ul li {
  padding:3px 0;
}

#tickets ul li a {
  text-decoration:none;
}

#tickets ul li a span.uk-icon {
  position:relative;
  top:-2px;
  margin:0 4px 0 10px;
}


/* CALENDAR */

.calendar {
  width:100%;
  max-width:1200px;
  margin:-50px auto 80px auto;
}


/* GALLERY */

#gallery {
  width:100%;
  max-width:1200px;
  margin:-40px auto 80px auto;
}

.uk-lightbox {
  background:rgba(0,0,0,.9);
}

#gallery img {
  border-radius:6px;
}


/* NEWS */

.news div.item img {
  width:100%;
  max-width:400px;
  margin:0 auto;
}

.news div.item h2 {
  margin:0;
  padding:0;
  line-height:1.2em;
}

.news div.item h2 a {
  color:#000;
  text-decoration:none;
  font-size:24px;
}

.news div.item h2 a:hover {
  color:var(--colour-link-hover);
}

.news div.item p {
  margin:10px 0;
}

.news div.item p.more {
  font-size:16px;
}

.article h1 {
  text-align:left;
  width:100%;
  margin:0 0 30px 0;
  padding:0;
  border:none;
}


/* PAGE SPECIFIC */

.page1 #content h2.title {
  text-transform:uppercase;
  text-align:center;
  letter-spacing:1px;
  font-size:30px;
  margin:0 0 30px 0;
  font-weight:300;
}

.page1 .uk-light .uk-slidenav {
  border:2px solid #fff;
  border-radius:50%;
  width:40px;
  height:40px;
  color:#fff !important;
  opacity:.4;
}

.page1 h1 {
  border:none !important;
  margin:0 !important;
  padding:0 !important;
}

.page1 .uk-light .uk-slidenav svg {
  height:90%;
  margin-top:5%;
}

.page1 .uk-light .uk-slidenav.uk-slidenav-next svg {
  margin-left:2px;
}

.page1 .uk-light .uk-slidenav:hover {
  opacity:1;
}

.page1 .ctas {
  margin-top:40px;
  font-size:16px;
}

.page1 .ctas div img {
  width:100%;
  max-width:110px;
  float:left;
}

.page1 .ctas div.text {
  overflow:hidden;
  padding:0 30px;
  max-width:400px;
  text-align:left;
}

.page1 .ctas div.text h3 {
  margin:0 0 10px 0;
  font-size:26px;
}

.page1 .ctas div.text p {
  margin:0;
}

.page1 .ctas div.text .uk-button {
  font-size:14px;
  height:36px;
  line-height:35px;
  padding:0 25px;
  margin:18px 0 0 0;
}
.page1023 #content p img {
  box-shadow:none;
  width:100%;
  max-width:100%;
  margin:0;
}

.page1138 #content ol li {
  padding:10px 0;
}

.page1025 #content p img {
  width:100%;
  max-width:400px;
  margin:10px auto;
  box-shadow:none;
  border-radius:0;
}


/* MEDIA QUERIES */
@media only screen and (min-width: 640px) {  
  
  h1 {
    font-size:32px;
    padding:0 40px 12px 40px;
  }

  .padded {
    padding:0 40px;
  }

  #header #topbar ul li {
    padding:0 15px;
  }
  
  #hero h1 {
    font-size:40px;
  }
  
}

@media only screen and (min-width: 960px) {
  
  h1 {
    font-size:38px;
    padding:0 80px 12px 80px;
  }
  
  .article h1 {
    font-size:32px;
  }
  
  #content table tbody tr td {
    padding:5px 40px 5px 15px;
  }
  
  #header #topbar {
    text-align:right;
    padding:7px 30px 8px 30px;
  }

  #hero h1 {
    font-size:50px;
  }

  #footer .contact {
    text-align:left;
  }

  #footer .contact p.social a {
    margin:0 10px 0 0;
  }
 
  #footer .supporters h3 {
    margin:5px 0 30px 0;
  }
  
  #footer .supporters p {
    margin:25px 0;
  }
  
  #footer .supporters img.bell {
    width:70px;
  }

  #footer .supporters img.surrey {
    width:220px;
  }

  .event .uk-grid div.sidebar {
    padding-left:40px;
  }

  div.copyright a.credit {
    display:initial;
    margin-top:0;
  }

}

@media only screen and (min-width: 1024px) {
}

@media only screen and (min-width: 1200px) { 
  
  #hero h1 {
    font-size:60px;
  }

  #footer .links ul {
    text-align:left;
  }
  
  .event .uk-grid div.sidebar {
    padding-left:50px;
  }

}

@media only screen and (min-width: 1400px) {
}

@media only screen and (min-width: 1600px) {
}
