html, body {
	position: relative;
	width: 100%;
	height: 100%;
}

body {
	background-color: #333;
	color: white;
	margin: 0;
	padding: 8px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

a {
	color: rgb(0,100,200);
	text-decoration: none;
}


.app-button {
    margin-top: 15px;
    margin-left: 15px;
      background-color: gray;
      border: none;
      color: white;
      padding: 10px 20px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
      cursor: pointer;
}


a:hover {
	text-decoration: underline;
}

a:visited {
	color: rgb(0,80,160);
}

label {
	display: block;
}

img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin: 2px 5px;
  }

input, button, select, textarea {
	font-family: inherit;
	font-size: inherit;
	padding: 0.4em;
	margin: 0 0 0.5em 0;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 2px;
}

input:disabled {
	color: #ccc;
}

input[type="range"] {
	height: 0;
}

button {
	background-color: #282c34; 
	border: none;
	color: white;
	
	text-align: center;
	text-decoration: none;
	
	cursor: pointer;
	font-size: 1.25rem;
	margin: 0;
  }

button:disabled {
	color: #999;
}

button:not(:disabled):active {
	background-color: #ddd;
}

button:focus {
	border-color: #666;
}

main {
	height: 80vh;
	overflow-y: auto;
	display:flex;
	flex-direction: column;
  }

  main::-webkit-scrollbar {
	width: 0.25rem;
  }
  
  main::-webkit-scrollbar-track {
	background: #1e1e24;
  }
  
  main::-webkit-scrollbar-thumb {
	background: #6649b8;
  }
  
  button:hover, button:active {
	filter: brightness(0.9);
  }
  
  button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
  }

  
.center{
    margin-left: 40%;
}


p {
	max-width: 500px;
	margin-bottom: 0;
	line-height: 24px;
	padding: 10px 20px;
	border-radius: 25px;
	position: relative;
	color: white;
	text-align: center;
  }
  
  
  .message {
	display: flex;
	align-items: center;
	margin: 0;
	word-wrap:break-word;
  }
  
  
  .sent {
	flex-direction: row-reverse;
  }
  
  .sent p {
	color: white;
	background: #0b93f6;
	align-self: flex-end;
	text-align: right;
  }
  .received p {
	background: #e5e5ea;
	color: black;
	text-align: left;
  }

  .message-text {
	  display: flex;
	  flex-direction: column;
	  align-items: flex-end;
  }

  .received .message-text {
	align-items: flex-start;
}

  time {
	  color: white;
	  font-size: 0.7rem;
	  color: #9a9a9a;
	  margin: 0 1rem;
  }
  
  img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin: 2px 5px;
  }

  .message:last-child {
	  margin-bottom: 20px;
  }

  .user-bio {
	  display: flex;
	  align-items: center;
  }

  .scroll-button {
	  position: fixed;
	  bottom: 70px;
	  right: 20px;
	  color: white;
  }

  .red {
	background: rgb(204, 53, 37);
  }

  .signout-button {
	  font-size: 1rem;
	  padding: 0.5rem 1rem;
      margin-left: 83%;
      
  }
  .send-message {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    color: white
  }