* {
  outline: none;
}

.text-muted {
  color: #4c4e51 !important;
}

  h1, h2{
    margin-top: 20px;
  }

  a {
    text-decoration: none;
  }

body{
  max-width: 1200px;
  margin: auto;
  min-width: 300px;
  background: #f4f4f4;
}
  
  body.dark-mode{
    background-color: #002331;
    color:#9becff;
  }

  .bottom-text{
    border-radius: 8px;
  }

  body.dark-mode .bottom-text{
    padding-left: 20px;
      padding-right: 20px;
      padding-bottom: 10px;
      background-color: #001d28;
      border-top: 1px solid #003347;
  }

  .dark-mode .card{
    background: #005777;
  }

  .dark-mode .form-control{
    background-color: #ace9ff;
  }

  .dark-mode .form-control:focus{
    background-color: #81ddff;
  }

  .dark-mode .chat-page{
    background-color: #013f5b;
  }

  .container{min-width: 320px;}

  label {
    font-weight: bold;
  }

  .wrapper{
    min-width: 320px;
    margin: auto;
  }

  .logo-text{
    font-weight: bold;
    font-size: 20px;
    display: block;
    color: #4c4e51;
  }

  .dark-mode {
    color: #fff;
  }

  .logo-text:hover{
    /* color: #fff; */
    text-decoration: none;
  }

  .auth-box{
    max-width: 500px;
  }

  .chat-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* margin-right: -15px;
    margin-left: -15px; */
    height: calc(100vh - 56px);
    background-color: #f2fffe;
  }


  .user-profile{
    max-width: 500px;
    margin: auto;
  }


  .navbar-top{
    min-height: 60px;
    padding:2px 0 0 0;
    display: flex;
    max-width: 1400px;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
    background-color: #f9f9f9;
  }

  .dark-mode .navbar-top{
    background-color: #055F8C !important;
  }

  .navbar-top .navbar {
    /* padding-left: 3px; */
    -webkit-box-shadow: -2px 3px 5px 3px rgba(34, 60, 80, 0.2);
    box-shadow: -2px 3px 5px 3px rgba(34, 60, 80, 0.2);
  }

  .dark-mode .navbar-top .navbar{
    background: #055F8C !important;
  }

  .navbar-top .navbar.active {
    display: block;
  }

  .navbar-nav {
    -ms-flex-direction: row;
    flex-direction: row;
    line-height: 1.3;
  }

  .navbar-nav .nav-link{
    padding: 5px;
  }

  .dark-mode .navbar-nav .nav-link {
    color: #fff;
  }

  .navbar-nav a:hover{
    background-color: #55b3c5;
  }

  .remove-history{
    color: #002a31;
  }

  .navbar-nav .dropdown-menu{
    margin: 6px 0 0;
    z-index: 99999;
    position: absolute;
    left: -10px;
  }

  .dark-mode .navbar-nav .dropdown-menu {
    background: #055F8C;
  }

  .dark-mode .navbar-nav .dropdown-menu .dropdown-item{
    color: #fff;
  }

  .dropdown-item{
    padding: 0.25rem 1rem;
  }

  .btn-profile{
    background: transparent;
    border:none;
    line-height: 1.2;
    margin-top: 9px;
  }

  .dark-mode .btn-profile{
    color: #fff;
  }  

  .profile-box {
    margin-top: 40px;
    min-width: 320px;
    max-width: 500px;
    margin: 50px auto;
    background-color: rgb(251 251 247 / 80%);
  }

  .login-box {
    margin-top: 40px;
    background-color: rgb(251 251 247 / 80%);
  }

  .char-icon {
    min-width: 135px;
    max-width: 182px;
    display: flex;
    font-weight: bold;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding-top: 0;
    margin-left: auto;
  }

  .char-icon .char-name {
    padding-top: 6px;
    font-size: 14px;
    overflow: hidden;
    max-height: 48px;
  }

  .char-icon .chat-iamge {
    margin: 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #055F8C;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-left: 10px;
  }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    border-radius: 6px;
    padding: 10px 15px;
  }

  .chat-messages .message-wrap {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
  }

  .message pre{
  margin-top: 10px;
  display: block;
  font-size: 90%;
  color: #8cdfff;
  background: #1d294d;
  padding: 8px;
  border-radius: 6px;
  }

  .chat-messages .message {
    border: 1px solid #90edfb;
    border-radius: 15px;
    padding: 6px 10px;
    background-color: #fff;
    display: inline-block;
    max-width: 94%;
    color:#000;
    -webkit-box-shadow: 1px 6px 11px -5px rgba(34, 60, 80, 0.17);
    -moz-box-shadow: 1px 6px 11px -5px rgba(34, 60, 80, 0.17);
    box-shadow: 1px 6px 11px -5px rgba(34, 60, 80, 0.17);
  }

  .dark-mode .chat-messages .message{
    color: #001e29;
  }

  .dark-mode .chat-messages .user-name {
    color: #009ee5;
  }

  .chat-messages .user-name {
    font-weight: bold;
    margin-bottom: 3px;
  }

  .message-wrap.message-left {
    align-items: flex-end;
  }

  .message-wrap.message-right .message {
    background-color: #fff;
  }

  .message-wrap.message-left .message {
    background-color: #eefff5;
    border: 1px solid #baf5d2;
  }



  .input-message {
    display: flex;
    align-items: center;
    padding: 10px 15px 30px 10px;
    border-top: 1px solid #0a74a9;
    margin-top: 3px;
    background-color: #0084C6;
    -webkit-box-shadow: 0px -7px 16px -1px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px -7px 16px -1px rgba(34, 60, 80, 0.2);
    box-shadow: 0px -7px 16px -1px rgba(34, 60, 80, 0.2);
    /* margin-bottom: 80px; */
  }

  .input-message textarea {
    flex: 1;
    resize: none;
    border-radius: 8px;
    padding: 4px 6px 5px 4px;
    line-height: 1.2;
    border: 1px solid #d5ecff;
  }

  .input-message button {
    margin-left: 10px;
    border: none;
    width: 38px;
    height: 38px;
    background-color:#009ee5;
    border-radius: 10px;
    color: #fff;
    padding: 0;
    cursor: pointer;
  }


  .input-message button:focus{
    outline: 1px solid rgba(29, 171, 206, 0.67);
  }


  .chars-wrpper {
    margin-top: 20px;
  }

  .chars-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .char-item-wrapp {
    margin-bottom: 18px;
  }

  .char-item {
    text-size-adjust:100%;
    height: 256px;
    padding: 7px 12px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #e6e6e6;
    -webkit-box-shadow: 3px 5px 10px 0px rgba(111, 111, 111, 0.5);
    -moz-box-shadow: 3px 5px 10px 0px rgba(111, 111, 111, 0.5);
    box-shadow: 3px 5px 10px 0px rgba(111, 111, 111, 0.5);
  }

  .dark-mode .char-item{
    background-color: #005e81;
    border: 1px solid #006e99;
    position: relative;
  }

  .char-img {
    display: block;
    margin: 0 auto 5px auto;
    height: 150px;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .dark-mode .char-img{
    border: 1px solid #187da5;
    background-color: #003a51;
    color: #c8f3ff !important;
  }

  .char-img.no-image{
    padding: 30px 10px;
    font-size: 20px;
  }

  .char-img img{
    max-height: 100%;
  }

  .char-item .chat-link {
    display: block;
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: bold;
    font-size: 17px;
  }

  .char-edit-link {
    display: block;
    padding: 2px 10px;
    border-radius: 6px;
  }

  .dark-mode .char-edit-link{
    background-color: #002637;
    border-color: #005b81;
    color: #6db4e9;
  }

  .dark-mode .chat-link{
    color: #22b7ff;
  }

  .dark-mode .char-edit-link{
    color: #6db4e9;
  }

  .char-item .chat-link .char-name{
    font-size: 15px;
  }

  .char-item .char-name{
    font-size: 1rem;
    margin-bottom: 4px;
    max-height: 22px;
    overflow: hidden;
    font-weight: bold;
  }

  .dark-mode .char-name{
    color: #d8f2ff;
  }



  .btn-remove {
    background-color: var(--btn-danger-bg);
    color: #fff;
    border-color: #ff000f;
  }

  .character-form{
    margin-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
  }


  .loader {
    display: inline-block;
    position: absolute;
    width: 80px;
    height: 40px;
    bottom: 95px;
    left: 50%;
    margin-left: -40px;
  }

  .loader div {
    position: absolute;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #63858b;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
  }

  .loader div:nth-child(1) {
    left: 8px;
    animation: loader1 0.6s infinite;
  }

  .loader div:nth-child(2) {
    left: 8px;
    animation: loader2 0.6s infinite;
  }

  .loader div:nth-child(3) {
    left: 32px;
    animation: loader2 0.6s infinite;
  }

  .loader div:nth-child(4) {
    left: 56px;
    animation: loader3 0.6s infinite;
  }

  code.hljs{
    color: #5dbaff;
  }

  .character-image{
    width: 100%;
    max-width: 500px;
  }

  .character-image img{
    border-radius: 8px;
  }

  .img-responsive{
    max-width: 100%;
  }

  footer{
    margin-top: 10px;
    padding-top: 10px;
    background-color: #e7ebec;
  }

  footer a{
    color:#131313;
  }

  .dark-mode footer{
    background-color: #001d28;
  }

  .nsfw-character{
    color: rgb(255, 152, 42);
    position: absolute;
    bottom: 44px;
    font-size: 14px;
    font-weight: bold;
  }

  .select2-dropdown{
    color:#000;
  }

  @keyframes loader1 {
    0% {
      transform: scale(0);
    }

    100% {
      transform: scale(1);
    }
  }

  @keyframes loader3 {
    0% {
      transform: scale(1);
    }

    100% {
      transform: scale(0);
    }
  }

  @keyframes loader2 {
    0% {
      transform: translate(0, 0);
    }

    100% {
      transform: translate(24px, 0);
    }
  }

  @media (min-width: 1500px) {
    .container-lg {
      max-width: 1260px;
    }
  }


  @media screen and (max-width: 720px) {

    h1{
      font-size:1.4rem
    }

    h2{
      font-size:1.2rem
    }

    h3{
      font-size:1rem
    }

    .card-body{
      padding: 0.8rem;
    }

    .character-form{
      padding-left: 10px;
      padding-right: 10px;
    }

    .input-message {
      padding: 5px;
    }

    .char-item-wrapp {
      padding-right: 10px;
      padding-left: 10px;
    }

    .container{
      padding-right: 8px;
      padding-left: 8px;
    }

    .navbar-top{
      height: 68px;
      padding-left:8px;
      padding-right:8px;
    }

    .char-img{
      height: 120px;
    }

    .char-item{
      height: 226px;
    }
  }
  
