/* box-sizing: border-box; to include padding and border in width and height */
* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  margin-left: 2%;
  margin-right: 2%;
  color: #3D3D3D;
}

h1 {
  width: 90%;
}

h1 .h1 {
/*   width: 50%; */
  color: #808080;
  font-weight: 500;
  font-size: 1.2em;
/*   font-size: 6.25vmin;
  float: left;
  padding: 0 0.2em 0 0; */
  transform: scale(1, 1.1);
  -webkit-transform: scale(1, 1.1); /* Safari and Chrome */
  -moz-transform: scale(1, 1.1); /* Firefox */
  -ms-transform: scale(1, 1.1); /* IE 9+ */
  -o-transform: scale(1, 1.1); /* Opera */
}

h1 .h2 {
/*   width: 50%; */
  font-weight: 100;
  font-size: 0.8em;
  color: #808080;
/*   padding: 0 calc(100% - 20em) 0 0; */
}

h1 .h3 {
  font-weight: 300;
  font-size: 0.8em;
  color: #FF6F00;
}

video {
  /*   display: block; */
  transition: visibility 1s, opacity 500ms ease-in-out;
  height: auto;
  width: 100%;
  object-fit: fill;
  position: absolute;
}

section {
  opacity: 1;
  transition: opacity 500ms ease-in-out;
}

.removed {
  opacity: 0;
  visibility: hidden;
}

.centered {
  display: grid;
  place-items: center;
  text-align: center;
}

.loadingContainer,
.instructionsContainer {
  position: absolute;
  width: 96%;
}

.instructions {
  transition: opacity 500ms ease-in-out;
  background-color: rgba(255, 111, 0, 0.85);
  color: #FFF;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  z-index: 2;
  position: relative;
  width: 70%;
  padding: 5px;
  font-size: 0.9em;
}

.loadingContainer {
  height: 90%;
}

.loading {
  transition: visibility 1s, opacity 500ms ease-in-out;
  background-color: rgba(255, 111, 0, 1);
  color: #FFF;
  z-index: 2;
  animation: pulse 2s infinite;
  font-size: 1.5em;
  position: relative;
  height: 95%;
  width: 95%;
  padding: 0 7.5% 0 7.5%;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.cameraOverlay {
  position: relative;
  float: left;
  width: calc(100% - 20px);
  margin: 10px;
  cursor: pointer;
}

.cameraOverlay p {
  position: absolute;
  padding: 5px;
  background-color: rgba(255, 111, 0, 0.85);
  color: #FFF;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  z-index: 2;
  font-size: 12px;
}

.highlighter {
  background: rgba(0, 255, 0, 0.25);
  border: 1px dashed #fff;
  z-index: 1;
  position: absolute;
}
