/* (c) Innings2, generated by Mathigon Studio */
x-math-canvas {
  --canvas-bg: #ffffff;
  --canvas-fg: #181824;
  --toolbar-bg: #292735;
  --toolbar-header-bg: #1e1c28;
  --accent-color: #5c9eff;
  --primary-color: #007bff;
  position: relative;
  display: block;
  background-color: var(--canvas-bg);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}
x-math-canvas .outer-div {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
x-math-canvas .canvas-container {
  flex: 1;
  position: relative;
  background: var(--canvas-bg);
  min-height: 400px;
}
x-math-canvas .canvas-container canvas {
  display: block;
}
x-math-canvas #drawtools {
  display: none;
  padding: 8px 12px;
  background: var(--toolbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
x-math-canvas #drawtools .toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
x-math-canvas #drawtools sl-button-group {
  --sl-spacing-x-small: 2px;
}
x-math-canvas #drawtools sl-button::part(base) {
  min-width: 36px;
  min-height: 36px;
}
x-math-canvas #drawtools sl-divider[vertical] {
  --color: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
  height: 28px;
}
x-math-canvas .active-draw-tool::part(base) {
  background-color: var(--accent-color) !important;
  color: white !important;
}
x-math-canvas #toolbar {
  display: none;
  position: absolute;
  left: 8px;
  top: 56px;
  z-index: 100;
  width: 220px;
  max-height: calc(100% - 70px);
  overflow-y: auto;
  background: var(--toolbar-bg);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
x-math-canvas .toolbar-header {
  padding: 12px 16px;
  background: var(--toolbar-header-bg);
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
x-math-canvas .toolbar-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
x-math-canvas .accordion-container {
  padding: 8px;
}
x-math-canvas .tool-group {
  background: transparent;
  border: none;
  margin-bottom: 4px;
  border-radius: 8px;
}
x-math-canvas .tool-group::part(base) {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
}
x-math-canvas .tool-group::part(header) {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
x-math-canvas .tool-group::part(summary-icon) {
  color: rgba(255, 255, 255, 0.6);
}
x-math-canvas .tool-group::part(content) {
  padding: 8px;
  padding-top: 0;
}
x-math-canvas .tool-group[open]::part(base) {
  background: rgba(255, 255, 255, 0.08);
}
x-math-canvas .tool-group:hover::part(base) {
  background: rgba(255, 255, 255, 0.1);
}
x-math-canvas .tool-group sl-icon[slot=expand-icon] {
  font-size: 16px;
  color: var(--accent-color);
  margin-right: 8px;
}
x-math-canvas .tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
x-math-canvas .tool-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: grab;
  transition: all 0.15s ease;
}
x-math-canvas .tool-item:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}
x-math-canvas .tool-item:active {
  cursor: grabbing;
  transform: scale(0.95);
}
x-math-canvas .tool-item svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 0.5px;
  fill: none;
}
x-math-canvas .tool-item svg path,
x-math-canvas .tool-item svg rect,
x-math-canvas .tool-item svg circle,
x-math-canvas .tool-item svg polygon {
  stroke: #fff;
}
x-math-canvas .popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--toolbar-bg);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 320px;
  padding: 0;
  color: #fff;
  z-index: 1000;
  overflow: hidden;
}
x-math-canvas .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--toolbar-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
x-math-canvas .popup-header span {
  font-weight: 600;
  font-size: 15px;
}
x-math-canvas .popup-header sl-icon-button::part(base) {
  color: rgba(255, 255, 255, 0.6);
}
x-math-canvas .popup-header sl-icon-button::part(base):hover {
  color: #fff;
}
x-math-canvas .popup-content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
}
x-math-canvas .input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}
x-math-canvas .input-container label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 35px;
}
x-math-canvas .input-container input,
x-math-canvas .input-container select {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  transition: all 0.15s ease;
}
x-math-canvas .input-container input:focus,
x-math-canvas .input-container select:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.12);
}
x-math-canvas .input-container input::-moz-placeholder, x-math-canvas .input-container select::-moz-placeholder {
  color: rgba(255, 255, 255, 0.3);
}
x-math-canvas .input-container input::placeholder,
x-math-canvas .input-container select::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
x-math-canvas .popup sl-button {
  margin: 0 16px 16px 16px;
  width: calc(100% - 32px);
}
x-math-canvas .slider-container {
  display: none;
  position: absolute;
  top: 56px;
  right: 8px;
  background: var(--toolbar-bg);
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
x-math-canvas .slider-container label {
  font-size: 13px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.8);
}
x-math-canvas .slider-container input[type=range] {
  width: 120px;
  cursor: pointer;
  vertical-align: middle;
}
x-math-canvas .slider-container span {
  margin-left: 8px;
  min-width: 35px;
  display: inline-block;
  font-weight: 500;
  color: var(--accent-color);
}
@media (max-width: 767px) {
  x-math-canvas #toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 50vh;
    border-radius: 16px 16px 0 0;
  }
  x-math-canvas #toolbar .tool-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  x-math-canvas #drawtools .toolbar-row {
    justify-content: center;
  }
}
@media (min-width: 768px) {
  x-math-canvas {
    max-width: 1000px;
    min-height: 600px;
  }
  x-math-canvas .canvas-container {
    min-height: 500px;
  }
}
x-math-canvas #toolbar::-webkit-scrollbar {
  width: 6px;
}
x-math-canvas #toolbar::-webkit-scrollbar-track {
  background: transparent;
}
x-math-canvas #toolbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
x-math-canvas #toolbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

x-quiz {
  display: block;
}
x-quiz .quizcard {
  width: 100%;
}
x-quiz .question {
  display: none;
  font-size: 1.2em;
}
x-quiz .question .correct_answer {
  display: none;
}
x-quiz .question .answers {
  margin-top: 40px;
  list-style: none;
}
x-quiz .question .answers li {
  padding: 0;
  margin: 0px;
  border: 1px solid rgba(33, 36, 44, 0.64);
  border-right: 0px;
  border-left: 0px;
  padding: 5px;
}
x-quiz .question .answers li:hover {
  background-color: #e5e5e5;
}
x-quiz .question .answers li.active {
  background-color: #e5e5e5;
}
x-quiz .question .hint {
  margin-top: 20px;
  font-size: 0.9em;
  color: #555;
}
x-quiz .nav {
  height: 40px;
  position: relative;
}
x-quiz .dots {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
x-quiz .dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(24, 24, 36, 0.2);
  float: left;
  margin: 4px;
  transition: background 0.2s;
}
html[theme=dark] x-quiz .dot {
  background: rgba(255, 255, 255, 0.4);
}
x-quiz .dot.on {
  background: rgba(0, 0, 0, 0.8);
}
html[theme=dark] x-quiz .dot.on {
  background: white;
}

body {
  font-family: Arial, sans-serif;
}

#content {
  transition: filter 0.3s ease;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 6;
}

.modal-content {
  background-color: rgb(242, 172, 172);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.blurred {
  filter: blur(10px);
}

.para {
  font-size: 15px;
}