/* global styles */
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
body {
  font-family: system-ui, sans-serif;
  font-weight: 400;
}
.h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}
/*.layout and view styling */
header {
  padding: 1rem;
  background-color: steelblue;
}
footer {
  padding: 1rem;
}
form{
  display: flex;
  /* flex-direction: column;
  justify-content: center;
  align-items: center; */
  margin-block: 1rem;
}
textarea{
  width: 100%;
  /* height: 100%; */
  resize: none;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}
button{
  background-color: steelblue;
  color: white;
  padding: 1rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  height: 100%;
  margin-left: 1rem;
}
label {
  width: 100%;
  /* background-color: red; */
}
input {
  height: 100%;  
  width: 60%;
  border-radius: 5px;
  border: 1px solid #ccc;
}
h1{
  font-size: large;
  font-weight: bold;
}
.flex {
  display: flex;
  /* flex-wrap: wrap; */
  /* justify-content:end; */
  /* align-items: flex-start; */
  flex-direction: column;
}
ul{
  background-color: #e2e0e0;
  height: 70dvh;
  overflow-y:scroll;
  padding: 0;
  margin: 0;
}
.message {
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: .5rem;
  width: fit-content;
  max-width: 80vw;
  height: min-content;
  
  align-self: flex-end;
  overflow-wrap: break-word;

  margin-inline-end: .5rem;
  margin-inline-start: .5rem;

  display: flex;
  flex-direction: column;
  align-items: end;

  /* styling for the time */
  p{
    color: darkgrey;
    font-size: smaller;
    margin-top: .5em;
    right:0;
  }
}
/* username styling */
h3{
  font-weight: bold;
  align-self: flex-end;
  margin-inline-end: .5rem;
  margin-inline-start: .5rem;
  padding: .5rem;
  padding-bottom: .2rem;

  color: hsl(207, 45%, 20%); ;
  /* font-style:; */
}
/* base styling
.user {
   
} */
.other{
  align-self: flex-start;
  align-items: start;
  background-color: rgb(178, 204, 226);
}
h3:has(+.other){
  align-self: flex-start;
}
#BOT{
  background-color: rgb(150, 174, 193);
}
/* component styling */
.card {
  width: 100%;
  max-width: 300px;

  /* background-color: aqua; */
  padding: 1em;
  background-color: royalblue;
  color: white;
  border-radius: 1em;

  h2{
    text-decoration: none;
    /* color: green; */
  }
}
/* .card__image {
  width: 100%;
  height: auto;
  margin-top: 1rem;
} */
body {
  color: black;
  max-width: 1440px;
  margin: 0 auto;
  /* background-color: yellow; */
}
main {
  padding: 1rem;
}
