* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: white;
}

/* Disable text selection */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100px;
  height: 100px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  width: 100%;
  height: 100%;
  position: relative;
  max-width: 100vh;
  left: 50%;
  transform: translateX(-50%);
}

.top-half,
.bottom-half {
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: filter 0.5s ease-in-out;
}

.top-half img,
.bottom-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.5);
}

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.overlay-top {
  height: 50%;
  background: none;
}

.overlay-bottom {
  position: absolute;
  width: 100%;
  height: 50%;
  top: 50%;
  background: none;
}

.overlay-top {
}

.results {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 50px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
}

.results .ml15 {
  font-size: 3em;
}

.divider {
  width: 8%;
  height: 1px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #fbd868;
  transition: width 0.5s ease-in-out;
}

.footer {
  position: absolute;
  bottom: 50px;
  text-align: center;
  width: 100%;
  font-family: sans-serif;
}

.instructions {
  color: #42bdb8;
  font-size: 2em;
}

.instruction-highlight {
  color: #fbd868;
  font-weight: bold;
}

.footer .speech {
  font-family: monospace;
  color: #ff009e;
  font-weight: bold;
  font-size: 20px;
  margin-top: 10px;
}

.volume-meter {
  position: absolute;
  top: 40px;
  right: 30px;
  width: 20px;
  height: 20vh;
  border: 1px solid lightgray;
  border-radius: 25px;
}

.volume-meter-bar {
  position: absolute;
  width: 100%;
  background-color: gray;
  transition: all 0.5s ease-in-out;
  border-radius: 25px;
  top: 75%;
  height: 25%;
}

.speak-button {
  position: absolute;
  bottom: 150px;
  right: 60px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #42bdb8;
  transition: background-color 0.5s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  font-family: cursive;
  text-align: center;
  color: coral;
  background-color: lightgoldenrodyellow;
  cursor: pointer;
}

.speak-button.hidden {
  transform: scale(0.01);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
  }
}

.speak-button.active {
  background-color: #42bdb8;
  color: white;
  animation: pulse 1s infinite;
}

.speak-progress {
  position: absolute;
  bottom: 120px;
  right: 60px;
}

.speak-progress.hidden {
  transform: scale(0.01);
}

.speak-progress progress {
  width: 100px;
  background-color: #fafad2;
  height: 6px;
  color: #42bdb8;
  accent-color: #42bdb8;
  transition: value 3s linear;
}

.speak-progress progress::-moz-progress-bar,
.speak-progress progress::-webkit-progress-value {
  background-color: #42bdb8;
}

/* -- Animations -- */

h1.ml8.win-message {
  color: white;
  font-size: 4.5em;
}
.ml8.win-message .circle-white {
  border: 3px dashed #42bdb8;
}
.ml8.win-message .circle-dark {
  width: 2.8em;
  height: 2.8em;
}
.ml8.win-message .circle-dark-dashed {
  border: 2px dashed #42bdb8;
  width: 3em;
  height: 3em;
}
.win-message .letters-container {
  text-align: center;
  font-size: 0.8em;
}

h1.ml8 {
  font-weight: 900;
  font-size: 4.5em;
  color: #fff;
  width: 3em;
  height: 3em;
}

.ml8 .letters-container {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  bottom: 0;
  height: 1em;
}

.ml8 .letters {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 0.7em;
  right: -0.12em;
  top: -0.2em;
}

.ml8 .bang {
  font-size: 1.4em;
  top: auto;
  left: -0.06em;
}

.ml8 .circle {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  bottom: 0;
}

.ml8 .circle-white {
  width: 3em;
  height: 3em;
  border: 2px dashed white;
  border-radius: 2em;
}

.ml8 .circle-dark {
  width: 2.2em;
  height: 2.2em;
  background-color: #4f7b86;
  border-radius: 3em;
  z-index: 1;
}

.ml8 .circle-dark-dashed {
  border-radius: 2.4em;
  background-color: transparent;
  border: 2px dashed #4f7b86;
  width: 2.3em;
  height: 2.3em;
}

.ml12 {
  font-weight: 200;
  font-size: 1.8em;
  text-transform: uppercase;
  letter-spacing: 0.5em;
}

.ml12 .letter {
  display: inline-block;
  line-height: 1em;
}

.ml15 {
  font-weight: 800;
  font-size: 3.8em;
  text-transform: uppercase;
  letter-spacing: 0.5em;
}

.ml15 .word {
  display: inline-block;
  line-height: 1em;
}
