.character-content {
  .sheet-common();
  .character-sheet-common();
  overflow: scroll;
}

.character-main {
  display: flex;
  
  .character-pc {
    display: flex;
    gap: 10px;
    flex: 1;

    .character-left {
      min-width: 180px;
      display: flex;
      flex-direction: column;

      .character-left-image {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 20px;
        .character-img {
          height: 140px;
          width: auto;
          border: none;
        }
      }

      .character-hp-edit {
        input {
          display: flex;
          width: 60px;
          font-size: calc(var(--font-size-standard) * 1.4);
          align-items: center;
          justify-content: center;
          padding: 0 5px 0 5px;
          text-align: center;
        }
      }
    }

    .character-right {
      display: flex;
      flex-direction: column;
      gap: 5px;

      .character-name {
        display: flex;
        input {
          width: 400px;
        }
      }

      .character-infos {
        display: flex;
        flex-direction: column;
        gap: 10px;

        label {
          min-width: 120px;
        }
        .character-hp {
          display: flex;
          gap: 2px;
          align-items: center;
          .character-hp-value {
            .form-fields input {
              flex: none;
              width: 50px;
              margin-left: 10px;
              font-size: calc(var(--font-size-standard) * 1.4);
            }
          }
          .character-hp-max {
            clear: both;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            margin: 3px 0;
            align-items: center;
            input {
              width: 50px;
              text-align: center;
              font-size: calc(var(--font-size-standard) * 1.4);
            }
          }
          .hp-separator {
            font-size: calc(var(--font-size-standard) * 1.2);
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }
      }
    }
  }

  .character-pc-play {
    min-width: 500px;
  }

  .character-pc-edit {
    min-width: 650px;
  }

  .character-characteristics {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;

    .character-characteristic {
      display: flex;
      align-items: center;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .form-group {
        flex: 1;
        padding-left: 5px;
        .form-fields {
          flex: none;
          width: 70px;
        }
      }
    }
  }
  .character-challenges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;

    .character-challenge {
      display: flex;
      align-items: center;
      margin-right: 1rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .name {
        flex: 1;
        min-width: 3rem;
        margin-left: 0.5rem;
      }
      .form-group {
        flex: 1;
        padding-left: 5px;
        .form-fields {
          flex: none;
          width: 50px;
        }
      }
    }
  }

  .character-movements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;

    .character-movement {
      display: flex;
      align-items: center;
      margin-right: 1rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .name {
        flex: 1;
        min-width: 3rem;
        margin-left: 0.5rem;
      }
      .form-group {
        flex: 1;
        padding-left: 5px;
        .form-fields {
          flex: none;
          width: 50px;
        }
      }
    }
  }

  .character-saves {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;

    .character-save {
      display: flex;
      align-items: center;
      margin-right: 1rem;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor: pointer;
      }
      .name {
        flex: 1;
        min-width: 3rem;
        margin-left: 0.5rem;
      }
      .form-group {
        flex: 1;
        padding-left: 5px;
        .form-fields {
          flex: none;
          width: 50px;
        }
      }
    }
  }

  .character-characteristics-play {
    min-width: 225px;
  }

  .character-characteristic-edit {
    min-width: 400px;
  }

  .character-resources {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;

    .character-resource {
      display: flex;
      align-items: center;
      .rollable:hover,
      .rollable:focus {
        text-shadow: 0 0 8px var(--color-shadow-primary);
        cursor:
          pointer;
      }
      .form-group {
        flex: 1;
        padding-left: 5px;
        .form-fields {
          flex: none;
          width: 70px;
        }
      }
      .character-resource-edit {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 10px;
        input {
          display: flex;
          width: 70px;
          font-size: calc(var(--font-size-standard) * 1.4);
          align-items: center;
          justify-content: center;
          padding: 0 5px 0 5px;
        }
        input[type="number"] {
          text-align: center;
        }
        select {
          font-family: var(--font-secondary);
          font-size: calc(var(--font-size-standard) * 1.5);
          text-align: center;
          width: 75px;
        }
      }
    }
  }

  .character-resources-play {
    min-width: 235px;
  }

  .character-resources-edit {
    min-width: 400px;
  }
}

.character-biography {
  prose-mirror.inactive {
    min-height: 40px;
  }
  prose-mirror.active {
    min-height: 150px;
  }
}

.tab.character-skills {
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 5px;
    }
  }
  .skills {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    .skill {
      display: flex;
      align-items: center;
      gap: 10px;
      .item-img {
        width: 50px;
        height: 50px;
      }
    }
  }
  .gifts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    .gift {
      display: flex;
      align-items: center;
      gap: 10px;
      .item-img {
        width: 50px;
        height: 50px;
      }
    }
  }
  .vulnerabilities {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    .vulnerability {
      display: flex;
      align-items: center;
      gap: 10px;
      .item-img {
        width: 50px;
        height: 50px;
      }
    }
  }
}
.tab.character-weapons {
    display: grid;
    grid-template-columns: 1fr;
    legend {
      a {
        font-size: calc(var(--font-size-standard) * 1.4);
        padding-left: 5px;
      }
    }
  
  .weapons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    .weapon {
      display: flex;
      align-items: center;
      gap: 10px;
      .item-img {
        width: 50px;
        height: 50px;
        margin: 5px 0 0 0;
      }
    }
  }
  .armors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    .armor {
      display: flex;
      align-items: center;
      gap: 10px;
      .item-img {
        width: 50px;
        height: 50px;
        margin: 5px 0 0 0;
      }
    }
  }
}

.tab.character-spells {
  display: grid;
  grid-template-columns: 1fr;
  legend {
    a {
      font-size: calc(var(--font-size-standard) * 1.4);
      padding-left: 5px;
    }
  }

  .spells {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    .spell {
      display: flex;
      gap: 10px;
    }
  }

  .appris {
    font-weight: bold;
  }
  prose-mirror.inactive {
    min-height: 40px;
  }
  prose-mirror.active {
    min-height: 150px;
  }
}
