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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    font-style: italic;
}

.input-section {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
}

.btn.secondary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.status-section {
    margin-bottom: 2rem;
}

.status-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.mouth {
    width: 80px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    position: relative;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.mouth-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 30px;
    background: #000;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mouth.speaking {
    animation: speak 0.5s infinite alternate;
}

.mouth.speaking .mouth-inner {
    animation: mouth-move 0.3s infinite alternate;
}

@keyframes speak {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes mouth-move {
    0% { height: 30px; }
    100% { height: 5px; }
}

.info-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
    font-size: 1.3rem;
}

.info-section p {
    line-height: 1.6;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

