/* Importing Bootstrap SCSS file. */
@import "bootstrap/scss/bootstrap";
// @import url("./helpers.scss");
// @import url("./button-styles.scss");
// @import url("./colors.scss");

@import "helpers";
@import "button-styles";
@import "colors";
@import "responsive";
@import "fonts";
@import "info-row";

// #region new styles

// Wraps journal components that have a limited centered layout.
.journal-content {
  position: relative;
  width: 1332px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
}

.header-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  h1 {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 0;
  }
}

.button-container {
  display: flex;
  gap: 1rem;

  .top-button {
    font-size: 1.25rem;
    font-weight: 600;
    width: 16rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    background-image: url("/assets/images/texture-0.jpg");
    border: none;
    box-shadow: var(--shadow);
  }
}

.character-container {
  position: absolute;
  top: 8.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: calc(100vh - 10.5rem);
  margin: auto;
  padding: 2rem 2rem;
  overflow: auto;
  border-radius: 10px;
  border: var(--gold-3);
  background-image: url("/assets/images/texture-0.jpg");
  box-shadow: var(--shadow);
}

// #endregion

//////////////////
////// OLD ///////
//////////////////

// LISTS
.item-list {
  width: 100%;
  overflow: auto;
}

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

.empty-list {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.footer {
  height: 5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-top);
}

// DRAG AND DROP

.cdk-drag-preview {
  box-sizing: border-box;
  border-radius: 10px;
  background-color: var(--items-hover);
  box-shadow:
    0 5px 5px -3px rgba(0, 0, 0, 0.2),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.cdk-drag-placeholder {
  opacity: 0;
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.item-list.cdk-drop-list-dragging .item:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

// GENERAL STYLES

//  CHECKBOXES

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px !important;
  height: 20px;
  background: white;
  border: 1px solid #000;
  border-radius: 2px;
  position: relative;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  background: var(--gold-dark);
  transform: translate(-50%, -50%);
}

// Scrollbar
::-webkit-scrollbar {
  width: 0.375rem;
  margin: 0.125rem 0;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #e6e6e6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
  border-radius: 10px;
}

.suffix {
  text-align: right;
  padding-right: 0.5rem;
  color: grey;
  font-size: 0.75rem;
}

// Line styles

.centered-line {
  display: flex;
  align-items: center;
}

// DETAILS + MODAL

.dimensions {
  width: 50rem;
  border-radius: 10px;
  border: var(--gold-3);
  padding: 0 2rem;
  box-shadow: var(--shadow);
  background-image: url("/assets/images/texture-0.jpg");
}

.title {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 1.5rem;
  text-align: center;
}

.heading {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.subheading {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.content {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.input-label {
  font-weight: 600;
  padding-left: 0.25rem;
}

.value-row {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.mat-mdc-text-field-wrapper {
  background-color: white !important;
  border-radius: 5px !important;
}

.flex-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}

.hint {
  font-size: 0.75rem;
  font-weight: 400;
  padding-left: 0.25rem;
}

.highlighted {
  font-weight: 800;
}

// RICH TEXT EDITOR
.ProseMirror {
  padding-left: 1rem !important;
  height: 8rem;
  overflow: auto;
}

.NgxEditor__Wrapper {
  border: var(--gold-1) !important;
}

// Used to remove the empty space under form fields
.mat-mdc-form-field-subscript-wrapper {
  display: none;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--bs-body-font-family) !important;
}

// Overriding the default styles of angular material

.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled)
  .mdc-list-item__primary-text {
  color: var(--primary) !important;
}

.mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal::after,
.mat-primary
  .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal::after {
  color: var(--primary) !important;
}

.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  .mdc-notched-outline__leading,
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  .mdc-notched-outline__notch,
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  .mdc-notched-outline__trailing {
  border-color: var(--primary) !important;
}

.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field
  .mdc-notched-outline__leading,
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field
  .mdc-notched-outline__notch,
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field
  .mdc-notched-outline__trailing {
  border-color: var(--primary) !important;
}

.mdc-text-field--outlined:not(.mdc-text-field--disabled)
  .mdc-text-field__input {
  caret-color: var(--primary) !important;
}

.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
  color: var(--primary) !important;
}

.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  .mdc-floating-label,
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
  .mdc-floating-label--float-above {
  color: var(--primary) !important;
}

.mat-mdc-radio-button
  .mdc-radio
  .mdc-radio__native-control:enabled:checked
  + .mdc-radio__background
  .mdc-radio__outer-circle {
  border-color: var(--primary) !important;
}

.mat-mdc-radio-button
  .mdc-radio
  .mdc-radio__native-control:enabled
  + .mdc-radio__background
  .mdc-radio__inner-circle {
  border-color: var(--primary) !important;
}

.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element {
  background-color: var(--primary) !important;
}

.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after,
.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after {
  background-color: var(--gold) !important;
}

.mdc-switch:enabled .mdc-switch__track::before {
  background-color: var(--grey-light) !important;
}
.mdc-switch:enabled .mdc-switch__track::after {
  background-color: var(--grey) !important;
}
