/* General Use Classes */
.screen_reader {
    /* Hide descriptive text from visual users */
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.visible {
    display: initial;
}
.invisible {
    display: none !important;
}
.grey_out {
    background-color: #555555 !important;
    color: #999999 !important;
    cursor: default !important;
}

/* Main setup */
body {
    background-image: url('../images/site/background_bees.png');
    background-color: black;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    color: white;
    font-family: Jost, sans-serif;
    font-style: normal;
    font-weight: 200;
    margin: 0;
    box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Modak", system-ui;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    text-align: center;
    color: #BAACD9;
    -webkit-text-stroke: black 0.05em;
}
h1 {
    font-size: 70pt;
    letter-spacing: 0.05em;
    padding: 0;
    margin: 0 0 -0.5em 0;
}
h2 {
    font-size: 50pt;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 0;
}
h3 {
    font-size: 40pt;
    padding: 0;
    margin: 0;
}
h4 {
    font-size: 30pt;
    padding: 0;
    margin: 0 0 -0.5em 0;
}
h5, h6 {
    text-align: left;
    font-size: 30pt;
    padding: 0;
    margin: 1em 0 -0.5em 0;
}
h6 {
    text-transform: capitalize;
}
hr { 
    background: url('../images/site/bee_small_1.png') no-repeat top center;
    background-size: contain;
    display: block;
    height: 50px;
    border: 0;
    position: relative;
    margin-bottom: 50px;
}

p {
    font-weight: 300;
}
a {
    text-decoration: underline #FBECB1 solid 1px;
    color: inherit;
}
.odd a {
    text-decoration: underline #FF5858 solid 1px;
    color: inherit;
}
a:hover {
    text-decoration: underline #FF5858 solid 1px;
    color: #FF5858;
    cursor: pointer;
}
th {
    white-space: nowrap;
}
th, td {
    vertical-align: top;
    padding: 10px;
    text-align: left;
}
td {
    font-weight: 300;
}
li {
    font-weight: 300;
}
select {
    color: white;
    background-color: #633800;
    padding: 7px;
    border: 0;
    width: 100%;
}
select:hover {
    color: black;
    background-color: #FBECB1;
    cursor: pointer;
}

/* Header section */
header, body > nav {
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(30px) contrast(60%);
    -webkit-backdrop-filter: blur(30px) contrast(60%);
    font-size: large;
    font-family: Futura, Jost, sans-serif;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

/* Navigation menu */
nav a, nav a:hover {
    text-decoration: none;
}
body > nav {
    background-color: #633800;
    margin: 0;
    padding: 0;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
nav ul li {
    flex-basis: auto;
    flex: 1 1 150px;
    text-align: center;
    font-size: 12pt;
}
nav ul a {
    display: block;
    white-space: nowrap;
    background-color: #FF5858;
    color: white;
    padding: 7px;
    text-decoration: none;
}
body > nav ul li a:hover {
    color: black;
    background-color: #FBECB1;
    text-decoration: none;
}
nav ul li a:hover {
    color: black;
    background-color: #FBECB1;
    text-decoration: none;
}

/* Pride Rainbow navigation buttons 
body > nav ul li:nth-child(1) a {
    background-color: #E40303;
}
body > nav ul li:nth-child(2) a {
    background-color: #FF8C00;
    color: black;
}
body > nav ul li:nth-child(3) a {
    background-color: #FFED00;
    color: black;
}
body > nav ul li:nth-child(4) a {
    background-color: #008026;
    color: white;
}
body > nav ul li:nth-child(5) a {
    background-color: #24408E;
    color: white;
}
body > nav ul li:nth-child(6) a {
    background-color: #732982;
    color: white;
}
body > nav ul li:nth-child(7) a {
    background-color: #FFAFC7;
    color: black;
}
body > nav ul li:nth-child(8) a {
    background-color: #73D7EE;
    color: black;
}
*/


/* Footer Section */
footer {
    background-color: #FBECB1;
    color: black;
    text-align: center;
    font-weight: bold;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0;
}
footer h1, footer h2 {
    font-size: 16pt;
    letter-spacing: 0.3em;
    font-family: Futura !important;
    line-height: 2;
    -webkit-text-stroke: unset;
    color: black;

}
footer h1 a, footer h2 a, footer h1 a:hover, footer h2 a:hover {
    text-decoration: none;
}
footer p {
    margin: 5px;
}
footer p a {
    text-decoration-thickness: 1px;
    text-decoration: underline solid 1px;
}
#Sponsors_Footer img {
    height: 150px;
    width: auto;
    padding: 10px;
}
#HarbourCityBears_Footer img {
    height: 200px;
    width: auto;
}
#People_Footer img {
    width: 100%;
    height: auto;
}
#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  z-index: 2;
  cursor: pointer;
}
#overlay div {
    background-color: black;
    background-image: url('im');
    padding: 30px;
    width: 70%;
    margin: auto;
    text-align: center;
    box-shadow: 0 0 20px 5px #FBECB1;
}
#overlay h1 {
    padding: 0;
    margin: 0;
}
#overlay p.button {
    background-color: #FF5858;
    color: black;
    font-weight: bold;
    padding: 10px;
    max-width: 150px;
    margin: 10px auto 0 auto;
}
#overlay p.button:hover {
    background-color: #FBECB1;
    color: black;
}
#scrollButton {
    font-size: smaller;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 20px;
}
#scrollButton p a {
    background-color: #BAACD9;
    color: black;
    font-weight: bold;
    padding: 5px 10px 5px 10px;
    text-decoration: none;
    border-radius: 25px;
}
#scrollButton p a:hover {
    background-color: #FF5858;
    color: black;
}
/* Section section */
section {
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(30px) contrast(60%);
    -webkit-backdrop-filter: blur(30px) contrast(60%);
    padding: 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Section filtering */
section > nav div {
    display: block;
    text-align: center;
    width: 100%;
    background-color: #222;
}
section > nav div p {
    display: inline-block;
    padding: 5px;
    margin: 0;
    width: 250px;
}
section > nav div p a {
    display: block;
    white-space: nowrap;
    background-color: #FF5858;
    color: white;
    padding: 7px;
    text-decoration: none;
}
section > nav div p a:hover {
    background-color: #FBECB1;
    color: black;
}
div.EventNames ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
div.EventNames li {
    flex: 1 1 150px;
}
div.FilterSet {
    padding-bottom: 10px;
}
div.DateFilter {
    padding-top: 20px;
    padding-bottom: 20px;
}
div.DateFilter p {
    width: auto;
}
div.DateFilter select {
    width: 250px;
}
div.MobileFilter {
    display: none;
}
div.FilterSet a {
    background-color: #633800;
}

/* Article section */
article {
    padding: 20px;
}
article :is(h1,h2,h3,h4,h5,h6) {
    color: #FBECB1;
}
article :is(h1, h2) {
    line-height: 1;
    margin: 30px 0 10px 0;
}
article > img, article > picture > img {
    width: 48%;
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}
td ul {
    margin: 0;
}

#IntroText :is(img, picture) {
    float: initial;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Alternate row colouring */
article.odd {
    background-color: #FBECB1;
    color: black;
}
article.odd :is(h1,h2,h3,h4,h5,h6) {
    color: #FF5858;
}
article.odd a {
    text-decoration: underline black solid 1px;
}

/* Article action buttons */
article ul.menu_buttons {
    list-style-type: none;
    text-align: center;
    margin: 0;
    padding: 0;
    clear: both;
}
article ul.menu_buttons li {
    display: inline-block;
    text-align: center;
    width: 200px;
    padding: 5px;
    margin: 3px;
}
article ul.menu_buttons a {
    display: block;
    font-weight: bold;
    white-space: nowrap;
    background-color: #FF5858;
    color: black;
    padding: 7px;
    text-decoration: none;
}
article ul.menu_buttons a:hover {
    color: black;
    background-color: #FBECB1;
    text-decoration: none;
}
article.odd ul.menu_buttons a:hover {
    background-color: #BAACD9;
}

/* Sold out masking */
.sold_out {
    position: relative;
}
.sold_out::before {
    content: "Sold Out";
    font-family: Futura, Jost, sans-serif;
    text-transform: uppercase;
    text-align: center;
    font-style: normal;
    font-weight: 500;
    font-size: 40pt;
    letter-spacing: 0.3em;
    padding: 0.7em;
    background-color: rgba(255, 0, 0, 0.6);
    box-shadow: 0 0 20px 5px black;
    border-radius: 25px;
    position: absolute;
    top: 40%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 0;
    left: 0;
    margin: auto;
    transform: rotate(-14deg);
    pointer-events: none;
    width: 70%;
}
.past.sold_out::before {
    display: none;
}

/* Selling Fast Masking */
.nearly_sold picture::before {
    content: "Nearly sold out! \A Only a few tickets left!";
    white-space: pre-wrap;
    display: block;
    font-family: Futura, Jost, sans-serif;
    text-align: center;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 500;
    font-size: 18pt;
    padding: 0.7em;
    background-color: rgba(255, 0, 0, 0.7);
    box-shadow: 0 0 20px 5px black;
    border-radius: 25px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 30px;
    width:70%;
}
/* today notification */
.today picture::before {
    content: "Today!";
    white-space: pre-wrap;
    display: block;
    font-family: Futura, Jost, sans-serif;
    text-align: center;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 500;
    font-size: 18pt;
    padding: 0.7em;
    background-color: rgba(0, 255, 0, 0.7);
    box-shadow: 0 0 20px 5px black;
    border-radius: 25px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 30px;
    width:70%;
}
/* already passed masking */
.past::after {
    content: "You missed it!";
    white-space: pre-wrap;
    display: block;
    font-family: Futura, Jost, sans-serif;
    text-align: center;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 500;
    font-size: 18pt;
    padding: 0.7em;
    background-color: rgba(0, 0, 255, 0.7);
    box-shadow: 0 0 20px 5px black;
    border-radius: 25px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 30px;
    width:70%;
    color: white;
}
.past :is(picture, div, img) {
    display: none;
}

/* Small Screen Rules */
@media screen and (max-width:900px) {
    article > picture > img {
        float: initial;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    h1 {
        font-size: 30pt;
    }
    h2 {
        font-size: 25pt;
    }
    h3 {
        font-size: 20pt;
    }
    h4{
        font-size: 16pt;
    }
    #GoogleMap {
        width:100%;
    }
}

/* Mobile Screen Rules */
@media screen and (max-width: 600px) {
    /* Make wide items full width */
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        flex: initial;
        width: 100%;
    }
    hr{
        width: 100%;
    }
    /* Hide the filter buttons and show the mobile controls */
    section > nav > div {
        display: none;
    }
    div.MobileFilter {
        display: block;
        width: 100%;
        text-align: center;
        padding-top: 20px;
    }
    div.MobileFilter select {
        margin-bottom: 20px;
        padding: 10px;
        width: 90%;
    }
    div.MobileFilter p {
        margin-bottom: 20px;
    }
    /* Make article action buttons full width */
    article {
        padding: 20px 0 20px 0;
        margin: 0;
    }
    article > img {
        float: initial;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    article > div {
        margin: 20px;
    }
    article ul.menu_buttons li {
        display: block;
        text-align: center;
        width: 100%;
        padding: 0;
        margin: 10px 0 10px 0;
    }
    /* Table flip */
    table, th, td {
        display: block;
    }
    th {
        padding-bottom: 0;
    }
    td {
        padding-top: 5px;
        padding-bottom: 20px;
    }
    ul {
        padding-left: 10px;
    }

    /* Adjust misc items */
    #overlay h1 {
        font-size: 16pt;
    }
    :is(.nearly_sold, .today,) picture::before, .past::after {
        width: auto;
        border-radius: 0;
        box-shadow: none;
    }
    #background {
        display: none;
    }
}