/* Estilos CSS */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background-color: #f4f4f9;
}
.navbar {
  background-color: #333;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 10px;
}
.navbar h1 {
  color: #f2f2f2;
  margin: 0;
}
.navbar img {
  height: 50px;
  padding: 5px;
  border-radius: 50%;
}
.navbar a {
  color: #f2f2f2;
  text-decoration: none;
  padding: 0 20px;
}
.navbar a:hover {
  background-color: #ddd;
  color: black;
  border-radius: 25px;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}
.container_qrcode {
  background-color: #f4f4f9;
  justify-content: center;
  align-items: center;
}
.login-box {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}
.login-box h2 {
  text-align: center;
  color: #333;
}
.login-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.login-box label {
  font-weight: bold;
  color: #333;
}
.login-box input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
.login-box input[type="password"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
.login-box select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}
.login-box input[type="submit"] {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #333;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.login-box input[type="submit"]:hover {
  background-color: #575757;
}

.alert {
    font-size: 12px;
    padding: 15px 15px 15px 15px;
    background-color: #fc374e;
    color: white;
    opacity: 0.83;
    transition: opacity 0.6s;
}
.closebtn {
    padding-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 20px;
    line-height: 15px;
    cursor: pointer;
    transition: 0.3s;
}
.closebtn:hover {
    color: black;
}
.alert.success {
  background-color: #04AA6D;
}
.alert.info {
  background-color: #2196F3;
}
.alert.warning {
  background-color: #ff9800;
}
.error {
  color: #f44336;
  text-align: center;
}
.hide {
  display: none;
}

#ajax-loader, #submit-ajax-loader, #table-ajax-loader {
  margin: 0 auto;
	height: 40px;
	justify-content: center;
	align-items: center;
}

#image {
  width: 600px;
  margin-top: -60px;
}

/* Logout Button Area */
.logout-button-area {
    margin: 0px 0px 0px 0px;
    text-align: center;
    justify-content: flex-end;
}
.logout-button {
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    font-size: 11px;
    color: #000000;
    border: none;
    cursor: pointer;
}
.logout-button:hover {
    text-decoration: underline;
}
.logout-button.center {
    display: block;
    margin: 20px auto;
}

/* list styles */
.list_styles {
  width: 500px;
  /* margin: 20px auto; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-top: 50px; */
}

.list_styles h1 {
  margin: 10px 0px 10px 0px;
  font-size: 22px;
  text-align: center;
}

.list_styles ol {
  padding: 0px 0px 0px 10px;
  list-style: none;
  color: #ccc;
}

.list_styles ol li {
  font: bold 24pt helvetica, arial, sans-serif;
  position: relative;
  margin-bottom: 20px;
}

.list_styles li p {
  font: 11pt helvetica, arial, sans-serif;
  color: #555;
  padding-left: 60px;
}

.list_styles span {
  position: absolute;
  line-height: 25px;
}

/* list styles olcards */
.list_styles_olcards {
  /* width: 500px; */
  margin: 10px auto 30px auto;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  /* margin-top: 50px; */
}

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

.olcards {
  list-style: none;
  counter-reset: cardCount;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  --cardsGap: 1rem;
  gap: var(--cardsGap);
  padding-bottom: var(--cardsGap);
}
.olcards li {
  counter-increment: cardCount;
  display: flex;
  color: white;
  --labelOffset: 1rem;
  --arrowClipSize: 1.5rem;
  margin-top: var(--labelOffset);
}

.olcards li::before {
  content: counter(cardCount, decimal-leading-zero);
  background: white;
  color: var(--cardColor);
  font-size: 2em;
  font-weight: 700;
  transform: translateY(calc(-1 * var(--labelOffset)));
  margin-right: calc(-1 * var(--labelOffset));
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 0.5em;
}

.olcards li .content {
  background-color: var(--cardColor);
  --inlinePadding: 1em;
  --boxPadding: 0.5em;
  display: grid;
  padding: var(--boxPadding) calc(var(--inlinePadding) + var(--arrowClipSize))
    var(--boxPadding) calc(var(--inlinePadding) + var(--labelOffset));
  grid-template-areas:
    "icon title"
    "icon text";
  gap: 0.25em 1em;
  clip-path: polygon(
    0 0,
    calc(100% - var(--arrowClipSize)) 0,
    100% 50%,
    calc(100% - var(--arrowClipSize)) 100%,
    calc(100% - var(--arrowClipSize)) calc(100% + var(--cardsGap)),
    0 calc(100% + var(--cardsGap))
  );
  position: relative;
}
.olcards li .content::before {
  content: "";
  position: absolute;
  width: var(--labelOffset);
  height: var(--labelOffset);
  background: var(--cardColor);
  left: 0;
  bottom: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  filter: brightness(0.75);
}
.olcards li .content::after {
  content: "";
  position: absolute;
  height: var(--cardsGap);
  width: var(--cardsGap);
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25), transparent 50%);
  left: 0;
  top: 100%;
}
.olcards li .icon {
  grid-area: icon;
  align-self: center;
  font-size: 2em;
}
.olcards li .content .title {
  grid-area: title;
  font-size: 14px;
  /* font-weight: 700; */
}
.olcards li .content .text {
  grid-area: text;
  font-size: 12px;
}
.olcards li .content .text_small {
  grid-area: text;
  font-size: 11.2px;
}

/* QrCode css */
.qrcode-box {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 510px;
  width: 100%;
}
.qrcode-box h2 {
  text-align: center;
  color: #333;
}
.qrcode-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.qrcode-box label {
  font-weight: bold;
  color: #333;
}

h1 {
  margin: 10px 0;
  font-size: 40px;
}

#loadingMessage {
  text-align: center;
  padding: 40px;
  background-color: #eee;
}

#canvas {
  width: 100%;
}

#output {
  margin: 20px 0px 20px 0px;
  background: #eee;
  padding: 10px 10px 0px 10px;
}

#output div {
  padding-bottom: 10px;
  word-wrap: break-word;
}

#noQRFound {
  text-align: center;
}

/* QrCode css */
@media(max-width: 600px) {
    .navbar a, .navbar h1 {
      padding: 10px;
      flex: 1 1 100%;
    }
    .navbar {
        background-color: #333;
        display: flex;
        align-items: center;
        padding: -15px 20px;
    }
    #controls {
        flex-direction: column;
    }
    #recordingIndicator {
        margin-top: 10px;
        margin-left: 0;
    }
    #image {
        width: 100%;
        max-width: 600px;
        height: auto;
        margin-top: -100px;
    }
    .login-box select {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 14px;
    }
    .logout-button {
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
        font-size: 11px;
        color: #000000;
        border: none;
        cursor: pointer;
    }
    #message-response {
        margin: 0px 0px 0px 0px;
    }

    /* list styles */
    .list_styles {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .list_styles ol {
      padding: 0px 0px 0px 10px;
      list-style: none;
      color: #ccc;
    }

    .list_styles li p {
      font: 11pt helvetica, arial, sans-serif;
      color: #555555;
      padding-left: 55px;
    }

    .olcards li .content .text_small {
      grid-area: text;
      font-size: 12px;
    }
}

/* Unsupported and Keeprecognition message */
div#unsupported {
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  max-height: 60%;
  color: #b94a48;
  background-color: #f2dede;
  border: 1px solid #eed3d7;
  -webkit-box-shadow: -32px -50px 109px rgba(0, 0, 0, 0.92);
  -moz-box-shadow:    -32px -50px 109px rgba(0, 0, 0, 0.92);
  box-shadow:         -32px -50px 109px rgba(0, 0, 0, 0.92);
  line-height: 1.0em;
}

div#unsupported a, div#unsupported a:visited {
  color: #b94a48;
  font-weight: bold;
}

div#unsupported h4 {
  font-size: 1.5em;
  margin: 15px 0 10px 0;
}

div#unsupported p {
  font-size: 12px;
}

#keeprecognition {
    margin: 0px 0px 0px 0px;
    padding: 15px 15px 15px 15px;
    font-size: 12px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    color: #ffffff;
    background-color: #333333;
    border: 1px solid #333333;
    opacity: 0.83;
    transition: opacity 0.6s;
}

#keeprecognition span {
    font-size: 12px;
}
