body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: black;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Cursor Character Style */
.cursor-char {
    position: absolute;
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: bold;
    color: #00ff00; /* Neon Green */
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    transition: transform 0.2s ease-out, opacity 0.5s ease-out;
}

/* Fading Effect */
@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-10px) scale(0.8); }
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#matrix-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.container {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px; /* Reduced padding */
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.5);
    margin: auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.logo {
    width: 250px;
    height: auto;
}

.hidden {
    display: none;
}

h2 {
    font-size: 18px;
    color: #00ff00;
    margin: 8px 0;
}

.input-field {
    width: calc(100% - 20px); /* Ensure proper spacing */
    max-width: 360px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    background: #111;
    color: #00ff00;
}

.activate-btn, .play-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    background: linear-gradient(90deg, #00ff00, rgb(0, 139, 0), #00ff00);
    background-size: 300% 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: gradient-shine 7s linear infinite;
}

.activate-btn:hover, .play-btn:hover {
    transform: scale(1.05);
}

@keyframes gradient-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
} 

/* Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 8px;
    border: 2px solid #00ff00;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px #00ff00, 0 0 20px #004400;
}

.marquee p {
    display: inline-block;
    color: #00ff00;
    font-size: 16px;
    animation: scroll-text 10s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Responsive Data Table */
.table-container {
    width: 100%;
    overflow-x: auto; /* Allow scrolling inside container */
}

.data-table {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures consistent column width */
}

.data-table th, .data-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #00ff00;
    color: #00ff00;
    word-wrap: break-word; /* Ensures text stays within the cell */
    font-size: 14px;
}

/* Ensures no overflow issues */
.data-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

/* Loading Status */
#loading-status {
    color: #00ff00;
    font-size: 16px;
    margin: 10px 0;
}

/* Style for the provider success message */
#provider-success {
    display: none;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 15px 0;
    padding: 15px 25px;
    background-color: black;
    color: #00ff00; /* Neon Green */
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 0 40px rgba(0, 255, 0, 0.6), inset 0 0 10px rgba(0, 255, 0, 0.5);
    text-shadow: 0 0 12px #00ff00, 0 0 24px #00ff00, 0 0 36px #00ff00;
    letter-spacing: 2px;
    animation: flicker 2s infinite alternate;
}

/* Smooth glowing border effect */
#provider-success::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 8px;
    border: 3px solid transparent;
    box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00, inset 0 0 10px #00ff00;
    animation: move-border 3s linear infinite, neon-pulse 1.5s infinite alternate;
}

/* Subtle neon pulse animation */
@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00, inset 0 0 10px #00ff00;
    }
    100% {
        box-shadow: 0 0 25px #00ff00, 0 0 50px #00ff00, inset 0 0 15px #00ff00;
    }
}

/* Moving border animation for a futuristic cyber look */
@keyframes move-border {
    0% { border-color: transparent #00ff00 transparent transparent; }
    25% { border-color: transparent transparent #00ff00 transparent; }
    50% { border-color: transparent transparent transparent #00ff00; }
    75% { border-color: #00ff00 transparent transparent transparent; }
    100% { border-color: transparent #00ff00 transparent transparent; }
}

/* Flickering effect to mimic a hacking terminal */
@keyframes flicker {
    0% { opacity: 1; }
    25% { opacity: 0.9; }
    50% { opacity: 1; }
    75% { opacity: 0.85; }
    100% { opacity: 1; }
}

/* RTP Button Styles */
#rtp-btn {
    background: linear-gradient(45deg, #00ff00, #00cc99, #009900, #00ffcc);
    background-size: 400% 400%;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6), 0 0 20px rgba(0, 255, 0, 0.4);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

/* Animation for moving gradient */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#rtp-btn {
    animation: gradientAnimation 3s ease infinite;
}

/* Button Hover Effects */
#rtp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.9), 0 0 30px rgba(0, 255, 0, 0.7);
}

/* Focus/Active Button Effects */
#rtp-btn:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.9), 0 0 30px rgba(0, 255, 0, 0.8);
}

#rtp-btn:active {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6), 0 0 20px rgba(0, 255, 0, 0.4);
}

/* Countdown timer styling */
#room-timer {
    font-size: 18px;
    font-weight: bold;
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .container {
        margin: 10px auto;
    }

    .data-table th, .data-table td {
        padding: 6px;
        font-size: 12px; /* Smaller font on mobile */
    }

    .marquee p {
        font-size: 14px;
    }
}

/* Initially hide the confirmation message */
#confirmation-message {
    display: none;
    font-size: 16px;
    font-weight: bold;
    color: #ff0000; /* Red text to grab attention */
    text-align: center;
    margin-top: 10px;
    animation: fadeIn 1s ease-in-out;
}

/* Show the message when it becomes visible */
#confirmation-message.show {
    display: block;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive design for mobile */
@media (max-width: 600px) {
    #transaction-popup {
        font-size: 12px; /* Smaller font size for mobile */
        padding: 8px 12px; /* Less padding */
        width: 95%; /* Ensures the popup doesn't overflow on smaller screens */
    }
}

/* Footer */
.footer {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #00ff00;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}