:root {
  --title-height: 30px;
  --copyright-height: 25px;
}

#pw-keyboard-container {
  width: 100%;
  height: 240px;
  border: 1px solid white;
  display: block;
  padding: 0;
  margin: 0;
}

.title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 5px;
  font-weight: bold;
  font-size: 22px;
  text-align: center;
}

.copyright {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 5px;
  font-size: small;
  font-weight: normal;
  text-align: center;
}

div.tab-panel {
  position: absolute;
  top: var(--title-height);
  left: 0;
  right: 0;
  bottom: var(--copyright-height);
  display: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

#nav-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 60px;
  height: var(--title-height);
}

#nav-panel {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 200px;
  height: 100px;
  border: 1px solid mediumpurple;
  background-color: lavender;
  color: mediumpurple;
  margin: 0;
  padding: 5px;
  display: none;
}

table.tab-nav {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0px;
  border: 0px solid lavender;
  background-color: mediumpurple;
  box-sizing: border-box;
}

tr.tab-nav {
  width: 100%;
  margin: 0;
  padding: 0;
}

td.tab-nav {
  text-align: center;
  padding: 5px;
  margin: 5px;
  border: 1px solid lavender;
  background-color: mediumpurple;
  color: lavender;
  font-size: 18px;
  font-weight: normal;
}

td.tab-nav-selected {
  text-align: center;
  padding: 5px;
  margin: 5px;
  border: 0px solid mediumpurple;
  background-color: lavender;
  color: mediumpurple;
  font-size: 18px;
  font-weight: bold;
}

#pinpad-container {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  min-width: 250px;
  min-height: 300px;
}

div.results {
  width: 100%;
  height: 100%;
}

table.results {
  border: 0px solid lavender;
  margin: auto;
  padding: 2px;
}

.results-portrait {
  text-align: center;
  width: 360px;
  height: 340px;
}

.results-landscape {
  text-align: center;
  width: 600px;
  height: 180px;
}

td.results {
  margin: 0;
  padding: 0;
}

span.result-value {
  font-size: 1.3em;
}

th.portrait {
  height: 20px;
}

#notification {
  position: absolute;
  top: 10px;
  left: 50%;
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  width: 200px;
  height: 50px;
  font-size: 1.2em;
  font-weight: bold;
  z-index: 999;
  background-color: yellow;
  color: black;
  display: none;
}

/* landscape any device */

@media screen and (orientation: landscape) and (min-height: 500px) {
  #pinpad-container {
    width: 300px;
    height: 360px;
  }
}

/* landscape phone */

@media (orientation: landscape) and (max-height: 500px) {
  #pinpad-container {
    width: 300px;
    height: 300px;
  }

  #pw-keyboard-container {
    display: none;
    height: 180px;
  }
}

/* portrait phone */

@media (orientation: portrait) and (max-width: 500px) {
  #pinpad-container {
    width: 300px;
    height: 320px;
  }

  #pw-keyboard-container {
    height: 240px;
  }
}

div.middle {
  margin-left: auto;
  margin-right: auto;
}

div.center {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

div.input {
  height: 40px;
  background-color: white;
  text-align: center;
  border: 1px solid black;
  border-radius: 5px;
  color: black;
  margin: 0;
  font-size: 30px;
}

div.keyboard {
  background-color: transparent;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

div.keyboard-row {
  position: absolute;
  left: 50%;
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button.keyboard-key {
  position: absolute;
  top: 0;
  height: 100%;
  font-size: 20px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid lavender;
  background-color: mediumpurple;
  color: lavender;
  border-radius: 5px;
}

div.data {
  background-color: lavender;
  display: inline-block;
  margin: 2px;
  padding: 3px;
  border: 1px solid black;
}

span.label {
  padding: 0;
  margin: 0;
  font-weight: normal;
  color: purple;
  font-size: 16px;
}

span.data {
  padding: 0;
  margin: 0;
  color: black;
  font-size: 20px;
  font-weight: bold;
}

div#qrcode-container {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: white;
  color: black;
  width: 330px;
  height: 275px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

div#qrcode-title {
  font-weight: bold;
  font-size: large;
  width: 100%;
  padding: 0;
  padding-bottom: 20px;
}

table.layout {
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid lavender;
  border-radius: 10px;
  padding: 10px;
}

td {
  padding: 5px;
  padding-top: 0;
  padding-bottom: 0;
}

.result {
  background-color: green;
  color: #fff;
  padding: 20px;
}

div.pin-entry {
  min-width: 60px;
  min-height: 20px;
  background-color: white;
  color: black;
  font-size: 20px;
  font-weight: bold;
  margin: 5px;
  margin-right: 0;
  margin-bottom: 0;
  padding: 5px;
  text-align: center;
  display: inline-block;
  border-radius: 5px;
  border: 1px solid black;
}

td.keypad {
  width: 80px;
  height: 60px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid mediumpurple;
  background-color: lavender;
  color: black;
  font-size: 20px;
}

.row {
  display: block;
  margin: 0;
  padding: 0;
}

div.top {
  position: absolute;
  top: var(--nav-height);
  left: 50%;
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  padding: 10px;
  margin: 0;
  border-radius: 10px;
  border: 2px solid lavender;
}

td.pw {
  min-width: 60px;
  height: 20px;
  font-size: 20px;
  background-color: lavender;
  color: black;
  padding: 5px;
  margin: 5px;
  margin-right: 0;
  text-align: center;
}

p {
  display: inline-block;
  min-width: 50px;
  border: 0px solid red;
  margin: 0;
  margin-left: 5px;
}

input {
  color: black;
  width: 200px;
  height: 30px;
  font-size: 20px;
}

.tab {
  display: block;
}

h3.section {
  margin-top: 5px;
  margin-bottom: 3px;
}

/*
*   Buttons
*/

button.fill {
  width: 100%;
  height: 100%;
  background-color: red;
}

button.clear {
  padding: 5px;
  width: 60px;
  height: 40px;
  border: 1px solid mediumpurple;
  background-color: lavender;
  color: mediumpurple;
  margin: 5px;
  margin-left: 0;
  border-radius: 10px;
}

button.ok {
  padding: 5px;
  width: 80px;
  height: 50px;
  border: 1px solid mediumpurple;
  background-color: lavender;
  color: mediumpurple;
  margin: 0;
  border-radius: 10px;
}

button.scan {
  padding: 5px;
  padding-left: 20px;
  padding-right: 20px;
  height: 50px;
  width: 220px;
}

button#clear-token {
  background-color: red;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  color: white;
  width: 140px;
  height: 40px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

table {
  border-color: lavender;
}

div#transfer-token {
  width: 100%;
  text-align: center;
  padding: 0;
  margin-top: 5px;
  margin-bottom: 15px;
  font-size: small;
  font-weight: bold;
}

div#qrcode {
  margin-left: auto;
  margin-right: auto;
  width: 150px;
  height: 150px;
  padding: 0;
}