/* Contenido del archivo style.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url('img/Fondo_sistemas.jpg');    
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@keyframes slideInFromBottom {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.chat-container {
    width: 1000px;
    max-width: 95%;
    height: 100vh;
    background-image: url('img/ghe.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 20px 5px rgba(0, 178, 255, 0.7);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100%);
}

.chat-container.is-visible {
    animation: slideInFromBottom 0.8s ease-out forwards;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.user-message, .bot-message {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 70%;
    line-height: 1.4;
}

.user-message {
    align-self: flex-end;
    background-color: #dcf8c6;
}

.bot-message {
    align-self: flex-start;
    background-color: #e5e5ea;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.8);
}

#messageInput {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

#sendBtn {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 20px;
    cursor: pointer;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .chat-container {
        width: 85vw;  /* Ocupa el 90% del ancho de la pantalla */
        height: 85vh; /* Ocupa el 90% del alto de la pantalla */
    }
}

@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        height: 95%;
        max-width: 95%;
        max-height: 95%;
        border-radius: 10px;
    }
    .chat-messages {
        padding: 10px;
    }
}