@charset "UTF-8";
html, body, .container {
  height: 100%;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
}

  #right_most{
    display: flex;
    text-align: center;
  }
  
  #right_most span{
    display: block;
    font-weight: 500;
    padding: 20px;  }


  #right_most img{
    width: 50px;
    margin-left:90px;
    height: 100%;
  }

#here{
  font-weight: 500;
  font-size: 20px;
}

.container {
  width: 100%;
  display: flex;
  flex-flow: column wrap;
}
#selected {
  font-weight: 600;
  font-size: 20px;
}
#pals {
  color: black;
  font-size: 30px;
  text-align: center;
  margin-bottom:20px;
  border-bottom: 4px solid black;
}

.contacts {
  flex-basis: 100%;
  width: 240px;
  overflow-y: hidden;
  background-color: white;
  background-size: 6px 6px;
  margin-top: 20px;
}

.contacts ul {
  width: calc(100% - 14px * 2);
  margin: 0 12px;
  padding: 0;
  list-style: none;
}
.contacts li {
  position: relative;
  width: 100%;
  height: 84px;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 5px;
  background: #FFAE42;
}

.contacts img {
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 100%;
  margin-right: 10px;
}

.contacts li{
  display: flex;
  padding-left: 8px;
  align-items: center;
  height: 5em;
  font-size: 15px;
}


.contacts li::after {
  content: "✖";
  position: absolute;
  top: -8px;
  right: -8px;
  overflow: hidden;
  height: 0;
  line-height: 26px;
  width: 0;
  margin: 12px;
  border-radius: 12px;
  text-align: center;
  color: whitesmoke;
  background: tomato;
  cursor: pointer;
  transition: height 0.1s, width 0.1s, margin 0.1s;
}
.contacts li:hover::after {
  height: 24px;
  width: 24px;
  margin: 0;
}

.messages, .form {
  width: calc(100% - 240px);
}

.messages {
  flex: 0.9 1px;
  background: white;
  overflow-y: scroll;
  border-left: 4px solid black;
}
.messages ul {
  list-style: none;
  margin: 0;
  padding: 36px;
}

.messages li {
  float: left;
  clear: both;
  line-height: 1.4em;
  max-width: 540px;
  margin: 12px;
  padding: 0.7em 16px;
  border-radius: 18px;
  color: whitesmoke;
  background: #3F3D56;
}

#newMsg img{
  max-width:100px;
    height:auto;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
            0% {opacity: 0;

            }
            10%{
              opacity: 0.25;

            }
            20% {opacity: 0.5;
            }
            30%{
              opacity: 0.75;
            }
            40% { opacity: 1;
            }
            50%{
              opacity: 1;
            }
            60% {opacity: 0.75;
            }
            70%{

            }
            80% {opacity: 0.5;
            }

            90%{
              opacity: 0.25;
            }

            100% {opacity: 0;
            }
         }

#newMsg button {
  background-color: transparent;
  border: 0;
}
.messages li:nth-child(odd) {
  border-bottom-left-radius: 2px;
}
.messages li:nth-child(even) {
  float: right;
  border-bottom-right-radius: 2px;
}

.form {
  background: black;
  margin: 0;
}

.form-inner {
  height: 65px;
  width: calc(100% - 4px * 2);
  margin: 4px;
  background: #E6E6E6;
}
.form-inner button {
  float: right;
  height: 100%;
  width: 60px;
  padding: 1px0;
  border: 0;
  border-radius: 0 2px 2px 0;
  font: 30px/60px;
  color: whitesmoke;
  background: #FFAE42;
  cursor: pointer;
}

.form-inner button img{
  height: 50px;
  width: 50px;
}

.form-inner input {
  width: calc(100% - 69px);
  height: 65px;
  border: 0;
  background-color: #E6E6E6; 
  font-size: 20px;
}

.small-screen.container {
  align-content: center;
}
.small-screen .stack-wrap {
  position: relative;
  flex: 1 1px;
}
.small-screen .stack-wrap div {
  position: absolute;
  top: 0;
  bottom: 0;
}
.small-screen .contacts {
  left: 0;
  width: 66px;
}
.small-screen .contacts .buttons {
  display: none;
}
.small-screen .contacts ul {
  width: 100%;
  margin: 0;
}
.small-screen .contacts li {
  height: 66px;
  margin: 0;
  background: transparent;
}
.small-screen .contacts li::before {
  top: 9px;
  left: 9px;
  background: whitesmoke;
}
.small-screen .contacts li::after {
  top: -2px;
  right: 2px;
}
.small-screen .messages {
  left: 66px;
  right: 0;
  width: auto;
}
.small-screen .form {
  width: 100%;
}