@font-face {
    font-family: dejavu;
    src: url(../../BAHNSCHRIFT.TTF);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: dejavu;
    margin: 0;
    min-height: 100vh;
    position: relative;
}

footer {
    position: absolute;
    bottom: 0;
    text-align: center;
    line-height: 50px;
    width: 100%;
}

.pageButtons {
    background-color: #6b2727;
    color: white;
    padding: 15px;
    border-radius: 10px;
    width: fit-content;
    position: absolute;
    user-select: none;
    cursor: pointer;
}

select:invalid {
    color: black;
}

input:disabled {
    color: black;
}

select,
input:not([type="checkbox"],[type="radio"]) {
    color: black;
    appearance: none;
    background-color: #ffffff;
    border: solid #6d6d6d 1px;
    padding: 7px 15px 7px 7px;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    line-height: inherit;
    border-radius: 5px;
    width: fit-content;
    margin-left: 10px;
    margin-right: 10px;
    min-width: 50px;
}

.radio {
    accent-color: #6b2727;
    width: 17px;
    height: 17px;
    margin-right: 10px;
}

.checkbox {
    background-color: white;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #6b2727;
}

label {
    display: block;
    margin-left: 20px;
    margin-right: 20px;
    width: fit-content;
    padding: 5px;
    border-radius: 5px;
    user-select: none;
}

.done .question {
    margin-bottom: 50px;
}

.question {
    background-color: #d4d4d4;
    min-height: 100px;
    border-radius: 10px;
    padding-bottom: 20px;
}

.title {
    text-align: center;
    border-bottom: solid 1px #303030;
    margin: 0px 20px 20px 20px;
    padding: 10px 0;
    font-weight: bold;
}

#title span {
    vertical-align:middle;
}

.image {
    align-self: center;
    max-height: 600px;
    margin: 10px 20px 20px 20px;
    border-radius: 10px;
    max-width: calc(100% - 40px);
}

.text {
    margin: 20px;
    padding-top: 20px;
}

.question[data-type="simpleString"] input {
    margin: 20px;
}

.question[data-type="dragWords"] .text {
    line-height: 50px;
    vertical-align: top;
    user-select: none;
}

.dropTable {
    background-color: white;
    min-width: 100px;
    height: 30px;
    display: inline-block;
    transform: translateY(8px);
    border: solid #6d6d6d 1px;
    border-radius: 5px;
    margin: 0 10px;
}

.dropTable:not(:empty) {
    min-width: none;
    width: fit-content;
    /*transform: translateY(0px);*/
}

.dropTable .draggable {
    border: none;
    width: calc(100% - 20px);
    transform: translateY(-10px);
    background-color: #00000000;
}

.dragTable {
    min-height: 100px;
    border-radius: 5px;
    background-color: #eeeeee;
    margin: 0 20px;
    padding: 0 5px;
}

.draggable {
    height: 30px;
    padding: 0 10px;
    border: solid #6d6d6d 1px;
    border-radius: 5px;
    display: inline-block;
    background-color: white;
    line-height: 30px;
    user-select: none;
    cursor: grab;
}

.dragTable .draggable {
    margin: 10px 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

td:nth-child(1) {
    font-weight: bold;
}

td:nth-child(2) {
    width: 100%;
}

td {
    padding: 10px;
    border: solid #303030 1px;
}

.answer {
    margin: 20px;
    background-color: #e4d165;
    border-radius: 10px;
    padding: 20px;
    line-height: 1.5em;
}

#questCont {
    max-width: 1000px;
    min-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-inline-start: auto;
    margin-inline-end: auto;
    padding: 0 20px;
    font-size: 1.2em;
}

#quest_jump {
    background-color: #d4d4d4;
    border-radius: 10px;
    width: 100%;
    overflow:hidden;
    margin-bottom: 100px;
}

#quest_jump p {
    padding: 10px 20px;
    margin: 5px 0 5px 5px;
    font-weight: bold;
    width: fit-content;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
    vertical-align: top;
    display: inline-block;
    color: white
}

#topButton {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #6b2727;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
}

/* TOGGLE SWITCH */
/* TOGGLE SWITCH */
/* TOGGLE SWITCH */

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  max-width: 50px;
  height: 14px;
  user-select: none;
  flex-grow: 8;
  flex-shrink: 0;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
  border: solid 1px #6b2727;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #6b2727;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #6b2727;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(36px);
  -ms-transform: translateX(36px);
  transform: translateX(36px);
  background-color: white;
}

.textspan {
    margin-left: 0px;
    line-height: 24px;
    display: inline-block;
    vertical-align: top;
    font-size: 1.1em;
    user-select: none;
    flex-grow: 1;
  flex-shrink: 8;
}

dialog {
    border-radius: 10px;
    padding: 50px;
    width: 1000px;
    max-width: calc(90vw - 100px);
    max-height: calc(90vh - 100px);
}

.outlineButton {
    border: 1px solid #6b2727;
    color: #6b2727;
    padding: 15px;
    border-radius: 10px;
    width: fit-content;
    user-select: none;
    cursor: pointer;
    margin-bottom: 25px;
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
}

#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #6b2727;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
  border-radius: 10px;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}