html, body {
  height: 100%;
}

body {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: black;
  color: white;
  font-size: 3vh;
  line-height: 1.6;
  font-family: sans-serif;
}

body.title-mode .title {
  visibility: visible;
}

.title {
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.title img {
  max-width: 480px;
  width: 50vw;
}

.title div {
  margin-top: 2em;
  max-width: 380px;
  width: 35vw; 
  border: 1px solid white;
  text-align: center;
  padding: 0.5em;
  cursor: pointer;
}

.title div:hover {
  color: black;
  background-color: white;
}

body.scan-mode .container {
  visibility: visible;
}

.container {
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

video {
  width: 80%;
  max-width: 400px;
}

.x-flipped {
  transform: scaleX(-1.0);
}

.container div {
  margin-top: 2em;
  max-width: 100px;
  width: 11vw; 
  border: 1px solid white;
  text-align: center;
  padding: 0.5em;
  cursor: pointer;
}

.title div:hover {
  color: black;
  background-color: white;
}


canvas {
  display: none;
}

body.details-mode #resultiv {
  visibility: visible;
}

#resultiv {
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

#tickets-details {
  margin: 0;
  padding: 1em;
  background: white;
  color: black;
  text-align: center;
  font-size: 0.5;
}

.status-valid {
  color: green;
  font-size: 2em;
}

.status-invalid {
  color: red;
  font-size: 1em;
}

.misery-btn {
  margin-top: 2em;
  max-width: 250px;
  width: 50vw; 
  border: 1px solid white;
  text-align: center;
  padding: 0.5em;
  cursor: pointer;
}

.misery-btn.primary {
  background-color: green;
  color: white;
  font-weight: bold;
}

.misery-btn.primary:hover {
  background-color: white;
  color: green;
  font-weight: bold;
}

.misery-btn.primary.disabled {
  background: #777;
  color: #DDD;
  border-color: #333;
  pointer-events: none;
  cursor: not-allowed;
}

.misery-btn:hover {
  color: black;
  background-color: white;
}

#growl {
  display: none;
  position: absolute;
  top: 0;
  left: 25vw;
  right: 25vw;
  height: 2em;
  line-height: 2em;
  text-align: center;
  background-color: green;
  color: white;
  animation: animate-growl  0.2s 1.0s ease-in;
  animation-fill-mode: forwards;
}

@keyframes animate-growl {  
    from { transform: translateY(0); }    
    to { transform: translateY(-2em); } 
} 