@font-face {
    font-family: 'OPTIFrankfurter';
    src: url('https://f9.limitedrun.com/fonts/970/OPTIFrankfurter-Medium.woff2') format('woff2'),
        url('https://f9.limitedrun.com/fonts/969/OPTIFrankfurter-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lightzone';
    src: url('https://f9.limitedrun.com/fonts/977/Lightzone.woff2') format('woff2'),
        url('https://f9.limitedrun.com/fonts/976/Lightzone.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BubbleGum';
    src: url('BubbleGum.woff2') format('woff2'),
        url('BubbleGum.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*CSS RESET*/
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}
/***********/

html, body {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/**************/

body {
    background: #f3be3d;
    color: black;
    font-family: 'Didact Gothic', sans-serif;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url(./img/concrete.jpg);
    opacity: 0.4;
    z-index: -1;
}

h1, h2, h3, .links a, .links span {
    font-family: OPTIFrankfurter, sans-serif;
    text-transform: uppercase;
    font-weight: 400;
}

section {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5vw;
}

#home {
    padding: 2.5vw;
    min-height: 100vh;
}

#home #logo {
    max-width: 90vw;
    max-height: 40vh;
}

.address {
    font-weight: 600;
    font-size: calc(1.5em + 1vw);
}

.address > span {
    display: block;
    margin-top: 1em;
    font-weight: 400;
    font-family: BubbleGum;
}

.address {
    font-size: calc(1em + 1vw);
}

#anime {
    position: absolute;
    bottom: 0;
    right: -2vw;
    max-width: 35vw;
    opacity: 0.5;
}

#anime:last-of-type {
    right: unset;
    left: -2vw;
    transform: rotateY(180deg)
}

.links {
    margin-top: 5vh;
    text-align: center;
}  

.innerpage .links {
    margin-top: 0;
    padding: 5vh 2vw;
}

.links a, .links span, .mbutton {
    position: relative;
    padding: 10px;
    display: inline-block;
    border-radius: 10px;
    font-size: calc(0.75em + 0.75vw);
    color: #ebefde;
    background: #f7df48;
    border: 1px solid rgba(0, 0, 0, 0.75);
    margin: 0.25em;
    letter-spacing: 2px;
}

.upperlinks a {
    font-size: 32px;
    padding: 10px 30px;
}

.lowerlinks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 600px;
    margin: auto;
    justify-content: center;
}

.lowerlinks.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.links .lowerlinks a, .links .lowerlinks span, .mbutton {
    max-width: 100%;
    width: 10em;
    font-size: 20px;
    background: black;
    color: #f4bd39;
}

.links span:hover .drop {
    opacity: 1;
    pointer-events: inherit;
}

h1, h2, h3, .milestone-title, .links a, .links span, .mbutton {
    position: relative;
}

#details {
    margin-top: 2vh;
}

#details h2, #rsvp h2, #schedule h2, #map h2 {
    font-size: calc(2em + 1vw);
    margin: 0.75em;
}

.eventgrid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 100%;
    width: auto;
    border-radius: 25px;
    border: 0.4vw double;
}

#details .eventgrid {
    padding: 1vw;
}

.event {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 50%;
    padding: 1em;
    border-radius: 25px;
    border: 0.4vw double;
    justify-content: center;
    margin: auto auto 2em;
    width: 800px;
    max-width: 100%;
}

.event > span {
    font-weight: 600;
    padding: 0.5em 0;
    line-height: 1.5em;
}

.event h3 {
    font-size: calc(1em + 1vw);
    margin-bottom: 0.33em;
    padding-bottom: 0.33em;
    border-bottom: 5px dashed;
}

.event h3 span {
    display: block;
    font-size: 0.7em;
    margin: 0.5em 0;
}

.event ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: auto;
    width: 100%;
}

.event ul.performances {
    column-count: 2;
    column-fill: balance;
    max-width: 600px;
    display: block;
}

.event ul.performances li {
    display: block;
    text-align: left;
    list-style: disclosure-closed;
    margin-left: 1em;
    text-transform: uppercase;
    font-family: BubbleGum;
    font-size: calc(1em + 0.25vw);
    padding: 0.5em 0;
}  

.event ul.images {
    width: 100%;
    justify-content: center;
}

.event ul.images li {
  display: inline-flex !important;
  flex-basis: 125px;
  margin: 0 1vw;
  padding: 5px 0;
}

.event ul.images li a {
    width: 100%;
    display: block;
    border-bottom: 1px dashed;
    padding: 5px 0;
}

.event ul.images li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-width: 100px;
    margin: auto;
}

.event ul.images.artists li img {
    max-width: 150px;
    padding: 5px;
}

.event li.yung img {
    padding: 10px;
}

.eventgrid .event {
    border: 0;
}

.eventgrid .event:last-child {
    margin-bottom: 0;
}  

#rsvp {
    padding: 5vh 1em
}

#rsvp > h3 {
    margin-bottom: 1em;
}

.event ul.bullets {
    max-width: 600px;
    margin: auto;
    margin-top: 30px;
    width: 90%;
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.event ul.bullets li {
    list-style: disclosure-closed;
    font-size: 1em;
    margin: 0 0 1em 1em;
}

ul.bullets img {
    width: 350px;
    margin: 10px auto;
    display: block;
    border-radius: 5px;
    border: 1px solid black;  
}

.hi {
    text-shadow: 1px 1px #ffb500, 2px 2px #00000030;
}

a.hi {
    border-bottom: 1px dotted;
}

@media only screen and (max-width: 500px){ 
    #home {
        justify-content: flex-start;
        padding-top: 10vh;
    }

    .links a, .links span {
        font-size: 4vw;
        flex-grow: 1;
    }

    .lowerlinks, .upperlinks {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .links .lowerlinks a, .links .lowerlinks span {
        font-size: 4.5vw;
        flex-grow: 1;
        flex-basis: 40%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    #anime {
        max-width: 50vw;
    }

    .event:nth-child(2) li {
      flex-basis: 25%;
      flex-grow: 1;
    }
}

@media only screen and (max-width: 500px) and (min-height: 800px) {
    #home {
        padding-top: 12vh;
    }
}

footer {
    font-size: calc(1.5em);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 14vh;
    background: url(./img/bgnoboat.jpg);
    background-position: bottom;
    z-index: 1;
    position: relative;
    padding-bottom: calc(20px + 2vmin);
}

footer img {
    max-width: 75px;
}

footer > *:first-child {
    padding: 1vh 0;
}

footer > a {
    font-family: OPTIFrankfurter;
    margin-top: 10px;
}

.socials a {
    padding: 0 0.25em 0;
}

.logos img {
    margin: 10px;
    width: 75px;
    height: 75px;
    object-fit: contain;
    object-position: center;
}

.mighty-form {
    width: 100%;
    margin: auto;
    margin-top: -30px;
}

/* Side pages */
#map img {
    margin: 0 0 1vw;
    max-width: 100%;
    width: 900px;
    border-radius: 25px;
    border: 0.4vw double;
}

#schedule h3 ~ h3 {
    margin-top: 1em;
}

#schedule ul {
    margin: 30px auto 0;
    width: auto;
}