input[readonly] {
  background-color: lightgray;
}

/* Accessibility: Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section Header Container */
.section-header-container {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-left: 4px solid #3182ce;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
}

/* Focus indicators for better keyboard navigation */
input[type="checkbox"]:focus,
select:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .label-option {
    border: 1px solid;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Problems */
.problem {
  font-family: MathJax_MainRegular;
  font-size: 16px;
  width: 580px;
  display: table !important;
}

.problem ol {
    counter-reset: list;
}

.problem ol .widtha {
  min-width: 95px;
}

.problem ol .widthb {
  min-width: 170px;
}

.problem ol .widthc {
  min-width: 400px;
}

.choices {
  counter-reset: list;
  padding-left: 0px;
  overflow: hidden;
  display: table-row;

  /***
  float:left;
  ***/
}

.choices > li {
  list-style: none;
  display: table-cell;
  float: left;
  vertical-align: middle;
  white-space: nowrap;
  margin-right: 10px;
}

.choices > li:before {
  content: "(" counter(list, upper-alpha) ") ";
  display: table-cell;
  counter-increment: list;
  float: left;
  vertical-align: middle;
  padding-top: 0px;
  padding-right: 3px;
}

.choices img {
  margin-bottom: 5px;
}
.problem span {
  display: inline;
  /***
	font-weight:300 !important; 
    color: #414141 !important;	
	***/
}

.problem .imgvermiddle {
  display: block;
  margin: 5px auto;
}

.problem .problemcontent {
  display: table-cell;
  vertical-align: top;
}

.problem img {
    max-width: 100%;
    height: auto;
}

.problem .problemimage {
  padding: 20px;
  display: table-cell;
  vertical-align: top;
  min-width: 120px;
}

.problem .problemimage img {
  display: block;
  margin: 0 auto;
}

.problem .choiceimage {
  vertical-align: middle;
  display: table-cell;
  float: left;
  margin-left: 5px;
}

.problem .choiceimage img {
  float: right;
}

.arrow,
.arrow:active {
  opacity: 0.4;
  cursor: pointer;
  filter: alpha(opacity=40);
}

.arrow:hover {
  opacity: 1;
  cursor: pointer;
  filter: alpha(opacity=100);
}

.left {
  float: left;
}

.middle {
  /**  
  alignment-adjust: middle;
  **/
  align-content: middle;
}

.right {
  float: right;
}

.listLable {
  display: block;
  float: left;
  margin: 1em 1em 0 0;
  font-size: 12px;
  font-style: italic;
  font-weight: bold;
}

#commandbar ul {
  list-style: none;
  display: table;

  /***	
    list-style-position: inside;
	***/
  padding-left: 5px;
}

.searchlist li {
  list-style-type: disc;
  display: table-cell;
  float: left;
  white-space: nowrap;
}

.problemsource {
  font-size: 14px;
  font-style: italic;
} 
/***
input[type="checkbox"]:disabled {

	display:none;
}
***/

/* Label Styles with Shades */

/* Section Header Row Container */
.section-header-row {
    display: table-row;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.section-header-row .header-cell {
    display: table-cell;
    padding: 8px 12px;
    vertical-align: middle;
    border-left: 4px solid #3182ce;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header-row .controls-cell {
    display: table-cell;
    padding: 8px 12px;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Section Header Labels */
.label-section-header {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #2d3748;
    margin: 0;
    padding: 0; /* Remove padding since it's now on the cell */
    background: none; /* Remove background since it's now on the row */
    border: none; /* Remove border since it's now on the row */
    border-radius: 0; /* Remove border-radius since it's now on the row */
    box-shadow: none; /* Remove box-shadow since it's now on the row */
}

/* Checkbox/Option Labels */
.label-option {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e2e8f0;
}

.label-option:hover {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border-color: #3182ce;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Contest Grade Labels - Pink Shade */
.label-contest {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #be185d;
}

.label-contest:hover {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    box-shadow: 0 3px 6px rgba(236, 72, 153, 0.2);
}

/* Primary Topic Labels - Blue Shade */
.label-primary {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    color: #2b6cb0;
}

.label-primary:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    box-shadow: 0 3px 6px rgba(49, 130, 206, 0.2);
}

/* Secondary Topic Labels - Green Shade */
.label-secondary {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #2f855a;
}

.label-secondary:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%);
    box-shadow: 0 3px 6px rgba(56, 161, 105, 0.2);
}

/* Small Labels for Form Elements */
.label-small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #718096;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
