﻿@font-face {
  font-family: Open Sans;
  src: url(../../fonts/OpenSans-Regular.ttf);
}
@font-face {
  font-family: Open Sans Light;
  src: url(../../fonts/OpenSans-Light.ttf);
}
@font-face {
  font-family: Open Sans ExtraBold;
  src: url(../../fonts/OpenSans-ExtraBold.ttf);
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: Open Sans SemiBold;
  src: url(../../fonts/OpenSans-Semibold.ttf);
  font-weight: 400;
  font-style: normal;
}
body {
  font-family: Open Sans;
  padding: 0;
  margin: 0;
}

.row {
  display: flex;
  flex-direction: row;
}

.col {
  display: flex;
  flex-direction: column;
}

.container {
  padding: 8px;
  padding-left: 20px;
  padding-right: 20px;
}

.page-instructions h2 {
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 0;
}
.page-instructions .step {
  padding: 15px;
}
.page-instructions .step h3 {
  color: #444;
}
.page-instructions .step img {
  max-width: 100%;
  padding: 10px;
  box-sizing: border-box;
  padding: 5px;
  border: solid 1px #ccc;
  border-radius: 4px;
}

.disclaimer-container {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  justify-content: center;
}
.disclaimer-container.visible {
  display: flex;
}
.disclaimer-container .disclaimer {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 5px;
  background-color: white;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.disclaimer-container .disclaimer .text {
  flex-grow: 1;
  flex-shrink: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 4px;
  /*   border: solid 1px #ccc;*/
}
.disclaimer-container .disclaimer button {
  background-color: forestgreen;
  color: white;
  display: block;
  border: none;
  font-size: 18px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 4px;
}

.mt-0 {
  margin-top: 0;
}

.page-ticket {
  transition-duration: 0.4s;
}
.page-ticket header {
  border: none !important;
  color: #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
  background-color: #00FE00;
  height: 35px;
  display: flex;
  align-items: center;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
  padding-left: 15px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 8px;
}
.page-ticket header nav {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  gap: 16px;
}
.page-ticket header nav span {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
  margin-left: -32px;
  font-size: 17px;
}
.page-ticket header nav button {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
.page-ticket header nav button > i {
  font-size: 32px !important;
}
.page-ticket .content {
  margin-top: 60px;
  margin-bottom: 150px;
}
.page-ticket .info {
  background-color: #00FE00;
  display: flex;
  flex-direction: row;
  padding-bottom: 8px;
  padding-top: 24px;
  padding-right: 16px;
  padding-left: 16px;
  align-items: center;
  font-size: 15px;
}
.page-ticket .info i {
  color: #fff;
  margin-right: 10px;
  font-size: 30px;
}
.page-ticket .info span {
  font-weight: 800;
}
.page-ticket .validation-container {
  padding: 16px;
  margin-top: 8px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.2);
}
.page-ticket .validation-container > .header {
  display: flex;
}
.page-ticket .validation-container > .header span {
  font-size: 18px;
  font-weight: bold;
  color: #00FE00;
  flex-grow: 1;
}
.page-ticket .validation-container > .header i {
  font-size: 40px;
  color: #FDED26;
  line-height: 24px;
}
.page-ticket .validation-container .row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 8px;
}
.page-ticket .validation-container .time-section {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  gap: 8px;
}
.page-ticket .validation-container .lock-section {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  gap: 8px;
}
.page-ticket .validation-container .lock-section img {
  width: 30px;
}
.page-ticket .validation-image {
  margin-top: 8px;
  text-align: center;
}
.page-ticket .validation-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  image-orientation: from-image;
}
.page-ticket .validation-image.fullscreen {
  position: fixed;
  top: 45px;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 4;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
.page-ticket .validation-image.fullscreen img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.page-ticket .validation-pattern {
  margin-top: 20px;
  margin-bottom: 20px;
  height: 40px;
  background-image: url(../../images/validate-bk.png);
  display: block;
  position: relative;
  background-size: contain;
  background-repeat: repeat-x;
  background-position: 0 0;
  animation: animatedBackground 5s infinite linear;
}
.page-ticket .ticket-title {
  color: #00FE00;
  padding-right: 23px;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 20px;
  font-size: 20px;
  font-stretch: ultra-condensed;
  letter-spacing: -1px;
}
.page-ticket .ticket-desc {
  font-size: 14px;
  margin-bottom: 6px;
  padding-left: 4px;
  padding-right: 4px;
}
.page-ticket .box {
  padding: 10px;
  margin-bottom: 8px;
  background-color: #EEE;
  border-radius: 5px;
}
.page-ticket .box button {
  border: none;
  padding: 10px;
  font-size: 16px;
  margin: 0 auto;
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
  letter-spacing: -0.8px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
}
.page-ticket .new-validation {
  padding-top: 16px;
  font-size: 14px;
}
.page-ticket .activation-time {
  font-size: 14px;
}
.page-ticket .activation-time .value {
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: -1px;
}
.page-ticket .remaining-time-container {
  background-color: #50C79C;
  color: white;
}
.page-ticket .remaining-time-container label {
  font-size: 14px;
  line-height: 14px;
  display: block;
  margin: 0;
  padding: 0;
}
.page-ticket .remaining-time-container label.expired-label {
  display: none;
}
.page-ticket .remaining-time-container .value {
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -1px;
}
.page-ticket .emission-info {
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}
.page-ticket .emission-info .time {
  font-weight: bold;
}
.page-ticket .ticket-price {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
}
.page-ticket .ticket-price label {
  font-weight: bold;
  font-size: 18px;
}
.page-ticket .ticket-price span {
  color: #00FE00;
  font-size: 24px;
  font-weight: bold;
}
.page-ticket .ticket-number {
  display: flex;
  flex-direction: row;
  font-size: 18px;
  font-weight: bold;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 16px;
}
.page-ticket .ticket-number img {
  height: 43px;
}
.page-ticket .ticket-number div {
  padding-top: 8px;
}
.page-ticket .info-section {
  font-size: 14px;
  color: #009000;
}
.page-ticket .info-section h2 {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}
.page-ticket .info-section h2 + p {
  margin-top: 0;
}
.page-ticket button.validate {
  color: white;
  width: 100%;
  background-color: #00FE00;
  border: solid 2px #000;
  border-radius: 10px;
  color: #000;
  font-size: 18px;
  box-shadow: none;
  font-weight: bold;
}
.page-ticket .box.button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: #fff;
  box-shadow: 0px -2px 6px -1px rgba(0, 0, 0, 0.3);
}
.page-ticket.validating {
  opacity: 0.5;
}
.page-ticket.validating button.validate {
  animation: animateRedBk 4s infinite linear;
}
.page-ticket .expired-label {
  display: none;
}
.page-ticket .expired .remaining-time-container {
  background-color: #E75353;
}
.page-ticket .expired .validation-pattern, .page-ticket .expired .new-validation, .page-ticket .expired .valid-label, .page-ticket .expired .progress-bar-container {
  display: none;
}
.page-ticket .expired .remaining-time-container label.expired-label {
  display: block;
}

@keyframes animatedBackground {
  0% {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}
@keyframes animateRedBk {
  0% {
    background-color: #D0011B;
  }
  50% {
    background-color: #aaa;
  }
  to {
    background-color: #D0011B;
  }
}
