#xumm-popup, #transaction-popup {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
}

#xumm-popup-content, #transaction-popup-content {
    background-color: #fff;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px; 
    text-align: center;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* Box shadow */
    overflow-wrap: break-word; /* Ensure long words break */
    color: #b8860b;
}

#xumm-popup-close, #transaction-popup-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
#xumm-popup-content, #transaction-popup-content qrcode {
    margin-left: auto;
}

#xumm-popup-close:hover,
#xumm-popup-close:focus,
#transaction-popup-close:hover,
#transaction-popup-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#connect-disconnect-wallet {
    margin: 10px 20px 20px 0; /* Add some vertical margin and right margin */
    padding: 10px 20px;
    background-color: #fcb808;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px; /* Slightly larger font */
    transition: background-color 0.3s; /* Smooth transition for hover */
    white-space: nowrap; 
    @media (max-width: 768px) {
        padding: 5px 10px;
        font-size: 12px;
        background-color: #fcb808;
        white-space: normal; 
        margin: 10px 10px 20px 10px;

    }
    
}

.h2_heading {
    color: #b8860b;
    text-align: center;
    font-size: xx-large;
    margin-bottom: inherit;
    margin-top: inherit;
}

#connect-disconnect-wallet:hover {
    background-color: #fcb808;
}

#header-info {
    margin-left: 10px;
}

#qrcode img {
    margin-top: 20px;
}

#account-address-display {
    margin: 10px 20px 10px 0; /* Add some vertical margin and right margin */
    margin-top: 5px;
    font-size: 12px; /* Smaller font size */
    color: #fcb808; /* Darker text color */
    text-align: right; /* Align text to the right */
}

#wallet-address-display {
    background-color: #fcb808;
    color: white;
    padding: 10px 16px; /* Adjusted padding */
    font-size: 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px; /* Rounded corners for consistency */
    margin-right: 20px; /* Add margin to the right to prevent sticking */
    margin-bottom: 20px;

    @media (max-width: 768px) {
        padding: 5px 10px;
        font-size: 8px;
        margin-right: 20px; /* Add margin to the right to prevent sticking */
        margin-bottom: 20px;
        margin-left: 0px;
        margin-top : 0px;

    }
}
#wallet-wrapper {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    margin-top: 20px;
}

#wallet-actions {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    margin-top: 20px;
    position: relative; /* Ensure dropdown is positioned relative to this */
}

.dropbtn {
    background-color: #fcb808;
    color: white;
    padding: 10px 16px; /* Adjusted padding */
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px; /* Rounded corners for consistency */
}

.dropdown-content {
    display: none;
    position: fixed;
    background-color: #fcb808;
    min-width: 200px; /* Ensure the width is sufficient */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 70px; /* Position below the button */
    right: 0; /* Align to the right */
    border-radius: 5px; /* Rounded corners for consistency */
    overflow: hidden; /* Hide overflow */
    @media (max-width: 768px) {
        top: 50px;
    }
}

.dropdown-content button {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    border: none;
    background: none;
    text-align: justify;
}

.dropdown-content button:hover {
    background-color: #f1f1f1;
}