#mindmapCountContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mindmap-count-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 20px;
  padding: 15px 25px;
  color: #333;
  margin-top: 50px;
}

.info-menu {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background-color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  z-index: 1800;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translate(40px, 40px) scale(0.85) rotate(8deg);
  filter: blur(4px);
  transition: 
    opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 250ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 300ms;
  pointer-events: none;
}

.info-menu.show {
  visibility: visible;
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0deg);
  filter: blur(0px);
  pointer-events: auto;
}

.info-menu a {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.info-menu a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.progress-circle {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.progress-ring-track,
.progress-ring-progress {
  transition: stroke-dasharray 0.35s ease-out;
}

.progress-ring-track {
  stroke: #e0e0e0;
}

.progress-ring-progress {
  stroke: #68c76c;
}

.count-text {
  position: absolute;
  font-size: 1.8em;
  font-weight: bold;
  color: var(--text-color);
}

.count-label {
  font-size: 0.9em;
  color: var(--text-color);
  text-align: center;
  margin-top: 5px;
}

.upgrade-button {
  background-color: #ffd736;
  color: var(--text-color);
  padding: 8px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 15px;
  font-weight: bold;
  margin-bottom: 0px;
  transition: background-color 0.2s ease;
  transition: all 0.3s ease;
}

@media (max-width: 800px) {
    .nav-links.nav-links.padding-right {
        padding-right: 60px !important;
    }
}

.clear-history-button:hover {
  background-color: rgb(255, 229, 227) !important;
}

.clear-history-button {
  display: inline-flex; 
  align-items: center; 
  color: crimson !important;
  margin-top: 10px;
  text-decoration: none; 
}


.keyboard-shortcuts-popup {
    position: fixed;
    background-color: #fff;
    border-radius: 20px;
    border: none;
    padding: 32px;
    bottom: 160px;
    right: 180px;
    z-index: 3200;
    width: 380px;
    max-width: 90vw;
    transform: translateY(0);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(30px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
}

.keyboard-shortcuts-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    z-index: -1;
}

@media (max-width: 800px) {
  .hotkeys-button {
      display: none !important;
  }
}

.info-button {
  position: fixed;
  bottom: 11px;
  right: 15px;
  display: flex;
  align-items: center;
  background-color: var(--background-color);
  border-radius: 25px;
  padding: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  z-index: 2000;
  cursor: pointer;
}

.info-button:hover {
  background-color: var(--card-background);
}

@media (max-width: 640px), (pointer: coarse) {
  .info-button {
      background-color: rgba(248, 250, 252, 0.9);
      padding: 10px;
  }
  .mm-toolbar {
      display: none !important;
  }
}

.mm-toolbar {
  position: fixed;
  bottom: 0px;
  right: 11px;
  background-color: var(--white) !important;
  border: none !important;
  border-radius: 20px 20px 0px 0px !important;
  display: flex;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  flex-direction: row; 
  padding: 4px 52px 13px 3px !important;
  z-index: 1000;
  gap: 0px !important;
}

.mm-toolbar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 40px !important;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  color: #555;
}

.mm-toolbar-item:hover {
  background-color: var(--white) !important;
  transform: translateY(0px) !important;
  color: var(--text-color);
}

html.markmap-dark .mm-toolbar-item:hover {
  background-color: var(--white);
  transform: translateY(0px) !important;
  color: var(--text-color);
}

.mm-toolbar-item.active {
  background-color: #d0d0d0;
  color: var(--text-color) !important;
}

html.markmap-dark .mm-toolbar-item.active {
  background-color: #666;
  color: #fff;
}

.mm-toolbar-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-color) !important;
}

.mm-toolbar-brand {
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  font-size: 15px;
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out;
}

html.markmap-dark .mm-toolbar-brand {
  border-bottom-color: #444;
}

.mm-toolbar-brand:hover {
  background-color: #f0f0f0;
}

html.markmap-dark .mm-toolbar-brand:hover {
  background-color: #444;
}

.mm-toolbar-brand:not(:first-child), .mm-toolbar-item:not(:first-child) {
  margin-left: 0px !important;
}

#turnstile-container {
  margin-top: 10px;
  display: block;
  z-index: 1000;
  margin-left: auto;
  margin-right: auto;
  height: 50px;
}
#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

.captcha-container {
  display: none;             
  inset: 0;                
  justify-content: center;
  align-items: center;
  z-index: 1000;            
  pointer-events: auto;   
}

.captcha-container > .captcha {
  position: relative;
  z-index: 1001;
  pointer-events: auto;
}

body *:not(.captcha-container):not(.captcha) {
  pointer-events: auto;
}


.captcha-container.show {
    display: flex;
}
