/*!
 * Tooltip v2.0.0
 * Copyright 2021 The mqpvnn Authors
 * Contact me (https://fb.me/mqp99)
 */
[tooltip=""]::before,
[tooltip=""]::after {
  opacity: 0 !important;
}

[tooltip] {
  position: relative;
  font-size: 16px;
}
[tooltip]::before, [tooltip]::after {
  position: absolute;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease-in, visibility 200ms ease-in;
}
[tooltip]:hover::before, [tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}
[tooltip]::before {
  content: "";
  border: 5px solid transparent;
}
[tooltip]::after {
  content: attr(tooltip);
  text-align: center;
  font-size: 13px;
  min-width: 32px;
  white-space: nowrap;
  color: #fff;
  background: rgba(31, 31, 31, 0.95);
  padding: 9px 10px;
  border-radius: 3px;
  box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.25);
  z-index: 500;

}
[tooltip]:not([tooltip-flow])::before, [tooltip][tooltip-flow^=top]::before {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% - 5px);
  border-top-color: rgba(97, 97, 97, 0.95);
}
[tooltip]:not([tooltip-flow])::after, [tooltip][tooltip-flow^=top]::after {
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
}

.main-inner {
  width: 50%;
  min-width: 480px;
}
.main-inner-title {
  margin: 0.5rem 0;
  font-size: 22px;
  white-space: pre-wrap;
  font-weight: bold;
}
.main-inner .inner-code {
  margin: 0.5rem 0 1rem 0;
  width: 100%;
  overflow: hidden;
}
.main-inner .inner-code:hover {
  overflow: auto hidden;
}
.main-inner .inner-code:hover::-webkit-scrollbar {
  height: 10px;
}
.main-inner .inner-code::-webkit-scrollbar-track {
  background: transparent;
}
.main-inner .inner-code::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 1rem;
}
.main-inner .inner-code::-webkit-scrollbar-thumb:hover {
  background: #999;
}
.main-inner .inner-code pre {
  margin: 0;
  color: #999;
}
.main-inner .inner-code pre .code-tag {
  color: #2f6f9f;
}
.main-inner .inner-code pre .code-attr {
  color: #335fff;
}
.main-inner .inner-code pre .code-value {
  color: #d73038;
}
.main-inner .inner-code pre .code-str {
  color: #222;
}
.main-inner button {
  cursor: default;
  text-align: center;
  padding: 0.5rem;
  margin: 5px 0;
  margin-right: 5px;
  font-size: 15px;
  background: #f8f8f8;
  border: 1px solid #eee;
}

@media screen and (max-width: 600px) {
  .main-inner {
    padding: 1rem;
    width: 100%;
    min-width: 100%;
  }
}

.toggle-path {
    transition: background 0.3s ease-in-out;
}
.toggle-circle {
    top: 0.2rem;
    left: 0.25rem;
    transition: all 0.3s ease-in-out;
}
input:checked ~ .toggle-circle {
    transform: translateX(100%);
}
input:checked ~ .toggle-path {
    background-color:#81E6D9;
}