@import '../fonts/opensans/stylesheet.css';
@import '../fonts/fontawesome/stylesheet.css';
@import '../fonts/philosopher/stylesheet.css';

#construction {
  position: fixed;
  right: 0;
  top: 0;

  transform-origin: center;
  transform: rotate(45deg) translate(31%, -50%);

  background: red;
  color: white;
  opacity: 0.75;

  font-size: 1em;
  text-align: center;
  padding: .5em 5em;

  z-index: 101;
}

.noticeboard {
  position: sticky;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fbfb7f;
  color: black;
  font-weight: 600;
  padding: 1em;
}

.noticeboard .actions {
  margin: 0 1em;
  display: flex;
  flex-flow: nowrap;
  align-items: center;
}

.noticeboard .actions a {
  margin: 0 1em;
}

html, body {
  margin: 0;
  padding: 0;
  /* width: 100%;
  height: 100%; */
}

body {
  background: #141414;
  color: white;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
  font-size: 1.25em;
}

h1, h2, h3, h4, h5{
  font-weight: 200;
}
h1 {
  font-size: 2.25em;
}
h2 {
  font-size: 2em;
}
h3 {
  font-size: 1.75em;
}
h4 {
  font-size: 1.5em;
  font-weight: 400;
}
a:link, a:hover, a:visited, a:active{
  color:#f00000;
  transition: all 200ms ease-in-out;
  text-decoration: none;
}
button {
  display: inline-block;
  font-size: 1.15em;
  padding: .5em .75em;
  margin-left: 1em;
  background: #d6d6d6;
  color: #313131;
  border: .2em solid #0f0f0f;
  border-radius: .5em;
  outline: 0;
  cursor: pointer;
  white-space: nowrap;
}
a:hover {
  color: #ea5252;
}
body > .main > .section a:visited {
  color: maroon;
}
body > .main {
  padding: 0 1em;
  box-sizing: border-box;
  /* height: 100%; */
  position: relative;
}
body > header {
  /*position: fixed;
  top: 0;
  left: 0;
  right: 0;*/
  grid-area: header;
  position: sticky;
  overflow: hidden; /* (or auto) Needed due to 'margin collapse' */
  top: 0;
  width: 100%;
  background: #0a0a0a;
  text-align: center;
  color: white;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 100;
}
body > header > h1 {
  margin: 0.5em 0 .15em;
  /* margin: 0 0.1em; */
  font-size: 70px;
  font-family: 'Philosopher', 'Lucida Calligraphy', 'Open Sans', Arial;
}
body > header > .menu {
  display: none;
}
body > header > .menu li ul,
body > header > .menu li ul li {
  display:none;
}
body > header > input#menu[name='menu'] {
  display: none;
  padding: 0;
  box-sizing: border-box;
}
body > header > label#menu[for='menu'] {
  width: 100%;
  display: block;
  padding: 1em 0 2em;
}
body > header > .menu::before {
  content: 'Menu';
  font-family: 'Philosopher', 'Lucida Calligraphy', 'Arial';
  padding: .5em 1em;
  margin: 2em 0;
}
body > header > .menu > li {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
body > header > .subtitle {
  max-height: 0px;
  overflow: hidden;
}
body > header > label#menu[for='menu'] span.closed,
body > header > .menu > li > a {
  padding: .5em 1.2em;
  margin: 0em .5em;
  background: #161616eb;
  box-shadow: inset 0 0 0.05em black;
  border-radius: 0.2em;
}
body > header > .main > li > a:active {
  transform: scale(0.75);
}
body > header > input#menu[name='menu']:checked ~ label#menu[for='menu'] {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  text-align: right;
  padding: .5em 1em;
  box-sizing: border-box;
}
body > header > label#menu[for='menu'] span.open {
  display: none;
}
body > header > input#menu[name='menu']:checked ~ label#menu[for='menu'] span.open {
  display: block;
  font-size: 2em;
}
body > header > input#menu[name='menu']:checked ~ label#menu[for='menu'] span.closed {
  display: none;
}
body > header > input#menu[name='menu']:checked ~ h1 {
  margin: 2.5em 0;
}
body > header > input#menu[name='menu']:checked ~ .menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  display: block;
  pointer-events: all;
  background: #141414;
  margin-top: 3.5em;
  font-size: 1.25em;
  padding: 0;
}
body > header > input#menu[name='menu']:checked ~ .menu:before {
  display: block;
  margin: 2em 0;
  font-size: 2em;
}
body > header > input#menu[name='menu']:checked ~ .menu li a {
  display: block;
  margin: 1em;
}

body > .main > .section {
  width: 100%;
  min-height: 100%;
  height: auto;
  margin: auto;
  box-sizing: border-box;
  max-width: 1200px;
  border-bottom: solid 0.2em #aa0000;
  overflow: overlay;
  padding: 0 0 2em;
}

body > .main > .section.wrap {
  min-height: auto !important;
}

body > .main > .section.borderless {
  border-bottom: none;
}

body > .main > .section #content {
  margin: auto;
  /*overflow: overlay;*/
}
li a:link {
  overflow-wrap: break-word;
}
footer {
  background: #0a0a0a;
  color: #c3c3c3;
  width: calc(100% + 2em);
  margin: 0 0 0 -1em;
  box-sizing: border-box;
  padding: 1.5em;
  text-align: center;
  position: relative;
}
footer > #content {
  overflow: overlay;
}
footer > #content > div#love {
  float: left;
}
footer > #content > div#top {
  float: right;
}
footer a:link, footer a:visited, footer a:hover, footer a:active {
  color: #c3c3c3;
}
footer .fa.fa-arrow-up {
  border-radius: 0.25em;
  background: rgba(255,255,255,.5);
  padding: 0.2em;
  color: #151616;
  margin: 0 0 0 .25em;
}
footer .fa.fa-heart {
  color: #da1f51;
}

body::-webkit-scrollbar {
  width: .5em;
  background: #313131;
}

body::-webkit-scrollbar-track {
  /* box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); */
}

body::-webkit-scrollbar-thumb {
  background-color: rgb(214, 214, 214);
  border-radius: 2em;
  /* outline: 1px solid slategrey; */
}

/* Main content */
.banner {
  /* max-width: calc(100% + 2em); */
  width: calc(100% + 2em);
  margin-left: -1em;
}

.banner img.hero {
  width: 100%;
  max-width: 1920px;
  margin: auto;
  display: block;
}

.banner .hero .background {
  width: 100%;
  height: 100%;
  z-index: 2;
}

.banner .hero .content {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

*:has(.glass) {
  position: relative;
}

.glass {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
}

.image-container {
  padding: 0.5em;
  margin: 0.5em;
}

.image-container p, .image-container span {
  font-weight: bold;
  display: block;
  margin: .5em 1em;
}

.biography {
  margin: 0 0 1.5em;
  overflow: overlay;
  user-select: none;
}

.biography header h3 {
  margin: 0;
  font-size: 1.5em;
  display: inline-block;
}

.biography header .role {
  font-style: italic;
}

.biography header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.25em;
  /*gap: 1em;
  flex-direction: row; */
}

.biography .portrait {
	max-width: 128px;
	min-width: 10em;
	margin: 0.5em auto;
	/*margin: 0.5em auto;
	display: block;*/
}

.biography .portrait img.portrait {
	/* Avoid double margins when using glass */
	margin: 0;
}

.section {
  user-select: none;
}

.section#news {

}

.section#news .article {
  position: relative;
  background: #1d1d1d;
  /* padding-bottom: 1.5em; */
  border-radius: .25em;
  overflow: hidden;
}

.section#news .article .read-time::before {
  content: '•'; /* | */
  font-style: normal;
  color: #bc7171;
  padding: 0 .3em 0 0.55em;
  font-weight: 600;
}

.section#news .article-title h4 {
  margin: 0;
}

.section#news .article-header {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  background: #670404;
  padding: 1em 1em .8em;
  border-bottom: 0.2em solid #c0686f;
}

.section#news .article-header .article-container {
  justify-items: center;
}

.section#news .article-header .article-container .article-title {
  text-align: center;
}

.section#news .article-date {
  font-style: italic;
  display: flex;
  align-items: baseline;
}

.section#news .article-date p {
  margin: 0;
}

.section#news .article-date p.date .day sup {
   margin-left: 0.2em;
}

.section#news .article-date .day,
.section#news .article-date .month,
.section#news .article-date .year {
}

.section#news .article-author {
  display: flex;
  align-items: center;
  gap: .5em;
}

.section#news .article-author .prefix {
  display: block;
  font-style: italic;
}

.section#news .article-author .text {
  font-weight: 600;
}

.section#news .article-author img {
  clip-path: circle(42.5% at 50% 50%);
  height: 62px;
}

.section#news .article-body {
  padding: 0 1em;
}

.section#news .article-body p {
  margin: 1em 0;
}

.section#events, .section#event-preview {
  overflow: visible;
}

.section#events .events-grid, .section#event-preview .events-grid {
  width: 100%;
  position: relative;
  overflow: hidden; /* hidden because fade uses 2px to prevent em to pixel misalignment */
  margin: 2em 0;
}

.section#event-preview .events-grid::before {
  content: "";
  display: block;
  height: calc(100% - 2em);
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  /*width: 5em;*/
  width: 3em;
  /*background: linear-gradient(90deg, #141414 30%, transparent 90%);*/
  background: linear-gradient(90deg, #141414 0%, transparent 50%), linear-gradient(90deg, #141414 -1%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.section#event-preview .events-grid::after {
  content: "";
  display: block;
  height: calc(100% - 2em);
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  /*width: 5em;*/
  width: 3em;
  background: linear-gradient(270deg, #141414 0%, transparent 50%), linear-gradient(270deg, #141414 -1%, transparent 100%);
  /*background: linear-gradient(270deg, #141414 30%, transparent 90%);*/
  z-index: 2;
  pointer-events: none;
}

.section#event-preview .events-grid .events-track {
  display: flex;
  flex-direction: row;
  overflow-x: auto; /*scroll;*/
  overflow-y: hidden;
  width: calc(100% - 5em);
  margin: 0;
  position: relative;
  padding: 1em 2.5em;
  /* Due to weird clipping issues with ::before and ::after, we're going to use
   * a clip path to hide any content before it fills the 'weird' .5px gap at 0px... */
  clip-path: polygon(5px 0, calc(100% - 5px) 0, calc(100% - 5px) 100%, 5px 100%);
}

.section#event-preview .event-year-group:not(:first-child) {
  margin-left: 2em;
}

.section#event-preview .event-year-group:not(:first-child)::before {
  content: "";
  display: block;
  position: absolute;
  width: 0.25em;
  background: #ffffff26;
  height: calc(100% - 5em);
  margin: 2em 0 0 -1em;
  border-radius: 5em;
}

.section#event-preview .events {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1em;
  margin: 0 0 1em; /* push scroll bar down */
}

.events .date .space { display: none; }

.section .event span.year, .section .event span.month {
  margin-left: .25em;
}

.section#event-preview .event span.year,
.section#event-preview .event span.day {
  display: none;
}
.section#event-preview .event span.month {
  margin-left: 0;
}

.section#events .event span.day {
  display: none;
}

.section#events .events {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1em;
}

.section#events .events p.empty {
  text-align: center;
  width: 100%;
}

.section#events .event p.name {
  max-width: 20ch;
  margin: 1em auto;
}

.section#event-preview .event p.name {
  max-width: 20ch;
  margin: 1em auto;
}

.section#event-preview .events-track h1 {
  font-weight: 400;
  font-size: 1.25em;
  text-align: center;
  margin: 0;
}

.section#events .event, .section#event-preview .event {
  text-align: center;
}

.section#events .event p.date,
.section#event-preview .event p.date {
  color: red;
  margin-top: 0;
}

.section#events .event img,
.section#event-preview .event img {
  width: 15em; /*20vw;*/
  height: 21.5em; /*27.5vw;*/
  box-shadow: 0 0 20px rgb(0 0 0);
}

.section#event-preview .overflow-event-group {
  display: flex;
  margin: 0 0 0 1.5em;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.section#event-preview .overflow-event-group a.overflowButton {
  cursor: pointer;
}

/* .section#event-preview .overflow-event-group a.overflowButton button {
  display: inline-block;
  font-size: 1.15em;
  padding: .5em .75em;
  margin-left: 1em;
  background: #d6d6d6;
  color: #313131;
  border: .2em solid #0f0f0f;
  border-radius: .5em;
  outline: 0;
  cursor: pointer;
  white-space: nowrap;
} */


.section#events .event.detailed {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 2em;
}

.section#events .event-details table {
  font-size: 1.2em;
  border-spacing: .5em;
  border-color: transparent;
  max-width: 700px;
}

.section#events .event-details table tr td:nth-child(1) {
  color: #afafaf;
  padding-right: .5em;
  vertical-align: top;
}

.section#events .event-details table tr.links td:nth-child(2) {
  font-size: 0.8em;
}

.section#events .event-details table tr.ticket td > span:last-child {
  font-size: 0.8em;
  display: inline-block;
  margin: 0.25em 0;
}

.section#events .event-details table tr.links td:nth-child(2) button {
  margin-left: 0;
}

.section#events .event-details table td:nth-child(2) {
  padding: 0 .5em;
}

.section#event-preview .events-track::-webkit-scrollbar {
  height: 1em;
  width: initial;
  /* background: #313131;
  border-radius: 2em; */
}

.section#event-preview .events-track::-webkit-scrollbar-track {
  background: #313131;
  margin: 0 2em;
  border-radius: 2em;
}

.section#event-preview .events-track::-webkit-scrollbar-thumb {
  background-color: rgb(214, 214, 214);
  border-radius: 2em;
  /* outline: 1px solid slategrey; */
}

@media screen and (min-width: 1000px) {
  body > header > .subtitle {
    max-height: 2em;
  }
  body > header > label#menu[for='menu'] {
    display: none;
  }
  body > header > input#menu[name='menu']:checked ~ .menu:before {
    font-size: 1em;
    display: inline-block;
    margin: 0;
  }
  body > header > input#menu[name='menu']:checked ~ .menu,
  body > header > .menu {
    padding: .5em;
    margin: 0; /* .5em; */
    position: relative;
    top: initial;
    left: initial;
    right: initial;
    bottom: initial;
    width: initial;
    height: initial;
    font-size: 1em;
    display: inline-block;
    vertical-align: middle;
    padding-bottom: 0; /* Disabled for li a:active */
  }
  body > header > .menu li ul {
    position: absolute;
    padding: 0;
    list-style: none;
    text-align: left;
    /*background: rgba(0, 0, 0, 0.25); */
    color: white;
    margin: 0 0.5em;
    box-sizing: border-box;
  }
   body > header > .menu li ul > li ul{
    position: absolute;
    padding: 0;
    left: 100%;
    top: 0;
    min-height: 100%;
    list-style: none;
    text-align: left;
    /* background: rgba(0, 0, 0, 0.25); */
    color: white;
    margin: 0 0.5em;
    box-sizing: border-box;
  }
  body > header > .menu li:hover > ul {
    display: block;
  }
  body > header > .menu li:hover > ul > li:hover ul{
    display: block;
    margin: 0;
  }
  body > header > .menu li ul > li,
  body > header > .menu li ul > li > a {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
  }
  body > header > .menu li ul li ul li {
    display: block;
  }
  body > header > .menu li ul > li a {
    padding: 1.5em 1.2em;
    font-size: 0.75em;
  }
  body > header > .menu li:hover > ul > li {
    white-space: nowrap;
  }
  body > header > .menu > li {
    display: inline-block;
    padding-bottom: .5em;
  }
  body > header > .menu > li > a {
    display: inline-block;
    vertical-align: middle;
    background: none;
    border-radius: 0;
  }
  body > header > .menu > li:has(a.active) {
    border-bottom: 0.15em solid #f00002;
  }

  .biography header {
    gap: 1em;
    flex-direction: row;
  }
  .biography .portrait {
  }
  .biography .portrait.left {
    float: left;
    margin: 0 1em 1em 0;
  }

  .biography .portrait.right {
    float: right;
    margin: 0 0 1em 1em;
  }

  .section#news .article-header {
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }

  .section#news .article-header .article-container {
    justify-items: start;
  }

  .section#news .article-header .article-container .article-title {
    text-align: left;
  }

  .section#events .events {
    justify-content: space-between;
  }
}

@media screen and (min-width: 860px) {
  body > header > .menu::before {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  body {
    font-size: 0.95em;
  }

  body > .main > .section {
    width: 75%;
  }

  body > header > .menu::before {
    display: none;
  }

  body > header h1 {
    margin: 0.1em 0;
  }

  .section#event-preview .events-grid {
    margin: 2em -5em;
    width: calc(100% + 10em);
  }

  .section#event-preview .events-grid .events-track {
    padding: 0 10em 0 5em;
  }

  .section#event-preview .events-grid .events-track {
    width: calc(100% - 13em); /* should be -15em but we're removing scroll wheel for View More button on desktop */
  }

  .section#event-preview .events-grid::before,
  .section#event-preview .events-grid::after {
    width: 10em;
  }

  .section#event-preview .events-grid::before {
	background: linear-gradient(90deg, #141414 -50%, transparent 50%), linear-gradient(90deg, #141414 5%, transparent 75%);
  }

  .section#event-preview .events-grid::after {
	background: linear-gradient(270deg, #141414 -50%, transparent 50%), linear-gradient(270deg, #141414 5%, transparent 75%);
  }

  .section#event-preview .events-track::-webkit-scrollbar-track {
    background: #313131;
    margin: 0 10em;
    border-radius: 2em;
  }
}
@media screen and (min-width: 2000px) {
  body {
    font-size: 1.5em;
  }
  body > .main > .section {
    max-width: 1600px;
  }
}
@media (-webkit-min-device-pixel-ratio: 2) {
  body {
    font-size: 2.5em;
  }
}
@media (-webkit-min-device-pixel-ratio: 2) and (min-device-width: 420px) {
  body {
    font-size: 1.5em;
  }
  body > header > input#menu[name='menu']:checked ~ h1 {
    margin: 1.05em 0;
  }

  .biography header {
    gap: 1em;
    flex-direction: row;
  }

  .biography .portrait {
  }

  .biography .portrait.left {
    float: left;
    margin: 0 1em 1em 0;
  }

  .biography .portrait.right {
    float: right;
    margin: 0 0 1em 1em;
  }

  .section#events .events {
    justify-content: space-between;
  }
}

@media (-webkit-min-device-pixel-ratio: 2) and (min-device-width: 550px) {
  body {
    font-size: 1.15em;
  }
}

@media (-webkit-min-device-pixel-ratio: 2) and (min-device-width: 900px) {
  body > header> input#menu[name='menu']:checked ~ .menu {
    background: linear-gradient(180deg, transparent, #121212 10%);
  }
  .section#events .event-details table tr td:nth-child(1) {
    min-width: 12ch;
  }
}

@media (-webkit-min-device-pixel-ratio: 2) and (min-device-width: 1000px) {
  body {
    font-size: 1.2em;
  }
}
