/* General styles */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container for centering content */
.container {
    text-align: center;
}

/* Title styling */
.title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in;
}

/* Conversation box */
.conversation {
    max-width: 600px;
    margin: 0 auto 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    height: 200px;
    overflow-y: auto;
    border-left: 5px solid #3498db;
}

/* Start button */
.start-button {
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: bounce 2s infinite;
}

.start-button:hover {
    background-color: #2980b9;
}

/* Microphone container and icon */
.mic-container {
    margin: 20px 0;
    text-align: center;
}

.mic {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-shadow: 0px 4px 15px rgba(52, 152, 219, 0.5);
}

.mic:before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background-color: #fff;
}

/* Animation for microphone when listening */
@keyframes micPulse {
    0% {
        transform: scale(1);
        box-shadow: 0px 4px 15px rgba(52, 152, 219, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0px 4px 25px rgba(52, 152, 219, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0px 4px 15px rgba(52, 152, 219, 0.5);
    }
}

/* Conversation bubble for messages */
.conversation p {
    background-color: #ecf0f1;
    border-radius: 15px;
    padding: 10px;
    margin: 10px 0;
    display: inline-block;
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
}

.conversation p strong {
    color: #2c3e50;
}

/* Speaking animation for Assistant */
.speaking {
    border-left: 5px solid #3498db;
    background-color: #dfe6e9;
    animation: glow 1.5s infinite alternate;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Button bounce effect */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Glow animation for speaking */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px #3498db;
    }
    100% {
        box-shadow: 0 0 20px #3498db;
    }
}
