/* Fix user-agent */
.ccpc {
  display: flex;
  align-items: center;
  margin: 10px;
}

#appchat ul {
  list-style: none;
  word-wrap: break-word;
}

/* ccPages */

.ccpages {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ccpage {
  height: 100%;
  position: absolute;
  width: 100%;
}

/* Login Page */

.login.ccpage {
  background-color: #000;
}


/* Chat page */

.chat.ccpage {
  display: none;
}

/* Font */

.messages {
  font-size: 115%;
}

.inputMessage {
  font-size: 100%;
}

.log {
  color: gray;
  font-size: 70%;
  margin: 5px;
  text-align: center;
}

/* Messages */

.chatArea {
  height: 100%;
  padding-bottom: 60px;
}

.messages {
  height: 90%;
  margin: 0;
  overflow-y: scroll;
  padding: 10px 20px 10px 20px;
}

.messages::-webkit-scrollbar-track {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
}

.messages::-webkit-scrollbar {
  width: 10px;
  background-color: #F5F5F5;
}

.messages::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: linear-gradient(left, #fff, #e4e4e4);
  border: 1px solid #aaa;
}

.message.typing .messageBody {
  color: gray;
}

.username {
  font-weight: 700;
  overflow: hidden;
  padding-right: 15px;
  text-align: right;
}

div#appchat {
  font-weight: 300;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-family: helveticaneue-light, helvetica neue light, helvetica neue, Helvetica, Arial, lucida grande, sans-serif;
  display: none;
  transform: translate(-1000px,0);
  transition: .7s;
  position: fixed;
  min-width: 340px;
  max-width: 400px;
  max-height: 600px;
  width: 30%;
  height: 70%;
  left: 5%;
  bottom: 5%;
  border: 1px solid #ccc;
  border-radius: 10px;
  z-index: 999;
}

/* Input */

.inputMessage {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px 15px;
  margin: 10px 1%;
  font-size: 16px;
  bottom: 0;
  height: 60px;
  left: 0;
  outline: none;
  position: absolute;
  right: 0;
  width: 98%;
}
.ccpcb { color: black;
  margin: 10px;
  bottom: 0;
  height: 60px;
  right: 0;
  outline: none;
  width: 60px;
  position: absolute;
  margin-right: 1.5%;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#checkchat {
  height: -moz-fit-content;
  height: fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: fixed;
  top: 2%;
  left: 50%;
  z-index:101;
  transform: translate(-50%, 0);
  max-width: 220px;
  max-height: 40px; /* Adjust this value as needed */
  overflow: hidden;
}

input.chip[type="checkbox"] {
  height: -moz-fit-content;
  height: fit-content;
  width: -moz-fit-content;
  width: fit-content;
  background: #fff;
  box-shadow: none;
  max-width: 200px;
  overflow: hidden !important;
  --color: #6c6;
  font-size: 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 100em;
  overflow: hidden;
  margin: 0;
  display: inline-block;
  box-sizing: border-box;
  padding: 0;
}

input.chip[type="checkbox"]::after {
  content: attr(value);
  white-space: pre;
  line-height: 1;
  position: relative;
  padding: 0.5em 1em 0.5em 2em;
  display: block;
}

input.chip[type="checkbox"]::before {
  content: "";
  display: inline-block;
  width: 0.75em;
  aspect-ratio: 1;
  background: linear-gradient(currentcolor 0 0), linear-gradient(currentcolor 0 0);
  background-position: -200% -2em, 2em -200%, 50% 50%;
  background-size: 1em 0.125em, 0.125em 1em;
  background-repeat: no-repeat;
  background-color: var(--color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 1.125em;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: width 0.25s, background-position 0.5s;
}

input.chip[type="checkbox"]:hover, input.chip[type="checkbox"]:focus, input.chip[type="checkbox"]:active {
  border-color: rgba(0, 0, 0, 0.65);
  box-shadow: none;
}

input.chip[type="checkbox"].grow::before,
input.chip[type="checkbox"].bounce::before {
  background-position: 50% 50%, 50% 50%, 50% 50%;
  background-size: 0 0, 0 0;
  transition: width 0.25s, background-size 0.5s;
}

input.chip[type="checkbox"].bounce::before {
  transition-timing-function: ease-in-out, cubic-bezier(0.75, 0, 0.5, 2);
}

input.chip[type="checkbox"]:checked::before {
  color: black;
  font-size: 15px;
  width: 200%;
  background-position: 50% 50%, 50% 50%, 50% 50%;
  background-size: 1em 0.125em, 0.125em 1em;
}

input.chip[type="checkbox"]:hover {
  border-color: rgba(0, 0, 0, 0.65);
  background-color: #effaef;
  transition: 0.4s;
}