body {
    font-family: 'Cascadia Code', monospace;
    margin: 0;
    padding: 0;
    color: #00ff00;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

#dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 3rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 255, 0, 0.3);
}

h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 255, 0, 0.5);
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00ff00;
}

p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

#disclaimer {
    color: #00ff00;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #000000;
    color: #00ff00;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    border: 1px solid #00ff00;
}

.btn:hover {
    background-color: #003300;
    transform: scale(1.05);
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.5);
}

#chat-window {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 255, 0, 0.3);
}

#messages {
    height: 400px;
    overflow: hidden;
    background-color: #000000;
    background-image: 
        linear-gradient(rgba(0,255,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,0,0.05) 1px, transparent 1px),
        linear-gradient(rgba(0,255,0,0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0,255,0,0.03) 2px, transparent 2px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

#messages-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.local-message,
.remote-message,
.system-message {
    font-family: 'Cascadia Code', monospace;
    font-weight: 600;
    font-size: 1.2rem;
    color: #00ff00;
    text-shadow: 1px 1px 2px rgba(0, 255, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.local-message {
    align-self: flex-end;
    background-color: #111111;
}

.remote-message {
    align-self: flex-start;
    background-color: #222222;
}

.system-message {
    align-self: center;
    background-color: #333333;
    color: #00ff00;
    font-style: italic;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#message-input {
    flex: 1;
    padding: 1rem;
    background-color: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 8px;
}

#send-message, #end-chat {
    padding: 1rem 1.5rem;
    background-color: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#send-message:hover, #end-chat:hover {
    background-color: #003300;
    transform: scale(1.05);
}

.spinner {
    border: 4px solid #333333;
    border-top: 4px solid #00ff00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#user-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.bubble {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.gray {
    background-color: #808080;
}

.green {
    background-color: #00ff00;
}
