header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 5%; margin: 0 auto 20px; background-color: white; h5 { font-weight: 500; letter-spacing: 1px; font-size: 18px; color: var(--ash-black); width: calc(100% - 90px); span { color: var(--dark-grey); font-size: 14px; } } button { width: 30px; height: 30px; border-radius: 50%; background-color: var(--light-grey); border: 0px; &.edit-button { background-color: var(--teal-green); .icon { fill: white; width: 15px; height: 15px; } } .icon { width: 12px; height: 12px; fill: white; } } } ul { width: 100%; margin: 0 auto; list-style: none; max-height: calc(100% - 175px); overflow: auto; position: absolute; left: 0px; bottom: 95px; padding: 0 5%; li { width: 55%; } .message { border-radius: 10px; padding: 10px; font-size: 14px; } .sent { margin-left: auto; .time-stamp { text-align: right; } .message { color: white; background-color: var(--teal); border-bottom-right-radius: 0px; } } .received { margin-right: auto; .message { color: var(--dark-grey); background-color: rgba(#cecece, 0.4); border-bottom-left-radius: 0px; } } .time-stamp { font-size: 12px; color: var(--dark-grey); margin: 5px; } } .input-holder { display: flex; align-items: stretch; width: 90%; margin: 0 auto; position: absolute; bottom: 20px; left: 5%; border-radius: 30px; background-color: rgba(#cecece, 0.4); overflow: hidden; padding: 5px; .icon { fill: white; width: 15px; height: 15px; } input { border: 0px; background-color: transparent; flex-grow: 1; padding-left: 10px; } button { width: 40px; border-radius: 50%; border: 0px; height: 40px; background-color: var(--teal-green); display: flex; align-items: center; justify-content: center; box-shadow: 0px 0px 5px var(--light-grey); } }