.payment_bg {
  width: 80vw !important;
  background: url(../images/board1_body1.png) repeat-y;
  background-size: contain;
  height: auto;
  margin: auto;
  padding: 30px !important;
  position: relative;
  bottom: 60px;
}
.payment_logo {
  position: relative;
  left: 5%;
  z-index: 10 !important;
}

/* payment icons */
.payment_icons::-webkit-scrollbar {
  display: none;
}
.payment_icons {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 12px;
  padding: 8rem;
  width: 100%;
  overflow-x: scroll;
  height: auto;
  margin: 0 auto !important;
}

.payment_icons > div {
  padding: 2rem 8rem 4rem 2rem;
  margin: 2px;
  background-color: rgb(255, 255, 255);
  border: 1px solid black;
  border-radius: 0.5rem;
  width: 5vw;
  height: 3vh;
}

.payment_icons > div:hover {
  background: #ffe270;
  transition: all 0.1s linear;
  box-shadow: 0 0 2px black;
}
.payment_board_img {
  width: 80vw;
  height: 140vh;
  z-index: -1;
  position: absolute;
  top: 8rem;
  right: 17rem;
}

@media screen and (max-width: 1024px) {
  .payment_bg {
    width: 70vw !important;
  }

  .payment_logo {
    width: 630px;
  }
  .payment_icons {
    margin: 0 !important;
    padding: 20px !important;
    grid-template-columns: 30% 30% 30%;
    gap: 40px;
  }
}

@media screen and (max-width: 890px) {
  .payment_bg {
    width: 90vw !important;
  }

  .payment_logo {
    width: 630px;
  }
  .payment_icons {
    margin: 0 !important;
    padding: 20px !important;
    grid-template-columns: 30% 30% 30%;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .payment_bg {
    width: 70vw !important;
  }

  .payment_logo {
    left: 3%;
    width: 650px;
  }

  .payment_icons {
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
    position: relative;
    gap:10px;
    right:15px;
  }
 

  .payment_icons > div {
    padding: 2rem 8rem 4rem 2rem;
    margin: 2px !important;
    border-radius: 0.5rem;
    width: 5vw;
    height: 3vh;
    transform: scale(.7);
  }
}

@media screen and (max-width: 566px) {
  .payment_bg {
    width: 100vw !important;
  }

  .payment_logo {
    left: 3%;
    width: 650px;
  }

  .payment_icons {
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
    position: relative;
    gap:10px;
    right:15px;
  }
 

  .payment_icons > div {
    padding: 2rem 8rem 4rem 2rem;
    margin: 2px !important;
    border-radius: 0.5rem;
    width: 5vw;
    height: 3vh;
    transform: scale(.6) !important;
  }
}
@media screen and (max-width: 515px) {
  .payment_bg {
    width: 150vw !important;
  }

  .payment_logo {
    left: 3%;
    width: 650px;
  }

  .payment_icons {
    width:80vw !important;
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
    position: relative;
    gap:10px;
    right:35px !important;
  }
 

  .payment_icons > div {
    padding: 2rem 8rem 4rem 2rem;
    margin: 2px !important;
    border-radius: 0.5rem;
    width: 5vw;
    height: 3vh;
    transform: scale(.5) !important;
  }
}
@media screen and (max-width: 652px) {
  .payment_bg {
    width: 80vw !important;
  }

  .payment_logo {
    left: 3%;
    width: 650px;
  }

  .payment_icons {
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
    position: relative;
    gap:10px;
    right:15px;
  }
 

  .payment_icons > div {
    padding: 2rem 8rem 4rem 2rem;
    margin: 2px !important;
    border-radius: 0.5rem;
    width: 5vw;
    height: 3vh;
  }
}

@media screen and (max-width: 425px) {
  .payment_bg {
    width: 80vw !important;
    bottom: 50px;
  }

  .payment_logo {
    width: 400px;
  }

  .close2 {
    left: 60px;
  }
  .payment_icons {
    grid-template-columns: 40% 40%;
    transform: scale(1);
    margin: 0 !important;
    padding: 0 !important;
  }
  .payment_bg h2{
    font-size: 20px;
}

.payment_icons > div {
  padding: 2rem 8rem 4rem 2rem;
  margin: 2px !important;
  border-radius: 0.5rem;
  width: 5vw;
  height: 3vh;
  transform: scale(.7) !important;
}
.payment_icons {
  position: relative;
  right:25px !important;
}
}
@media screen and (min-width: 320px) and (max-width: 400px){

  .payment_bg {
    width: 82vw !important;
    bottom: 50px;
  }
  .payment_logo {
    width: 350px;
  }
  .payment_icons > div {
    padding: 2rem 8rem 4rem 2rem;
    margin: 2px !important;
    border-radius: 0.5rem;
    width: 5vw;
    height: 3vh;
    transform: scale(.7) !important;
  }
  .payment_icons {
    position: relative;
    right:25px !important;
  }
}
