* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  height: 100vh;
  background-color: rgba(219, 218, 225, 0);
  font-family:
    system-ui,
    -apple-system;
}
.tap-to-pay {
  position: relative;
  width: 460px;
  transform: scale(0.7);
}
.phone {
  top: 290px;
  left: 3px;
  height: 828px;
  display: flex;
  position: absolute;
  width: 395px;
  /* overflow: hidden; */
  perspective: 547px;
  transform-style: preserve-3d;
  transform: translate3d(9px, 0px, -45px);

  border-radius: 52px;
  box-shadow: 0 55px 30px -30px rgba(0, 0, 0, 0.3);
  -webkit-transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  -moz-transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  -ms-transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  -o-transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
}
.app {
  display: flex;
  flex-direction: column;
  margin: 12px;
  padding: 20px;
  width: 100%;
  background-color: rgb(255, 255, 255);
  border-radius: 35px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.home-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  display: none;
}
.reader-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  display: none;
  position: relative;
  height: 100%;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  pointer-events: none;
  z-index: 100;
}
.header {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.app-logo {
  display: block;
  width: 80px;
  margin: auto;
  margin-top: 20px;
}
.transaction-type {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  margin-top: 20px;
  background-color: #6236ff;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 200px;
  color: white;
}
.transaction-amount {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 80%;
  overflow: hidden;
}
.transaction-amount-value {
  font-size: 40px;
  font-weight: 700;
  margin-top: 20px;
}
.transaction-currency {
  font-size: 16px;
  font-weight: 600;
  color: rgb(135, 135, 135);
}
.trerminal-schemes {
  width: 70%;
  margin-top: 10px;
}
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  margin-top: 20px;
}
.numpad-number {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  font-size: 28px;
  font-weight: 600;
  padding: 10px;
  color: #000000;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
  border: none;
  pointer-events: none;
}
.numpad-number:active {
  outline: none;
  background-color: #6236ff;
  color: white;
  transition: all 0.5s;
}

.numpad-number.active {
  outline: none;
  background-color: #6236ff;
  color: white;
  transition: all 0.5s;
}
.numpad-number img {
  width: 30px;
}
.pay-button {
  display: block;
  width: 100%;
  background-color: #6236ff;
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  cursor: pointer;
  border: 0;
  pointer-events: none;
}
.pay-button:active {
  background-color: black;
  transition: all 0.5s;
}

.pay-button.active {
  background-color: black;
  transition: all 0.5s;
}
.card {
  position: absolute;
  top: 0;
  left: 0px;
  width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  -moz-transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  -ms-transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  -o-transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
}
.card img {
  width: 100%;
}
.nfc-container {
  justify-content: center;
  align-items: center;
  width: 330px;
  height: 330px;
  display: flex;
  position: relative;
}

.nfc {
  background-color: #f9f5fe;
  border-radius: 500px;
  width: 100%;
  height: 100%;
}
.nfc.active {
  animation: background-change 2s infinite;
  border-radius: 100px;
}

.nfc.nfc--1 {
  color: #6236ff;
  justify-content: center;
  align-items: center;
  display: flex;
}

.nfc.nfc--2 {
  background-color: #f7f0fe;
}
.nfc.nfc--3 {
  opacity: 0.8;
  background-color: #faf5ff;
}

.nfc.nfc--4 {
  opacity: 0.6;
  background-color: #fcf9ff;
}

.nfc.nfc--5 {
  opacity: 0.7;
  background-color: #f5f5f9;
}

.nfc-wrap {
  position: absolute;
}
.nfc {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  box-shadow:
    0px 51px 78px rgba(17, 7, 53, 0.05),
    0px 21.3066px 35.4944px rgba(17, 7, 53, 0.0359427),
    0px 11.3915px 18.9418px rgba(17, 7, 53, 0.0298054),
    0px 6.38599px 9.8801px rgba(17, 7, 53, 0.025),
    0px 3.39155px 4.58665px rgba(17, 7, 53, 0.0201946),
    0px 1.4113px 1.55262px rgba(17, 7, 53, 0.0140573),
    inset 0px 1px 0px rgba(41, 56, 78, 0.05);
}
.nfc-wrap.nfc-wrap--1 {
  z-index: 6;
  border-radius: 50%;
  width: 30%;
  height: 30%;
  box-shadow: 0 0 60px #6363f133;
  animation: scale-in 3s infinite cubic-bezier(0.62, 0.28, 0.23, 0.99);
  animation-delay: 100ms;
}

.nfc-wrap.nfc-wrap--2 {
  z-index: 5;
  width: 40%;
  height: 40%;
  animation: scale-in 3s infinite cubic-bezier(0.62, 0.28, 0.23, 0.99);
  animation-delay: 150ms;
}

.nfc-wrap.nfc-wrap--3 {
  z-index: 4;
  width: 50%;
  height: 50%;
  animation: scale-in 3s infinite cubic-bezier(0.62, 0.28, 0.23, 0.99);
  animation-delay: 200ms;
}

.nfc-wrap.nfc-wrap--4 {
  z-index: 3;
  width: 60%;
  height: 60%;
  animation: scale-in 3s infinite cubic-bezier(0.62, 0.28, 0.23, 0.99);
  animation-delay: 250ms;
}

.nfc-wrap.nfc-wrap--5 {
  border-radius: 5000px;
  width: 70%;
  height: 70%;
  animation: scale-in 3s infinite cubic-bezier(0.62, 0.28, 0.23, 0.99);
  animation-delay: 300ms;
}

.nfc-logo {
  width: 100%;
  height: 100%;
  border-radius: 500px;
  background-image: url("images/nfc-icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  transition: background-color 0.5s;
}

.nfc-logo.approvd {
  background-image: url("images/approved-icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
}

@keyframes scale-in {
  0% {
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1);
  }

  60% {
    transform: translate3d(0px, 0px, 0px) scale3d(1.5, 1.5, 1.5);
  }
  80% {
    transform: translate3d(0px, 0px, 0px) scale3d(0.8, 0.8, 0.8);
  }
  100% {
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1);
  }
}
@keyframes background-change {
  0% {
    background-color: #f9f5fe;
  }
  50% {
    background-color: #6236ff1e;
  }
  100% {
    background-color: #f9f5fe;
  }
}
.nfc-indicator {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}
.nfc-indicator-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}
.nfc-indicator-dashs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.nfc-indicator-dash {
  width: 30px;
  height: 10px;
  background-color: #00000019;
  border-radius: 200px;
  margin: 0 5px;
}
.nfc-indicator-dash.active {
  background-color: #6236ff;
}
.cancel-button {
  display: block;
  width: 100%;
  background-color: #ffffff;
  color: rgb(61, 61, 61);
  border: 1px solid rgb(220, 220, 220);
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  cursor: pointer;
  pointer-events: none;
}

.transaction-info {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  padding-top: 0px;
  margin-top: 20px;
}

.reading-ui {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.approved-ui {
  display: none;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.approved-ui-title {
  font-size: 30px;
  font-weight: 800;
  color: #6236ff;
  margin-top: 20px;
  border: none;
  padding: 20px;
  flex: 1;
  height: 100%;
}

.done-button {
  display: block;
  width: 100%;
  background-color: #000000;
  color: rgb(255, 255, 255);
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  cursor: pointer;
  pointer-events: none;
}

.approved-ui-receipt {
  transition: all cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;
  background-image: url("images/receipt.png");
  background-size: cover;
  height: 260px;
  border: 1px solid #e0e0e0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -25px 50px -12px rgba(0, 0, 0, 0.25);
}
