@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500");

html {
  --card-color: #4D6172;
  --text-color: #e1e1e1;
}

.tips {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 30px;
  background: #f1f1f1;
  line-height: 30px;
  font-size: 14px;
  padding: 2px 15px;
}

.paycontainer {
  position: relative;
  align-items: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}
.paycontainer .col1 {
  perspective: 1000;
  transform-style: preserve-3d;
  float: left;
}

.paycontainer .col1 .ccard {
  position: relative;
  width: 80%;
  /* left: 50px; */
  min-height: 250px;
  margin: auto;
/*   margin-bottom: 85px;
  margin-right: 10px; */
  border-radius: 17px;
  box-shadow: 0 5px 20px -5px rgba(0, 0, 0, 0.1);
  transition: all 1s;
  transform-style: preserve-3d;
}

.paycontainer .col1 .ccard .front {
  position: absolute;
  background: var(--card-color);
  border-radius: 17px;
  padding: 50px;
  width: 100%;
  height: 100%;
  transform: translateZ(1px);
  -webkit-transform: translateZ(1px);
  transition: background 0.3s;
  z-index: 50;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.04) 3px, rgba(255, 255, 255, 0.05) 4px), -webkit-linear-gradient(-245deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.2) 70%, rgba(255, 255, 255, 0) 90%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (max-width: 768px){
  .paycontainer .col1 .ccard{
    width: 100%;
  }
  .paycontainer .col1 {
    transform: scale(.8);
  }
  .paycontainer .col1 .ccard .front{
    padding: 5px;
  }
}

.paycontainer .col1 .ccard .front .type {
  position: absolute;
  width: 75px;
  height: 45px;
  top: 20px;
  right: 20px;
}
.paycontainer .col1 .ccard .front .type img {
  width: 100%;
  float: right;
}
.paycontainer .col1 .ccard .front .card_number {
  position: absolute;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -1px;
  top: 110px;
  color: var(--text-color);
  word-spacing: 3px;
  transition: color 0.5s;
}
.paycontainer .col1 .ccard .front .date {
  position: absolute;
  bottom: 40px;
  right: 55px;
  width: 90px;
  height: 35px;
  color: var(--text-color);
  transition: color 0.5s;
}
.paycontainer .col1 .ccard .front .date .date_value {
  font-size: 12px;
  position: absolute;
  margin-left: 22px;
  margin-top: 12px;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.5s;
}
.paycontainer .col1 .ccard .front .date:after {
  content: "MONTH / YEAR";
  position: absolute;
  display: block;
  font-size: 7px;
  margin-left: 20px;
}
.paycontainer .col1 .ccard .front .date:before {
  content: "valid \athru";
  position: absolute;
  display: block;
  font-size: 8px;
  white-space: pre;
  margin-top: 8px;
}
.paycontainer .col1 .ccard .front .fullname {
  position: absolute;
  font-size: 20px;
  bottom: 40px;
  color: var(--text-color);
  transition: color 0.5s;
}
.paycontainer .col1 .ccard .back {
  position: absolute;
  width: 100%;
  border-radius: 17px;
  height: 100%;
  background: var(--card-color);
  transform: rotateY(180deg);
}
.paycontainer .col1 .ccard .back .magnetic {
  position: absolute;
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  margin-top: 25px;
}
.paycontainer .col1 .ccard .back .bar {
  position: absolute;
  width: 80%;
  height: 37px;
  background: rgba(255, 255, 255, 0.7);
  left: 10px;
  margin-top: 100px;
}
.paycontainer .col1 .ccard .back .seccode {
  font-size: 13px;
  color: var(--text-color);
  font-weight: 500;
  position: absolute;
  top: 100px;
  right: 20px;
}
.paycontainer .col1 .ccard .back .chip {
  bottom: 45px;
  left: 10px;
}
.paycontainer .col1 .ccard .back .disclaimer {
  position: absolute;
  width: 65%;
  left: 80px;
  color: #f1f1f1;
  font-size: 8px;
  bottom: 55px;
}
.paycontainer .col2 input ,.paycontainer .col2 select{
  display: block;
  width: 100%;
  height: 35px;
  padding-left: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 7px;
  margin-bottom: 7px;
  font-size: 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  transition: background 0.5s;
}
.paycontainer .col2 input:focus {
  outline-width: 0;
  background: rgba(31, 134, 252, 0.15);
  transition: background 0.5s;
}
.paycontainer .col2 label {
  padding-left: 8px;
  font-size: 15px;
  color: #444;
}
/* .paycontainer .col2 .expire {
  width: 50%;
}
.paycontainer .col2 .ccv {
  width: 50%;
} */
.paycontainer .col2 .buy {
  width: 260px;
  height: 50px;
  position: relative;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  border: none;
  background: #42c2df;
  color: white;
  font-size: 20px;
  transition: background 0.4s;
  cursor: pointer;
}
.paycontainer .col2 .buy i {
  font-size: 20px;
}
.paycontainer .col2 .buy:hover {
  background: #3594a9;
  transition: background 0.4s;
}

.chip {
  position: absolute;
  width: 55px;
  height: 40px;
  background: #bbb;
  border-radius: 7px;
}
.chip:after {
  content: "";
  display: block;
  width: 35px;
  height: 25px;
  border-radius: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #ddd;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted red; /* If you want dots under the hoverable text */
  color:red;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  transform: translate(-50%);
  /* left: 50%; */
  /* margin-left: -50%; */
  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

@media (max-width: 576px) {
    .tooltip .tooltiptext{
        left: -70px !important;
    }
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
