/* styles.css */
body {
    margin: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #0e0e0e, #00250c);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    font-family: Arial, sans-serif;
    max-width: 80%;
    width: auto;
    margin: 0 auto;
    overflow-y: auto; /* Permitir scroll */
    padding-bottom: 50px; /* Espacio para la sección de sponsors */
}

#logo {
    margin-top: 20px;
    width: 150px;
    z-index: 2;
}

.view {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.view.active {
    display: flex;
    width: 100%;
}

#initial-view input,
#chat-view input {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    width: 93%;
    max-width: 400px;
    border-radius: 5px;
    border: none;
}

#initial-view .button,
#chat-view .button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #078a3e;
    color: #fff;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#initial-view .button span.material-icons,
#chat-view .button span.material-icons {
    margin-right: 5px;
}

#initial-view .button:hover,
#chat-view .button:hover {
    background-color: #36b76d;
}

#chat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%; /* Ajuste para permitir el scroll en dispositivos móviles */
    overflow-y: auto; /* Permitir scroll */
}

#chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    color: #fff;
}

.profile,
.session-info {
    display: flex;
    align-items: center;
}

.profile-icon,
.session-icon {
    font-size: 24px;
    margin-right: 10px;
}

#chat-history {
    width: 90%;
    max-width: 600px;
    flex: 1; /* Ajuste para ocupar el espacio disponible */
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

#chat-history .message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #444;
    border-radius: 5px;
    padding: 5px;
    margin: 5px 0;
    color: #fff;
    width: 100%;
}

#chat-history .message .message-content {
    display: flex;
    align-items: center;
    width: 100%;
}

#chat-history .message .message-text, #chat-history .message .message-text img {
    width: 100%;
    text-align: left;
}

#chat-history .user-message {
    background: #333;
}

#chat-history .response-message {
    background: #555;
}

.message-icon {
    font-size: 20px;
    margin-right: 10px;
}

.message-sender {
    font-weight: bold;
    margin-right: 5px;
}

#chat-input {
    padding: 10px;
    font-size: 16px;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    border: none;
}

#sponsors {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7); /* Fondo para mejor visibilidad */
    z-index: 2;
}

#sponsors img {
    margin: 0 20px; /* Espacio entre los logos */
    width: auto;
    height: 25px; /* Reducir el tamaño al 50% */
}

#chat-container {
    margin-bottom: 10px; /* Espacio para el botón de envío y sponsors */
    max-height: 600px;
}
#send-button{
    width: 100%;
}
/* Media Queries */
@media (max-width: 768px) {
    #content {
        padding-bottom: 80px; /* Ajuste para dispositivos móviles */
    }

    #sponsors {
        flex-wrap: wrap;
    }

    #sponsors img {
        margin: 5px 10px;
        height: 20px; /* Ajustar tamaño para dispositivos móviles */
    }
    
    #chat-view {
        flex: 1; /* Ajuste para ocupar el espacio disponible */
    }

    #chat-container {
        margin-bottom: 10px; /* Espacio para el botón de envío y sponsors */
        max-height: 450px;
    }

    #chat-inputs {
        width: 90%;
        max-width: 600px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 10px;
        padding: 10px;
    }
    
}
