@font-face {
  font-family: 'ParadoxX';
  src: url('dawnland.paradoxX.ttf')  format('truetype');
}
body
{
  font-family: 'Josefin Sans', sans-serif;
  background-color: white;
  padding: 0;
}
header
{
  background-color: #a70202;
  color: white;
  border-bottom:2px solid #000;
  font-variant: all-small-caps;
  letter-spacing: 2px;
  position: fixed;
  width:100%;
  height:2.5em;
  line-height: 2.5em;
  top:0;
  z-index:10;
  display:grid;
  grid-template-columns: auto auto;
}
div.anchor
{
  margin-top:-2.5em;
  padding-top:2.5em;
}
header h1, header nav
{
  font-size:2em;
  display:block;
  padding:0;
  margin:0;
}
header h1
{
  font-weight:normal;
  padding-left:calc(10px + 1.6em);
  background-image:url('../img/redgirlfx_logo_head.png');
  background-repeat: no-repeat;
  background-size: 1.5em;
  background-position-x: 10px;
}
header nav
{
  text-align: right;
  padding-right:10px;
}
header a
{
  text-decoration: none;
  color: inherit;
}
header nav a
{
  display:inline-block;
  margin-left:1em;
}
div#cover
{
  background-color: black;
  background-image:url("../img/cover_application.jpg");
  background-repeat: no-repeat;
  background-position: right;
  background-size: cover;
  color: white;
  height:400px;
  line-height: 400px;
}
div#mobile_gradient
{
  width:100%;
  height:100%;
}
div#titles
{
  width:50%;
  line-height: 1.5;
  display:inline-block;
  vertical-align: middle;
  text-align: center;
}
div#titles h1
{
  font-size:7em;
  margin-bottom:0;
  font-family: 'ParadoxX', 'Josefin Sans', sans-serif;
  font-weight:normal;
}
div#titles h1 span
{
  color: #a70202;
}
div#titles h2
{
  margin-top:0;
}
div#main
{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: white;
}
div#description
{
  width:90%;
  margin-left:auto;
  margin-right: auto;
}
div#description a
{
  color: #a70202;
}
img#splash
{
  width:100%;
  height:100%;
  object-fit: cover;
  background-color: #a56f2e;
  display:block;
}
p#credits_button
{
  font-weight:bold;
  text-align: center;
  text-decoration: underline;
}
p#credits_button:hover
{
  cursor: pointer;
}
div#posters
{
  height:300px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}
div#posters figure
{
  display:inline-block;
  margin:0;
  width: 208px;
  height:300px;
  flex: 0 0 auto;
}
div#posters figure img
{
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;
}
div#awards
{
  background-color:white;
  color:black;
  text-align: center;
  padding:1em;
}
div#awards h3
{
  font-variant: all-small-caps;
  font-size: 2em;
  height:98px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom: 0;
  background-image: url('../img/awards.png');
  background-repeat: no-repeat;
  background-position: center;
  line-height:90px;
}
div#awards div
{
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  text-align: center;
  grid-column-gap: 20px;
}
div#awards div p:last-child
{
  grid-row-start: 2;
  grid-row-end: 2;
  grid-column-start: 1;
  grid-column-end: span 2;
}
div#gallery
{
  padding-top:1em;
  padding-bottom:1em;
  display:grid;
  grid-template-columns:  repeat(3, minmax(200px, 600px));
  justify-content: center;
}
div#gallery figure
{
  position: relative;
  background-color: rgba(255, 0, 0, 0.5);
}
div#gallery figure div
{
  display:block;
  width: 100%;
  height:100%;
}

div#gallery figure div:last-child img
{
  display:block;
  width: 100%;
  height:100%;
  object-fit: cover;
}

div#gallery figure div:first-child
{
  position: absolute;
  width:100%;
  height:100%;
  background-color: rgba(0, 0, 0, 0.5);
  color:#ffffff;
  text-align: center;
  visibility: hidden;
}

div#gallery figure div:first-child p
{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height:100%;
  margin:0;
  width: calc(100% - 2em);
  padding-left:1em;
  padding-right:1em;
}

div#gallery figure:hover div:first-child
{
  visibility: visible;
}

div#contact
{
  clear:both;
  background-color: #a70202;
  color: white;
  text-align: center;
  padding-top:1em;
}
div#contact h3
{
  font-size:3em;
  margin:0;
  font-variant: all-small-caps;
  letter-spacing: 2px;
  font-weight: normal;
}
div#contact a
{
  color:inherit;
  text-decoration:none;
}

div#contact div#contact_details
{
  background-color: white;
  color:black;
  font-size:1.5em;
  line-height:2em;
  padding-bottom:1em;
}
a#redgirl
{
  display: block;
  width:426px;
  margin-left:auto;
  margin-right:auto;
  line-height: 0.8em;
  margin-bottom:1em;
}
a#redgirl img
{
  display:block;
  width:100%;
  object-fit: cover;
}

div#contact div#contact_details nav
{
  display:grid;
  grid-template-columns: auto auto auto auto;
  justify-content: center;
  grid-column-gap: 10px;
}
div#contact nav img
{
  height:35px;
  object-fit: cover;
}
footer
{
  background-color: black;
  text-align: right;
  font-size:1em;
  line-height: 1.5em;
  height:1.5em;
  padding:5px;
  color: #878787;
}
footer p
{
  margin: 0;
}
footer a
{
  color: inherit;
}
div.popup
{
  display:none;
  position: fixed;
  z-index:20;
  left:0;
  top:0;
  width: 100%;
  height:100vh;
  overflow: auto;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}
div.popup_content
{
  position:relative;
  background-color: white;
  margin-left:auto;
  margin-right:auto;
  color:black;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

div#gallery_popup_content
{
  width:800px;
  height:400px;
  margin-top:calc(50vh - 200px);
}
div#popup_image, div#gallery_popup_copy
{
  display: inline-block;
  width:400px;
  height:400px;
  margin:0;
  float:right;
}
div#gallery_popup_copy
{
  width:380px;
  height:380px;
  padding:10px;
}
div#gallery_popup_copy div.gallery_popup_copy
{
  display:none;
}
p.popup_button
{
  position: absolute;
  margin:0;
  font-size: 2em;
  width:1em;
  height:1em;
  text-align: center;
  line-height: 1.25em;
  vertical-align: middle;
}
p.popup_button:hover
{
  cursor: pointer;
}
p#gallery_popup_close, p#credits_popup_close
{
  right:0;
  top:0;
}
p#gallery_popup_right
{
  right: 0;
  top: calc(50% - 0.5em);
}
p#gallery_popup_left
{
  left: 0;
  top: calc(50% - 0.5em);
  color:white;
  text-shadow: 0 0 2px #000000;
}
div#credits_content
{
  width:90vw;
  height:calc(90vh - 2em);
  margin-top:5vh;
  display:grid;
  padding:1em;
  grid-template-rows: 50px 1fr;
  text-align: center;
}
div#credits_content h3
{
  font-size:2em;
  margin:0;
  height:50px;
}
div#credits_popup_copy
{
  overflow-x: hidden;
  overflow-y: scroll;
}
div#credits_popup_copy div
{
  columns: 3;
  column-fill: balance;
}
div#credits_popup_copy h4
{
  border-top:1px solid black;
  border-bottom:1px solid black;
  padding-top:1em;
  padding-bottom:1em;
  margin-top:0;
  color: #a70202;
}

div#privacy
{
  padding:1em;
}
div#tldr
{
  background-color: #a70202;
  color:white;
  width:90%;
  margin-left:auto;
  margin-right:auto;
  padding:1em;
}
div#tldr h3
{
  text-align: center;
}
div#tldr a
{
  color:white;
}
