@keyframes contentAnimation {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.content {
  opacity: 0.01;
  transform: translate3d(0, 0, 0);
  animation-name: contentAnimation;
  animation-fill-mode: forwards;
  animation-duration: 0.3s;

  & th,
  & td {
    border-bottom-color: var(--contentCellBorderColor);
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

.answerRow {
  & th,
  & td {
    padding-top: var(--answerRowCellPadding);
    padding-bottom: var(--answerRowCellPadding);
    white-space: nowrap;
  }
}

.answerRowCorrect {
  background-color: var(--answerRowCorrectBackgroundColor);

  & .answerIcon {
    color: var(--answerRowAnswerIconColor);
  }

  & .answerTextfield,
  & .answerRatio {
    font-weight: var(--answerRowCorrectTextFieldFontWeight);
  }

  & .bar {
    background: var(--answerRowCorrectBarBackgroundColor);
  }
}

td.answerIcon {
  font-size: var(--answerIconFontSize);
  color: var(--answerIconColor);
  width: 1%;
}

th.answerTextfield {
  font-weight: var(--answerTextfieldFontWeight);
  overflow: hidden;
  max-width: 12rem;
}

.respondentLink {
  text-align: right;
  width: 1%;
}

td.respondentLink {
  color: var(--respondentLinkColor);
}

td.respondentLinkPresent {
  color: var(--respondentLinkPresentColor);
}

.answerRatio {
  text-align: right;
  width: 1%;
}

td.answerRatio {
  padding-left: var(--answerRatioPaddingLeft);
}

td.answerDistributionCell {
  border-bottom-color: transparent;
  padding: 0;
  width: 7rem;
  min-width: 7rem;
  height: 2.3rem;
}

.bar {
  background: var(--barBackgroundColor);
  transition: width 0.5s;
  position: relative;
  min-width: var(--barMinWidth);
  height: 100%;
}

@media screen and (--phoneBreakPoint) {
  th.answerTextfield {
    max-width: 0;
  }

  th.respondentLink {
    max-width: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
