body {
    font-family: 'Montserrat', sans-serif;
    color: black;
    background: whitesmoke;
}

a {
    color: inherit;
    text-decoration: none;
}

#chat-header-icon {
    /* padding-top: 10px;
    padding-left: 10px; */
    width: 60px; /* ajuste la taille de l'image selon tes besoins */
    height: 60px;
    object-fit: cover;
}

h1 {
    font-size: 14px;
    padding-top: 10px ;
    left: 25px;
    text-align: left ;
    margin-bottom: 3px;
}

h2 {
    font-size: 13px;
    left: 25px;
    text-align: left;
    padding-bottom: 10px ;
    font-weight: normal;
    margin-top: 3px;
}

#app {
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

#chat-header {
    display: flex;
    align-items: center; /* centre verticalement l'image et le texte */
    gap: 16px; /* espace entre les colonnes */
    padding-left: 16px;
}

#chat-header-text {
    display: flex;
    flex-direction: column; /* h1 au-dessus du h2 */
    justify-content: center; /* centre verticalement le texte si besoin */
    padding-right: 10px;
}

.js-modal-close{
 	position: absolute;
	top: 20px;
	right: 20px;
	border-radius: 30%;
	box-shadow: none;
	border: none;
	/* padding: 2px; */
	height: 30px;
    width: 30px;
}

.js-modal-close:hover {
 	border-radius: 0;
}

.js-modal-new{
 	position: absolute;
	top: 20px;
	right: 60px;
	border-radius: 30%;
	box-shadow: none;
	border: none;
	/* padding: 2px; */
	height: 30px;
    width: 30px;
}

.message-group-received {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.message-group-received > div:first-child {
    margin-top: auto;
    margin-right: 5px;
}

.message-group-received > div:last-child {
    flex-grow: 1;
}

.message-group-received > div:first-child > img {
    border-radius: 50%;
    height: 25px;
    width: 25px;
}

.message-received {
    max-width: 75%;
    margin: 2px 0;
    display: flex;
}

.message-received:first-child > .message-received-text {
    border-top-left-radius: 20px;
}

.message-received:last-child > .message-received-text {
    border-bottom-left-radius: 20px;
}

.message-received-text {
    padding: 10px;
    min-height: 20px;
    background: white;
    border-radius: 4px 20px 20px 4px;
}

.message-group-sent {
    width: 100%;
    margin-bottom: 20px;
    text-align: right;
}

.message-sent {
    max-width: 75%;
    display: flex;
    margin: 2px 0 2px auto;
}

.message-sent-text {
    background: #7dcbff;
    border-radius: 20px 4px 4px 20px;
    min-height: 20px;
    padding: 10px;
    margin-left: auto;
}

.message-sent:first-child > .message-sent-text {
    border-top-right-radius: 20px;
}

.message-sent:last-child > .message-sent-text {
    border-bottom-right-radius: 20px;
}

.message-sent-status {
    width: 15px;
    display: flex;
    margin-left: 5px;
    font-size: 15px;
    color: rgba(35, 36, 37, 0.5);
}

.message-sent-status > img {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-top: auto;
}

.message-sent-status > i {
    margin-top: auto;
}

#footer {
    text-align: center;
    padding: 10px 0 0 0;
}

#footer div > img {
    height: 20px;
    vertical-align: middle;
    margin-right: 1px;
}

body, html {
    margin: 0;
    padding: 0;
}

* { box-sizing: border-box; }

*:focus {
  box-shadow: 0 0 10px grey ;  
}

.modal {
    position: absolute;
    /* display: flex; */
    /* align-items: right; */
    /* justify-content: right; */
    padding-right: 20px;
    bottom: 90px;
    right: 90px;
    width: 50%;
    height: auto;
    background-image: rgba(0, 0, 0, 0.8) ;
    animation: fadeIn .3s both;
}

.modal-wrapper {
    overflow: auto;
    width: 400px;
    height: auto;
    max-width: calc(100vw - 20 px);
    max-height: calc(100vw - 20 px);
    padding: 10px 10px 10px 10px ;
    background-color: #FFF;
    animation: slideFromTop .3s both;
    font-size: 12px;
    /* box-shadow: 5px 5px 5px lightgray ; */
    box-shadow: 0 1px 3px #0000001a,0 1px 2px #0000000f;
    border-radius: 10px;
    background-color: rgb(241, 236, 230);
}

.modal[aria-hidden="true"] {
    animation-name: fadeOut
    /*animation-direction: reverse*/
}

.modal[aria-hidden="true"] .modal-wrapper{
    animation-name: slideToBottom
    /*animation-direction: reverse*/
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; } to { opacity: 0; }
}

@keyframes slideFromTop {
    from { transform: translateY(-50px); } to { transform: translateY(0px); }
}

@keyframes slideToBottom {
    from { transform: translateY(0px); } to { transform: translateY(50px); }
}

#prompt {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 12px;
    border-radius: 4px;
    margin-left: auto;
    display: flex;
    margin: 2px 20px 2px auto;
    font-family: 'Montserrat', sans-serif;
}

/* #chat-content-all {
    position: relative; 
} */

#presentation {
    text-align: center;
    /* font-size: 14px; */
    /* position: fixed; */
    /* position: absolute; */
    position: relative;
    height: 480px;
}

#presentation-icon {
    padding-top: 10px;
    padding-bottom: 20px;
    width: 120px;
    /* border-radius: 5px; */
}
/* 
#presentation-icon > img {
    border-radius: 50%;
} */

#presentation-botname {
    font-weight: bold;
    padding-bottom: 5px;
    font-size: 14px;
}

#presentation-descrip {
    padding-bottom: 40px;
    font-size: 13px;
}

#presentation-group {
    position: absolute;
    left: 0; 
    right: 0; 
    bottom: 0;
}

#chat-header {
    background: #c8bbaa;
    border-radius: 5px;
}

#chat-content {
    height: 500px;
    overflow-y: auto; /*scroll*/
    padding-left: 15px;
    padding-right: 15px;
    /* border: 1px solid #ccc;  optionnel, juste pour voir la zone */
}

#chat-footer {
    overflow: hidden;
    padding-top: 15px;
}

#bubble {
    font-size: 40px;
    position: absolute;
    bottom: 15px;
    right: 10px;
}

#bubble a {
    color: lightskyblue;
    opacity: 0.5;
    border-radius: 35%;
    /*border: 1px solid black;*/
    padding: 4px ;
    /* background-color: grey; */
}

#bubble a:hover {
    opacity: 1;
    /* background-color: lightgray; */
    box-shadow: 0 1px 3px #0000001a,0 1px 2px #0000000f;
}