.submodule:not(:last-child) {
    margin-bottom: 1rem;
}

/* Slider Container */
.slides {
  position: relative;
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slide {
  display: none; /* Hide all slides by default */
}

.slide.active {
  display: block; /* Show only the active slide */
}

.einleitung {
  margin-bottom: 15px;
}


.interactive_element .questions > div {
  display: flex;
}

.interactive_element .drag_and_drop .questions > div {
  flex-direction: column;
}

.erlauterung {
  display: none; /* Hide explanations by default */
}

.erlauterung.visible {
  display: block; /* Show explanations when triggered */
}

/* Buttons */
button.submit {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

button.submit:hover {
  background: #0056b3;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.nav-buttons .wp-block-button {
    display: inline-block;
    margin: 0;
}

.nav-buttons a {
  cursor: pointer;
  text-decoration: none;
}

/* Progress Bar */
.progress-bar-container {
  border-radius: 4px;
  position: relative;
  height: 2.5rem;
  display: flex;
  flex-direction: column;
}

.progress-bar-fill {
  width: 0%;
  transition: width 0.3s ease;
}

/* Error Message */
.error-message {
  display: none;
}

.error-message.visible {
  display: block;
}

/* General styling for labels */
.questions label {
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}
.questions input {
  accent-color: black;
}

/* Range slider */
.slider_container_inner,
.slider_container_inner > [class *= "range"]{
  display: flex;
}

.range_slider .range_output {
  position: absolute;
  transform: translateX(-50%);
  display: inline;
}

input[type="range"] {
  width: 100%;
  margin: auto 10px;
}


/* Correct answers */
.questions div[data-answer-type].correct input,
.questions div[data-answer-type].correct label,
div[data-answer-type="range"].correct .range_output,
div[data-answer-type="range"].correct input  {
  color: #0b7a29;
}

.questions div[data-answer-type].correct input {
  accent-color: #0b7a29; /* Green checkbox */
}

/* Incorrect answers */
.questions div[data-answer-type].incorrect input,
.questions div[data-answer-type].incorrect label,
div[data-answer-type="range"].incorrect .range_output,
div[data-answer-type="range"].incorrect input   {
  color: #ad0000; 
}

.questions div[data-answer-type].incorrect input {
  accent-color: #721c24; /* Red checkbox */
}

.questions div[data-answer-type].correct label:after, 
.questions div[data-answer-type].incorrect label:after,
div[data-answer-type="range"].solved .range_output:after
{
  content: "";
  background-repeat: no-repeat;
  margin-left: .65em;
  display: inline-block;
  background-size: 100%;
}

.questions div[data-answer-type].incorrect label:after,
div[data-answer-type="range"].incorrect .range_output:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17.137' height='17' viewBox='0 0 17.137 17'%3E%3Cg id='Group_1629' data-name='Group 1629' transform='translate(0.568 0.5)'%3E%3Cpath id='Path_223' data-name='Path 223' d='M.186,1.083a.634.634,0,0,1,.9-.9L8,7.1,14.918.186a.634.634,0,0,1,.9.9L8.9,8l6.918,6.918a.634.634,0,1,1-.9.9L8,8.9,1.083,15.815a.634.634,0,1,1-.9-.9L7.1,8,.186,1.083Z' fill='%23ad0000' stroke='%23ad0000' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E%0A");
  width: 0.9em;
  height: 0.9em;
  margin-bottom: -0.07em;
}

.questions div[data-answer-type].correct label:after,
div[data-answer-type="range"].correct .range_output:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='17.136' viewBox='0 0 23 17.136'%3E%3Cg id='Group_1630' data-name='Group 1630' transform='translate(0.5 0.57)'%3E%3Cpath id='Path_224' data-name='Path 224' d='M.22,9.891a.665.665,0,0,1-.047-.942A.673.673,0,0,1,1.12,8.9l6.1,5.5L20.841.208a.674.674,0,0,1,.95-.024.666.666,0,0,1,.024.945L7.738,15.794h0a.673.673,0,0,1-.936.035L.22,9.891Z' transform='translate(0 0)' fill='%230b7a29' stroke='%230b7a29' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E%0A");
  width: 1.23em;
  height: 1em;
  margin-bottom: -0.2em;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #000;
}

[class*="segment"] .video .video-container {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  width: 100%;
  background: aliceblue;
} 
/* 
[class*="segment"] .video .video-container .video-embed {
  width: 100%;
}  */


[class*="segment"] .video .video-container .video-overlay {
  margin: auto;
  text-align: center;
  padding: 20px;
}

/* Drag and Drop styles */
.dropzone, .question { 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, opacity 0.2s;
    touch-action: none;
}
.dropzone {
    touch-action: pan-y;
}

.question { 
    background-color: #fff; 
    cursor: grab; 
    user-select: none; 
}
.dragging { 
    opacity: 0.5; 
}
.valid-drop { 
    background-color: #e0e0e0; 
}
.dropzone-hidden { 
    opacity: 0.2; 
}
.empty { 
    opacity: 0;
}
.drag_and_drop .correct { 
    background-color: rgb(11 122 41 / 20%); 
    border-color: #0b7a29;
} 
.wrong { 
    background-color: rgb(173 0 0 / 20%); 
    border-color: #ad0000; 
    color: #721c24; 
}
.drag_and_drop .explanation { 
    display: none;
}
 