/* First ensure body and html take full height */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

:root {
  --bg-main: #1a1a1a;
  --bg-div: #212121;
  --primary: #5252e8;
  --orange: #ff8c00;
  --green: #03ad36;
  --red: #b80000;
  --secondary: #64748b;
  --text-light: #c9c9c9;
  --text-dark: #64748b;
  --error: #ef4444;
  --success: #22c55e;
  --taskDiv: #5d5d5d39;
}

body {
  background: var(--bg-main);
  color: var(--text-light);
  line-height: 1.5;
}

h3 {
  color: var(--text-light);
}

h4 {
  color: var(--text-light);
  font-size: 1.3rem;
  text-align: right;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 100;
  float: right;
  margin-right: 70px;
}

a {
  color: var(--text-light);
}

td {
  border: none;
}

textarea:focus {
  outline: none;
}

input:focus {
  outline: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
header {
  background: var(--bg-div);
  padding: 15px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  align-items: center;
  height: 36px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #6682ff;
  text-decoration: none;
  margin-left: 100px;
}

/* Forms */
.formContainer {
  width: 20%;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-div);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contactContainer {
  width: 20%;
  position: absolute;
  top: 6rem;
  right: 2rem;
  padding: 2rem;
  background: var(--bg-div);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.formLabel {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.formInput {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--primary);
  border-radius: 0.25rem;
  font-size: 1rem;
  background-color: var(--bg-main);
  color: var(--text-light);
}

.tableInput {
  width: 100%;
  font-size: 1rem;
  background: none;
  color: var(--text-light);
  border: none;
}

.asnweredField {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--primary);
  border-radius: 0.25rem;
  font-size: 1rem;
  background-color: var(--bg-main);
  color: var(--text-light);
  cursor: pointer;
}

.infoDiv {
  width: 100%;
  border: 1px solid rgb(46, 46, 46);
  background-color: var(--bg-div);
  border-radius: 5px;
  padding: 15px;
  position: relative;
}

.lessonTimer {
  margin-top: 15px;
  margin: auto;
  text-align: center;
  height: 50px;
  line-height: 50px;
  font-size: 30px;
  border: 1px solid #a5a5a5;
  width: 200px;
}

.centered {
  text-align: center;
}

.standardDropdown {
  padding: 5px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background-color: var(--bg-main);
  color: var(--text-light);
  margin: .3rem;
}

.tableClass {
  border-collapse: collapse;
  max-width: 100%;
}

.tableClass th {
  border: 1px solid var(--primary);
  background-color: #2a2ab3;
  font-weight: bold;
  min-width: 50px;
}

.tableClass td {
  border: 1px solid var(--primary);
  padding: 5px;
  min-width: 50px;
}


.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-light);
  background: none;
}

.btn-primary {
  border: 1px solid var(--orange);
  color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange);
  color: black;
}

.btn-green {
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-green:hover {
  background: var(--green);
  color: black;
}

.btn-red {
  border: 1px solid var(--red);
  color: var(--red);
}

.btn-red:hover {
  background: var(--red);
  color: black;
}

.card {
  background: var(--bg-div);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mt-4 {
  margin-top: 1rem;
}

.taskDiv {
  padding: 20px;
  border: 1px solid rgb(36, 36, 36);
  border-radius: 10px;
  box-shadow: 0 0 5px rgb(42, 42, 102);
  margin: 20px 0;
  position: relative;
  background-color: var(--taskDiv);
  backdrop-filter: blur(5px);
  user-select: none;
}

.centeredTask {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.popupPassword {
  display: none;
  position: absolute;
  color: black;
  width: 250px;
  height: auto;
  padding: 30px;
  background-color: #ecfef8;
  border: 1px solid #2e2e2e;
  box-shadow: 5px 5px 5px grey;
  z-index: 10;
}


.clientInfoPopup {
  display: none;
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 40px;
  background-color: var(--bg-div);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 5px;
  text-align: center;
  font-size: 16px;
  max-width: 300px;
  z-index: 1000;
  padding: 20px;
}

.wordToAdd {
  padding: 7px 25px;
  margin: 5px;
  border: 1px solid var(--primary);
  background-color: black;
  color: var(--text-light);
  border-radius: 20px;
  width: auto;
  font-size: 1rem;
  line-height: 1rem;
  display: inline-block;
  cursor: pointer;
}

.markToAdd {
  padding: 7px 25px;
  margin: 5px;
  border: 1px solid var(--primary);
  background-color: rgb(44, 44, 44);
  color: var(--text-light);
  width: auto;
  font-size: 1rem;
  line-height: 1rem;
  display: inline-block;
}

.removeButton {
  position: absolute;
  top: 2px;
  right: 4px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: #694545;
  font-size: 17px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  background: none;
  text-align: center;
}

.removeButton:hover {
  background: rgba(0, 0, 0, 0.158);
  font-weight: bold;
}

.sideBar {
  width: 200px;
  height: calc(100vh - 66px);
  float: left;
  overflow-y: auto;
  background-color: #131313;
}

.taskSheet {
  width: calc(100% - 420px);
  height: calc(100vh - 66px);
  float: left;
  overflow-y: auto;
  padding: 0 30px 0;
  position: relative;
  /* Ensure this is set */
}

/* Style for your dynamically added content */
.taskSheet>*:not(#matrix-background) {
  position: relative;
  z-index: 10;
  /* Ensure content appears above the matrix */
}

/* If your content needs a transparent background */
.taskSheet>*:not(#matrix-background) {
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
}

aside {
  width: 220px;
  height: calc(100vh - 66px);
  background: none;
  float: left;
  overflow-y: scroll;
}

.dashboardData {
  padding: 10px;
  border-radius: 12px;
  margin: 5px;
  width: calc(100% - 10px);
  background-color: var(--taskDiv);
  display: inline-block;
  backdrop-filter: blur(5px);
}

.scoreBoard {
  width: calc(95% - 80px);
  float: right;
}

.progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgb(18, 18, 18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  float: left;
}

.progress-ring_big {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.1s ease-out, stroke 0.1s ease-out;
  transform-origin: 50% 50%;
}

.track-circle {
  position: relative;
  width: 80px;
  height: 80px;
  background: rgb(18, 18, 18);
  border-radius: 50%;
  font-size: 24px;
  transform: rotate(-90deg);
}

textarea {
  resize: none;
  /* Completely disables resizing */
  height: 100%;
  display: block;
  box-sizing: border-box;
}

.track-ring__circle {
  transition: stroke-dashoffset 0.1s ease-out, stroke 0.1s ease-out;
}

.fixed-height {
  position: relative;
  height: 100vh;
  /* or your desired height */
  overflow: hidden;
}

.scrollable-content {
  position: relative;
  height: 100%;
  overflow-y: auto;
  z-index: 10;
}

#matrix-canvas {
  display: block;
}

.unitButton {
  width: 100%;
  padding: 5px;
  border: 1px solid #00000000;
  text-align: left;
  background: none;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
  color: white;
}

.adminMenuButton {
  width: 100%;
  padding: 5px;
  border: 1px solid #00000000;
  text-align: center;
  background: none;
  cursor: pointer;
  border-radius: 5px;
  position: relative;
  color: rgb(240, 240, 240);
}

.adminMenuButton:hover {
  border-color: #414141;
}

.untiName {
  float: left;
  min-height: 40px;
  display: grid;
  align-items: center;
  max-width: calc(100% - 50px);
  margin-left: 7px;
}

.custom-label {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

/* Hide default checkbox */
.custom-label input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

/* Custom checkbox box */
.custom-label .checkbox-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: #090425;
  border: 2px solid var(--primary);
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Checkmark */
.custom-label .checkbox-box:after {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  width: 12px;
  height: 20px;
  border: solid var(--primary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.2s ease;
}

/* Checked state */
.custom-label input[type="checkbox"]:checked+.checkbox-box {
  border-color: var(--primary);
}

.custom-label input[type="checkbox"]:checked+.checkbox-box:after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

/* Hover state */
.custom-label:hover .checkbox-box {
  border-color: #0700e1;
  box-shadow: 0 0 0 1px #0700e1;
}

.custom-label-green {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

/* Hide default checkbox */
.custom-label-green input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

/* Custom checkbox box */
.custom-label-green .checkbox-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: #062504;
  border: 2px solid var(--green);
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Checkmark */
.custom-label-green .checkbox-box:after {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  width: 12px;
  height: 20px;
  border: solid var(--green);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.2s ease;
}

/* Checked state */
.custom-label-green input[type="checkbox"]:checked+.checkbox-box {
  border-color: var(--green);
}

.custom-label-green input[type="checkbox"]:checked+.checkbox-box:after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

/* Hover state */
.custom-label-green:hover .checkbox-box {
  border-color: #00e125;
  box-shadow: 0 0 0 1px #00e125;
}


.custom-label-red {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

/* Hide default checkbox */
.custom-label-red input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

/* Custom checkbox box */
.custom-label-red .checkbox-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: #250404;
  border: 2px solid var(--red);
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Checkmark */
.custom-label-red .checkbox-box:after {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  width: 12px;
  height: 20px;
  border: solid var(--red);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.2s ease;
}

/* Checked state */
.custom-label-red input[type="checkbox"]:checked+.checkbox-box {
  border-color: var(--red);
}

.custom-label-red input[type="checkbox"]:checked+.checkbox-box:after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

/* Hover state */
.custom-label-red:hover .checkbox-box {
  border-color: #e10000;
  box-shadow: 0 0 0 1px #e10000;
}

.custom-label-orange {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

/* Hide default checkbox */
.custom-label-orange input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

/* Custom checkbox box */
.custom-label-orange .checkbox-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: #251a04;
  border: 2px solid var(--orange);
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Checkmark */
.custom-label-orange .checkbox-box:after {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  width: 12px;
  height: 20px;
  border: solid var(--orange);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.2s ease;
}

/* Checked state */
.custom-label-orange input[type="checkbox"]:checked+.checkbox-box {
  border-color: var(--orange);
}

.custom-label-orange input[type="checkbox"]:checked+.checkbox-box:after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

/* Hover state */
.custom-label-orange:hover .checkbox-box {
  border-color: #e16d00;
  box-shadow: 0 0 0 1px #e16d00;
}

.lessonsDiv {
  width: 100%;
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease-out;
}

.lessonButton {
  width: 140px;
  float: right;
}

input {
  outline: none;
}

.logout {
  position: absolute;
  right: 30px;
  height: 36px;
}

.questionDiv {
  width: 100%;
  background-color: var(--bg-main);
  border-radius: 5px;
  padding: 7px;
  margin-top: 7px;
  position: relative;
}

.dropItem {
  float: left;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid var(--bg-main);
  background-color: #131313;
  margin: 5px;
  cursor: pointer;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bar-container {
  width: 100%;
  height: 10px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
}

#sheetScoreBar {
  width: 0%;
  height: 100%;
}

.progress-container {
  width: 40px;
  height: 40px;
  position: relative;
  float: left;
}

.progress-ring {
  transform: rotate(-90deg);
  width: 40px;
  height: 40px;
}

.progress-ring-circle {
  fill: transparent;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke: #ff0000;
  transition: stroke 0.3s ease, stroke-dashoffset 0.3s ease;
}

.thumbnail {
  width: 300px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 500;
}

.thumbnail:hover {
  transform: scale(2);
}

.showMark {
  position: absolute;
  right: 30px;
  bottom: 2px;
  font-weight: bold;
}

.preview {
  margin-top: 20px;
  border: 2px dashed #3ba3ff;
  padding: 10px;
  min-height: 100px;
  min-width: 100px;
}

.previewImage {
  max-height: 300px;
  display: none;
}

.permissionButton {
  display: none;
  margin-top: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.permissionButton:hover {
  background-color: #45a049;
}

.fileInput {
  display: none;
}

.upload-btn-wrapper {
  display: inline-block;
}

.editor {
  min-height: 200px;
  width: 100%;
  padding: 15px;
  font-family: Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre;
  outline: none;
  overflow: auto;
  background: transparent;
  color: white;
  border: 1px solid var(--primary);
  border-radius: 5px;
}

/* Ensure all content preserves whitespace */
.editor * {
  white-space: pre;
}

.custom-scroll {
  /* Enable smooth scrolling */
  scroll-behavior: smooth;

  /* Hide default scrollbar for Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #000e1b;
}

/* Hide default scrollbar for Chrome/Safari/Edge */
.custom-scroll::-webkit-scrollbar {
  width: 8px;
  /* width of the entire scrollbar */
}

/* Track */
.custom-scroll::-webkit-scrollbar-track {
  background: #000e1b;
  /* light gray background */
  border-radius: 4px;
}

/* Handle */
.custom-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  /* indigo color for the thumb */
  border-radius: 4px;

  /* Add a subtle transition */
  transition: background 0.3s ease-in-out;
}

/* Handle on hover */
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
  /* darker shade on hover */
}

.ringLoad {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  perspective: 1000px;
  z-index: 2000;
  pointer-events: none;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 4px solid transparent;
  animation: spin 2s ease-in-out infinite;
}

.ring1 {
  width: 200px;
  height: 200px;
  border-top-color: #00ff88;
  border-bottom-color: #00ff88;
  animation-delay: 0s;
}

.ring2 {
  width: 160px;
  height: 160px;
  border-left-color: #ff00ff;
  border-right-color: #ff00ff;
  animation-delay: 0.2s;
}

.ring3 {
  width: 120px;
  height: 120px;
  border-top-color: #00ffff;
  border-bottom-color: #00ffff;
  animation-delay: 0.4s;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  40% {
    transform: translate(-50%, -50%) rotateX(360deg) rotateY(180deg) rotateZ(360deg);
  }

  80% {
    transform: translate(-50%, -50%) rotateX(720deg) rotateY(360deg) rotateZ(720deg);
  }

  90% {
    transform: translate(-50%, -50%) rotateX(720deg) rotateY(360deg) rotateZ(720deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) rotateX(720deg) rotateY(360deg) rotateZ(720deg);
    opacity: 0;
  }
}

.loadWait {
  display: none;
  position: fixed;
  width: 70px;
  height: 70px;
  top: calc(50% - 35px);
  left: calc(50% - 35px);
  z-index: 5;
  transform: rotate(180deg);
  z-index: 1000;
}

.loadWaitcolumn {
  width: 10px;
  margin-left: 2px;
  float: left;
}

.loadWaitpurple {
  background-color: purple;
  animation: changeHeightSmall .09s infinite alternate;
  margin-left: 5px;
}

.loadWaitred {
  background-color: red;
  animation: changeHeight .12s infinite alternate;
}

.loadWaitgreen {
  background-color: green;
  animation: changeHeight .16s infinite alternate;
}

.loadWaitblue {
  background-color: blue;
  animation: changeHeight .13s infinite alternate;
}

.loadWaitorange {
  background-color: orange;
  animation: changeHeight .1s infinite alternate;
}

.loadWaitpink {
  background-color: deeppink;
  animation: changeHeightSmall .08s infinite alternate;
}

@keyframes changeHeight {
  0% {
    height: 5px;
  }

  100% {
    height: 50px;
  }
}

@keyframes changeHeightSmall {
  0% {
    height: 5px;
  }

  100% {
    height: 30px;
  }
}

.tabHTML {
  margin-left: 25px;
}

.btn_mobile {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  background-color: #000e1b;
  text-align: center;
  position: absolute;
  top: 5px;
  left: 5px;
  cursor: pointer;
  border: none;
}


.flashcard-container {
  perspective: 1000px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--primary);
}

.flashcard {
  width: 70%;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
  margin: auto;
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: var(--bg-div);
  border-radius: 15px;
  color: rgb(233, 239, 243);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  box-sizing: border-box;
}

.flashcard-front {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  position: relative;
}

.flashcard-back {
  transform: rotateY(180deg) translateY(-300px);
  overflow-y: auto;
  font-size: 20px;
  display: block;
  align-content: center;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  color: #171717;
}

.arrow:hover {
  color: #0a5fd6;
}

.arrow.left {
  height: 100%;
  left: 10px;
}

.arrow.right {
  right: 10px;
  height: 100%;
}

#slideViewerContainer {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border: 1px solid #000000;
  display: none;
  z-index: 100;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#mirror {
  position: absolute;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  white-space: pre;
  font: inherit;
  padding: 4px 8px;
}

.sqltable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 4px;
}

.sqltable th,
.sqltable td {
  border: 1px solid var(--primary);
  padding: 5px;
  text-align: left;
}

.sqltable th {
  background-color: #2a2ab3;
  font-weight: bold;
  /* Or any color you want */
}

.sqltable tr:nth-child(odd) {
  background-color: #181818;
}

.sqltable tr:nth-child(even) {
  background-color: #151515;
}

.sqltable tr:hover {
  background-color: #202020;
}

.feedback {
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.feedback-success {
  background-color: var(--success);
  color: black;
}

.feedback-error {
  background-color: var(--error);
  color: black;
}

.feedback-info {
  background-color: var(--orange);
  color: black;
}

.ls-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 24px;
  font-weight: bold;
}

.ls-card-face-front {
  color: var(--text-light);
  background-color: var(--bg-main);
  border: 1px solid var(--primary);
}

.ls-card-face-back {
  background-color: var(--primary);
  border: 1px solid #ffbf00;
  color: black;
  transform: rotateY(180deg);
}

.ls-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.ls-card-container,
.is-card-container,
.bbs-card-container,
.bs-card-container {
  width: 60px;
  height: 90px;
  perspective: 1000px;
  cursor: pointer;
  margin: 5px;
  border-radius: 8px;
}

.is-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 120px;
}

.randomcolors {
  background-color: #FF5733;
  background-color: #FFC300;
  background-color: #00ddff;
  background-color: #c70032;
  background-color: #1ABC9C;
  background-color: #f80099;
  background-color: #24a363;
  background-color: #7c0558;
  background-color: #1252f3;
}

.ms-placeholder-group {
  display: inline-flex;
  border: 2px dashed #333;
  border-radius: 10px;
  padding: 10px;
  margin: 0 15px 15px 0;
  background-color: rgba(0, 0, 0, 0.05);
}

.ai-button {
  width: 25px;
  cursor: pointer;
  background: none;
  border: none;
  color: #49b9ff;
}

.flashcardsPopup {
  position: absolute;
  width: 90%;
  height: 90%;
  left: 5%;
  top: 5%;
  overflow-y: scroll;
  background-color: var(--bg-div);
  z-index: 100;
  padding: 15px;
  display: none;
}

.cardDiv {
  width: 100%;
  padding: 10px;
  background-color: var(--bg-main);
  border-radius: 5px;
  border: 1px solid rgb(20, 20, 20);
  margin-bottom: 10px;
  cursor: pointer;
}

.dragging {
  opacity: 0.5;
}

.milestone-animation {
  position: fixed;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fffbcc;
  padding: 20px 30px;
  border-radius: 20px;
  font-size: 2rem;
  font-family: Comic Sans MS, sans-serif;
  color: #333;
  box-shadow: 0 0 20px #ffc107;
  z-index: 9999;
  display: none;
  transform-origin: center center;
  animation: pop 1s ease-out;
}

@keyframes pop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }

  25% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}


.badgeContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, 35px);
  gap: 1px;
  max-width: calc(5 * 35px + 4 * 1px);
}

.badgeContainer>div {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popper-particle {
  position: fixed;
  pointer-events: none;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  z-index: 1000;
  animation: explode 4s ease-out forwards;
}

.popper-binary {
  font-size: 2rem;
  color: #00ff88;
  text-shadow: 0 0 10px currentColor;
}

.popper-symbol {
  font-size: 1.7rem;
  font-weight: bold;
}

.popper-bracket {
  color: #ff6b6b;
}

.popper-semicolon {
  color: #4ecdc4;
}

.popper-star {
  color: #ffe66d;
}

.popper-plus {
  color: #ff8b94;
}

@keyframes explode {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  3% {
    opacity: 1;
  }

  10% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: scale(0.5) rotate(720deg) translateY(100vh);
  }
}

.popper-firework {
  position: fixed;
  pointer-events: none;
  z-index: 999;
}

.popper-firework::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #00ff88, transparent);
  border-radius: 50%;
  animation: fireworkBurst 1s ease-out forwards;
}

@keyframes fireworkBurst {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  50% {
    transform: scale(20);
    opacity: 0.8;
  }

  100% {
    transform: scale(40);
    opacity: 0;
  }
}

.topStudents {
  width: 500px;
  background-color: #111;
  border-radius: 10px;
  position: absolute;
  top: 10%;
  left: calc(50% - 270px);
  padding: 20px;
  z-index: 10000;
  max-height: 80%;
  overflow-y: scroll;
}

.paperLink {
  font-weight: bold;
  color: #e5ff00;
  text-decoration: none;
  background: none;
  cursor: pointer;
}

footer {
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: var(--bg-div);
  position: absolute;
  bottom: 0px;
}

.gameDiv {
  width: 100%;
  height: calc(100% - 50px)
}

.classesDiv {
  position: absolute;
  width: 90%;
  left: 5%;
  top: 66px;
  height: calc(100% - 76px);
  background-color: var(--bg-main);
  display: none;
  z-index: 100;
}

.classListDiv {
  float: left;
  width: 150px;
  height: 100%;
  background-color: #151515;
}

.classDetailsDiv {
  float: right;
  width: calc(100% - 150px);
  height: calc(100% - 40px);
  margin-top: 40px;
  overflow-y: scroll;
}

.classOptionToggleA,
.classOptionToggleB {
  position: absolute;
  right: 0px;
  padding: 10px 0;
  text-align: center;
  font-weight: bold;
  color: #7fffc3;
  border: none;
  background: none;
  width: calc(50% - 75px);
  height: 40px;
  cursor: pointer;
}

.listedStudent {
  width: 100%;
  cursor: pointer;
  display: inline-block;
}

.listedStudent:hover {
  border-bottom: 1px solid white;
  border-top: 1px solid white;
}

.listedStudentOdd {
  border-bottom: 1px solid #1d1d1d;
  border-top: 1px solid #1d1d1d;
}

.listedStudentEven {
  border-bottom: 1px solid #1a1a1a;
  border-top: 1px solid #1a1a1a;
}

.classButton {
  text-align: center;
  font-size: 15px;
  opacity: .7;
  font-weight: bold;
  padding: 10px 0;
  border-radius: 0;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #151515;
  cursor: pointer;
}

.classButton:hover {
  opacity: 1;
}

.arrowNext {
  font-size: 24px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  user-select: none;
  color: #1034c7;
  background: none;
  cursor: pointer;
  border: none;
}

.arrowNext:hover {
  color: #0a5fd6;
}