body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

.control-button {
    padding: 10px;
    margin-bottom: 20px;
}

.category {
    margin-bottom: 20px;
}

.category h2 {
    margin: 0 0 10px;
}

.phrases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phrase {
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    background-color: #f0f0f0;
    transition: background-color 0.2s ease, transform 0.1s ease;
    color: #000;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.phrase:hover {
    filter: brightness(90%);
    transform: scale(1.03);
}

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 320px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    z-index: 1000;
}

#popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#popup h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#popup p {
    font-size: 18px;
    margin: 12px 0;
    color: #555;
}

#stop-audio {
    padding: 12px 24px;
    background-color: #e53935;
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
}

#stop-audio:hover {
    background-color: #c62828;
}
