
.modal {
    --tblr-modal-zindex: 1055;
    --tblr-modal-width: 540px;
    --tblr-modal-padding: 1.5rem;
    --tblr-modal-margin: 0.5rem;
    --tblr-modal-color: ;
    --tblr-modal-bg: var(--tblr-bg-surface);
    --tblr-modal-border-color: transparent;
    --tblr-modal-border-width: var(--tblr-border-width);
    --tblr-modal-border-radius: var(--tblr-border-radius-lg);
    --tblr-modal-box-shadow: 0 0.125rem 0.25rem rgba(var(--tblr-body-color-rgb), 0.075);
    --tblr-modal-inner-border-radius: calc(var(--tblr-modal-border-radius) - 1px);
    --tblr-modal-header-padding-x: 1.5rem;
    --tblr-modal-header-padding-y: 1.5rem;
    --tblr-modal-header-padding: 1.5rem;
    --tblr-modal-header-border-color: var(--tblr-border-color);
    --tblr-modal-header-border-width: var(--tblr-border-width);
    --tblr-modal-title-line-height: 1.4285714286;
    --tblr-modal-footer-gap: 0.75rem;
    --tblr-modal-footer-bg: ;
    --tblr-modal-footer-border-color: var(--tblr-border-color);
    --tblr-modal-footer-border-width: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--tblr-modal-zindex);
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
  }
  
  .modal-dialog {
    position: relative;
    width: auto;
    margin: var(--tblr-modal-margin);
    pointer-events: none;
  }
  .modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -1rem);
  }
  @media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
      transition: none;
    }
  }
  .modal.show .modal-dialog {
    transform: none;
  }
  .modal.modal-static .modal-dialog {
    transform: scale(1.02);
  }
  
  .modal-dialog-scrollable {
    height: calc(100% - var(--tblr-modal-margin) * 2);
  }
  .modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden;
  }
  .modal-dialog-scrollable .modal-body {
    overflow-y: auto;
  }
  
  .modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - var(--tblr-modal-margin) * 2);
  }
  
  .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--tblr-modal-color);
    pointer-events: auto;
    background-color: var(--tblr-modal-bg);
    background-clip: padding-box;
    border: var(--tblr-modal-border-width) solid var(--tblr-modal-border-color);
    border-radius: var(--tblr-modal-border-radius);
    outline: 0;
  }
  
  .modal-backdrop {
    --tblr-backdrop-zindex: 1050;
    --tblr-backdrop-bg: #1d273b;
    --tblr-backdrop-opacity: 0.24;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--tblr-backdrop-zindex);
    width: 100vw;
    height: 100vh;
    background-color: var(--tblr-backdrop-bg);
  }
  .modal-backdrop.fade {
    opacity: 0;
  }
  .modal-backdrop.show {
    opacity: var(--tblr-backdrop-opacity);
  }
  
  .modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: var(--tblr-modal-header-padding);
    border-bottom: var(--tblr-modal-header-border-width) solid var(--tblr-modal-header-border-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .modal-content {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  .modal-header .btn-close {
    padding: calc(var(--tblr-modal-header-padding-y) * 0.5) calc(var(--tblr-modal-header-padding-x) * 0.5);
    margin: calc(-0.5 * var(--tblr-modal-header-padding-y)) calc(-0.5 * var(--tblr-modal-header-padding-x)) calc(-0.5 * var(--tblr-modal-header-padding-y)) auto;
  }
  
  .modal-title {
    margin-bottom: 0;
    line-height: var(--tblr-modal-title-line-height);
  }
  
  .modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--tblr-modal-padding);
  }
  
  .modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: calc(var(--tblr-modal-padding) - var(--tblr-modal-footer-gap) * 0.5);
    background-color: var(--tblr-modal-footer-bg);
    border-top: var(--tblr-modal-footer-border-width) solid var(--tblr-modal-footer-border-color);
    border-bottom-right-radius: var(--tblr-modal-inner-border-radius);
    border-bottom-left-radius: var(--tblr-modal-inner-border-radius);
  }
  .modal-footer > * {
    margin: calc(var(--tblr-modal-footer-gap) * 0.5);
  }
  
  @media (min-width: 576px) {
    .modal {
      --tblr-modal-margin: 1.75rem;
      --tblr-modal-box-shadow: 0 0.5rem 1rem rgba(var(--tblr-body-color-rgb), 0.15);
    }
    .modal-dialog {
      max-width: var(--tblr-modal-width);
      margin-right: auto;
      margin-left: auto;
    }
    .modal-sm {
      --tblr-modal-width: 380px;
    }
  }
  @media (min-width: 992px) {
    .modal-lg,
    .modal-xl {
      --tblr-modal-width: 720px;
    }
  }
  @media (min-width: 1200px) {
    .modal-xl {
      --tblr-modal-width: 1140px;
    }
  }
  .modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen .modal-header,
  .modal-fullscreen .modal-footer {
    border-radius: 0;
  }
  .modal-fullscreen .modal-body {
    overflow-y: auto;
  }
  
  @media (max-width: 575.98px) {
    .modal-fullscreen-sm-down {
      width: 100vw;
      max-width: none;
      height: 100%;
      margin: 0;
    }
    .modal-fullscreen-sm-down .modal-content {
      height: 100%;
      border: 0;
      border-radius: 0;
    }
    .modal-fullscreen-sm-down .modal-header,
    .modal-fullscreen-sm-down .modal-footer {
      border-radius: 0;
    }
    .modal-fullscreen-sm-down .modal-body {
      overflow-y: auto;
    }
  }
  @media (max-width: 767.98px) {
    .modal-fullscreen-md-down {
      width: 100vw;
      max-width: none;
      height: 100%;
      margin: 0;
    }
    .modal-fullscreen-md-down .modal-content {
      height: 100%;
      border: 0;
      border-radius: 0;
    }
    .modal-fullscreen-md-down .modal-header,
    .modal-fullscreen-md-down .modal-footer {
      border-radius: 0;
    }
    .modal-fullscreen-md-down .modal-body {
      overflow-y: auto;
    }
  }
  @media (max-width: 991.98px) {
    .modal-fullscreen-lg-down {
      width: 100vw;
      max-width: none;
      height: 100%;
      margin: 0;
    }
    .modal-fullscreen-lg-down .modal-content {
      height: 100%;
      border: 0;
      border-radius: 0;
    }
    .modal-fullscreen-lg-down .modal-header,
    .modal-fullscreen-lg-down .modal-footer {
      border-radius: 0;
    }
    .modal-fullscreen-lg-down .modal-body {
      overflow-y: auto;
    }
  }
  @media (max-width: 1199.98px) {
    .modal-fullscreen-xl-down {
      width: 100vw;
      max-width: none;
      height: 100%;
      margin: 0;
    }
    .modal-fullscreen-xl-down .modal-content {
      height: 100%;
      border: 0;
      border-radius: 0;
    }
    .modal-fullscreen-xl-down .modal-header,
    .modal-fullscreen-xl-down .modal-footer {
      border-radius: 0;
    }
    .modal-fullscreen-xl-down .modal-body {
      overflow-y: auto;
    }
  }
  @media (max-width: 1399.98px) {
    .modal-fullscreen-xxl-down {
      width: 100vw;
      max-width: none;
      height: 100%;
      margin: 0;
    }
    .modal-fullscreen-xxl-down .modal-content {
      height: 100%;
      border: 0;
      border-radius: 0;
    }
    .modal-fullscreen-xxl-down .modal-header,
    .modal-fullscreen-xxl-down .modal-footer {
      border-radius: 0;
    }
    .modal-fullscreen-xxl-down .modal-body {
      overflow-y: auto;
    }
  }


  .theme-dark .card,
  .theme-dark .card-footer,
  .theme-dark .card-stacked::after,
  .theme-dark .footer:not(.footer-transparent),
  .theme-dark .modal-content,
  .theme-dark .modal-header,
  .theme-dark .dropdown-menu,
  .theme-dark .toast,
  .theme-dark .toast-header,
  .theme-dark .alert:not(.alert-important) {
    background-color: var(--tblr-bg-surface);
    color: inherit;
  }
  .theme-dark .modal {
    --tblr-modal-border-color: var(--tblr-border-color);
  }


  .theme-dark-auto .card,
  .theme-dark-auto .card-footer,
  .theme-dark-auto .card-stacked::after,
  .theme-dark-auto .footer:not(.footer-transparent),
  .theme-dark-auto .modal-content,
  .theme-dark-auto .modal-header,
  .theme-dark-auto .dropdown-menu,
  .theme-dark-auto .toast,
  .theme-dark-auto .toast-header,
  .theme-dark-auto .alert:not(.alert-important) {
    background-color: var(--tblr-bg-surface);
    color: inherit;
  }
  .theme-dark-auto .modal {
    --tblr-modal-border-color: var(--tblr-border-color);
  }


.modal-content .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
    padding: 0;
    z-index: 10;
  }
  
  .modal-body {
    scrollbar-color: rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)), 0.16) transparent;
  }
  .modal-body::-webkit-scrollbar {
    width: 1rem;
    height: 1rem;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
  }
  @media (prefers-reduced-motion: reduce) {
    .modal-body::-webkit-scrollbar {
      -webkit-transition: none;
      transition: none;
    }
  }
  .modal-body::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    border: 5px solid transparent;
    box-shadow: inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)), 0.16);
  }
  .modal-body::-webkit-scrollbar-track {
    background: transparent;
  }
  .modal-body:hover::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 0 1rem rgba(var(--tblr-scrollbar-color, var(--tblr-body-color-rgb)), 0.32);
  }
  .modal-body::-webkit-scrollbar-corner {
    background: transparent;
  }
  .modal-body .modal-title {
    margin-bottom: 1rem;
  }
  .modal-body + .modal-body {
    border-top: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  }
  
  .modal-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tblr-muted);
    border-radius: var(--tblr-border-radius-lg) var(--tblr-border-radius-lg) 0 0;
  }
  
  .modal-header {
    align-items: center;
    min-height: 3.5rem;
    background: #ffffff;
    padding: 0 3.5rem 0 1.5rem;
  }
  
  .modal-title {
    font-size: 1rem;
    font-weight: var(--tblr-font-weight-bold);
    line-height: 1.4285714286;
  }
  
  .modal-footer {
    padding-top: 0;
    padding-bottom: 0.75rem;
  }
  
  .modal-blur {
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
  }
  
  .modal-full-width {
    max-width: none;
    margin: 0 0.5rem;
  }
  

  


.row-m {
    --tblr-gutter-x: var(--tblr-content-padding);
    --tblr-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--tblr-gutter-y));
    margin-left: -10px;
    margin-right: -10px;
  }
  .row-m > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin-top: var(--tblr-gutter-y);
    padding-left: 10px;
    padding-right: 10px;
  }
  
.img-fluid {
  max-width: 100%;
  height: auto;
}
.col-3 {
  flex: 0 0 auto;
  width: calc(25% - 20px);
}
.col-4 {
    flex: 0 0 auto;
    width: calc(33.33333333% - 20px);
  }
  .col-6 {
    flex: 0 0 auto;
    width: calc(50% - 20px);
  }
  

@media (min-width: 768px) {
    .col-md-2 {
      flex: 0 0 auto;
      width: calc(16.66666667% - 20px);
    }
    .modal-top .form-label{
      font-size: 1.5rem;
    }
    .modal-top .char-data .form-label{
      font-size: 1rem;
    }
}

.modal-top .form-label{
  text-align: center;
}
.circle {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    width:100%;
    border: 4px solid transparent;
}

.circle.selected {
    border: 4px solid rgb(154 52 205);
}

.circle img{
    width:100%;
    height: 100%;
    object-fit: cover;
}

.selectedCharacter{
    width: 60px;
    margin-right: 5px;
    position: relative;
}

.btn-close {
  appearance: button;
  background-attachment: scroll;
  background-clip: border-box;
  background-color: rgba(0, 0, 0, 0);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  background-origin: padding-box;
  background-position-x: 50%;
  background-position-y: 50%;
  background-repeat: no-repeat;
  background-size: 12px;
  border-bottom-color: rgb(0, 0, 0);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom-style: none;
  border-bottom-width: 0px;
  border-image-outset: 0;
  border-image-repeat: stretch;
  border-image-slice: 100%;
  border-image-source: none;
  border-image-width: 1;
  border-left-color: rgb(0, 0, 0);
  border-left-style: none;
  border-left-width: 0px;
  border-right-color: rgb(0, 0, 0);
  border-right-style: none;
  border-right-width: 0px;
  border-top-color: rgb(0, 0, 0);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-top-style: none;
  border-top-width: 0px;
  box-sizing: content-box;
  color: rgb(0, 0, 0);
  cursor: pointer;
  display: block;
  filter: invert(1) grayscale(1) brightness(2);
  font-family: Inter, -apple-system, "system-ui", "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-feature-settings; normal;
  font-kerning: auto;
  font-optical-sizing: auto;
  font-size: 14px;
  font-size-adjust: none;
  font-stretch: 100%;
  font-style: normal;
  font-weight: 400;
  height: 56px;
  letter-spacing: normal;
  line-height: 20px;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
  margin-top: 0px;
  opacity: 0.3;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 0px;
  pointer-events: auto;
  position: absolute;
  right: 0px;
  scrollbar-color: rgba(248, 250, 252, 0.16) rgba(0, 0, 0, 0);
  text-align: center;
  text-indent: 0px;
  text-rendering: auto;
  text-shadow: none;
  text-size-adjust: 100%;
  text-transform: none;
  top: 0px;
  width: 56px;
  word-spacing: 0px;
  z-index: 10;
}

.remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  background-color: red;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
}

.char-data  textarea.form-control, .char-data  select.form-control, .char-data  input.form-control{
  padding: .5rem .75rem;
  appearance: none;
  background-attachment: scroll;
  background-clip: border-box;
  background-color: white;
  background-image: none;
  background-origin: padding-box;
  background-position-x: 0px;
  background-position-y: 0px;
  background-repeat: repeat;
  background-size: auto;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-image-outset: 0;
  border-image-repeat: stretch;
  border-image-slice: 100%;
  border-image-source: none;
  border-image-width: 1;
  border-left-color: rgba(255, 255, 255, 0.08);
  border-left-style: solid;
  border-left-width: 1px;
  border-right-color: rgba(255, 255, 255, 0.08);
  border-right-style: solid;
  border-right-width: 1px;
  border-top-color: rgba(255, 255, 255, 0.08);
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  border-top-style: solid;
  border-top-width: 1px;
  box-sizing: border-box;
  color: rgbrgba(0, 0, 0, 0);
  column-count: auto;
  cursor: text;
  display: block;
  font-family: Inter, -apple-system, "system-ui", "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-feature-settings: normal;
  font-kerning: auto;
  font-optical-sizing: auto;
  font-size: 1rem!important;
  font-stretch: 100%;
  font-style: normal;
  width: 100%;
}

.delete-btn {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(255, 0, 0, 0.553);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  font-size: 16px;
}