html {
  font-size: 156.25%; /* (500px * 5vmin) / 16px */
}
@media (max-width: 500px) {
  html {
    font-size: 5vmin;
  }
}
body {
  font-family: sans-serif;
  padding: 0;
  margin: 0;
}

#header {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5em 0;
  text-align: center;
  color: white;
  background: linear-gradient(rgb(31,110,158), rgb(19,69,117));
  border-bottom: solid 3px rgb(202,10,55);
}
#header > * {
  margin: 0;
  padding: 0;
}
#dhs {
  height: 3em;
}
#icespy {
  height: 2.2em;
  position: relative;
  top: -0.3em;
}
#header > p {
  font-size: 0.8em;
}

#container {
  margin-top: 5.5em;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
}
#stage-outer {
  position: relative;
  width: 100%;
}
.square:after {
  content: "";
  display: block;
  padding-top: 100%;
}
#stage {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(rgb(136,143,165), rgb(50,38,35));
}
#stage img,
#stage video,
#stage canvas {
  float: left;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.fliplr img,
.fliplr video,
.fliplr canvas {
  transform: scale(-1,1);
}
#overlay, #stage, #dropOverlayContainer {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}
#overlay {
  position: relative;
  margin-top: -100%;
  width: 100%;
}
#overlay > * {
  position: absolute;
}
#shutter {
  width: 100%;
  left: 0;
  bottom: 10%;
  text-align: center;
}
button {
  font-size: 1rem;
  width: 3em;
  height: 3em;
  background-repeat: no-repeat;
  background-size: 50%;
  background-position: center;
  background-color: transparent;
  border: none;
  filter: drop-shadow( 2px 2px 2px #0008 ); 
}
#shutter > button {
  width: 4em;
  height: 4em;
  background-image: url('camera.svg');
  background-color: #fff8;
  box-shadow: 0 2px 2px #0008;
  opacity: 0.8;
  background-size: 80%;
  border: 0.25em solid white;
  border-radius: 1.5em;
  transition: background-color 1s ease 0s;
}
#messages {
  width: 100%;
  line-height: 1.5;
  left: 0;
  bottom: 40%;
  text-align: center;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 2px #0008;
  transition: opacity 1s linear 0s;
}
#fileUpload {
  left: 23%;
  bottom: 11%;
}
#fileUpload > button {
  background-image: url('upload.svg');
}
#flip {
  right: 0;
  top: 0;
}
#flip > button {
  background-image: url('flip.svg');
}
#matchMetadata {
  right: 2%;
  bottom: 2%;
  padding: 0.5em;
  color: white;
  max-width: 75%;
  background-color: #0008;
  text-shadow: 0 1px 1px #0008;
  border-radius: 0.5em;
  text-align: right;
}
#matchMetadata > p {
  margin: 0;
  padding: 0;
}
#matchMetadata > .name {
  font-size: 1em;
}
#matchMetadata > .location {
  font-size: 0.8em;
}
#matchMetadata > .title {
  font-size: 0.6em;
}
#back {
  left: 0;
  top: 0;
}
#back > button {
  background-image: url('back.svg');
}
#poweredby {
  padding: 0.5em;
  overflow: auto;
  float: right;
  text-align: right;
  font-size: 0.55em;
}
#poweredby p {
  margin: 0;
  padding: 0;
}
#poweredby img {
  width: 8em;
  float: right;
  display: block;
  clear: both;
}
#text {
  padding: 0.8em;
  padding-bottom: 0;
}
hr {
  width: 50%;
  border: 0.5px solid #ccc;
  margin: 1.5em;
  margin-left: auto;
  margin-right: auto;
}
#text > h1 {
  font-size: 1.2em;
  margin: 0;
  margin-bottom: 0.5em;
}
#text > h2 {
  font-size: 1.1em;
  margin: 0;
  margin-bottom: 0.5em;
}
#text > p {
  margin-top: 0;
  line-height: 1.5;
}
#footer {
  margin: 1em 0;
  text-align: center;
}
#footer > * {
  margin: 0.5em;
}
.match {
  width:50%;
  height:100%;
  float:left;
  overflow:hidden;
}
#photoContainer {
  transition: width 1s ease 0s;
}
#photo {
  transition: object-position 1s ease 0s;
}
.updated {
  font-size: 0.7em;
}
a {
  color: rgb(19,69,117);
}