/*----------------------MAIN-------------------------*/
@font-face
{
    font-family: "norwester";
    src: url("fonts/norwester.otf");
}

body
{
    margin:0;
    padding:0;
    display: grid;
    grid-template-columns: 1fr;
    /* grid-template-rows: auto 1fr; */
    grid-template-rows: 20vh 80vh;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh; 
    border-radius: 20px;
    overflow: hidden;

}
/*Pour le responsive*/

@media screen and (max-height: 785px)
{ 
    body
    {
        grid-template-rows: 25vh 75vh;
        
    }
} 

@media screen and (max-height: 685px)
{ 
    body
    {
        grid-template-rows: 27vh 73vh;
        
    }
}

@media screen and (max-height: 585px)
{ 
    body
    {
        grid-template-rows: 32vh 68vh;
        
    }
}

@media screen and (max-height: 485px)
{ 
    body
    {
        grid-template-rows: 38vh 62vh;
        
    }
}

@media screen and (max-height: 415px)
{ 
    body
    {
        grid-template-rows: 45vh 55vh;
        
    }
}

@media screen and (max-height: 350px)
{ 
    body
    {
        grid-template-rows: 50vh 50vh;
        
    }
}

@media screen and (max-height: 315px)
{ 
    body
    {
        grid-template-rows: 55vh 45vh;
        
    }
}

@media screen and (max-height: 290px)
{ 
    body
    {
        grid-template-rows: 60vh 40vh;
        
    }
}

@media screen and (max-height: 265px)
{ 
    body
    {
        grid-template-rows: 62vh 38vh;
        
    }
}

@media screen and (max-height: 250px)
{ 
    body
    {
        grid-template-rows: 65vh 35vh;
        
    }
}

main
{
    /* width: 95vw; */
    width:100vw;
    margin:0 auto;
    display: grid;
    grid-template-rows: 1fr auto auto;
    /* align-content: end; */
    position:relative;
    /* background-color: #ebdef3; */
    background: linear-gradient(0.3turn,#b1a7dd, #d8bbf6);
    border-radius: 0 0 20px 20px;
}


/*----------------------HEADER-------------------------*/
header 
{
    background: rgb(69,16,138);
    background: linear-gradient(90deg, rgba(69,16,138,1) 2%, rgba(61,6,95,1) 30%, rgba(16,5,77,1) 100%);
    align-self: start;
    border-radius: 20px 20px 0px 0px;
    background-size: cover;
    /* OLD STUFF */
    padding: 10px;
    height: 100vh;
}

header img
{
    display: block;
    margin: auto;
    /* OLD STUFF */
    max-width: 100%;
    height: auto;
    /* TEST DE CE MATIN */
    /* max-width: 100vw;
    height:auto;
    width:auto;
    max-height:100vh; */
}

/*----------------------WELCOME-------------------------*/
#welcome img
{
    display: block;
    margin: 0 auto;
}
#welcome p
{
    text-align: center;
}

/*----------------------ANSWERS-------------------------*/

#old-messages
{
    color : #ffffff;
    /* background-color: #ebdef3; */
    background: linear-gradient(0.3turn,#b1a7dd, #d8bbf6);
    overflow-y: scroll;
    overflow-x: hidden;
    max-height:70vh;
    display: flex;
    flex-direction: column-reverse;
    margin-top: 10px;
    /* padding: 10px; */


}

.robot-message
{
    display: grid;
    grid-template-columns: 70px auto;
    margin: 10px;
    margin-left: 0;
    
}

.robot-avatar
{
    border-radius: 50%;
    align-self: end;
    background-color: #ffffff;
    margin-left: 10px;
}


.robot-answers
{
    border-radius: 8px 8px 8px 0px;
    background: rgb(69,16,138);
    background: linear-gradient(90deg, rgba(69,16,138,1) 3%, rgba(173,0,189,1) 98%);
    padding: 10px;
    text-align: left;
    width: fit-content;
    width: -moz-fit-content;
    /* test  */
    display: grid;
    grid-template-columns: 1fr;
}
.user-message
{
    margin: 10px;
    margin-right:0px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: end;
    
}
.user-answers
{
    padding: 10px;
    border-radius: 8px 8px 0px 8px;
    background: rgb(159,25,171);
    background: linear-gradient(90deg, rgba(159,25,171,1) 3%, rgba(255,99,206,1) 100%);
    text-align: left;
    width: fit-content;
    margin-right: 10px;
    
}

pre
{
    /* display: block; */
    font-family: Roboto, 'Roboto Mono', monospace !important;
    margin: auto 0;
    white-space: break-spaces;
    align-self: center;

    

}
/*----------------------LOADING-------------------------*/
#loading
{
    color: #ffffff;
    margin-left: 10px;
    /* padding-bottom: 10px; */
}
/*----------------------FORM-------------------------*/


#form
{
    display: grid;
    grid-template-columns: 90% 10%;
    grid-template-rows: 1fr;
    /* padding:20px 0px; */
    padding: 0 10px 0 10px;
    margin-bottom: 10px;
}

#form button, #form textarea
{
    border: 1px solid #888888;
    color: #888888;
    background-color:#ffffff;
    border-radius: 8px;
}

#form textarea
{
    border-top-right-radius: 0 ;
    border-bottom-right-radius: 0 ;
    border-color: #ffffff;

}
/* input[type="text"] { outline-style: none; }
input:focus { outline: 0; } */

/* form textarea#text:focus
{
    outline-style: 0 !important;
} */

#form textarea:disabled
{
    background: linear-gradient(
        0.3turn
        ,#b1a7dd, #d8bbf6);
}

#form button
{
    border-top-left-radius: 0 ;
    border-bottom-left-radius: 0 ;
    padding: 0;
    margin: 0;
    border-color: #ffffff;
}

#form button:disabled
{
    background: linear-gradient(
        0.3turn
        ,#b1a7dd, #d8bbf6);
}
#form button i
{
    display: block;
    margin: auto;

}

#form textarea
{

    resize: none;

}

