html {
    font-size: 14px;
}

@media (min-width: 375px) {
    html {
        font-size: 16px;
    }
}

.container{
    padding-left: 0;
    padding-right: 0;
}

body {
    margin-bottom: 60px;
    padding: 0;
    box-sizing: border-box;
}

.cardDisplay {
    width: 100%;
    height: auto;
    padding: 20px;
    border-radius: 60px;
    background-color: #D9D9D9;
    text-align: center;
}

.cardContainer {
    width: 347px;
    height: 201px;
    border-radius: 14px;
    background: rgb(239, 140, 0);
    align-self:center;
}

.cardInfo {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 0px 7px;
    position: relative;
}

.qrCode {
    display: block;
    width: 136px;
    height: 136px;
    align-self: flex-start;
}

.cardNum {
    width: 25%;
    margin-right: 43%;
    font-size: xx-large;
    font-weight: 650;
    letter-spacing: 10px;
}

.vsLogo{
    width: 65px;
}

.defaultText {
    width: 100%;
    font-size: 1.5rem;
    line-height: 1.8rem;
    padding: 10px 0;
    color: #000;
}

.defaultContainer {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: inline;
}

.cardCode {
    width: 80%;
    padding: 5px;
    font-size: 1rem;
    margin-top: 20px;
}

.submitbtn {
    width: 49px;
    height: 29px;
    border-radius: 7px;
    background-color: rgb(239, 140, 0);
    background-image: url('icons/check-svgrepo-com (1).svg');
    border: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 34%;
    position: sticky;
}

.qrCodeBtn {
    width: 80px;
    height: 80px;
    background-image: url(icons/qr-code.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: #D9D9D9;
    border: none;
}

.defaultText2 {
    font-size: 1.5rem;
    text-align: center;
}

.balanceClass {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.balanceLabel, .balance {
    text-align: center;
    /*margin: 10px 0;*/
}

.balanceLabel {
    font-size: 1.2rem;
    margin-top: 5%;
}

.balance {
    font-size: 3rem;
    font-weight: bold;
}

.navMenu {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding: 15px 20px 20px 15px;
    position: relative;
    overflow-x: auto;
}

.menuBtn {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-weight: 500;
    background: rgb(239, 140, 0);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

#scanBtn {
    background-image: url(icons/qr-code.svg);
    background-repeat: no-repeat;
    background-size: 52px;
    background-position: 50% 24%;
}

#useBtn {
    background-image: url(icons/vending-machine-svgrepo-com.svg);
    background-repeat: no-repeat;
    background-size: 52px;
    background-position: 50% 24%;
}

#historyBtn {
    background-image: url(icons/history-svgrepo-com.svg);
    background-repeat: no-repeat;
    background-size: 52px;
    background-position: 50% 24%;
}

#helpBtn {
    background-image: url(icons/help-outline-svgrepo-com.svg);
    background-repeat: no-repeat;
    background-size: 52px;
    background-position: 50% 24%;
}

.VMLabel {
    width: 331px;
    height: 43px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
    line-height: 27px;
    text-align: left;
    margin-left: 4%;
}

.vendingMachines {
    overflow-x: auto;
    display: flex;
    gap: 15px;
    padding: 10px;
}

.VSmachine {
    width: 221px; /* Set a fixed width */
    height: 240px;
    border-radius: 19px;
    background: rgb(217, 217, 217);
    flex-shrink: 0; /* Prevent shrinking when scrolling */
    padding: 10px;
    display: grid;
}

.camera {
    width: 100%;
    height: 50%;
    padding: 20px;
    border-radius: 40px;
    background-color: white;
    text-align: center;
}

@media (max-width: 768px) {
    .cardCode, .qrCodeBtn /*,  .menuBtn*/ {
        width: 70%;
        /*margin: 10px auto;*/
    }

    .balance {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .cardCode, .qrCodeBtn/*, .menuBtn*/ {
        width: 80%;
    }

    /* .menuBtn {
        font-size: 0.9rem;
        height: 50px;
    }*/

    .balance {
        font-size: 2.5rem;
    }
}

.footer{

}

.useBalanceContainer {
    position: relative;
    width: 100%; /* Make it take full width on small screens */
    max-width: 393px;
    height: 200px;
    padding: 20px;
    margin: 0 auto;
    top: -65px;
    border-radius: 61px;
    background: rgb(239, 140, 0);
    box-sizing: border-box;
}

.balanceClass2 {
    text-align: left;
    bottom: -30%;
    position: relative;
}


.orderSumContainer {
    position: relative;
    width: 100%;
    max-width: 393px;
    height: auto;
    padding: 20px;
    margin: 20px auto auto;
    border-radius: 61px;
    background: rgb(214, 214, 214);
    box-sizing: border-box;
    bottom: -60px;
}

#useTitle {
    position: relative;
    text-align: center;
    font-size: 20px;
    margin-top: 20px;
    width: 100%;
}

form#useForm {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#enterAmount {
    width: 60%;
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
}

#amountBtn {
    margin-left: 10px;
    margin-top: 15px;
}

.vmImg {
    display: block;
    width: 100px;
    height: auto;
    margin: 20px auto;
}

.rowContainer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.cancelBtn, .confirmBtn {
    padding: 10px;
    font-size: 18px;
    border-radius: 7px;
    margin: 10px;
}

.cancelBtn {
    width: 45%;
    background-color: white;
    color: rgb(239, 140, 0);
    border: 2px solid rgb(239, 140, 0);
}

.confirmBtn {
    width: 50%;
    background-color: rgb(239, 140, 0);
    color: white;
    border: none;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {


    #enterAmount {
        width: 70%;
    }
}

@media (max-width: 480px) {

    #enterAmount {
        width: 80%;
        font-size: 16px;
    }

}

.confetti {
    width: 100%;
    position: absolute;
    z-index: 1;
    top: 31%;
}

/* Overall Layout */
.transactionContainer {
    padding: 10px;
    max-width: 100%;
}

/* Heading */
.textHeading {
    color: rgb(239, 140, 0);
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    text-align: center;
    width: 100%;
}

/* Card */
.cardClass {
    color: rgb(239, 140, 0);
    font-size: 4.5vw;
    font-weight: 400;
    text-align: right;
    width: 100%;
    padding-right: 2%;
    margin-bottom: 10px;
}

/* Month */
.tranMonth {
    display: flex;
    justify-content: flex-start;
    font-size: 4vw;
    font-weight: 400;
    text-decoration: underline;
    margin-bottom: 10px;
}

/* Transaction Box */
.transaction {
    background: rgb(217, 217, 217);
    border-radius: 9px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    height: 80px;
}

/* Date */
.tranDate {
    font-size: 4vw;
    margin-left: 2%;
}


/* Icon */
.tranIcon {
    width: 10vw;
    height: 10vw;
}

/* Machine Info */
.vmTran {
    font-size: 4.5vw;
    font-weight: 400;
}

/* Transaction Amount */
.tranAmount {
    margin-left: auto;
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 4vw;
    bottom: 15%;
    position: relative;
}

/* Responsive design for smaller screens */
@media (min-width: 768px) {
    .textHeading {
        font-size: 32px;
    }

    .cardClass {
        font-size: 20px;
    }

    .tranMonth {
        font-size: 16px;
    }

    .tranDate,
    .vmTran,
    .tranAmount {
        font-size: 16px;
    }

    .tranIcon {
        width: 35px;
        height: 35px;
    }
}

.helpHeading {
    font-size: 35px;
    text-align: center;
    color: black;
    font-weight: 600;
    margin-bottom: 20px;
}

.iconClass, .contactIcon {
    width: 10vw;
    height: auto;
    max-width: 48px;
}

.helpText {
    flex-grow: 1;
    font-size: 4vw;
    max-width: 75%;
    color: black;
    text-align: center;
}

.contactHeading {
    font-size: 30px;
    text-align: center;
    margin-top: 25%;
    color: black;
    font-weight: 500;
}

.contactText {
    font-size: 4vw;
    color: black;
    text-align: left;
}

.text{
    text-align:center;
}

/* Ensure that the layout is more compact on smaller devices */
@media (max-width: 768px) {

    .helpText, .contactText {
        font-size: 5vw;
    }

    .iconClass, .contactIcon {
        margin-bottom: 10px;
    }
}

.machineImg {
    border-radius: 10px;
    background-color: white;
    width: 163px;
    height: 171px;
    display: grid;
    margin: auto;
}