@import url('globales.css');

.card-character-content{
    display: none;
    background: rgba(23, 23, 23, 0.70);
}
.card-p{
    text-align: justify;
    color: rgb(147 157 165);
}

/* SECCION DE CHAT---------------------------- */
.section-chat{
    background-color: rgba( 217, 194, 194, 0.7);
    width: 80%;
    height: 40rem;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px;
    overflow-y: auto;
}

#section-profile{
    background-color: var(--color-withe);
    width: 100%;
    border-radius: 23px 23px 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 5px;
    flex-wrap: wrap;
    color: var(--color-black);
    
}

.image-profile{
    width: 4rem;
    height: 4rem;
    margin: 8px;
    border-radius: 50%;
}
.name-profile{
    color: var(--color-black);
    margin: 0;
    font-size: 1.25rem;
    text-align: start;
}

.shortD-profile{
    text-align: start;
    color: var(--color-black);
    font-size: 14px;
}

.description-profile{
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-chat{
    width: 90%;
    height: 4rem;
    background-color: var(--color-withe);
    border-radius: 25px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 5px 0;
}
#input-chat{
    border: none;
    width: 70%;
    background: transparent;
    outline: none;
    color: var(--color-black);
    font-size: 1rem;
    padding: 0;
    resize: none;

}
#send-message{
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-blue);
}
#messages{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
}


.user-message{
    background-color: var(--gris-chat);
    box-shadow: 5px var(--color-black);
    max-width: 15rem;
    border-radius: 15px 15px 0;
    text-align: left;
    padding: 0.5rem;
    align-self: flex-end;
}

.system-reply{
    background-color: var(--color-withe);
    color: var(--color-black);
    box-shadow: 5px var(--color-black);
    max-width: 15rem;
    border-radius: 0 15px 15px;
    text-align: right;
    padding: 0.5rem;
    align-self: flex-start;
    
}

@media (min-width:1024px) {
    .main-content-chat{
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .card-character-content{
        background-color: var(--color-black);
        width: 20%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 3rem;
        
    }
    .card-character-title{
        background-color: var(--color-red);
        width: 100%;
        font-size: 3rem;
        border-left: 2rem solid var(--color-black);
        border-bottom: 2rem solid var(--color-black);
        margin: 0;
    }
    .card-p{
        font-size: 1.25rem;
        font-weight: 400;
    }
    
    .card-content-facts{
        display: flex;
        flex-direction: row;
        gap: 3rem;
    }
    .card-character-ul{
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: justify;
    }
    .card-div-image{
        width: 80%;
        /* height: auto; */
        background-position: top center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .card-img{
        width: 80%;
        height: auto;
    }
    
    .card-character-facts{
        font-size: 1.25rem;
    }
    
    .facts-span{
        font-size: 1.25rem;
    }
/* -------------CHAT----------------- */
    .section-chat{
        width: 50rem;
        height: 55rem;
        margin: 1rem 15rem;
    }

    #section-profile{
        width: 100%;
        justify-content: flex-start;
    }

    .name-profile{
        font-size: 2rem;
    }

    .shortD-profile{
        font-size: 1.25rem;
    }

    .image-profile{
        width: 6rem;
        height: 6rem;
        margin: 1rem;
    }
    .user-chat{
        height: 6rem;
        justify-content: space-between;
        padding: 0 2rem;
    }

    #input-chat{
        font-size: 1.25rem;
        width: 90%;
    }

    .user-message{
        padding: 1rem;
        font-size: 1.25rem;
        max-width: 25rem;
        border-radius: 25px 25px 0;
    }
    
    .system-reply{
        font-size: 1.25rem;
        max-width: 25rem;
    }
}