.life-container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  // gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.life-box {
  display: grid;
  grid-template-rows: 1fr 1fr;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.life-input {
  width: 20%;
  font-size: 1.5rem;
  margin: auto;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  border-radius: 10px;
  border: none;
  box-shadow: var(--shadow);

  &::-webkit-inner-spin-button,
  &::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}

.tab-button {
  height: 3rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: black;
  transition: all 0.25s ease-in-out;
  background-color: var(--tab);
  border-top: 0;
  border-left: 0;
  border-bottom: 1px solid var(--border-color);
  border-right: 0;

  &.active {
    background-color: var(--tab-active);
    border-bottom: 3px solid var(--border-color);
  }
}

.tab-row {
  display: flex;
  flex: 0 0 3rem;
  > * {
    flex: 1 1 0;
  }
  > :first-child {
    border-radius: 10px 0 0 0;
    &.active {
      border-right: 1px solid var(--border-color);
    }
  }
  > :last-child {
    border-radius: 0 10px 0 0;
    border-right: 1px solid var(--border-color);
    &.active {
      border-left: 1px solid var(--border-color);
    }
  }
}

.life-data-container {
  height: calc(100% - 30rem);
  background-color: var(--field-background-color);
  border: var(--border);
  border-radius: 0 0 10px 10px;
  padding: 0.5rem;
}
