/* Additions for the supplied descriptions and collapsible line comments. */
body > .container { width: 92%; max-width: 1360px; padding-left: 12px; padding-right: 12px; }
.problem-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.problem-heading-row h2 { margin-bottom: 0; }
.page-language { display: flex; align-items: center; gap: 5px; padding-top: 30px; white-space: nowrap; color: #777; font-size: 13px; }
.language-button { min-width: auto; margin: 0; padding: 3px 8px; border: 1px solid #b8c2cc; border-radius: 3px; color: #555; background: #fff; font-size: 12px; cursor: pointer; }
.language-button:hover { border-color: #3498DB; color: #1f83c6; }
.language-button.active { border-color: #3498DB; color: #fff; background: #3498DB; }
.localized-content[hidden] { display: none; }
.problem-description-box { width: 100%; max-height: 320px; margin: 12px 0 18px; padding: 16px 18px; overflow-y: auto; border: 2px solid #d9dee5; border-radius: 5px; background: #fbfcfd; }
.problem-description-box[hidden], .pfp-result-panel[hidden], .pfp-answer-feedback[hidden], .comment-help[hidden], .hint-answer[hidden] { display: none; }
.problem-description-box h2 { padding-top: 0; margin-bottom: 14px; }
.problem-description { line-height: 1.65; }
.problem-description p { margin-bottom: 12px; color: #555; }
.problem-description pre.description-code { height: auto; overflow: auto; white-space: pre; }
.problem-description .description-table { width: auto; min-width: 360px; margin: 10px 0 18px; }
.problem-description .description-table th,
.problem-description .description-table td { padding: 6px 12px; border: 1px solid #ddd; }
.problem-description .description-table th { font-weight: bold; background: #f7f7f7; }
.exercise-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.exercise-instruction { margin: 0; color: #555; }
.comment-help { margin-left: 6px; color: #777; font-size: 13px; }
.blue-marker { color: #3498DB; font-weight: bold; font-size: 16px; }
pre.prettyprint { display: flex; gap: 2%; padding: 8px; }
.fl, .fr { float: none; min-width: 0; height: 100%; margin: 0; white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; }
.fl { width: 54%; padding: 10px 10px 10px 24px; }
.fr { width: 44%; padding: 10px; }
.pfp-code { white-space: normal; }
.pfp-code-line { position: relative; min-height: 1.5em; white-space: pre-wrap; overflow-wrap: anywhere; }
.pfp-hints-enabled .pfp-code-line.has-comment { margin-left: -18px; padding-left: 18px; cursor: pointer; }
.pfp-hints-enabled .pfp-code-line.has-comment:before { content: "▸"; position: absolute; left: 0; width: 16px; color: #3498DB; font-size: 16px; line-height: 1.2; }
.pfp-hints-enabled .pfp-code-line.has-comment[aria-expanded="true"]:before { content: "▾"; }
.pfp-hints-enabled .pfp-code-line.has-comment:hover { background: #eef7fd; }
.pfp-hints-enabled .pfp-code-line.has-comment:focus { outline: 1px dotted #3498DB; outline-offset: 1px; }
.pfp-code-line input { max-width: 100%; height: 22px; padding: 1px 4px; font-family: inherit; font-size: inherit; }
.pfp-comment { margin: 2px 0 5px; padding: 5px 8px; border-left: 3px solid #1BBC9B; color: #006400; background: #f0fbf7; white-space: pre-wrap; }
.pfp-comment[hidden] { display: none; }
.pfp-comment-text { display: block; }
.pfp-comment-text[hidden] { display: none; }
.pfp-action-bar { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0 8px; }
.pfp-action-bar .btn { min-width: 110px; margin: 0; color: #fff; cursor: pointer; }
.pfp-action[data-action="answer"] { background: #3979b2; }
.pfp-action[data-action="output"] { background: #438e43; }
.pfp-action[data-action="description"] { background: #c04f94; }
.pfp-action[data-action="hint"] { background: #d64735; }
.pfp-action[data-action="give-up"] { background: #d99528; }
.pfp-answer-feedback, .pfp-result-panel { margin: 12px 0; padding: 12px 16px; border: 1px solid #d8e0e8; background: #fbfcfd; }
.pfp-answer-feedback { border-left: 4px solid #3979b2; }
.pfp-result-panel h2 { margin: 0 0 10px; padding: 0; }
.pfp-result-panel h3 { margin: 10px 0 4px; font-size: 16px; }
.pfp-result-panel pre { margin: 0; padding: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pfp-hint-list { padding-left: 24px; }
.blank-hint { margin: 0 0 12px; padding: 5px 0; }
.blank-hint strong { display: inline-block; min-width: 72px; }
.blank-hint-comment { white-space: pre-wrap; margin: 4px 0 0; }
.hint-answer { display: inline-block; margin-left: 8px; }
@media screen and (max-width: 767px) {
  body > .container { width: 96%; }
  .problem-heading-row { align-items: flex-end; flex-wrap: wrap; }
  .page-language { padding-top: 8px; }
  .problem-description-box { max-height: 260px; }
  .exercise-toolbar { align-items: flex-start; flex-direction: column; }
  pre.prettyprint { flex-direction: column; gap: 12px; height: auto; }
  .fl, .fr { width: 100%; height: 520px; margin: 0; }
}
