
:root {
    --accent: #efc025;
    --primary: #214287;
  }

  /* Layout */
  .main-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .main-left {
    width: 100%;
    max-width: 600px;
  }

  .chat-panel {
    flex: 1;
    min-width: 260px;
    max-width: 350px;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    height: 500px;
  }

  /* Video */
  .video-container {
    background: #000;
    width: 100%;
    border-radius: 10px;
    border: 3px solid var(--accent);
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;   /* IMPORTANT */
  }
  .video-container video {
    width: 100%;
    display: block;
  }

  /* Interaction Section */
  .interaction-section {
    width: 100%;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--primary);
    padding: 15px;
    margin-top: 10px;
  }

  /* Chat */
  .chat-header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px 6px 0 0;
    font-weight: bold;
  }
  .chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
  }
  .message {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    max-width: 90%;
  }
  .incoming {
    background: #e9ecf3;
    color: #333;
  }
  .outgoing {
    background: var(--primary);
    color: white;
    margin-left: auto;
  }


.drag-ghost { opacity: .6; }
.dragging   { cursor: grabbing; }

  /* Lists */
#interactionHolder .category-items {
    min-height: 120px;            /* gives a stable drop area */
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px;
    background-clip: padding-box; /* avoids bleed during drag */
  }
  
  /* Items */
  #interactionHolder .category-item {
    display: block;                /* important for Sortable */
    cursor: grab;
    transition: transform 0.12s;   /* tiny transform only, no margin/pos transitions */
    will-change: transform;
  }
  #interactionHolder .category-item:active { cursor: grabbing;}
  
  /* Sortable states */
  .drag-ghost { opacity: .35; }
  .drag-chosen { transform: rotate(2deg) scale(1.02); }
  .dragging { cursor: grabbing !important; }
  
/* Main container keeps its original border (for layout stability) */
.interaction-section {
    position: relative;
    border: 3px solid var(--primary);
    border-radius: 14px;
    overflow: visible;
  }
  

  #interactionProgressBar .progress-bar {
    background-color: var(--accent); /* yellow */
    transition: width linear;
  }

  #interactionProgressBar .progress-bar.done {
    background-color: var(--accent);
  }

  /* First div takes full container */
.videoBox {
  width: 100%;
  height: 100%;
  background: #111;
}

/* Second div overlays top half */
.questionText {
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  height: 40%;          /* <-- Take 50% of container height */
  background: rgba(216, 217, 244, 0.927); /* example visual */
  border-radius: 8px;
  border: 2px solid var(--primary);
  text-align: center;
  vertical-align: middle;
  font-size: 40px;
  font-weight: 600;
  color: var(--primary);
  display: none;

}
@media (max-width: 768px) {
  .chat-panel {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 300px;
  }
  .questionText {
    position: absolute;
    top: 70%;
    left: 0;
    width: 100%;
    height: 30%;          /* <-- Take 50% of container height */
    background: rgba(216, 217, 244, 0.927); /* example visual */
    border-radius: 8px;
    border: 2px solid var(--primary);
    text-align: middle;
    vertical-align: middle;
    font-size: 13px;
    color: var(--primary);
    display: none;
  
  }
}
.results-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  padding: 10px;
}

.results-table {
  flex: 1;
  min-width: 280px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.results-title {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 12px;
  text-align: center;
}

.table-results {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
}

.table-results thead th {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding: 8px 4px;
}

.table-results tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background 0.2s;
}

.table-results tbody tr:hover {
  background: #f9f9f9;
}

.table-results td {
  padding: 6px 4px;
  color: black;
}

.correct {
  color: var(--correct);
  font-weight: bold;
}

.wrong {
  color: var(--wrong);
  font-weight: bold;
}

@media (max-width: 768px) {
  .results-wrapper {
    flex-direction: column;
  }
}
.active2{
  border: 2px solid #efc025 !important;

}
.choice-item:hover{
  background-color: #ffffff !important;
  color: #48639c !important;
  
}