﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    height:100vh; 
    margin-bottom: 65px;
    /*height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;*/
}

.content {
    flex: 1;
    overflow: hidden; /* Evita el desbordamiento */
}

.headerlogin,
.header-chat {
    margin: 0;
    padding: 0;
    height: 65px;
    background: #E20D1D;
    /*background: linear-gradient(90deg,rgba(215, 55, 50, 1) 0%, rgba(252, 220, 72, 1) 51%, rgba(0, 119, 255, 1) 92%);*/
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.divexit {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 160vh;
}

.option {
    margin-left: 20px;
    margin-top: 20px;
    margin-right: 4px;
}

    .option img {
        width: 23px; 
        cursor:pointer; 
    }


.footerlogin {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    /*background-color: #0077FF;*/
    padding: 18px 0;
    z-index: 100;
    color: black;
    font-size: 10px;
}

.welcomemessage {
    display: flex; 
    flex-direction: column; 
    gap: 4vh; 
    align-items: center; 
}

    .welcomemessage img {
        width: 300px;
        height: 100px;
        /*filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.46)) blur(0px);*/
    }

.msjWelcome {
    color: #585857;
    font-weight: bold;
}


.fields {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px 15px; 
    align-items: center; 
}

.field {
    display: contents; 
}

.datos {
    text-align: left;
    padding-right: 10px;
    color: #00020e;
}

.textbox {
    width: 100%;
    height: 28px;
    box-shadow: 0px 0px 1px 1px #80808024 inset, 0px 0px 3px 1px #80808063;
    border: none;
    border-radius: 7px;
    padding: 6px;
    color: #565a5a;
    outline: none; 
}

    .textbox:focus {
        border: 1px solid #6c6c6c;
    }

.dropdowmList {
    background: white;
    border: 0;
    box-shadow: 0px 0px 1px 1px #80808024 inset, 0px 0px 3px 1px #80808063;
    height: 27px;
    padding-left: 6px;
    border-radius: 3px;
    color: #101f6c;
    cursor: pointer;
}

.divbtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-top: 60px;
}

    .divbtn input {
        width: 250px;
        background: #585857;
        border: none;
        color: white;
        height: 35px;
        border-radius: 20px;
        cursor: pointer;
    }

.webchat_text_chat {
    height: 100%;
    width: 100%;
}

#webchat_user_input {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 30px; 
}

.divexit {
    margin-right: 10px;
}

.webchat-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    width: 100%;
    position: relative;
    height: calc(100vh - 65px); /* Ajusta según el alto de .header-chat y .footerlogin */
    overflow: hidden;
}


    .webchat-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color:white; 
        /*background-image: url('/img/huella-dactilar.png');
        background-repeat: repeat-x;
        background-size: contain;
        background-position: center;
        filter: blur(5px); /* Aplica el difuminado 
        z-index: -1;  Coloca la imagen detrás del contenido */
    }

    /*.webchat-container > * {
        position: relative;
        z-index: 1;*/ /* Asegura que el contenido esté por encima del fondo difuminado */
    /*}*/


.webchat-container-wrapper {
    display: flex;
    flex-direction: column; /* Asegura que los elementos estén en columna */
    width: 100%; /* Asegúrate de que ocupe todo el ancho disponible */
    max-width: 1200px; /* Ajusta el máximo ancho si es necesario */
    height: 100%;
}

.webchat_history,
.text_area_division {
    width: 100%;
    font-family: Arial;
    font-size: 13px;
    color: #6B6267;
    background-color: white;
    padding-left: 20px;
    padding-right: 20px;
}

.webchat_history {
    flex: 1;
    overflow-y: auto;
}

.text_area_division {
    margin-top: auto; /* Empuja el div hacia abajo en el contenedor flex */
}

.msgs {
    display: flex;
    align-items: end;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.msgc {
    display: flex;
    justify-content: right;
    align-items: end;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.msgs img {
    width: 30px;
    height: 30px;
    z-index: 9; 
}

    .msgs img:hover {
        transform: scale(1.1);
    }

.msgc img {
    width: 30px;
    height: 30px;
    z-index: 9; 
}

.messageServer {
    width: 70%;
    margin-left: 1rem;
    background: #e20d1d;
    color: #ffff;
    padding: 1rem 1rem 1.4rem 1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px;
    position: relative;
    word-break: break-word;
}



.messageCustomer {
    width: 70%;
    margin-right: 0.3rem;
    background: #5857578a;
    color: white;
    padding: 1rem 1rem 1.4rem 1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px;
    position: relative;
}

.time {
    position: absolute;
    right: 15px;
    bottom: 5px;
    font-size: 10px;
}

a {
    color: #1c3583;
    word-break: break-word;
}

.background-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #f1f1f1;
    height: 96px;
    /*z-index: 1000;*/ 
}

.text_area_division {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ajusta la altura al 100% de su contenedor */
    width: 100%; /* Ajusta el ancho al 100% de su contenedor */
}

.divtext {
    flex-grow: 1; /* Asegura que ocupe todo el espacio disponible */
    width: 100%; /* Ajusta el ancho al 100% del contenedor padre */
}

    .divtext textarea {
        width: 100%;
        height: 50px;
        resize: none;
        padding: 10px;
        outline: none;
        border: none;
        font-size: 13px;
        border-radius: 12px;
        font-family: sans-serif;
    }

divtext textarea::placeholder {
    color: lightgray;
}

textarea:placeholder-shown {
    font-family: 'Quicksand', sans-serif;
}

textarea:focus {
    outline: none; 
}

.textarea-container {
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 0px 0px 1px 1px #80808024 inset, 0px 0px 3px 1px #80808063;
    padding-left: 3px;
    padding-right: 11px;
    border-radius: 10px;
    background-color:white; 
}

.webchat_text_field {
    width: calc(100% - 60px); /* Ajustar el ancho del textarea para dejar espacio para los íconos */
}

.icons-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.icon {
    margin-left: 10px;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.modal-container {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 2;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.42);
    display: flex;
    justify-content: center;
    align-items: center;
}


.modal-body {
    display: flex;
    flex-direction: column; /* Para alinear elementos verticalmente */
    align-items: center; /* Centra horizontalmente */
    justify-content: center; /* Centra verticalmente */
    text-align: center; /* Centra el texto dentro del div */
    padding: 20px; /* Ajusta el espaciado si es necesario */
    gap: 10px; /* Añade un espacio entre los elementos */
}

    .modal-body img {
        width:20%; 
    }


    .modal-exit {
        width: 20%;
        height: 30%;
        background: white;
        border-radius: 1rem;
        position: relative;
        transition: transform 1s;
        transform: translateY(0);
        overflow: hidden
    }

        .modal-exit .title {
            font-weight: 100;
            font-size: medium;
            text-align: center;
            color: white;
            background-color: #e20d1d;
            padding: 5px;
            margin: 0;
        }

        .modal-exit p {
            text-align: center;
            font-size: 14px;
            display: flex;
            justify-content: center;
            margin-left: 18px;
            margin-right: 18px;
            color: #818181;
        }

.modal-close-exit {
    transform: translateY(-200%);
}

.btnsconfirm {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

    .btnsconfirm input {
        width: 12vh;
        height: 3vh;
        background: #585757e0;
        color: white;
        border: none;
        border-radius: 15px;
        cursor: pointer;
    }

.balls {
    display: flex;
    margin: 1rem;
}

.firstball {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2d2d2d;
    margin-right: 3px;
    animation: bounce 1s ease-in;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.5,0.05,1,.5);
    animation-iteration-count: infinite;
}

.secondball {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0c1c6a;
    margin-right: 3px;
    animation: bounce 1s ease-in;
    animation-delay: 0.5s;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.5,0.05,1,.5);
    animation-iteration-count: infinite;
}

.thirdball {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0c1c6a;
    margin-right: 3px;
    animation: bounce 1s ease-in;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(.5,0.05,1,.5);
    animation-iteration-count: infinite;
}


.panel-end {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - alturaDelFooter); /* Ajusta la altura entre el header y el footer */
}

.header-orange {
    background-color: #e20d1d;
    height: 50px; /* Ajusta el tamaño de la franja  */
    width: 100%;
}

.content-end-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Permite que el contenido crezca entre el header y el footer */
    text-align: center;
    margin-top: 120px;
    color: #565a5a; 
}

.image-end-container {
    margin-bottom: 20px; /* Espacio entre la imagen y el contenido */
}

    .image-end-container img {
        /*filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.46)) blur(0px);*/
        width: 400px;
    }


.endmessage, .bodymessage {
    margin: 10px 0; /* Margen entre mensajes */
}

.btn-end {
    margin-top: 20px;
    width: 25vh;
    height: 35px;
    border: none;
    color: white;
    background: #585857;
    border-radius: 20px;
    text-align: center;
    box-shadow: 1px 1px 1px #4d4d4d;
    cursor: pointer;
}

.hidden {
    display: none;
}

.show {
    display: flex;
}

#fileSelectedInfo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

    #fileSelectedInfo img {
        width: 30px;
        height: 30px;
        margin-right: 10px; /* Espacio entre la imagen y el texto */
    }

    #fileSelectedInfo .icons-container img {
        width: 20px;
        height: 20px;
        margin-left: 10px; /* Espacio entre los íconos */
        cursor: pointer; /* Mostrar cursor de mano al pasar sobre los íconos */
    }

#fileSelectedText {
    flex-grow: 1; /* Ocupa el espacio disponible entre la imagen y los íconos */
}

.file-actions button {
    border: none;
    background: #f9f9f9;
}


/*BOLAS*/
@keyframes bounce {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, 5px, 0);
        background: white;
    }
}


@media only screen and (max-width: 1920px) {
    .modal-exit {
        width: 30%;
    }

    .divexit {
        max-width: 130vh;
    }
}

@media only screen and (max-width: 1536px) {
    .modal-exit {
        width: 30%;
    }

    .divexit {
        max-width: 170vh;
    }
}

