/* ----------------------------------------------------------------------- */
/* Hello, and welcome to my stylesheet! If you're making your own website, */
/* please feel free to pilfer any of my code. Special thanks to my friend  */
/* Zach Mandeville (coolguy.website) for all the help!                     */    
/* ----------------------------------------------------------------------- */ 

/* ------------------------------------------------------ */
/* General site style                                     */
/* ------------------------------------------------------ */

* {
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
  font-size: 1vw;
}

@media only screen and (max-width: 600px) {
  html {
    font-size: 2.6vw; 
  }
}

body {
  color: black;
  background-color: white;
  font-family: "Courier New", monospace;
  display: flex;
  flex-flow: column;
  justify-content: center;
  padding: 1rem;
}

@media (prefers-color-scheme: dark) { /*Dark Mode settings*/
  body {
    color: white;
    background-color: #222222;
  }
}

header {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid black;
}

main {
  height: 100%;
}

nav {
  border-bottom: 2px solid black;
  display: flex;
  align-items: center;
}

@media (prefers-color-scheme: dark) { /*Dark Mode settings*/
  header, nav {
    border-bottom: 2px solid white;
  }
}

footer {
  display: flex;
  align-items: center;
}

a:link, a:visited {
  color: blue;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) { /*Dark Mode settings*/
  a:link, a:visited {
    color: aqua;
  }
}

p, h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

ul, li {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

ul {
  margin-left: 2rem;
  padding: 0;
}

h1 {
  font-size: 160%;
}

h2 {
  font-size: 115%;
}

/* ------------------------------------------------------ */
/* Flexboxes and containers                               */
/* ------------------------------------------------------ */

.mainbox {
  border-bottom: 2px solid black;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.gallerybox {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.figurebox {
  height: 100%;
  border-bottom: 2px solid black;
}

@media (prefers-color-scheme: dark) { /*Dark Mode settings*/ 
  body .mainbox {
    border-bottom: 2px solid white;
  }
  body .figurebox {
    border-bottom: 2px solid white;
  }
}

.imgbox {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
}

.animbox {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
}

.posterbox {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

.screeningbox {
  max-width: 100vw;
  display: flex;
  flex-flow: row wrap;
  justify-content: center; /* poster and program screeningbox are positioned as close as possible to the centre */
}

.screeningbox-poster {
  margin: 0 0.5rem 0.5rem 0.5rem;
  padding-top: 0.5rem;
  flex: 40%; /* horizontal size of box (constrained by screeningbox) */
  display: flex;
  justify-content: flex-end;
}

.screeningbox-program {
  margin: 0 0.5rem 0.5rem 0.5rem;
  padding-top: 0.5rem;
  flex: 40%; /* horizontal size of box (constrained by screeningbox) */
}

/* ------------------------------------------------------ */
/* Image and video formatting                             */
/* ------------------------------------------------------ */

.imgbox img {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: 0.5rem solid #ddd;
  max-height: 60vw;
  max-width: 100vw;
}

.gallerybox img {
  margin: 0.5rem;
  border: 0.5rem solid #ddd;
  max-height: 30vw;
  max-width: 100vw;
}

figure img {
  border: 0.5rem solid #ddd;
  box-sizing: border-box;
  max-height: 70vh;
  max-width: 95vw;
  /*object-fit: contain;*/
}

.animbox img {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: 0.5rem solid #ddd;
  max-height: 60vw;
  max-width: 90vw;
}

.animbox iframe {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: 0.5rem solid #ddd;
  max-height: 60vw;
  max-width: 100vw;
}

.posterbox img {
  margin: 0.5rem;
  border: 0.5rem solid #ddd;
  max-height: 50vw;
  max-width: 100vw;
}

.screeningbox-poster img {
  border: 0.5rem solid #ddd;
  max-height: 100vw;
  max-width: 100vw;
}

/* ------------------------------------------------------ */
/* Formatting for header image on homepage                */
/* ------------------------------------------------------ */

.headerimg {
  max-width: 95vw;
  object-fit: contain;
}

/* ------------------------------------------------------ */
/* Link formatting in about.html                          */
/* ------------------------------------------------------ */

#links ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------ */
/* Site updates formatting in about.html                  */
/* ------------------------------------------------------ */

button {
  font: inherit;
  color: inherit;
  background: inherit;
  width: 100%;
  margin: 0;
  padding: 0;
}

.updates-collapse {
  cursor: pointer;
  border: none;
  text-align: left;
  outline: none;
}

.updates {
  padding-left: 1rem;
  display: none;
  overflow: hidden;
}

.updates-collapse:after {
  content: "(show)";
  color: blue;
  margin-left: 0.5rem;
}

@media (prefers-color-scheme: dark) { /*Dark Mode settings*/
  body .updates-collapse:after {
    color: aqua;
  }
}

.active:after {
  content: "(hide)";
}

/* ------------------------------------------------------ */
/* Formatting for art gallery items                       */
/* ------------------------------------------------------ */

.galleryitem {
  box-sizing: border-box;
  height: 100vh;
  justify-content: space-between;
}

@media only screen and (max-width: 600px) {
  .galleryitem {
      height: 90vh;
  }
}

figure {
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

figcaption {
  width: 100%;
  position: absolute;
  bottom: 0;
  padding-bottom: .5rem;
  background: white;
}

@media (prefers-color-scheme: dark) { /*Dark Mode settings*/
  body figcaption {
    background-color: #222222;
  }
}

/* ------------------------------------------------------ */
/* Caption formatting                                     */
/* ------------------------------------------------------ */

.caption {
  display: flex;
  justify-content: center;
  align-items: center;
}

.caption p {
  margin: 0;
  font-size: 90%;
}

/* ------------------------------------------------------ */
/* Formatting for screenings.html                         */
/* ------------------------------------------------------ */

.event {
  margin-top: 0;
}

.program {
  line-height: 1.5;
}

@media only screen and (max-width: 600px) {
  .screeningbox-poster {
    justify-content: center;
  }
}