body {
    margin: 0;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align speaker to the left */
    height: 100vh;
    position: relative; /* For absolute positioning of speaker if needed */
}

#speaker {
    font-size: 96px; /* Adjust size as needed */
    color: #b1c5cc; /* Speaker icon color */
    cursor: pointer;
    padding: 20px; /* Add some padding around the icon */
    user-select: none;
    z-index: 10; /* Ensure speaker is above canvas if they overlap */
    position: relative; /* Crucial for positioning child elements absolutely */
    display: inline-block; /* Or flex, if preferred for icon centering itself */
}

#speaker-prompt-text {
    position: absolute; /* Position relative to the #speaker container */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Fine-tune centering */
    font-size: 12px; /* Smaller font size to fit inside */
    color: #ffffff; /* White text for better contrast, adjust as needed */
    background-color: rgba(0,0,0,0.5); /* Optional: slight background for readability */
    padding: 2px 5px;
    border-radius: 3px;
    font-family: sans-serif;
    user-select: none;
    z-index: 11; /* Ensure text is above the icon glyph if it's also a pseudo-element */
    text-align: center;
    line-height: 1;
    /* Remove margin-left as it's now absolutely positioned */
}

/* Vibration animation for the speaker */
@keyframes vibrate {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.vibrating {
    animation: vibrate 0.3s linear;
}

#waveCanvas {
    position: absolute; /* Position canvas behind the speaker */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; 
    z-index: 1; /* Ensure canvas is behind the speaker */
}

#ear-icon {
    font-size: 96px; /* Same as speaker */
    color: #b1c5cc; /* Same as speaker */
    position: absolute;
    right: 20px; /* Padding from the right edge */
    top: 50%;
    transform: translateY(-50%); /* Vertical centering */
    z-index: 10; /* Same as speaker, above canvas */
    user-select: none;
}