html {
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100%;
  font-size: 4rem;
  margin: 0;
  padding: 0;
}

.controls {
  display: grid;
  grid-template-areas: "left middle right";
  justify-items: center;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  padding-left: 0.5rem;
  padding-top: 0.25rem;
  padding-right: 0.5rem;
  top: 0;
  left: 0;
  right: 0;
  background: black;
  height: 3rem;
}

.area {
  width: calc(100% - 2rem);
  max-height: calc(100% - 5rem);
  scrollbar-width: none;
  overflow: auto;
  padding: 1rem;
}

.area::-webkit-scrollbar {
  display: none;
}

button.fullscreen {
  grid-area: right;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: white;
  border-radius: 0.25rem;
}

button.fullscreen:hover {
  color: gray;
}

button.fullscreen:active {
  color: lightskyblue;
}

button.qrcode {
  grid-area: middle;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: white;
  border-radius: 0.25rem;
}

button.qrcode:hover {
  color: gray;
}

button.qrcode:active {
  color: lightskyblue;
}

.indicator {
  position: fixed;
  font-size: 2rem;
  top: 1rem;
  left: 1rem;
  border: none;
  background: transparent;
  color: red;
}
.indicator.inactive {
  color: gray;
}
.current {
  color: cyan;
}

dialog {
  border-radius: 1rem;
  border: 2px inset #ca7406;
}

dialog .container {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  justify-content: center;
  align-items: center;
}

dialog button {
  border: none;
  font-size: 2rem;
  border-radius: 0.5rem;
  background-color: #639a00;
  color: white;
}

dialog button:hover {
  background-color: #404040;
}

dialog button:active {
  background-color: #808080;
}

#language-buttons {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
  width: 100%;
  justify-content: space-between;
}

#language-custom {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  width: 100%;
}

dialog input {
  font-size: 1.5rem;
}

dialog button {
  padding: 0.5rem;
}

@keyframes ping {
  0% {
    background: white;
    outline-offset: 0rem;
  }
  33% {
    outline-offset: 0.5rem;
  }
  100% {
    outline-offset: 0.25rem;
  }
}

:focus {
  outline: 2px solid #ca7406;
  outline-offset: 0.25rem;
  animation: ping 0.33s linear;
}
