.ideal-answer-box { user-select: none; -webkit-user-select: none; }
.canvas-wrap { position: relative; display: inline-block; }
.canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}
.canvas-wrap .blocker {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: auto; /* explicitly intercepts right-click/long-press */
    z-index: 2;           /* ensure it's above the canvas */
}
@media (hover:hover) { .canvas-wrap .blocker { cursor: not-allowed; } }
/* deter long-press save on mobile Safari/Chrome */
.canvas-wrap, .canvas-wrap canvas { -webkit-touch-callout: none; }

.preserve-lines { white-space: pre-wrap; word-break: break-word; }

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

@media (min-width: 992px) {
  .nav-two-line {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: 100%;
    justify-content: end;
    align-items: center;
  }

  .nav-two-line .nav-item {
    min-width: 0;
  }

  .nav-two-line .nav-link {
    white-space: nowrap;
    display: inline-block;
    width: 100%;
    text-align: right;
  }

  .nav-two-line .nav-break {
    display: none;
  }
}

.navbar .nav-link.text-dark {
  border-radius: 6px;
  transition: background-color 0.15s ease-in-out;
}

.navbar .nav-link.text-dark:hover,
.navbar .nav-link.text-dark:focus {
  background-color: #fbe3e3;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    width: 100%;
  }

  .modal .form-control,
  .modal input,
  .modal select,
  .modal textarea {
    font-size: 16px;
  }

  .admin-greeting {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .modal-dialog {
    max-width: 95vw;
    margin: 1rem auto;
  }

  .modal-content {
    width: 100%;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.question-card {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}
.shade-0 { background-color: #f9f9f9; }
.shade-1 { background-color: #f0f0f0; }
.delete-icon {
    cursor: pointer;
    color: red;
    float: right;
}
.add-question-btn {
    font-size: 24px;
    cursor: pointer;
    color: green;
    display: inline-block;
    margin-top: 10px;
}
.radio-green-tick input[type="radio"]:checked + span::before {
    content: "✓";
    color: green;
    margin-right: 5px;
}
