@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --primary-color: #FFD700;
    --secondary-color: #FFA500;
    --background-color: #1A1A1A;
    --container-color: #2A2A2A;
    --text-color: #FFFFFF;
    --box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background-color: var(--container-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

textarea, input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
    transition: all 0.3s ease;
    border-radius: 5px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 5px var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover {
    background-color: var(--secondary-color);
}

button:disabled {
    background-color: #555555;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

#loading {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: var(--primary-color);
}

#retryMessage {
    color: #FF6B6B;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

#avatarContainer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.avatar {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.avatar.active {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.avatar .visualizer {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.avatar .bar {
    width: 4px;
    background-color: var(--background-color);
    transition: height 0.1s ease;
}

.avatar .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1);
    transition: transform 0.1s ease;
}

#audienceQuestionInput {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: var(--background-color);
}

#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: 5px;
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

#notification.show {
    opacity: 1;
}

#statusMessage {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: var(--primary-color);
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}