@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,700,900');

html,
body {
  height: 100%;
  font-family: Source Sans Pro;
  font-weight: 300;
}

/* Sign In */

.form-signin {
  max-width: 350px;
}

/* Info */

h1 {
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 40px;
}

.container-md {
  max-width: 600px;
  margin-bottom: 100px;
}

ul {
  text-align: left;
}

.btn-dark {
  margin-top: 40px;
  width: 70%;
}

.spinner-border {
  width: 80px;
  height: 80px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Questions */

#answerForm .custom-control-label {
  transform: scale(2);
  margin-bottom: 40px;
}

#answerForm .custom-control-input:focus~.custom-control-label::before {
  box-shadow: none !important;
}

h3 img {
  width: 70%;
}

/* Question text - responsive sizing */
h3 b {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.exam_option {
  font-size: clamp(1.2rem, 2.5vw, 2.0rem);
  margin-bottom: 0.5em;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.exam_option label {
  display: inline-block;
  max-width: calc(100% - 1.5em);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.exam_option input {
  border: 0px;
  width: 0.7em;
  height: 0.7em;
  flex-shrink: 0;
  vertical-align: top;
  margin-top: 0.15em;
}

.short_answer_container {
  margin: 2em 0;
}

.short-answer-input {
  font-size: 1.5em;
  padding: 0.5em;
  border: 2px solid #ccc;
  border-radius: 5px;
}

.code_answer_container {
  margin: 2em 0;
}

.code-answer-input {
  font-family: 'Courier New', monospace;
  font-size: 1.2em;
  padding: 0.5em;
  border: 2px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

/* Code Editor Styles */

.language-selector-container {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.language-label {
  font-size: 1.2em;
  font-weight: 600;
  margin-right: 10px;
  display: inline-block;
  margin-bottom: 8px;
}

.language-select {
  display: inline-block;
  width: auto;
  min-width: 200px;
  font-size: 1.1em;
  padding: 8px 12px;
  border: 2px solid #444;
  border-radius: 5px;
  background-color: #2d2d2d;
  color: #f8f8f2;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.language-select:hover,
.language-select:focus {
  border-color: #66d9ef;
  outline: none;
  box-shadow: 0 0 5px rgba(102, 217, 239, 0.5);
}

#codeEditorWrapper {
  max-width: 900px;
  margin: 0 auto;
}

.CodeMirror {
  border: 2px solid #444;
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  height: auto;
  min-height: 400px;
  text-align: left;
}

.CodeMirror-scroll {
  min-height: 400px;
}

.CodeMirror-gutters {
  background-color: #23241f;
  border-right: 1px solid #3e3d32;
}

.CodeMirror-linenumber {
  color: #75715e;
  padding: 0 5px;
}

.CodeMirror-cursor {
  border-left: 2px solid #f8f8f0;
}

/* Override default code answer styles when CodeMirror is present */
.code_answer_container {
  margin: 2em 0;
}

.question-type-header {
  border-bottom: 1px solid black;
    display: block;
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-weight: bold;
}

.question-type-example {
    margin-top: 10px;
    border: 1px dotted grey;
    border-radius: 5px;
    padding: 1px 10px;
    background: #f2f2f2;
}

.preview-banner {
        background: #ff9800;
        color: white;
        padding: 10px;
        text-align: center;
        font-weight: bold;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      }