
body {
    font-family: "noto sans sc", sans-serif;
    line-height: 1.5;
}

.bg {
    background-color: #FFF5E3;
    background-image: url(/static/images/milktea/circle-bg.png);
    background-attachment: fixed;
    width: 100%;
    height: 100%;
}

.header-content {
    position: relative;
    width: 466px;
    margin: 0 auto;
    height: auto;
}

.header-img {
    width: 100%;
}



.bubble {
    position: absolute;
    bottom: 13%;
    left: 29%;
    
}

.milktea {
    position: relative;
    width: 430px;
    margin: 0 auto;
    top: -8px;
}

.milktea-title {
    position: absolute;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 16px;
}

.milktea-list {
    position: absolute;
    top: 8%;
    left: 9%;
}

.milktea-item , .pay-milktea-item {
    display: flex;
    background-color: #FFE7C8;
    border-radius: 16px;
    align-items: center;
    box-shadow:0px 0px 0px 4px #003A6B inset;
    margin: 16px 4px;
    background-image: url(/static/images/milktea/milktea-bg-fill-brown.png);
    background-repeat: repeat-x;
    background-position: 0 -200%;
    transition: .5s ease;
    
}

.milktea-item {
    position: relative;
    cursor: pointer;
}



.milktea-item:hover {
    background-position: 0 100%;
    color: #fff;
}

.milktea-item:hover .milktea-but {
    background-color: #a0774e;
    transform: scale(1.03);
}


.milktea-icon {
    padding: 16px;
    background-color: #F9B83C;
    border-radius: 16px;
    border: 4px solid #003A6B;
}

.milktea-recommended-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 18%;
}

.point-benefits-500{
    color: red;
}

.milktea-but {
    background-color: #C1905E;
    padding: 8px 0;
    border-radius: 8px;
    margin-right: 16px;
    right: 0;
    width: 64px;
    text-align: center;
    color: #fff;
    font-weight: 500;
    border: 0;
    font-size: 18px;
}

.milktea-item .milktea-but {
    cursor: pointer;
}


.milktea-text {
    width: 132px;
    margin-left: 8px;
    margin-right: 24px;
}

.milktea-text h3{
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 20px;
}

.milktea-text p {
    font-size: 12px;
}

.milktea-list h4 {
    text-align: center;
    color: #003A6B;
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

.footer button {
    display: block;
    font-size: 20px;
    padding: 4px;
    border-radius: 16px;
    width: 410px;
    margin: 0 auto;
    margin-bottom: 24px;
    border: 4px solid #003A6B;
    cursor: pointer;
    font-weight: 700;
}

.choose-but {
    background-color: #a0774e;
    background-image: url(/static/images/milktea/milktea-bg-fill-brown.png);
    background-repeat: repeat-x;
    background-position: 0 -100%;
    transition: .5s ease;
}

.choose-but a {
    color: #fff;
}

.choose-but:hover {
    background-position: center;
}

.home-but {
    background-color: #FFE7C8;
    
}

.home-but a {
    color: #331c13;
}


/* 選定後樣式 */

.milktea-item.active {
    background-color: #c1905e;
}

.milktea-item.active .milktea-text {
    color: #fff;
}

.milktea-item.active .milktea-but {
    background-color: #a0774e;
}

/* 打賞方式 */

.pay-list {
    display: flex;
    flex-direction: column;
    background-color: #FFE7C8;
    border-radius: 16px;
    box-shadow: 0px 0px 0px 4px #003A6B inset;
    padding: 16px;
    margin: 0 4px;
}

.pay-list h3 {
    text-align: center;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.pay-item {
    font-size: 20px;
    background-color: #fff;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 8px;
    position: relative;
    transition: .3s ease;
}

.pay-item:hover {
    box-shadow: 0px 0px 0px 2px #a0774e inset;
}

.pay-item input[type="radio"]:checked + span::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 0px 0px 0px 2px #003A6B inset;
    border-radius: 8px;
    pointer-events: none;
}


.pay-item input[type="radio"]:checked {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #003A6B;
}


.pay-list .choose-but {
    font-size: 20px;
    width: 100%;
    padding: 4px;
    border-radius: 8px;
    margin: 0 auto;
    margin: 8px 0;
    border: 4px solid #003A6B;
    cursor: pointer;
    font-weight: 700;
    
}


.pay-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff; 
}





@media (max-width: 430px) {

    .header-content {
        width: 100%;
    }

    .header-img img{
        width: 100%;
    }

    .milktea {
        width: auto;
    }

    .milktea-list-bg img{
        width: 100%;
    }

    .milktea-list {
        width: 85%;
        left: 7%;
        overflow-x: visible;
        height: 65%;
    }

    .pay-container {
        top: 11%;
        height: 76%;
    }

    .footer button {
        width: 240px;
    }

    .milktea-list::-webkit-scrollbar {
        width: 4px;
    }
    
    /* 滚动条轨道 */
    .milktea-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    /* 滚动条滑块 */
    .milktea-list::-webkit-scrollbar-thumb {
        background: #a0774e;
        border-radius: 6px;
    }

}

/* 彈出視窗 */

.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, .5);
    z-index: 2;
    text-align: center;
    left: 0;
}

.popup-content {
    position: relative;
    width: 360px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    animation: slideDown 0.5s ease forwards;
}

.popup-close {
    position: absolute;
    right: 4px;
    background-color: #4D2B1C;
    width: 32px;
    height: 32px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    opacity: .8;
}

.popup-close:hover {
    background-color: #331c13;
}

.popup-close i {
    padding: 8px;
}

.popup-content p {
    color: #fff;
    font-weight: 700;
    margin-top: -12px;
    font-size: 20px;
}

.popup-but {
    background-color: #F9B83C;
    padding: 4px 16px;
    border-radius: 20px;
    color: #4D2B1C;
    font-weight: 700;
    font-size: 20px;
    border: 4px solid #4D2B1C;
    margin-top: 8px;
    cursor: pointer;
}

.popup-but:hover {
    background-color: #ffc862;
}


@keyframes slideDown {
    from {
      transform: translate(-50%, -80%);
    }
    to {
      transform: translate(-50%, -50%);
    }
  }

.milktea ul{
    padding: 0;
}









