@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');
body {
    margin: 0;
    padding: 0;
    /*font-family: 'Courier New', monospace;*/
    font-family: 'Roboto Mono', monospace;
    background-color: #000;
    color: #0f0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 80%;
    max-width: 600px;
    height: 80vh;
    border: 1px solid #0f0;
    display: flex;
    flex-direction: column;
}

#chat-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column-reverse;
    animation: glow 5s infinite;
}

.message {
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    max-width: 70%;
}

.user-message {
    align-self: flex-end;
    background-color: #001a00;
    animation: glow 5s infinite, text-glow 5s infinite;
}

.void-message {
    align-self: flex-start;
    background-color: #1a0000;
    color: #f00;
    animation: glow 5s infinite;
    --glow-color: #f00;
}

.input-area {
    display: flex;
    padding: 10px;
    animation: glow 5s infinite;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--glow-color, #0f0);
    }
    50% {
        box-shadow: 0 0 15px var(--glow-color, #0f0);
    }
    100% {
        box-shadow: 0 0 5px var(--glow-color, #0f0);
    }
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 5px var(--glow-color, #0f0);
    }
    50% {
        text-shadow: 0 0 15px var(--glow-color, #0f0);
    }
    100% {
        text-shadow: 0 0 5px var(--glow-color, #0f0);
    }
}

#user-input {
    flex-grow: 1;
    background-color: #001a00;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 5px 10px;
    font-family: inherit;
    /* Glow, animated*/
    animation: glow 5s infinite, text-glow 5s infinite;
}

#send-btn {
    background-color: #003300;
    color: #0f0;
    border: 1px solid #0f0;
    padding: 5px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-family: inherit;
    animation: glow 5s infinite, text-glow 5s infinite;
}

#send-btn:hover {
    background-color: #004d00;
}


/* Add a creepy flicker effect */

@keyframes flicker {
    0% {
        opacity: 0.8;
    }
    5% {
        opacity: 0.9;
    }
    10% {
        opacity: 0.8;
    }
    15% {
        opacity: 1;
    }
    20% {
        opacity: 0.9;
    }
    25% {
        opacity: 0.8;
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

body {
    animation: flicker 5s infinite;
}