/* GESP 考试系统样式（基于 Bootstrap 3） */

body {
  font: 18px 'Lucida Grande', Helvetica, Arial, sans-serif;
  tab-size: 4;
  -moz-tab-size: 4;
  background: #fff;
}

a:hover {
  text-decoration: none;
}

a[ng-click],
a[ui-sref],
[role='button'] {
  cursor: pointer;
}

/* ---------------------------------------------------------------- 导航栏 */

.navbar .nav-contest-list,
.navbar .nav-contest-list:focus,
.navbar .nav-contest-list:hover {
  color: green !important;
  background-color: lightgreen !important;
}

.navbar .nav-clock {
  font-variant-numeric: tabular-nums;
}

.login-form {
  margin: 0;
  padding: 10px 15px;
  border: 0;
  box-shadow: none;
}

.login-form .form-group {
  display: block;
  margin-bottom: 10px;
}

.login-form .form-group:last-child {
  margin-bottom: 0;
}

.login-form .form-control {
  width: 100%;
  min-width: 200px;
}

/* ---------------------------------------------------------------- 页脚 */

.footer-meta {
  background: none;
}

/* ---------------------------------------------------------------- 通用 */

.label {
  line-height: 1.9;
  padding: 0.3em 0.6em 0.3em;
}

span.label {
  margin-right: 5px;
}

.panel-heading p {
  margin-top: 5px;
  margin-bottom: 5px;
}

div.panel-heading.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

table tr td,
table tr th {
  vertical-align: inherit !important;
}

th {
  text-align: center !important;
}

p img {
  max-width: 100%;
}

pre {
  font-size: inherit !important;
}

code {
  font-size: inherit !important;
  color: inherit !important;
}

textarea {
  font-family: monospace;
}

textarea.fixed-width {
  min-width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
}

.mono16 {
  display: inline-block;
  width: 16em;
}

div.paging_numbers {
  padding: 10px;
}

.dataTables_wrapper .row {
  margin: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  margin: 0;
}

/* ---------------------------------------------------------------- 题面 */

#problemtext {
  color: #404040;
}

#problemtext h2 {
  font-size: 180%;
  font-weight: bold;
  color: #202020;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

#problemtext h3 {
  font-size: 140%;
  color: #202020;
  font-weight: bold;
}

/* ---------------------------------------------------------------- 代码编辑器 */

#editor-wrapper {
  height: 400px;
  margin: 15px -15px -15px -15px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  position: relative;
}

#editor {
  width: 100%;
  height: 100%;
  font-size: 14px;
}

#editor-drop-indicator {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.54);
  text-align: center;
  line-height: 360px;
  font-size: 24px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.editor-hint {
  float: right;
  padding: 6px;
  opacity: 0.54;
}

/* ---------------------------------------------------------------- 选择题 */

.choice-box {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 10px 0 30px !important;
  margin: 10px 0 0 !important;
}

.choice-box > div p:last-child {
  margin-bottom: 10px;
}

.flex-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  margin-top: 0;
  font-size: 0.8em;
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.choice-submit-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.45);
}

.choice-submit-confirm {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.choice-proctoring-notice {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 3200;
  width: calc(100% - 30px);
  max-width: 520px;
  transform: translateX(-50%);
  padding: 12px 16px;
  border: 1px solid #8a6d3b;
  border-radius: 4px;
  background: #fcf8e3;
  color: #66512c;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* 全屏作答时页面背景保持白色 */
html:fullscreen,
html:-webkit-full-screen {
  background: #fff;
  overflow-y: auto;
}

/* ---------------------------------------------------------------- 水印 */

.wm-scope {
  position: relative;
}

.wm-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
  background-repeat: repeat;
  background-position: 0 0;
}

/* ---------------------------------------------------------------- 排行榜单元格 */

.bg-accepted {
  background-color: #dff0d8;
  text-align: center;
}

.bg-rejected {
  background-color: #f2dede;
  text-align: center;
}

.bg-unknown {
  background-color: #fcf8e3;
  text-align: center;
}

.scroll-x {
  overflow-x: auto;
  overflow-y: auto;
}

/* 考试通告自动换行 */
pre.dashboard {
  white-space: pre-wrap;
  word-break: break-word;
}
