body {
  margin: 0;
}

#headline {
  display: none;
  position: absolute;
  left: 5%;
  right: 5%;
  top: 5%;
  background: rgba(0,0,0,0.8);
  opacity: 0.8;
  text-align: center;
  margin: 0;
  padding: 10px 10px;
  z-index: 3;
  color: white;
}

#step-form {
  display: none;
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 5%;
  background: rgba(0,0,0,0.8);
  opacity: 0.8;
  text-align: center;
  margin: 0;
  padding: 10px 0;
  z-index: 3;
  color: white;
}
#step-form.fix-top {
  bottom: auto;
  top: 5%;
}
#step-form .title {
  margin-bottom: 20px;
  padding: 10px;
  font-size: 0.9em;
}
#step-form .graph {
  height: 50px;
}
#step-form .answers {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
#step-form .line{
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 18px;
  width: calc(100%-10px);
  height: 4px;
  border-radius: 5px;
  background: #ddd;
}
#step-form .answers .answer {
  margin: 0 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
}
#step-form .text {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 10px;
}
#step-form .dot {
  height: 20px;
  width: 20px;
  border-radius: 20px;
  background: #333;
  border: solid 2px white;
}
#step-form .answer.selected .dot {
  background: white;
}

.lung-form {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 5%;
  bottom: 5%;
  background: black;
  opacity: 0.8;

  text-align: center;
  margin: 0;
  padding: 20px;
  z-index: 3;
}
.lung-form .title {
  display: block;
  margin-left: auto; 
  margin-right: auto; 
  margin-bottom: 15px;
  font-size: 2.0em;
  color: white;
  width: 80%;
}
.lung-form .answers {
  display: block;
  margin-left: auto; 
  margin-right: auto; 
  margin-bottom: 15px;
  color: white;
  width: 100%;
}
.lung-form .answers .ans {
  width: 100%;
  margin-bottom: 20px;
  font-size: 20px;
  cursor: pointer;
}

.example-container {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
}

.example-container .overlay {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: white;
  opacity: 0.5;
  z-index: 2;
}
.example-container .overlay .content {
  font-size: 15px;
  position: absolute;
  width: 80%;
  top: 50%;
  transform: translate(10%, -50%);
  text-align: center;
}
.example-container .overlay .content .large-text{
  font-size: 40px;
}
#example-scan-overlay {
  opacity: 0.8;
  background: transparent;
}

#example-scan-overlay .content img {
  width: 100%;
}

#example-scanning-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: transparent;
  z-index: 2;
}
@media (min-aspect-ratio: 1/1) {
  #example-scanning-overlay .inner {
    width: 50vh;
    height: 50vh;
  }
}
@media (max-aspect-ratio: 1/1) {
  #example-scanning-overlay .inner {
    width: 80vw;
    height: 80vw;
  }
}

#example-scanning-overlay .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  background:
    linear-gradient(to right, white 10px, transparent 10px) 0 0,
    linear-gradient(to right, white 10px, transparent 10px) 0 100%,
    linear-gradient(to left, white 10px, transparent 10px) 100% 0,
    linear-gradient(to left, white 10px, transparent 10px) 100% 100%,
    linear-gradient(to bottom, white 10px, transparent 10px) 0 0,
    linear-gradient(to bottom, white 10px, transparent 10px) 100% 0,
    linear-gradient(to top, white 10px, transparent 10px) 0 100%,
    linear-gradient(to top, white 10px, transparent 10px) 100% 100%;
  background-repeat: no-repeat;
  background-size: 40px 40px;
}

#example-scanning-overlay.hidden {
  display: none;
}
#example-scanning-overlay img {
  opacity: 0.6;
  height: 80%;
  align-self: center;
}

#example-scanning-overlay .inner .scanline {
  position: absolute;
  width: 100%;
  height: 10px;
  background: white;
  animation: move 2s linear infinite;
}
@keyframes move {
  0%, 100% { top: 0% }
  50% { top: calc(100% - 10px) }
}
