/* H5PMods shortcode styles consolidated v6 */

/* Passive and active button styles */
.h5pmods-button,
.h5pmods-button-passive,
.h5pmods-button-active {
  display: inline-block;
  padding: 0.35em 0.75em;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.h5pmods-button,
.h5pmods-button-passive {
  background: #fff;
  color: #0099ff;
  border: 2px solid #0099ff;
}

.h5pmods-button-active {
  background: #0099ff;
  color: #fff;
  border: 2px solid #0099ff;
}

/* Switch shortcode styles */
.h5pmods-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.2;
  white-space: nowrap;
}

.h5pmods-switch::before {
  content: '';
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.h5pmods-switch-on {
  backdrop-filter: blur(12px);
  background: #28ba6a17;
  color: #28BA6A;
}

.h5pmods-switch-on::before {
  background: #28BA6A;
}

.h5pmods-switch-off {
  background: #f4f4f5;
  color: #555;
}

.h5pmods-switch-off::before {
  background: #9ca3af;
}

/* Hotspot shortcode styles */
.h5pmods-hotspot {
  border: 0.2px solid lightgrey;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35em 0.8em 0.35em 0.3em;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: inherit;
  font-weight: 700;
  line-height: 1.25;
}

.h5pmods-hotspot::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  height: 1.45em;
  min-width: 1.45em;
  border-radius: 50%;
  background: #fff;
  color: #0099ff;
  border: 2px solid #0099ff;
  font-weight: 800;
  font-size: 0.95em;
  box-sizing: border-box;
}

/* Toggle shortcode styles */
.h5pmods-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: inherit;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  position: relative;
}

.h5pmods-toggle::before {
  content: '';
  width: 2.35em;
  height: 1.25em;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.08);
  display: inline-block;
  flex: 0 0 auto;
}

.h5pmods-toggle::after {
  content: '';
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 0.16em;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.h5pmods-toggle-on::before {
  background: #22c55e;
}

.h5pmods-toggle-on::after {
  transform: translate(1.08em, -50%);
}

.h5pmods-toggle-off::before {
  background: #9ca3af;
}

/* Key point shortcode styles */
.h5pmods-key-point {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 10px 10px 10px 25px;
  border: 1px solid #e7e9ec;
  border-radius: 12px;
  background-color: #0099ff10;
	backdrop-filter: blur(12px);
  color: inherit;
  line-height: 1.3;
  font-weight: 400;
  overflow: visible !important;
}

.h5pmods-key-point::before {
  content: none !important;
}

.h5pmods-key-point-icon {
  position: absolute;
  left: -5px;
  top: -35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25em;
  height: 3.2em;
  min-width: 2.25em;
  color: #0099ff;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.h5pmods-key-point-svg {
  width: 2.15em;
  height: 3.05em;
  overflow: visible;
  color: currentColor;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

.h5pmods-key-point-pin {
  transform-origin: 32px 58px;
  animation: h5pmods-key-point-pin-place-v3 6s ease-in-out infinite;
}

.h5pmods-key-point-motion-line {
  opacity: 0;
  stroke: #0099ff;
  animation: h5pmods-key-point-motion-lines-v3 6s ease-in-out infinite;
}

.h5pmods-key-point-motion-line-2 {
  animation-delay: 0.04s;
}

.h5pmods-key-point-motion-line-3 {
  animation-delay: 0.08s;
}

.h5pmods-key-point-shadow,
.h5pmods-key-point-impact {
  display: none !important;
}

.h5pmods-key-point-content {
  flex: 1 1 auto;
}

@keyframes h5pmods-key-point-pin-place-v3 {
  0%, 72%, 100% {
    transform: translate(0, 0) rotate(-6deg);
  }

  78% {
    transform: translate(-7px, -9px) rotate(-36deg);
  }

  86% {
    transform: translate(-3px, -4px) rotate(-18deg);
  }

  92% {
    transform: translate(0, 2px) rotate(-6deg);
  }

  96% {
    transform: translate(0, 0) rotate(-6deg);
  }
}

@keyframes h5pmods-key-point-motion-lines-v3 {
  0%, 89%, 100% {
    opacity: 0;
    transform: scale(0.75);
  }

  92% {
    opacity: 0.9;
    transform: scale(1);
  }

  97% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .h5pmods-key-point-pin,
  .h5pmods-key-point-motion-line {
    animation: none !important;
  }
}

/* Tip and instructor tip shared icon styles */
.h5pmods-tip,
.h5pmods-instructor-tip {
  overflow: visible !important;
}

.h5pmods-tip {
  border: 0.2px solid lightgrey;
  border-radius: 999px;
  padding: 0.35em 0.8em 0.35em 0.3em;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: inherit;
  font-weight: 700;
  line-height: 1.25;
}

.h5pmods-instructor-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 153, 255, 0.08) !important;
  border: 1px solid rgba(0, 153, 255, 0.28) !important;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 1em 0;
  line-height: 1.4;
  color: inherit;
}

.h5pmods-tip.h5pmods-tip-mode-light,
.h5pmods-instructor-tip.h5pmods-tip-mode-light {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}

.h5pmods-tip::before,
.h5pmods-instructor-tip::before {
  content: none !important;
}

.h5pmods-tip .h5pmods-instructor-tip-icon,
.h5pmods-instructor-tip .h5pmods-instructor-tip-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.75em !important;
  height: 1.75em !important;
  min-width: 1.75em !important;
  border-radius: 50% !important;
  background: rgba(0, 153, 255, 0.2) !important;
  color: #0099ff !important;
  margin-top: 0 !important;
  overflow: visible !important;
  position: relative !important;
  flex: 0 0 auto !important;
  z-index: 1;
}

.h5pmods-tip.h5pmods-tip-mode-light .h5pmods-instructor-tip-icon,
.h5pmods-instructor-tip.h5pmods-tip-mode-light .h5pmods-instructor-tip-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.h5pmods-tip .h5pmods-instructor-tip-svg,
.h5pmods-instructor-tip .h5pmods-instructor-tip-svg {
  width: 1.45em !important;
  height: 1.45em !important;
  overflow: visible !important;
  color: currentColor !important;
  filter: drop-shadow(0 1px 1px rgba(0, 153, 255, 0.2)) !important;
}

.h5pmods-tip.h5pmods-tip-mode-light .h5pmods-instructor-tip-svg,
.h5pmods-instructor-tip.h5pmods-tip-mode-light .h5pmods-instructor-tip-svg {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.22)) !important;
}

.h5pmods-tip .h5pmods-instructor-tip-bulb,
.h5pmods-instructor-tip .h5pmods-instructor-tip-bulb {
  transform-origin: 32px 32px !important;
  animation: none !important;
}

.h5pmods-tip .h5pmods-instructor-tip-highlight,
.h5pmods-instructor-tip .h5pmods-instructor-tip-highlight {
  opacity: 0.95 !important;
  stroke-width: 2 !important;
}

.h5pmods-tip .h5pmods-instructor-tip-ray,
.h5pmods-instructor-tip .h5pmods-instructor-tip-ray {
  opacity: 0.18;
  transform-origin: 32px 32px;
  stroke: currentColor !important;
  animation: h5pmods-tip-ray-pop-v5 1.9s ease-in-out infinite;
}

.h5pmods-tip .h5pmods-instructor-tip-ray-2,
.h5pmods-instructor-tip .h5pmods-instructor-tip-ray-2 { animation-delay: 0.10s; }
.h5pmods-tip .h5pmods-instructor-tip-ray-3,
.h5pmods-instructor-tip .h5pmods-instructor-tip-ray-3 { animation-delay: 0.20s; }
.h5pmods-tip .h5pmods-instructor-tip-ray-4,
.h5pmods-instructor-tip .h5pmods-instructor-tip-ray-4 { animation-delay: 0.30s; }
.h5pmods-tip .h5pmods-instructor-tip-ray-5,
.h5pmods-instructor-tip .h5pmods-instructor-tip-ray-5 { animation-delay: 0.40s; }
.h5pmods-tip .h5pmods-instructor-tip-ray-6,
.h5pmods-instructor-tip .h5pmods-instructor-tip-ray-6 { animation-delay: 0.50s; }
.h5pmods-tip .h5pmods-instructor-tip-ray-7,
.h5pmods-instructor-tip .h5pmods-instructor-tip-ray-7 { animation-delay: 0.60s; }

.h5pmods-instructor-tip-content,
.h5pmods-tip-content {
  flex: 1 1 auto;
}

@keyframes h5pmods-tip-ray-pop-v5 {
  0%, 100% {
    opacity: 0.16;
    transform: scale(0.85);
  }
  45% {
    opacity: 0.95;
    transform: scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .h5pmods-tip .h5pmods-instructor-tip-ray,
  .h5pmods-instructor-tip .h5pmods-instructor-tip-ray {
    animation: none !important;
  }
}



















/* Highlight shortcode styles v9, rough line highlight */
.h5pmods-highlight-mark {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 0.35em 0.45em;
  margin: 0.15em 0;
  overflow: visible !important;
  color: inherit;
}

.h5pmods-highlight {
  position: relative;
  z-index: 2;
  padding: 0 0.15em;
  border-radius: 3px;
  background:
    linear-gradient(
      177deg,
      transparent 0%,
      rgba(0, 153, 255, 0.10) 12%,
      rgba(0, 153, 255, 0.30) 30%,
      rgba(0, 153, 255, 0.34) 52%,
      rgba(0, 153, 255, 0.22) 78%,
      transparent 100%
    );
  background-size: 100% 128%;
  background-position: center 52%;
  background-repeat: no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  mix-blend-mode: multiply;
}

.h5pmods-highlight::before,
.h5pmods-highlight::after {
  content: none !important;
  display: none !important;
}

.h5pmods-highlight-scribble,
.h5pmods-highlight-scribble-svg,
.h5pmods-highlight-scribble-line,
.h5pmods-highlight-outline-wrap,
.h5pmods-highlight-outline-svg,
.h5pmods-highlight-outline-line {
  display: none !important;
}
