* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #232222;
  display: flex;
  flex-wrap: wrap;
  height: 100%;
}

.suggestion {
  height: 100vh;
  margin: 0 70px 0 250px;
  display: flex;
  justify-self: flex-end;

}

.chatcontainer {
  width: 450px;
  max-width: 450px;
  height: 98vh;
  max-height: 80vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;

}

.habits {
  display: flex;
  flex-wrap: wrap;
  width: 80%;
  font-size: 50px;
  justify-content: center;
  overflow: hidden;
}

.heading {
  display: flex;
  flex-wrap: wrap;
  color: #10a37f;

}

.lines {
  align-self: start;
  color: #10a37f;
  height: 40vh;
  width: 60%;
  margin-top: 70px;
  margin-left: 10px;
  font-size: 2.5rem;
  padding: 0 50px;

}

.point {
  line-height: 8rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: justify;
}

.chatheader {
  background-color: #10a37f;
  color: white;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.chatbox {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #333338;
  display: flex;
  flex-direction: column;
}

.message {
  margin: 6px 0;
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 14px;

}


.point:hover {


  color: #cb87eb;
  transition: 300ms;
}

.user {
  background-color: #dcf8c6;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 0;
}

.bot {
  background-color: #e5e5ea;
  align-self: flex-start;
  margin-right: auto;
  border-bottom-left-radius: 0;
}

.inputarea {
  display: flex;
  border-top: 1px solid #000000;
  padding: 10px;
  background: #494747;
}

.inputarea input {
  flex: 1;
  padding: 10px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-right: 10px;
}

.inputarea button {
  padding: 10px 20px;
  background-color: #10a37f;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.inputarea button:hover {
  background-color: #89e0c9;
  color: black;
}

.mood {
  background-color: rgb(236, 225, 225);
  width: 50px;
  height: 50px;
  float: left;
}

.author {
  background-color: #10a37f;
  height: 50px;
  color: #232222;
  border-radius: 3px;
  font-weight: bolder;
  width: 30%;
  font-size: 1rem;
  align-items: center;
  text-align: center;
  justify-content: center;

}



.point {
  position: relative;
  cursor: pointer;
}

.point .tooltip {

  color: white;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  position: absolute;
  top: -5px;
  left: auto;
  z-index: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 2rem;
}

.point .tooltip a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

.point:hover .tooltip {
  visibility: visible;
  opacity: 1;
}


@media (max-width:786px) {


  .habits,
  .point,
  .lines,
  .author {
    display: none !important;
  }

  .suggestion {
    margin: 0 auto;
    width: 100%;
    height: 100vh;
    justify-content: center;
  }

  .chatcontainer {
    height: auto;
    max-height: none;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }

}




 


@media screen and (min-width: 786px) and (max-width: 1920px) {
  .chatcontainer {
    
    max-width: 400px;
    height: 90vh;
  }

  .suggestion {
    margin: 20px auto;
    justify-content: center;
  }

  .lines {
    width: 70%;
    font-size: 2rem;
    margin-left: 20px;
    padding: 0 20px;
  }

  .point {
    line-height: 5rem;
    font-size: 1.8rem;
  }

  .author {
    width: 30%;
    font-size: 0.9rem;
    margin-top: 70px;
  }
  body{
    overflow: hidden;
  }

  a{
    font-size: 1rem;
    display: inherit;
    margin-left: 10px;
  }
}