* {
  box-sizing:border-box
}

body {
  margin:0;
  color:#242424;
  background:#fff;
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px
}

button,textarea {
  font:inherit
}

button {
  cursor:pointer;
  color:inherit
}

button:focus-visible {
  outline:3px solid #4262de;
  outline-offset:4px
}

header {
  height:76px;
  background:#e7edf7;
  border-bottom:2px dashed #202020;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px
}

header strong {
  font-size:18px
}

.subject {
  font-size:13px;
  color:#596271;
  display:block;
  margin-top:5px
}

nav {
  display:flex;
  gap:28px
}

nav button {
  background:none;
  border:0;
  font-size:13px;
  display:grid;
  gap:4px;
  min-width:46px
}

nav button span {
  font-size:21px
}

main {
  height:calc(100dvh - 158px);
  display:grid;
  grid-template-columns:1fr 4px 1fr;
  padding:36px 0 26px;
  overflow:hidden
}

.stimulus,.response {
  overflow-y:auto;
  padding:0 7%;
  scrollbar-width:thin
}

.stimulus {
  padding:0 7% 40px 8%
}

.eyebrow {
  font-size:12px;
  font-weight:bold;
  letter-spacing:1.5px;
  color:#717787;
  margin:0 0 26px
}

.divider {
  background:#b7b7b7;
  position:relative
}

.divider span {
  position:absolute;
  top:42%;
  left:-5px;
  background:#303030;
  color:white;
  font-size:12px;
  padding:7px 0;
  border-radius:2px
}

.question-bar {
  display:flex;
  align-items:center;
  height:36px;
  background:#f0f0f0;
  border-bottom:2px dashed #252525;
  margin-bottom:22px
}

.question-bar>strong {
  background:#202020;
  color:#fff;
  padding:5px 8px;
  align-self:flex-start;
  min-width:30px;
  text-align:center
}

.question-bar button {
  background:none;
  border:0;
  font-size:14px;
  margin-left:8px
}

.question-bar #eliminate {
  margin-left:auto;
  background:#3651c8;
  border:1px solid #1b286c;
  border-radius:4px;
  color:white;
  padding:3px;
  margin-right:12px
}

.question-bar #eliminate[aria-pressed=false] {
  background:#666
}

.question-bar #flag[aria-pressed=true] {
  font-weight:bold;
  color:#284ac5
}

.instruction {
  font-size:14px;
  color:#555;
  margin-bottom:28px
}

.piece {
  display:block;
  height:auto;
  max-width:100%;
  margin:0 0 14px;
  mix-blend-mode:multiply
}

#stem .piece {
  margin-bottom:24px
}

.choice-row {
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 16px
}

.choice {
  background:#fff;
  border:1px solid #656565;
  border-radius:10px;
  width:100%;
  padding:15px;
  display:flex;
  align-items:flex-start;
  gap:18px;
  text-align:left;
  min-height:64px;
  transition:background .12s,border-color .12s
}

.letter {
  flex-shrink:0;
  display:grid;
  place-items:center;
  border:1px solid #555;
  border-radius:50%;
  width:27px;
  height:27px;
  font-size:14px;
  font-weight:bold;
  margin-top:1px
}

.choice-content {
  min-width:0;
  padding-top:3px
}

.choice .piece {
  margin:0 0 8px
}

.choice .piece:last-child {
  margin-bottom:0
}

.choice.selected {
  border:2px solid #3552d0;
  background:#eef2ff;
  padding:14px
}

.choice.selected .letter {
  background:#3552d0;
  color:white;
  border-color:#3552d0
}

.choice.correct {
  border:2px solid #227345;
  background:#eff8f1;
  padding:14px
}

.choice.wrong {
  border:2px solid #b44343;
  background:#fff2f1;
  padding:14px
}

.strike {
  flex-shrink:0;
  background:none;
  border:0;
  text-decoration:line-through;
  border-radius:50%;
  font-size:14px;
  width:30px;
  height:30px
}

.crossed .choice {
  opacity:.4
}

.crossed .choice-content {
  text-decoration:line-through
}

.crossed .strike {
  background:#ececec
}

.answer-tools {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:28px 44px 20px 0
}

.outline {
  background:white;
  border:1px solid #3c4c86;
  border-radius:22px;
  padding:10px 20px;
  font-size:14px;
  color:#223774;
  font-weight:bold
}

.primary {
  background:#3450d2;
  border:0;
  border-radius:24px;
  padding:12px 25px;
  color:white;
  font-size:14px;
  font-weight:bold
}

#saved {
  font-size:13px;
  color:#687086
}

#feedback {
  border-left:3px solid #3552d0;
  background:#f1f4fb;
  padding:20px;
  line-height:1.6;
  margin:0 44px 30px 0
}

#feedback h3 {
  font-size:16px;
  margin:0 0 10px
}

#feedback p {
  font-size:15px;
  margin:0;
  white-space:pre-line
}

footer {
  height:82px;
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#e7edf7;
  border-top:2px dashed #242424;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  gap:12px
}

.brand {
  display:flex;
  align-items:center;
  gap:10px
}

.brand-symbol {
  font-size:30px
}

.brand b {
  font-family:Georgia,serif;
  font-size:22px
}

.brand small {
  display:block;
  font-size:11px;
  color:#5b6679;
  margin-top:4px
}

.navigator {
  border:0;
  border-radius:5px;
  background:#262626;
  color:white;
  padding:10px 16px;
  font-weight:bold;
  font-size:14px;
  position:absolute;
  left:50%;
  transform:translateX(-50%)
}

.paging {
  display:flex;
  gap:12px
}

button:disabled {
  opacity:.4;
  cursor:default
}

dialog {
  border:1px solid #b9c4d9;
  border-radius:14px;
  padding:26px;
  width:min(740px,92vw);
  max-height:82dvh;
  box-shadow:0 20px 100px #18214733
}

dialog::backdrop {
  background:#1d284666
}

.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px
}

.dialog-head h2 {
  margin:0;
  font-size:22px
}

.dialog-head button {
  border:0;
  background:transparent;
  font-size:30px
}

.grid {
  display:grid;
  grid-template-columns:repeat(10,1fr);
  gap:10px;
  margin:22px 0
}

.grid button {
  border:1px solid #bbb;
  background:#fff;
  height:40px;
  border-radius:5px;
  position:relative
}

.grid button.answered {
  background:#e6ecff;
  border-color:#3552d0;
  color:#223faa
}

.grid button.current {
  outline:2px solid #3552d0;
  outline-offset:2px
}

.grid button.flagged:after {
  content:'⚑';
  position:absolute;
  right:-3px;
  top:-10px;
  color:#3450d2;
  font-size:18px
}

.legend,.subtle {
  font-size:14px;
  color:#626a7a;
  line-height:1.5
}

textarea {
  width:100%;
  min-height:220px;
  resize:vertical;
  padding:16px;
  border:1px solid #98a5c3;
  border-radius:8px;
  line-height:1.5
}

#dialogBody p {
  line-height:1.6
}

.reference {
  border-collapse:collapse;
  width:100%;
  font-size:14px
}

.reference td {
  border-bottom:1px solid #ddd;
  padding:12px 8px;
  line-height:1.5
}

.reference code {
  font-size:13px
}

.score {
  font-size:42px;
  font-weight:bold;
  color:#314ec4;
  margin:20px 0
}

.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap
}

.text-version {
  font-size:12px;
  color:#636c80;
  margin-top:18px
}

.text-version pre {
  white-space:pre-wrap;
  font-size:14px;
  line-height:1.6
}


@media(min-width:1650px) {
  .stimulus,.response {
  padding-left:12%;
  padding-right:12%
}


}

@media(max-width:800px) {
  header {
  height:70px;
  padding:0 16px
}

header strong {
  font-size:15px
}

.subject {
  font-size:12px
}

nav {
  gap:10px
}

nav button {
  font-size:11px
}

main {
  display:block;
  height:calc(100dvh - 146px);
  overflow-y:auto;
  padding-top:24px
}

.stimulus,.response {
  overflow:visible;
  padding:0 22px 22px
}

.divider {
  display:none
}

.eyebrow {
  margin-bottom:18px
}

.response {
  padding-bottom:40px
}

footer {
  height:76px;
  padding:0 14px
}

.brand {
  display:none
}

.navigator {
  position:static;
  transform:none;
  font-size:12px;
  padding:10px
}

.paging {
  gap:7px
}

.primary,.outline {
  padding:10px 15px
}

.grid {
  grid-template-columns:repeat(6,1fr)
}

.choice-row {
  gap:5px
}

.answer-tools,#feedback {
  margin-right:0
}


}



/* Clear, selectable question text and consistently indented Java. */
.question-text  {
   font-size: 16px;
   line-height: 1.65;
   margin: 0 0 20px;
   overflow-wrap: anywhere;
   
}


.java-code  {
   font-family: Consolas, "Liberation Mono", Menlo, monospace;
   font-size: 15px;
   line-height: 1.65;
   tab-size: 4;
   white-space: pre;
   overflow-x: auto;
   padding: 18px 20px;
   margin: 20px 0 24px;
   border: 1px solid #d9dee7;
   border-radius: 6px;
   background: #f3f5f8;
   color: #182233;
   max-width: 100%;
   text-align: left;
   
}


.java-code code  {
   font: inherit;
   
}


.choice-content  {
   display: block;
   flex: 1;
   
}


.choice-content .java-code  {
   margin: 0;
   padding: 8px 12px;
   font-size: 15px;
   
}


.choice-content .question-text  {
   margin: 0;
   
}


.stimulus, .response  {
   min-width: 0;
   
}


@media(max-width:800px)  {
   .java-code  {
   font-size: 14px;
   padding: 14px;
   
}

 
}


