.summary-bar {
    width: 100%;
    padding: 20px;
    background: #1e1e1e;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.summary-item {
    flex: 1 1 calc(25% - 20px);
    /* Equal width for four items, with gap adjustment */
    text-align: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    transition: transform 0.2s, background 0.3s;
}

.summary-item:hover {
    background: #333;
    transform: translateY(-5px);
}

.summary-item h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #ff5722;
}

.summary-item p {
    font-size: 20px;
    margin: 0;
    font-weight: bold;
    color: #f0f0f0;
}

.donate-button-container {
    flex: 1 1 100%;
    /* Full-width button on all screen sizes */
    text-align: center;
    margin-top: 10px;
}

.donate-button {
    padding: 12px 25px;
    background: #ff5722;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.donate-button:hover {
    background: #ff784e;
}

.marquee-container {
    width: 100%;
    background: #1c1c1c;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-top: -10px;
    margin-bottom: -10px;
}

.marquee {
    display: inline-block;
    animation: scroll 100s linear infinite;
    color: #f0f0f0;
    font-size: 16px;
}

.marquee-container:hover .marquee {
    animation-play-state: paused;
    /* Pause the marquee animation on hover */
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .summary-item {
        flex: 1 1 100%;
        /* Single-column layout on smaller screens */
    }
}

/* Desktop Mode */
@media (min-width: 992px) { /* For large screens (desktop mode) */
.transaction-container {
max-height: 250px;
overflow-y: auto;  /* Allow vertical scrolling if content exceeds max height */
}
}

/* Mobile and tablet mode (if you want different behavior on smaller screens) */
@media (max-width: 991px) {
.transaction-container {
max-height: 300px; /* No max height for smaller screens */
overflow: auto; /* Allow content to expand */
}
}
