body{ background: url('recipe.jpeg'); margin: 0; } .main { transition: margin 400ms cubic-bezier(0.17,0.04,0.03,0.94); position: relative; height: calc(90vh - 0px); max-width: 700px; margin: auto; margin-top: 20px; background-color: #d0d0d0; border: 3px solid white; border-radius: 30px; overflow: hidden; } footer{ margin: 20px; color: #5b5b5b; } .placeholder-white::placeholder { color: white; } .msg_section{ position: absolute; width: 100%; height: calc(100% - 103px); background-image: url("dark.jpeg"); background-size: cover; overflow: auto; } .header{ margin: auto; padding: 10px; text-align: center; font-size: 1.6em; color: rgb(255, 255, 255); background: rgb(255,255,255); background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(129,129,129,1) 35%, rgba(0,0,0,1) 100%); border-bottom: 3px solid rgb(255, 255, 255); border-top-left-radius: 30px; border-top-right-radius: 30px; font-family: 'Times New Roman', Times, serif; } .left_message{ display: flex; max-width: 80%; margin-left: 20px; margin-top: 20px; margin-bottom: 20px; word-wrap: break-word; } .right_message{ display: flex; max-width: 80%; flex-direction: row-reverse; margin: 20px 20px 20px auto; word-wrap: break-word; } .msg{ min-width: 100px; padding: 10px 10px 15px 10px; border-top-left-radius: 10px; border-top-right-radius: 10px; font-family: Georgia, 'Times New Roman', Times, serif; word-wrap: break-word; } .msg.left{ margin-left: 10px; border-bottom-right-radius: 10px; background: linear-gradient(135deg, #ffffff 0%, #818181 100%); } .msg.right{ margin-right: 10px; border-bottom-left-radius: 10px; color: white; background: linear-gradient(135deg, #818181 0%, #ffffff 100%); } .mes_info{ display: flex; margin-bottom: 5px; margin-left: 6px; font-weight: bold; font-size: 1.2em; } .mes_header{ margin-right: 6px; max-width: 60%; } .mes_time{ margin: auto 1px 5px auto; font-size: 0.5em; } .mes_text{ margin-left: 6px; font-size: 1em; } @media (min-width: 992px){ .msg_area{ height: calc(100% - 101px); } } .icon{ width: 50px; height: 50px; min-width: 50px; margin: auto 0 0 0; background-repeat: no-repeat; background-position: center; background-size: cover; background-image: url(person-icon.png); border-radius: 50%; } .icon.left{ background-image: url(person-icon.png) } .header_bottom{ position: absolute; display: flex; width: 100%; height: 50px; bottom: 0; background: rgb(255,255,255); background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(129,129,129,1) 35%, rgba(0,0,0,1) 100%); border-top: 3px solid white; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; } #input_section{ display: flex; width: 60%; flex: 1; margin: 8px 3px 8px 11px; padding: 2px 2px 2px 10px; border: none; border-radius: 5px 5px 5px 15px; font-size: 1.3em; height: auto; overflow-y: auto; resize: none; } .send_button{ width: 60px; margin: 8px 8px 8px 3px; cursor: pointer; border: none; border-radius: 5px 5px 15px 5px; color: #ffffff; background-color: #818181; transition-duration: 0.3s; overflow: hidden; text-align: center; } .send_button:hover{ background-color: #e3e2f3; } footer{ margin-top: 0; margin-bottom: 5px; margin-left: 20px; color: #000000; }