body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, rgb(21, 1, 44), rgb(3, 33, 61), rgb(34, 1, 34), rgb(34, 1, 1));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-line-pack: center;
        align-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: 100vh;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    font-family: 'Raleway';
}

.payment-title {
    width: 100%;
    text-align: center;
    color: #38f8de;
    text-shadow: #388e3c;
}

.form-container .field-container:first-of-type {
    grid-area: name;
}

.form-container .field-container:nth-of-type(2) {
    grid-area: number;
}

.form-container .field-container:nth-of-type(3) {
    grid-area: expiration;
}

.form-container .field-container:nth-of-type(4) {
    grid-area: security;
}

.field-container input {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.field-container {
    position: relative;
}

.form-container {
    display: grid;
    grid-column-gap: 10px;
    grid-template-columns: auto auto;
    grid-template-rows: 90px 90px 90px;
    grid-template-areas: "name name""number number""expiration security";
    max-width: 400px;
    padding: 20px;
    color: #0bebaf;
}

label {
    padding-bottom: 5px;
    font-size: 13px;
}

input {
    margin-top: 3px;
    padding: 15px;
    font-size: 16px;
    width: 100%;
    border-radius: 3px;
    border: 1px solid #dcdcdc;
}

.ccicon {
    height: 38px;
    position: absolute;
    right: 6px;
    top: calc(50% - 17px);
    width: 60px;
}

/* CREDIT CARD IMAGE STYLING */
.preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
}

.container {
    width: 100%;
    max-width: 400px;
    max-height: 251px;
    height: 54vw;
    padding: 20px;
}

#ccsingle {
    position: absolute;
    right: 15px;
    top: 20px;
}

#ccsingle svg {
    width: 100px;
    max-height: 60px;
}

.creditcard svg#cardfront,
.creditcard svg#cardback {
    width: 100%;
    -webkit-box-shadow: 1px 5px 6px 0px black;
    box-shadow: 1px 5px 6px 0px black;
    border-radius: 22px;
}

#generatecard{
    cursor: pointer;
    float: right;
    font-size: 12px;
    color: #fff;
    padding: 2px 4px;
    background-color: #fc38b1;
    border-radius: 4px;
    cursor: pointer;
    float:right;
}

/* CHANGEABLE CARD ELEMENTS */
.creditcard .lightcolor,
.creditcard .darkcolor {
    -webkit-transition: fill .5s;
    transition: fill .5s;
}

.creditcard .lightblue {
    fill: #03A9F4;
}

.creditcard .lightbluedark {
    fill: #0288D1;
}

.creditcard .red {
    fill: #ef5350;
}

.creditcard .reddark {
    fill: #d32f2f;
}

.creditcard .purple {
    fill: #ab47bc;
}

.creditcard .purpledark {
    fill: #7b1fa2;
}

.creditcard .cyan {
    fill: #26c6da;
}

.creditcard .cyandark {
    fill: #0097a7;
}

.creditcard .green {
    fill: #66bb6a;
}

.creditcard .greendark {
    fill: #388e3c;
}

.creditcard .lime {
    fill: #d4e157;
}

.creditcard .limedark {
    fill: #afb42b;
}

.creditcard .yellow {
    fill: #ffeb3b;
}

.creditcard .yellowdark {
    fill: #f9a825;
}

.creditcard .orange {
    fill: #ff9800;
}

.creditcard .orangedark {
    fill: #ef6c00;
}

.creditcard .grey {
    fill: #bdbdbd;
}

.creditcard .greydark {
    fill: #b08fb4;
}

/* FRONT OF CARD */
#svgname {
    text-transform: uppercase;
}

#cardfront .st2 {
    fill: #FFFFFF;
}

#cardfront .st3 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
}

#cardfront .st4 {
    font-size: 54.7817px;
}

#cardfront .st5 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
}

#cardfront .st6 {
    font-size: 33.1112px;
}

#cardfront .st7 {
    opacity: 0.6;
    fill: #FFFFFF;
}

#cardfront .st8 {
    font-size: 24px;
}

#cardfront .st9 {
    font-size: 36.5498px;
}

#cardfront .st10 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 300;
}

#cardfront .st11 {
    font-size: 16.1716px;
}

#cardfront .st12 {
    fill: #4C4C4C;
}

/* BACK OF CARD */
#cardback .st0 {
    fill: none;
    stroke: #0F0F0F;
    stroke-miterlimit: 10;
}

#cardback .st2 {
    fill: #111111;
}

#cardback .st3 {
    fill: #F2F2F2;
}

#cardback .st4 {
    fill: #D8D2DB;
}

#cardback .st5 {
    fill: #C4C4C4;
}

#cardback .st6 {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
}

#cardback .st7 {
    font-size: 27px;
}

#cardback .st8 {
    opacity: 0.6;
}

#cardback .st9 {
    fill: #FFFFFF;
}

#cardback .st10 {
    font-size: 24px;
}

#cardback .st11 {
    fill: #EAEAEA;
}

#cardback .st12 {
    font-family: 'Rock Salt', cursive;
}

#cardback .st13 {
    font-size: 37.769px;
}

/* FLIP ANIMATION */
.container {
    perspective: 1000px;
}

.creditcard {
    width: 100%;
    max-width: 400px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: -webkit-transform 0.6s;
    -webkit-transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
    transition: transform 0.6s, -webkit-transform 0.6s;
    cursor: pointer;
}

.creditcard .front,
.creditcard .back {
    position: absolute;
    width: 100%;
    max-width: 400px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    color: #47525d;
}

.creditcard .back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.creditcard.flipped {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

/* Footer Styles */
/* ===== Footer Base ===== */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
  width: 100%;
  box-sizing: border-box;
  height: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #667eea;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
  margin-bottom: 0.5rem;
  color: #bdc3c7;
  line-height: 1.5;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #667eea;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #667eea;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 18px;
}

.social-links a:hover {
  background: #764ba2;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #34495e;
  margin-top: 2rem;
  color: #95a5a6;
  font-size: 0.9rem;
}

/* ===== Media Queries for Extra Responsiveness ===== */

/* For small devices like older phones and small screens */
@media (max-width: 280px) {
  .footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .footer-section p,
  .footer-section li {
    font-size: 0.95rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .footer-bottom {
    font-size: 0.85rem;
    padding: 1rem 0.5rem;
  }
}

/* === Mobile Responsive Styling === */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .footer-section {
    width: 100%;
  }

  .footer-section p,
  .footer-section li,
  .footer-section ul li a {
    font-size: 0.6rem;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-bottom {
    font-size: 0.7rem;
  }

  .social-links {
    justify-content: flex-start;
  }

  a, p {
    word-break: break-word;
  }
}

/* For medium-sized phones */
@media (min-width: 311px) and (max-width: 767px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;

  }


/* === Universal Reset to Avoid Spacing Issues === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Footer Base === */
.footer {
  background: #2c3e50;
  color: white;
  padding: 0.5rem 1rem 1rem;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  width: 100vw;  /* Full device width */
  overflow-x: hidden;
}

/* === Grid Layout for Footer Content === */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Each Section in Footer === */
.footer-section {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #667eea;
  font-size: 0.6rem;
}

.footer-section p,
.footer-section li {
  margin-bottom: 0.5rem;
  color: #bdc3c7;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #667eea;
}

/* === Social Links === */
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  font-size: 0.6rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #667eea;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 0.6rem;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: #764ba2;
}

/* === Footer Bottom Text === */
.footer-bottom {
  text-align: center;
  padding: 1rem 1rem 0;
  border-top: 1px solid #34495e;
  margin-top: 2rem;
  color: #95a5a6;
  font-size: 0.5rem;
  word-wrap: break-word;
  width: 100%;
}
}





