/* Google Fonts */
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* Global */
body {
    font-family: 'Anonymous Pro', monospace;
    background-color: #000000;
    font-size: 16px;
    color: #00ff00;
}

/* Logo and Button */
.logo-container {
    position: fixed;
    top: 0;
    right: 1.5em;
    width: 8%;
    height: 20%;
    align-items: center;
    max-width: 7.5em;
    z-index: 2;
}

.logo-container .logo img {
    width: 100%;
    height: auto;
}

/* Chat Container */
#chat-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 30px;
    overflow-y: auto;
}

#chat-container {
    padding: 10px;
    margin-right: 12%;
    padding-bottom: 30px;
}

#chat-container p {
    margin: 5px 0;
}

/* Form */
.form {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

#chat-form {
    width: 100%;
    height: 100%; 
    display: flex;
    align-items: center;
}

#clear-form {
    height: 100%; 
    display: flex;
    align-items: center;
}

#user_input {
    width: 100%;
    border: 3px solid #00ff00;
    border-right: none;
    padding-right: 5px;
    padding-left: 5px;
    height: 22px;
    outline: none;
    color: white;
    background-color:black;
    font-family: 'Anonymous Pro', monospace;
    font-size: 14px;
}

#send-button, #clear-button {
    width: auto;
    height: 100%;
    border: 1px solid #00ff00;
    background: #00ff00;
    text-align: center;
    cursor: pointer;
}

#send-button img, #clear-button img {
    width: 26px;
    height: 100%;
}

/* Animation */
#latest-ai-message {
    color:#0000;
    background:
        linear-gradient(-90deg,#00ff00 5px,#0000 0) 10px 0,
        linear-gradient(#00ff00 0 0) 0 0;
    background-size:calc(var(--n)*1ch) 200%;
    -webkit-background-clip:padding-box,text;
    background-clip:padding-box,text;
    background-repeat:no-repeat;
    animation: 
        b .3s infinite steps(1),   
        t calc(var(--n)*.01s) steps(var(--n)) forwards;
}
  
@keyframes t{
    from {background-size:0 200%}
}

@keyframes b{
    50% {background-position:0 -100%,0 0}
}
