*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#5f513c;
}

/****************************/
/* MENÚ */
/****************************/

.menu{
    position:fixed;
    top:5px;
    right:20px;
    z-index:1000;
}

.hamburger{
    position:relative;
    color:white;
    font-size:34px;
    cursor:pointer;
}

.dropdown{
    display:none;
    position:absolute;
    right:0;
    top:40px;
    min-width:160px;
    background:white;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
}

.hamburger:hover .dropdown{
    display:block;
}

.dropdown a{
    display:block;
    padding:12px 18px;
    color:#222;
    text-decoration:none;
}

.dropdown a:hover{
    background:#2f6f3c;
    color:white;
}

/****************************/
/* MAIN */
/****************************/

main{
    width:100%;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:50px 20px 80px;
}

/****************************/
/* CHAT */
/****************************/

#chat-container{
    width:100%;
  /*  max-width:850px;*/
    margin:0 auto;
    display:flex;
    flex-direction:column;
    background:#372e19;
    border-radius:14px;
    box-shadow:0 8px 30px rgba(0,0,0,.25);
}

.chatHeader{
    width:100%;
    background:#21617f;
    color:white;
    font-weight:bold;
    border-top-left-radius:14px;
    border-top-right-radius:14px;
}

.chatHeader tbody,
.chatHeader tr{
    width:100%;
}

.chatHeader td{
    padding:8px 12px;
    vertical-align:middle;
}

.chatHeader td:first-child{
    width:100%;
}

.chatHeader td:last-child{
    width:1%;
    white-space:nowrap;
}

.chatTitle{
    font-size:18px;
}

.chatMinimize{
    display:none;
}

/****************************/
/* MENSAJES */
/****************************/

.chatMessages{
    width:100%;
    padding:12px;
    overflow-y:auto;
    max-height:18em;
}

.chatMessages::-webkit-scrollbar{
    width:6px;
}

.chatMessages::-webkit-scrollbar-thumb{
    background:rgba(0,0,0,.25);
    border-radius:3px;
}

.chat-line{
    display:flex;
    align-items:flex-start;
    margin:8px 0;
}

.chat-icon{
    margin-right:10px;
}

.chat-logo{
    width:40px;
    height:40px;
}

.chat-text{
    max-width:90%;
    font-size:16px;
    line-height:1.5;
}

.userMessage .chat-text{
    color:#cacfeb;
}

.botMessage .chat-text{
    color:#f5c34e;
}

.systemMessage .chat-text{
    color:#888;
    font-style:italic;
}

/****************************/
/* INPUT */
/****************************/

.chat-bottom{
    width:100%;
}

#chat-container .gwt-HorizontalPanel{
    width:100%;
    padding:12px;
    border-top:1px solid #ddd;
    background:#fafafa;
}

#chat-container .gwt-TextBox{
    padding:10px;
    font-size:17px;
    border:1px solid #ccc;
    border-radius:8px;
}

#chat-container .gwt-Button{
    width:100%;
    background:#007bff;
    color:white;
    border:none;
    padding:10px;
    border-radius:8px;
    cursor:pointer;
    font-size:17px;
    font-weight:bold;
}

#chat-container .gwt-Button:hover{
    background:#0056b3;
}

/****************************/
/* RESPONSIVE */
/****************************/

@media (max-width:700px){

    #chat-container{
        border-radius:10px;
    }

    .chat-logo{
        width:32px;
        height:32px;
    }

    .chat-text{
        font-size:16px;
    }

    .chatTitle{
        font-size:16px;
    }

    #chat-container .gwt-TextBox,
    #chat-container .gwt-Button{
        font-size:16px;
    }

}