.npcs-container {
  width: 18rem;
  height: 100%;
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url("../../../assets/images/texture-10.jpg");
  border-right: var(--gold-3);
  box-shadow: var(--shadow);
  padding-top: 1.5rem;
}

.npc-list-title {
  font-size: 1.5rem;
  font-weight: 500;
}

.npc {
  width: 15rem;
  padding: 1rem;
  border: var(--gold-2);
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  background-image: url("../../../assets/images/texture-0.jpg");
  &:hover {
    background-image: url("../../../assets/images/texture-5.jpg");
  }

  .npc-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
  }

  .unsaved {
    margin-top: 0.375rem;
    text-align: center;
    color: rgb(52, 33, 33);
    font-size: 0.75rem;
    font-weight: 600;
  }

  &.active {
    background-image: url("../../../assets/images/texture-30.jpg") !important;
    width: 14rem;
  }
}

.npc-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;

  .control-button-wrapper {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
  }

  &.active:not(.edit-mode) {
    .npc {
      width: 11rem;
      background-image: url("../../../assets/images/texture-30.jpg") !important;
    }
    .control-button-wrapper {
      display: flex;
    }
  }
  &.active {
    .npc {
      background-image: url("../../../assets/images/texture-30.jpg") !important;
    }
  }
  .add-button {
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;

    &.active {
      background-image: url("../../../assets/images/texture-30.jpg") !important;
    }
  }
}

.read-container {
  width: 800px;
  height: calc(100vh - 6rem);
  margin-top: 1.5rem;
  margin-left: calc(50vw - 400px + 9rem);
  padding: 1rem 2rem 2rem;
  overflow: auto;
  border-radius: 6px;
  border: var(--gold-3);
  background-image: url("/assets/images/texture-0.jpg");
  box-shadow: var(--shadow);

  .title-row {
    display: flex;
    justify-content: space-between;

    icon-button {
      width: 2rem;
      height: 2rem;
    }
  }

  .name-read {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .section-name {
    font-size: 1.25rem;
    font-weight: 500;
  }
}

// Write view

.write-container {
  width: 800px;
  height: calc(100vh - 2rem);
  margin-top: 1.5rem;
  margin-left: calc(50vw - 400px + 9rem);
  padding: 1rem 2rem 2rem;
  overflow: auto;

  .name-write {
    border: var(--gold-2);
    border-radius: 6px;
    box-shadow: var(--shadow);
    ::ng-deep .mat-mdc-text-field-wrapper {
      width: 26rem !important;
      background-image: url("../../../assets/images/texture-0.jpg") !important;
    }
  }
  .button-row {
    display: flex;
    justify-content: space-around;
    margin-top: 2.5rem;
  }
}

.write-label {
  margin: 0 0 0.25rem 0.25rem;
  font-weight: 600;
}

.empty-container {
  width: 800px;
  margin-top: 45vh;
  margin-left: calc(50vw - 5rem);
  font-weight: 600;
  font-size: 1.5rem;
}

// MATERIAL

.mat-expansion-panel {
  border: var(--gold-2);
}

::ng-deep .mat-expansion-panel-body {
  padding: 0 1rem 1rem !important;
}

.mat-accordion {
  width: 16rem;
}

// Editor

.NgxEditor__Wrapper {
  border: var(--gold-3) !important;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

::ng-deep .NgxEditor__MenuBar {
  background-image: url("../../../assets/images/texture-10.jpg");
}

ngx-editor {
  &.short-editor {
    ::ng-deep .ProseMirror {
      height: calc((100vh - 40rem) / 2);
      background-image: url("../../../assets/images/texture-0.jpg");
      border-radius: 0 0 4px 4px;
    }
  }

  &.long-editor {
    ::ng-deep .ProseMirror {
      height: calc((100vh - 18rem) / 2);
      background-image: url("../../../assets/images/texture-0.jpg");
      border-radius: 0 0 4px 4px;
    }
  }
}
