

  @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}
.body{
    font-size: 18px;
    
}
.container{
    min-height: 100vh;
    display: flex;
}
.leftContainer{
    background-image: url('../images/bg-main-desktop.png');
    width: 30%;
    background-repeat: no-repeat;
    margin: 0;
    position: relative;
}
.rightContainer{
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.cardFront{
    background-image: url("../images/bg-card-front.png");
    height: 13rem;
    border-radius: 0.4rem;
    width: 25rem;
    background-size: cover;
    position: absolute;
    top: 7rem;
    left: 7rem;
}
.cardDetails img{
    margin: 1.5rem;
}
.cardNumber{
    margin-top: 1rem;
    color: white;
    font-size: 1.4rem;
    text-align: center;
    word-spacing: 0.6rem;
    letter-spacing: 0.2rem;
}
.cardName{
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    align-items: center;
    margin: 1rem 2rem;
    color: white;
}
.cardBack{
    position: absolute;
    top: 22rem;
    left: 15rem;
}
.cardBack img{
    width: 25rem;
}

form{
    display: flex;
    flex-direction: column;
    width: 40%;
    opacity: 1;
    transition:opacity 0.2s ease-out;
}
form input[type=text]{
    border-radius: 0.5rem;
    border: 1px solid lightgrey;
    padding: 0.6rem;

    margin: 0.3rem 0;  
}
form label{
    margin-top: 1rem;
}
form input:focus{
    outline: 1px solid grey;
}
.inputs{
    padding: 0;
    border-radius: 0.5rem;
    border: 1px solid lightgrey;
    padding: 0.6rem;

    margin: 0.3rem 0;  
}
.date{
  display: flex;
  justify-content: center;
  align-items: center;
}
.cardDate-cvc{
    display: flex;
}
.cardDate{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.dateInner{
    display: flex;
    margin-right: 1rem;
}
.cvc{
    display: flex;
    flex-direction: column;
}
#mm{
    width: 100%;
    margin-right: 0.5rem;
}
#yy{
    width: 100%;
}
.confirm{
    text-align: center;
    background-color: hsl(278, 68%, 11%);
    color: white;
    border-radius: 0.5rem;
    border: 1px solid lightgrey;
    padding: 0.6rem;
}
.appreciate{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    position: absolute;
    z-index: -1;
    transition: opacity 0.2s ease-in;
}
.continue{
    width: 20rem;
}
.m-1{
    margin: 1rem;
}
.my-1{
    margin-top: 1rem;
}
.grey{
    color: grey;
}
@media screen and (max-width: 1300px) {
    .cardBack {
      left: 7rem;
    }
  
    .cardDate-cvc {
      flex-direction: column;
    }
  }
  @media screen and (max-width: 1080px) {
    .cardFront {
      left: 1rem;
    }
  
    .cardBack {
      left: 1rem;
    }
  }
  @media screen and (max-width: 880px) {
    .cardBack img {
      width: 15rem;
      height: 8rem;
    }
  
    .cardBack {
      top: 25rem;
      left: 5rem;
    }
  
    .cardFront {
      height: 8.3rem;
      width: 15rem;
      top: 15rem;
      left: 3rem;
    }
  
    .cardDetails img {
      width: 2.8rem;
      margin: 1rem;
    }
  
    .cardNumber {
      word-spacing: 1px;
      letter-spacing: 1px;
      font-size: 1rem;
      margin-top: 0.8rem;
    }
  
    .cardName {
      font-size: 0.5rem;
      margin: 0.5rem 1.5rem;
    }
  }
  
  @media screen and (max-width: 680px) {
    .container {
      display: flex;
      flex-direction: column;
    }
  
    .leftContainer {
      background-image: url(../images/bg-main-mobile.png);
      background-size: cover;
      height: 13rem;
      width: 100%;
    }
  
    .cardBack {
      top: 2rem;
      left: 5rem;
    }
  
    .cardFront {
      top: 7rem;
      left: 2rem;
      z-index: 1;
    }
  
    .rightContainer {
      width: 100%;
      margin-top: 3rem;
    }
    form {
      width: 80%;
    }
  }
@media screen and (max-width: 480px) {
    .container{
        display: flex;
        flex-direction: column;
    }
    .leftContainer{
        width: 100%;
        height: 13rem;
    }
    .cardBack{
        top: 2rem;
        left: 5rem;
    }
    .cardBack img{
        width: 15rem;
        height: 8rem;
    }
    .cardFront{
        top: 7rem;
        left: 2rem;
        height: 8.3rem;
        width: 15rem;
        z-index: 1;
    }
    .cardDetails img{
        width: 2.8rem;
        margin: 1rem;
    }
    .cardNumber{
        word-spacing: 1px;
        letter-spacing: 1px;
        font-size: 1rem;
        margin-top: 0.8rem;
    }
    .cardName{
        font-size: 0.5rem;
        margin: 0.5rem 1.5rem;
    }
    .rightContainer{
        width: 100%;
        margin-top: 3rem;
    }
    form{
        width: 80%;
    }
    .appreciate{
        top: 2rem;
    }
  }