/* font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@500&display=swap');

/* reset */
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  border: none;
  background-color: #ffff;
}

button:not(:disabled) {
  cursor: pointer;
}

header {
  top: 0;
}

/* 전체 스타일 */
* {
  box-sizing: border-box;
  margin-top: 0;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  background-color: #eae8fe;
}

.a11y-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

.vending-container {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.banner-img {
  display: block;
  width: 386px;
  height: 202.03px;
  margin: 0 auto 68px auto;
}

/* 왼쪽 파트 스타일 */
.select-part {
  width: 360px;
  height: 545px;
  background-color: #ffff;
}

.original-cola,
.violet-cola,
.yellow-cola,
.cool-cola,
.green-cola,
.orange-cola {
  width: 35.86px;
  height: 64, 86px;
}

.name {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
  text-align: center;
  margin-bottom: 7px;
}

.cola-list {
  display: grid;
  grid-template-columns: repeat(3, 94px);
  grid-template-rows: repeat(2, 130px);
  grid-gap: 12px;
  padding-top: 31px;
  padding-left: 27px;
  padding-right: 27px;
  box-sizing: border-box;
  position: relative;
}

.item {
  width: 94px;
  height: 130px;
  text-align: center;
  border-radius: 10px;
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.5));
}

.item-selected {
  width: 94px;
  height: 130px;
  border: 3px solid rgba(99, 39, 254, 1);
  border-radius: 10px;
}

.sold-out-item {
  width: 94px;
  height: 130px;
  text-align: center;
  border-radius: 10px;
}

.price {
  display: block;
  color: #ffff;
  background-color: rgba(99, 39, 254, 1);
  font-size: 12px;
  font-weight: 500;
  width: 70px;
  height: 22px;
  line-height: 22px;
  border-radius: 50px;
  text-align: center;
  margin-top: 7px;
  margin: auto;
}

.charge-part {
  display: grid;
  grid-template-columns: 200px 94px;
  grid-template-rows: 33px 33px 106px;
  gap: 12px;
  margin-top: 20px;
  margin-left: 27px;
}

.balance {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 1);
  background-color: #eae8fe;
  border-radius: 5px;
  line-height: 33px;
  display: flex;
  padding-left: 10px;
  padding-right: 10px;
  justify-content: space-between;
}

.charge-return-btn,
.deposit-btn {
  font-weight: 500;
  font-size: 13px;
  font-weight: 500;
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.5));
  border-radius: 5px;
  color: rgba(0, 0, 0, 1);
}

input {
  border: 1px solid #bdbdbd;
  border-radius: 5px;
}

input::placeholder {
  color: rgba(189, 189, 189, 1);
  font-size: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  padding-left: 6px;
}

.select-scroll {
  border: 1px solid rgba(189, 189, 189, 1);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #eae8fe;
}

.selected1,
.selected2,
.selected3,
.selected4 {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffff;
  width: 170px;
  height: 46px;
  border-radius: 5px;
}

.selected1 {
  margin-top: 12px;
}

.selected1,
.selected2,
.selected3 {
  margin-bottom: 6px;
}

.cola-text {
  font-size: 9px;
}

.selected-original-cola,
.selected-green-cola,
.selected-orange-cola,
.selected-violet-cola {
  width: 18px;
  height: 33px;
  margin-left: 10.04px;
  margin-top: 6.04px;
  margin-bottom: 7.04px;
  margin-right: 10.04px;
}

.obtained-img {
  width: 18px;
  height: 33px;
  margin-left: 10px;
  margin-right: 10px;
}

.number-left {
  width: 30px;
  height: 30px;
  color: rgba(0, 0, 0, 1);
  font-size: 14px;
  font-weight: 500;
  line-height: 27px;
  border: 1px solid #bdbdbd;
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  border-radius: 5px;
  text-align: center;
}

.sold-out-item::after {
  content: '';
  display: block;
  position: absolute;
  width: 94px;
  height: 130px;
  left: 132px;
  top: 31.5px;
  background: url('../images/품절.png') no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
}

.obtain-btn {
  width: 94px;
  height: 106px;
  background-color: #6327fe;
  color: #ffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 5px;
}

/* 오른쪽 파트 스타일 */
.result-wrap {
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.money-part {
  background-color: #ffff;
  font-size: 14px;
  font-weight: 500;
}

.money {
  background-color: #eae8fe;
  width: 306px;
  height: 32px;
  margin: 9px 27px;
  line-height: 32px;
  display: flex;
  justify-content: space-between;
  border-radius: 5px;
}

.money-in-hand-text {
  margin-left: 10px;
}

.money-in-hand-price {
  margin-right: 10px;
  font-weight: 700;
}

.obtained-part {
  background-color: #ffff;
  height: 474px;
}

.obtained-text {
  font-size: 14px;
  font-weight: 700;
  margin-top: 25px;
  text-align: center;
}

.obtained-list {
  width: 306px;
  height: 364px;
  background-color: #eae8fe;
  border: 1px solid rgba(189, 189, 189, 1);
  border-radius: 5px;
  margin-top: 13px;
  margin-right: 27px;
  margin-left: 27px;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
}

.obtained-cola,
.obtained-cola-top,
.obtained-cola-bottom {
  width: 276px;
  height: 46px;
  background-color: #ffff;
  border-radius: 5px;
  margin-left: 12px;
  margin-right: 18px;
  margin-bottom: 6px;
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.obtained-cola-top {
  margin-top: 12px;
}

.obtained-cola-name {
  font-size: 9px;
  color: rgba(51, 51, 51, 1);
}

.number-right {
  width: 30px;
  height: 30px;
  color: rgba(0, 0, 0, 1);
  font-size: 14px;
  font-weight: 500;
  line-height: 27px;
  border: 1px solid #bdbdbd;
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  border-radius: 5px;
  text-align: center;
}

.total-money {
  display: block;
  text-align: right;
  color: rgba(0, 0, 0, 1);
  font-size: 12px;
  font-weight: 500;
  margin-top: -45px;
  margin-right: 28px;
}

.obtained-cola-bottom::after {
  content: '';
  display: block;
  position: absolute;
  width: 276px;
  height: 1000px;
  left: 1px;
  top: 52px;
  background-size: 64px;
  background-position: center;
  background-color: #eae8fe;
  border-radius: 5px;
}

/* 스크롤 */
.select-scroll {
  overflow-y: scroll;
  overflow-x: hidden;
}

.select-scroll::-webkit-scrollbar {
  height: 79px;
  width: 10px;
}

.select-scroll::-webkit-scrollbar-thumb {
  background: #ffff;
  border-radius: 50px;
  border: 3px solid #eae8fe;
}
.select-scroll::-webkit-scrollbar-track {
  background: #eae8fe;
}

.obtained-list {
  overflow-y: scroll;
  overflow-x: hidden;
}

.obtained-list::-webkit-scrollbar {
  width: 10px;
  height: 20px;
}

.obtained-list::-webkit-scrollbar-thumb {
  background: #ffff;
  border-radius: 50px;
  border: 3px solid #eae8fe;
}

.obtained-list::-webkit-scrollbar-track {
  background: #eae8fe;
}

.empty {
  background-color: #eae8fe;
  visibility: hidden;
}

/* media */
@media (max-width: 800px) {
  body {
    background-color: #fff;
  }
  .vending-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
