/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    text-align: center;
}

/* Header Styling */
.header {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
}

/* Logo Styling */
.logo {
    border-radius: 50%;
    margin: 10px auto;
    display: block;
    border: 3px solid #ddd;
}

/* Image Container */
.image-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.image-item img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.image-item p {
    font-size: 1rem;
    color: #444;
}

/* Section Styling */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    padding: 20px;
    max-width: 600px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
label {
    font-size: 1rem;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

input[type="text"] {
    width: calc(100% - 110px);
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    padding: 8px 15px;
    font-size: 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #45a049;
}

output {
    display: block;
    font-size: 20px;
    color: #4CAF50;
    margin-top: 10px;
    font-weight: bold;
}

/* Remaining Balance Styling */
#remaining-balance {
    background-color: #6dd471;
    color: red;
    font-size: 24px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin: 20px auto;
    width: fit-content;
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Ensure modal is above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Transaction List */
#transaction-list {
    list-style-type: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

#transaction-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#transaction-list li:last-child {
    border-bottom: none;
}

