html,
body {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

* {
  box-sizing: border-box;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select,
  textarea,
  input {
    font-size: 16px !important;
  }
}

@supports (-webkit-overflow-scrolling: touch) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

.tooltip {
  position: relative;
  float: right;
}

.tooltip .tooltiptext {
  font-size: 12px;
  visibility: hidden;
  min-width: 120px;
  max-width: 200px;
  background-color: rgb(239, 239, 239);
  color: black;
  text-align: center;
  padding: 5px;
  border: 1px dotted gray;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

#persona-messages {
  float: left;
  width: 100%;
  position: relative;
}

#persona-tooltip {
  position: absolute;
  right: 10px;
  top: -7px;
}

#persona-messages .tooltip:hover .tooltiptext {
  min-width: 220px !important;
}

.container {
  min-height: 100vh;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main {
  padding: 1rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer {
  width: 100%;
  height: 100px;
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer img {
  margin-left: 0.5rem;
}

.footer a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.title a {
  color: #0070f3;
  text-decoration: none;
}

.title a:hover,
.title a:focus,
.title a:active {
  text-decoration: underline;
}

.title {
  margin: 0;
  line-height: 1.15;
  font-size: 4rem;
}

.title,
.description {
  text-align: center;
}

.description {
  line-height: 1.5;
  font-size: 1.5rem;
}

.code {
  background: #fafafa;
  border-radius: 5px;
  padding: 0.75rem;
  font-size: 1.1rem;
  font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
    Bitstream Vera Sans Mono, Courier New, monospace;
}

.grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1250px;
  margin-top: 1rem;
}

.card {
  min-width: 250px;
  margin: 0.3rem;
  flex-basis: 30%;
  padding: 0.5rem;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border: 3px solid #bdbdbd;
  border-radius: 7px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.card:hover,
.card:focus,
.card:active {
  color: #0070f3;
  border-color: #0070f3;
}

.card h3 {
  margin: 0 0 0.6rem 0;
  font-size: 2rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.card label {
  padding-right: 3em;
  color: red;
  max-width: 45px;
  display: inline-block;
}

.logo {
  height: 1em;
}

button#random8 {
  min-width: 350px;
  width: 90%;
  padding: 6px 12px 10px 12px;
  border: 2px dotted #1bbbe0;
  border-radius: 10px;
  background-color: #0dcaf0;
}

button#random8:hover {
  background-color: #0d6efd;
}

button#random8 h2 {
  margin: 8px 0 0 0;
  font-size: 2.2rem;
}

button#random8 i {
  display: block;
  margin-bottom: 4px;
  color: #063b4d;
}

.card input[type="text"] {
  margin: 4px 0;
  padding: 6px 8px;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  font-size: 18px;
  height: 38px;
}

.card h3 button {
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 0.9rem;
  background: #f3f3f3;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  cursor: pointer;
}

.card h3 button:hover {
  background: #e7e7e7;
}

.notify-wrap {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 4001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.notify-item {
  padding: 12px 18px;
  border-radius: 4px;
  background: #32c682;
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notify-item.failure {
  background: #ff5549;
}

@media (max-width: 600px) {
  .grid {
    width: 100%;
    flex-direction: column;
  }

  .card h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 720px) {
  button#random8 {
    width: 350px;
    padding: 6px 12px 10px 12px;
    border: 2px dotted gray;
    border-radius: 10px;
  }
}

@media (min-width: 601px) and (max-width: 820px) and (orientation: landscape) {
  .grid {
    align-items: flex-start;
  }

  .card {
    flex: 1 1 calc(50% - 0.6rem);
    min-width: 0;
  }

  .date-card {
    flex-basis: calc(100% - 0.6rem);
  }

  .card h3 {
    font-size: 1.65rem;
    line-height: 1.1;
  }

  .card input[type="text"] {
    max-width: 100%;
  }

  .card input.phone-number,
  .card input.date {
    width: 100% !important;
  }

  .phone-card span,
  .date-card span {
    display: block;
  }
}
