.page-header.problem-title {
  margin-top: 0px;
  margin-bottom: 10px;
  border-bottom: 0px;
}

.page-header h1 {
  font-size: 36px;
}

h2.page-banner-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  margin: 0;
  color: #444;
  font-size: 22px;
  line-height: 28px;
}

.code-font {
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.problem-submit-code {
  width: 100%;
}
.CodeMirror {
  border: 1px solid black;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover {
  color: #fff;
  background-color: #228b22;
}

.compilation-message {
  background-color: inherit;
  border: 0px;
  padding: 0px;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
  background-color: #228b22;
  border-color: #228b22;
}

.pagination > li > a,
.pagination > li > span {
  color: #228b22;
}

.pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > li > span:focus,
.pagination > li > span:hover {
  color: #1d681d;
}

ul.login-bar {
  float: right;
  margin-bottom: 0px;
}

ul.login-bar li {
  display: inline-block;
}

ul.login-bar li.divider:before {
  position: relative;
  content: '/';
  font-size: 13px;
  margin: 0 3px;
  top: -1px;
  color: #ddd;
}

ul.login-bar li a {
  font-size: 12px;
  display: block;
  line-height: 32px;
}

.modal {
  z-index: 10000001;
}
.modal-backdrop {
  z-index: 10000000;
}

footer {
  padding-top: 0px;
}

.copyright-section {
  padding: 15px 0 45px 0;
}

/* progressbar */
.progressbar {
  background-color: #000000;
  padding: 3px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  -moz-box-shadow:
    0 1px 5px #000 inset,
    0 1px 0 #444;
  -webkit-box-shadow:
    0 1px 5px #000 inset,
    0 1px 0 #444;
  box-shadow:
    0 1px 5px #000 inset,
    0 1px 0 #444;
}

.progressbar .bar {
  display: inline-block;
  height: 100%;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  background-color: #006400;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  -webkit-transition: width 0.4s ease-in-out;
  -moz-transition: width 0.4s ease-in-out;
  -ms-transition: width 0.4s ease-in-out;
  -o-transition: width 0.4s ease-in-out;
  transition: width 0.4s ease-in-out;
}

.progressbar .text {
  position: relative;
  width: 99%;
  text-align: center;
  color: #fff;
  font-weight: bold;
}

.problem-statement-pdf {
  width: 100%;
}

#statement h1 {
  font-size: 20px;
  line-height: 26px;
  margin-top: 16px;
  margin-bottom: 8px;
}

#statement h2 {
  font-size: 18px;
  line-height: 24px;
  margin-top: 16px;
  margin-bottom: 8px;
}

#statement h3 {
  font-size: 16px;
  line-height: 22px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.problem-statement-lexical {
  overflow-wrap: anywhere;
}

.problem-statement-lexical blockquote {
  margin: 0 0 10px;
  padding: 10px 20px;
  border-left: 5px solid #eee;
  color: #555;
}

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

.problem-statement-lexical-code {
  display: block;
  white-space: pre-wrap;
  word-break: normal;
  overflow-x: auto;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.42857143;
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.problem-statement-lexical-code code {
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: inherit;
  background-color: transparent;
  border-radius: 0;
}

.problem-statement-lexical-table {
  width: auto;
  max-width: 100%;
}

.problem-statement-lexical-hr {
  margin: 20px 0;
}

.problem-statement-lexical-youtube-link {
  display: inline-block;
  margin: 4px 0;
}

.problem-pdf-web-viewer {
  width: 100%;
  height: 80vh;
  border: 1px solid #ddd;
  background-color: #fff;
}

.problem-pdf-viewer {
  width: 100%;
  position: relative;
  min-height: 80vh;
  border: 1px solid #ddd;
  background-color: #fff;
  --problem-pdf-toolbar-height: 48px;
}

.problem-pdf-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--problem-pdf-toolbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #ddd;
  background-color: #f7f7f7;
}

.problem-pdf-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.problem-pdf-toolbar-button {
  border: 1px solid #c8c8c8;
  background-color: #fff;
  color: #444;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  min-height: 32px;
}

.problem-pdf-toolbar-button[data-active='true'] {
  color: #228b22;
  border-color: #228b22;
  background-color: #eef8ee;
}

.problem-pdf-page-info {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.problem-pdf-viewer-container {
  position: absolute;
  top: var(--problem-pdf-toolbar-height);
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #525659;
}

.problem-pdf-viewer-container .pdfViewer {
  padding-bottom: 16px;
}

.problem-pdf-page-canvas {
  border: 1px solid #ddd;
  background-color: #fff;
}

.problem-pdf-loading,
.problem-pdf-error {
  padding: 12px 0;
}

@media (max-width: 767px) {
  .problem-pdf-web-viewer {
    height: 70vh;
  }

  .problem-pdf-viewer {
    min-height: 70vh;
    --problem-pdf-toolbar-height: 44px;
  }

  .problem-pdf-toolbar {
    padding: 6px;
  }

  .problem-pdf-toolbar-button {
    font-size: 11px;
    padding: 7px 8px;
  }
}

/********** custom_forms/settings/style.css **********/

.social-link {
  display: inline-block;
  height: 50px;
  width: 120px;
  margin: 0px;
  text-align: center;
  background: #4aaf51;
  font-size: 16px;
  font-weight: 300;
  line-height: 50px;
  color: #fff;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}
.social-link.social-link-facebook {
  background: #4862a3;
}
.social-link.social-link-twitter {
  background: #55acee;
}
.social-link.social-link-google {
  background: #dd4b39;
}

.social-link i {
  vertical-align: middle;
  font-size: 20px;
  line-height: 20px;
}

.btn-link-2 {
  display: inline-block;
  height: 50px;
  margin: 5px;
  padding: 15px 20px 0 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 16px;
  color: #fff;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}
.btn-link-2:hover,
.btn-link-2:focus,
.btn-link-2:active,
.btn-link-2:active:focus {
  outline: 0;
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

/***** Top content *****/

.inner-bg {
  padding: 0 0 80px 0;
}

.top-content .description {
  margin: 20px 0 10px 0;
}

.top-content .description p {
  opacity: 0.8;
}

.top-content .description a:hover,
.top-content .description a:focus {
  border-bottom: 1px dotted #fff;
}

.form-box {
  margin-top: 35px;
  padding-left: 0px;
  padding-right: 0px;
  border-color: #999;
  border-style: solid;
  box-shadow: 5px 5px 5px lightgray;
  border-radius: 7px 7px 7px 7px;
  border-width: 1px;
}

.form-top {
  overflow: hidden;
  padding: 0 0 15px 0;
  background: #fff;
  -moz-border-radius: 7px 7px 0 0;
  -webkit-border-radius: 7px 7px 0 0;
  border-radius: 7px 7px 0 0;
  text-align: left;
}

.form-top-left {
  float: left;
  width: 75%;
  padding-top: 25px;
  padding-left: 15px;
}

.form-top-left h3 {
  margin-top: 0;
}

.form-top-right {
  float: left;
  width: 25%;
  padding-top: 5px;
  padding-right: 10px;
  font-size: 66px;
  color: #ddd;
  line-height: 100px;
  text-align: right;
}

.form-bottom {
  padding: 25px 25px 30px 25px;
  background: #eee;
  -moz-border-radius: 0 0 7px 7px;
  -webkit-border-radius: 0 0 7px 7px;
  border-radius: 0 0 7px 7px;
  text-align: left;
}

.form-box .alert {
  margin-bottom: 0px;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}

.form-bottom form textarea {
  height: 100px;
}

.form-bottom form .btn {
  width: 100%;
}
.form-bottom form .input-error {
  border-color: #4aaf51;
}

.social-login {
  margin-top: 35px;
}

.social-login-buttons {
  margin-top: 25px;
}

/***** Media queries *****/

@media (max-width: 767px) {
  .form-box {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 415px) {
  h1,
  h2 {
    font-size: 32px;
  }
}

.alert-error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.subtask-result-panel .subtask-score {
  float: right;
  font-weight: bold;
  display: inline-block;
  border-radius: 5px;
  width: 20%;
  text-align: center;
  padding-top: 2px;
  padding-bottom: 2px;
  margin-top: -2px;
  color: white;
}

.subtask-result-panel .subtask-score.undefined {
  background-color: #babdb6;
}

.subtask-result-panel .subtask-score.correct {
  background-color: #4e9a06;
}

.subtask-result-panel .subtask-score.incorrect {
  background-color: #cc0000;
}

.subtask-result-panel .subtask-score.partially-correct {
  background-color: #cab503;
}

/* 코드 뷰어 펼치기/접기 */
.code-viewer-container {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.code-viewer-collapsed {
  overflow-y: auto;
  overflow-x: auto;
}

.code-viewer-expanded {
  overflow: visible;
}

.ojuz-prism-code .token.operator {
  background: transparent;
}

.code-viewer-toggle-btn {
  display: block;
  width: 100%;
  margin-top: -1px;
  border-radius: 0 0 4px 4px;
  border: 1px solid #ddd;
  background-color: #f7f7f7;
  color: #555;
  font-size: 13px;
  padding: 6px 0;
  cursor: pointer;
}

.code-viewer-toggle-btn:hover {
  background-color: #e8e8e8;
  color: #333;
}
