@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@500;700&display=swap");

:root {
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 500;
}
body {
    background-color: #eae8fe;
    height: 963px;
}

/* 헤더 부분 */
.header-bg {
    background-image: url(./img/Group.png);
    width: 386px;
    height: 180px;
    margin: 0 auto;
    margin-bottom: 67px;
}

/* 메인부분 */
main {
    display: flex;
    justify-content: center;
}

/* left */

.section-left {
    background-color: #fff;
    width: 360px;
    height: 545px;
    padding: 31px 27px;
    margin-right: 28px;
}

.item-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 306px;
    height: 272px;
    margin-bottom: 20px;
    /* overflow: scroll; */
    /* background-color: dodgerblue; */
}

.item-list li {
    width: 94px;
    height: 130px;
    /* background-color: lightcoral; */
    padding: 11px;
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.5));
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* .item-list li:hover {
    border: 3px solid #6327fe;
} */

.item-list li img {
    width: 36px;
}

.item-list .cola-name {
    white-space: normal;
    font-size: 9px;
    margin-top: 6px;
    margin-bottom: 7px;
}

/* .item-list .cola-price {
    width: 70px; 
    background-color: #6327fe;
    color: white;
    font-weight: 500;
    font-size: 12px;
    line-height: 22px;
    border-radius: 50px;
} */

/* sddddddddddddddddd */
.cola-btn {
    width: 70px;
    height: 22px;
    /* vertical-align: top; */
    border-radius: 50px;
    background-color: #6327fe;
    color: white;
    font-size: 12px;
    text-align: center;
    font-family: none;
    /* padding-bottom: 2px; */
}

.calculate {
    display: grid;
    flex-direction: column;
    grid-template-columns: 200px 94px;
    grid-template-rows: 33px 33px 106px;
    column-gap: 12px;
    row-gap: 11px;
    /* background-color: lightcoral; */
}

.remain-money {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eae8fe;
    font-size: 14px;
    border-radius: 5px;
    padding: 6px 10px 7px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.remain-btn {
    font-size: 13px;
    line-height: 18px;
    border-radius: 5px;
    border: none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

#deposit-money {
    border-radius: 5px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border: none;
    font-family: inherit;
    padding: 6px;
}
.deposit-btn {
    border-radius: 5px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
}

.pocket {
    background-color: #eae8fe;
    border-radius: 5px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border: none;
    padding: 12px;

    overflow-y: scroll;

    /* height:106px; */
    /* width: 200px; */
}
/**********스크롤 ********************/
.scroll::-webkit-scrollbar {
    width: 5px; /*스크롤바의 너비*/
    height: 5px;
}

.scroll::-webkit-scrollbar-thumb {
    background-color: white; /*스크롤바의 색상*/
    border-radius: 10px; /*스크롤바 라운드*/
}

.scroll::-webkit-scrollbar-track {
    border-radius: 5px; /*스크롤바 트랙 라운드*/
}

/***********  *********/

.pocket-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* overflow: hidden; */
}

.pocket-list li {
    width: 170px;
    height: 46px;
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #fff;
    font-size: 9px;
    border-radius: 5px;
    margin-bottom: 6px;
}

.pocket-list li img {
    width: 18px;
    margin-right: 10px;
}

.pocket-list-name {
    margin-right: auto;
}
.pocket-list-number {
    display: flex;
    width: 30px;
    height: 30px;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
}

.get-btn {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: #6327fe;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
/* 가상요소 사용여부 고려해볼 것. */
/* 왼쪽 밑 그리드 부분 사용여부 고려해볼 것. */
/* 버튼 대신 라벨 사용여부 고려 */
/*************** right section *******************/

.section-right {
    width: 360px;
    height: 545px;
}

.present-money {
    width: 100%;
    height: 50px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.present-money p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 306px;
    height: 32px;
    padding: 6px 10px;
    background-color: #eae8fe;
    border-radius: 5px;
}

.present-money-txt {
    font-weight: 700;
    font-size: 14px;
}

/* .overscroll-wrapper{
    width: 100%;
    height: 371px;
    margin-bottom: 27px;
    background-color: #eae8fe;
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.151);
} */
.purchaselist-box {
    width: 100%;
    height: 475px;
    background-color: white;
    padding: 25px 27px;
    text-align: center;
}

.purchaselist-box h3 {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 13px;
    line-height: 20px;
}

.purchaselist {
    
    width: 306px;
    height: 364px;
    padding: 12px;
    background-color: #eae8fe;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.151);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
    overflow-x: hidden;
}

.purchaselist li {
    display: flex;
    background-color: white;
    width: 276px;
    height: 46px;
    padding: 8px;
    align-items: center;
    font-weight: 500;
    font-size: 9px;
    border-radius: 5px;
    margin-bottom: 6px;
}

.purchaselist li img {
    width: 18px;
    margin-right: 10px;
    object-fit: contain;
}

/* .target::before{
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    background-image: url(./img/Sold-out.png);
    background-repeat: no-repeat;
    background-size: 50px;
    
    background-position: 9px 27px;
    position: absolute;
    z-index: 10;
} */
.target::after {
    /* display: block; */
    content: "품절";
    color: transparent;
    background-color: rgba(0, 0, 0, 0.596);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;

    background: rgba(0, 0, 0, 0.596) url(./img/Sold-out.png) 50% 50% / 70%
        no-repeat;

    /* content: "품절";
    position: absolute;
    inset: 0;
    color: transparent;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url(../img/Sold-out.png);
    background-position: center;
    background-size: 57.51px 44.85px;
    background-repeat: no-repeat; */
}

.sum{
    margin-top: 6px;
    display: block;
    margin-left:auto;
    text-align: right;
    font-weight: 500;
    font-size: 12px;
}