/***************************************************************/
/*                       DESIGNED BY                           */
/*                   Mad Cre@tive Lab                           */
/***************************************************************/

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(./img/background1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
}

#frame-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 90%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 2px solid black;
    box-sizing: border-box;
    overflow: hidden;
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-radius: 20px;
    box-sizing: border-box;
}

header {
    background-image: url(./img/HeaderApp.png);
    color: #ffffff;
    padding: 10px;
    text-align: center;
    width: 400px;
    box-sizing: border-box;
    border-top-left-radius: 1px;
    border-top-right-radius: 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#chat-container {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    width: 400px;
    overflow-y: auto; 
    background-image: url(./img/backGroundMessArea.png);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
    padding: 10px;
    box-sizing: border-box;
}

#messages {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.message {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    background-color: #b9a3f7;
    align-self: flex-start;
    max-width: 80%;
    word-wrap: break-word;
}

#message-input {
    display: flex;
    padding: 10px;
    background-color: #f8bdbd;
    width: 400px;
    box-sizing: border-box;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

#message-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#message-input button {
    margin-left: 10px;
    padding: 10px;
    border: none;
    background-color: #34b5f1;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
}

#message-input button:hover {
    background-color: #2596be;
}

  
#frame-container {
    flex: 1;
  }
  


@media (max-width: 600px) {
    header {
        font-size: 16px;
        padding: 8px;
    }

    #frame-container {
        width: 100%;
        height: 100%;
    }

    #message-input input, #message-input button {
        font-size: 14px;
    }
}


@media (min-width: 600px) and (max-width: 900px) {
    header {
        font-size: 18px;
        padding: 10px;
    }

    #frame-container {
        width: 90%;
        height: 90%;
    }

    #message-input input, #message-input button {
        font-size: 16px;
    }
}



