form{
  width: 100%;
  max-width: 600px;
  padding: 1.5rem;
  margin: 1rem auto;
  display: grid;
  gap: 10px;
  border: thick solid var(--layer-c0);
  border-radius: var(--border-rad1);
  background: var(--bg);
  position: relative;
}

.form_response{
  width: 100%;
  font-size: 13.5px;
  font-weight: bold;
  padding: 5px;
  text-align: center;
  color: var(--bg);
  border-radius: var(--border-rad1);
}

.success{
  background: var(--success);
  background-blend-mode: soft-light;
}

.error{
  background: var(--error);
  background-blend-mode: soft-light;
}

form input, textarea, select, input{
  width: 100%;
  padding: 10px 5%;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--txt);
  background: var(--bg);
  outline: none;
  border-color: var(--layer-c1);
  border-radius: var(--border-rad2);
  transition: var(--transition);
}

form input:focus, textarea:focus, select:focus{
  border-color: var(--brand-c2);
}

form .flex_box{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

form .flex_box input{
  width: fit-content;
}

form .flex{
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

form .split {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

form .split_fixed {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: center;
}

form .flex i{
  font-size: 15px;
  opacity: 0.5;
  right: 13px;
  position: absolute;
}

#hide_password_btn{
  display: none;
}

form .btn{
  padding: 10px;
  color: var(--bg);
  background: var(--brand-c2);
  border-color: var(--brand-c2);
  border-radius: var(--border-rad1);
}

#single_button_form{
  width: fit-content;
  max-width: fit-content;
  padding: 0;
  margin: 0;
  margin-left: auto;
  border: none;
}

#category_search_form{
  height: 3rem;
  padding: 0;
  border: thick solid var(--brand-c2);
  display: grid;
  gap: 0;
  grid-template-columns: 1fr auto;
  border-radius: var(--border-rad1);
  overflow: hidden;
}

#category_search_form select,
#category_search_form input{
  height: 100%;
  border: none;
  border-radius: 0;
}

.check_box{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px;
  align-items: center;
}

.check_box input{
  width: 18px;
  height: 18px;
}

#game_form{
  width: 100%;
  border: none;
  padding: 0;
}

#game_form .btn{
  border-radius: var(--border-rad1);
}

#game_form .btn:hover{
  border: none;
  background: var(--brand-c2);
}

#order_form{
    width: 100%;
    padding: 15rem 1rem 1rem 1rem;
    display: grid;
    gap: 10px;
    border: thin solid var(--brand-c2);
    border-radius: var(--border-rad1);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

#order_form .head{
    top: 0;
    left: 0;
    right: 0;
    height: 15rem;
    width: 100%;
    padding: 1rem;
    display: grid;
    gap: 5px;
    position: absolute;
    color: var(--bg);
    background: var(--brand-c2);
}

#order_form .head i{
    font-size: 28px;
}

#order_form .plain_box i, #order_form .sub_head{
    color: var(--brand-c2);
}





#message_scroll_box{
    width: 100%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.message{
  width: fit-content;
  max-width: 85%;
  display: grid;
  gap: 8px;
  padding: 10px 15px;
}

.message .image_username{
  width: fit-content;
}

.message .image_username .sm_image{
  width: 18px;
  height: 18px;
}

.message .image_username p{
  font-size: 13px;
}

.outgoing .image_username{
  margin-left: auto;
}

.message .text{
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1 45;
  font-size: 14.5px;
}

.message .image{
  border-radius: 5px;
  overflow: hidden;
}

.message .image img{
  width: 100%;
  height: 100%;
}

.incoming {
  border-radius: 0 10px 15px 20px;
  border: thin solid var(--brand-c2);
}

.outgoing {
  border-radius: 10px 0 20px 15px;
  color: var(--bg);
  background: var(--brand-c2);
  margin-left: auto;
}

#typing_form{
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: auto 1fr 8% 8%;
  align-items: center;
  padding: 10px 5%;
  border: none;
  border-radius: 0;
  position: absolute;
}

#typing_form input, #typing_form button, #typing_form .image_btn{
  height: fit-content;
  margin: 0;
  border: none;
}

#typing_form .sm_image{
  width: 25px;
  height: 25px;
}