body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #000000; /* Fundo cinza claro */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.chat-container {
    background-color: #000000;
    border: 2px solid #31bda5;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

h1 {
    color: #ffffa1;
    letter-spacing: 2px;
    border: 2px solid #ffffa1;
    border-radius: 10px;
    background-color: #dc3545;
    margin-bottom: 25px;
    font-size: 2.5em;
}

.conversation-display {
    width: 100%;
    height: 400px; /* Altura fixa para a área de conversa */
    border: 1px solid #ffffa1;
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto; /* Rolagem para mensagens */
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #000000; /* Fundo para a área de mensagens */
}

/* Scrollbar styling */
.conversation-display::-webkit-scrollbar {
    width: 8px;
}
.conversation-display::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.conversation-display::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.conversation-display::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word; /* Quebra de linha para palavras longas */
}

.bot-message {
    background-color: #000000;
    border: 2px solid #ffffa1;
    color: #ffffa1;
    align-self: flex-start; /* Alinha à esquerda */
    border-bottom-left-radius: 2px; /* Canto reto para o balão do bot */
}

.user-message {
    background-color: #000000;
    border: 2px solid #ffffa1;
    color: #ffffa1;
    align-self: flex-end; /* Alinha à direita */
    border-bottom-right-radius: 2px; /* Canto reto para o balão do usuário */
}

.choices-area {
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* Permite que os botões quebrem a linha */
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.choice-button, .action-button {
    background-color: #31bda5; /* Cinza para botões de escolha */
    color: #000000;
    font-weight: 600;
    border: 2px;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.choice-button:hover, .action-button:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.choice-button:active, .action-button:active {
    transform: translateY(0);
}

.action-button {
    background-color: #dc3545; /* Vermelho para o botão de reiniciar */
    margin-top: 15px;
    width: auto;
}

.action-button:hover {
    background-color: #c82333;
}

/* Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.modal-content p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #ffffa1;
}

.modal-content .action-button {
    background-color: #ffffa1;
    padding: 8px 20px;
    font-size: 1em;
    max-width: 100px;
    margin: 0 auto;
}

/* Responsividade */
@media (max-width: 600px) {
    .chat-container {
        padding: 20px;
        width: 95%;
    }
    h1 {
        font-size: 2em;
    }
    .conversation-display {
        height: 300px; /* Altura menor em telas pequenas */
    }
    .message {
        max-width: 90%;
    }
    .choice-button, .action-button {
        width: 100%; /* Botões de escolha em coluna */
    }
    .modal-content {
        padding: 20px;
        width: 90%;
    }
}
