html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.select-resize {
  resize: vertical;
}

.point-input {
  width: 3em;
  height: 0.9em;
  font-size: 0.7em;
}

/* Center the image and position the close button */
.imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
  position: relative;
}

.container-fluid {
  padding: 16px;
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

#qbody {
  height: 150px;
}

.main-card {
  margin-left: 232px;
  padding: 15px;
}

.ql-container {
  font-size: 20px;
}

.ql-editing {
  left: 0 !important;
  top: 0 !important;
}

.ql-snow .ql-tooltip[data-mode="formula"]::before {
  content: "Formül Girin" !important;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 20%;
}

.formula-modal {
  position: absolute;
  display: block;
  top: 5px;
  background: white;
  width: 62%;
  z-index: 10000;
  padding: 20px;
  overflow: scroll;
}

.formula-buttons {
  margin-top: 10px;
}

/* Add Zoom Animation */
.animate {
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s;
}

.click-img {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.7);
  overflow-y: scroll;
}

.img-big {
  display: block;
  margin: auto;
  width: 100%;
  height: auto;
}

.img {
  display: block;
  margin: auto;
  max-width: 400px;
  height: auto;
}

.option-img {
  display: inline;
  margin: auto;
  max-width: 200px;
}

.check-qst,
.drag-qst {
  line-height: 2em;
  padding-left: 10px;
  border: 1px solid gray;
  border-radius: 5px;
  margin: 1px 0;
}

.check-qst > a,
.drag-qst > a {
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75);
}

.drag-qst:hover {
  cursor: all-scroll;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.check-qst:nth-child(odd),
.drag-qst:nth-child(odd) {
  border: 1px solid gray;
  background: rgba(211, 211, 211, 0.5);
}

.check-in-range,
.drag-in-range {
  background: lightgreen !important;
}

.drag-in-range::before {
  content: attr(data-number);
}

#reset-card {
  padding: 60px 60px;
}

.student-answer {
  background: lightblue;
}

.correct-answer {
  background: yellowgreen;
}

.q-answer {
  background: lightgrey;
}

.wrong-answer {
  background: red;
}

.m-script {
  font-size: 75%;
  position: relative;
  line-height: 0;
  vertical-align: baseline;
}

.m-pre {
  color: #f8f8f2;
  white-space: pre-wrap;
  background-color: #23241f;
  overflow: visible;
  margin-top: 5px;
  border-radius: 3px;
  padding: 5px 10px;
}

.m-blockquote {
  border-left: 4px solid #ccc;
  margin-bottom: 5px;
  margin-top: 5px;
}

.q-td {
  width: 150px;
}

.flatpickr-hour,
.flatpickr-minute {
  pointer-events: none;
}

#ordered-area {
  display: flex;
}

#drag-area,
#drop-area {
  width: 50%;
}

#drag-area {
  padding-right: 15px;
}

#drop-area {
  padding-left: 15px;
  border-left: 3px solid black;
}

@media (max-width: 422px) {
  #reset-card {
    padding: 24px 24px;
  }
}

@-webkit-keyframes animatezoom {
  from {
    -webkit-transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
  }
}

@keyframes animatezoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
    display: block;
    float: none;
  }
  .cancelbtn {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .background {
    padding: 2%;
  }

  .formula-modal {
    width: 95%;
  }

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

@media only screen and (max-width: 600px) {
  .q-td {
    width: 100px;
  }
}
