main, header, body, footer {
    color: var(--content-color);
    background-color: var(--body-color);
}


/* Protection */
html, body {
    -webkit-user-select: none;  /* Chrome, Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE10+ */
    -khtml-user-select: none;
    -webkit-touch-callout: none; /* iOS */
    user-select: none;          /* Современи прелистувачи */
}


/* Прогрес бар */
#progress-bar {
  position: fixed;
  top: 0px;
  left: 0;
  height: 8px;
  background: linear-gradient(to right,  #3b58ed, #41c6fa );
  width: 0%;
  z-index: 9999 !important;
  transition: width 0.2s ease-out;
}

@media (max-width: 768px) {
    #progress-bar {
	height: 5px;
    }
}

/* Toast notification */
#progress-toast {
  position: fixed;
  bottom: -60px; /* почетна позиција под екранот */
  left: 50%;
  transform: translateX(-50%);
  background-color: #3bd163;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  transition: bottom 0.5s ease, opacity 0.5s ease; /* анимација */
}

/* Кога нотификацијата е активна, се лизга нагоре */
#progress-toast.show {
  bottom: 20px;
  opacity: 1;
}


/* MENU HOVER  */
.dark-theme-icon:hover {
  color: #2e69c7;
}
.light-theme-icon:hover {
    color: #4287f5;
}
.menu-hover:hover {
    color: #4287f5;
}

/* OTHER HOVERS */
a:hover {
    color: var(--link-hover);
}
.verify-badge-icon {
    color: #1f2937;
}
html.dark .verify-badge-icon {
    color: #fafafa;
}
.verify-badge-icon:hover {
    background-color: #44f272;
    color: #fafafa;
}
html.dark .verify-badge-icon:hover {
    background-color: #44f272;
    color: #1f2937;
}
.facebook-badge-icon {
    color: #1f2937;
}
html.dark .facebook-badge-icon {
    color: #fafafa;
}
.facebook-badge-icon:hover {
    background-color: #4e6df5;
    color: #fafafa;
}
html.dark .facebook-badge-icon:hover {
    background-color: #4e6df5;
    color: #1f2937;
}


.google-badge-icon {
  bottom: 76px;   /* нагоре */
  right: -24px;     /* надесно */
}  

.facebook-badge-icon {
  bottom: 32px;   /* нагоре */
  right: -18px;     /* надесно */
}

.instagram-badge-icon {
  bottom: 2px;   /* нагоре */
  right: 16px;     /* надесно */
}

body .custom-toc {
  max-height: 310px;
  overflow-y: auto;
  background: var(--sidebar-button-bg);
  border: 1px solid var(--sidebar-button-border);
  border-radius: 10px 0 0 10px;
  font-size: 0.9rem;
  scrollbar-width: thin;     /* Firefox */
  scrollbar-color: #70aafa #ddd;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1rem;
}

body .custom-toc a {
      color: var(--sidebar-button);
}

.custom-toc ul {
  padding-left: 1rem !important;
  font-weight: 666;
}

.custom-toc ul ul {
  padding-left: 1.25rem;
  font-weight: 444;
}

.custom-toc ul ul ul {
  padding-left: 1.5rem;
  font-weight: 333;
}

h2, h3, h4 {
  scroll-margin-top: 115px;
}

body .custom-toc a:hover {
  color: var(--bonus-link);
  text-decoration: none;
}



.exit-button {
  position: fixed;
  top: 10px;
  right: 15px;
  background: rgba(45, 85, 220, 0.9);
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 10px;
  border-radius: 40%;
  z-index: 9999;
  transition: background 0.1s ease;
}
.exit-button:hover {
    background: rgba(240, 0, 10, 0.9);
    color: black;
}




/* REVEAL */
.pressentationContent {
  font-size: 26px;
  text-align: left;
  padding: 28px;
}

.pressentationTitle {
  margin-top: -60px;
  font-size: 50px;
}

/* Images inside slides */
.slide-image {
  max-width: 30% !important;
  height: auto;
  display: block;
  margin: 0 auto 20px !important;
}

/* За мобилен - помали екрани */
@media screen and (max-width: 768px) {
  .slide-image {
    max-width: 60% !important;
    height: auto;
  }

  .pressentationContent {
    font-size: 18px;          /* помал фонт за мобилни */
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 16px;          /* помал padding од страните */
    max-height: 85vh;         /* максимум висина на слајдот */
    overflow-y: auto;         /* само ако е потребно скрол */
    margin: 0 auto;
  }

  .pressentationContent p,
  .pressentationContent li,
  .pressentationContent blockquote {
    margin: 0.3rem 0;         /* минимален vertical gap */
  }

  .pressentationTitle {
    margin-top: 1rem;
    font-size: 1.4rem !important;
    text-align: center;
  }

  /* Reveal секции за мобилен */
  .reveal {
    font-size: 1.05rem;
  }

  .reveal section {
    width: 100%;
    height: auto !important;
    padding: 0.8rem 1rem;
    box-sizing: border-box;
    max-height: 90vh;         /* да не надминува висината на екранот */
  }

  .reveal h1 {
    font-size: 1.6rem;
  }
  .reveal h2 {
    font-size: 1.4rem;
  }
  .reveal p,
  .reveal li {
    font-size: 1rem;
    line-height: 1.4;
    word-break: break-word;
  }

  blockquote {
    margin: 0.4rem 3rem !important;
    font-size: 1rem;
  }
}

/* Анимации за отварање и затворање на менито */
@keyframes openMenu {
  0% { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes closeMenu {
  0% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* Класи што JS ги додава */
.animate-open {
  animation: openMenu 0.3s ease-in-out forwards;
}

.animate-close {
  animation: closeMenu 0.3s ease-in-out forwards;
}



/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* IE / Edge legacy */
body {
  -ms-overflow-style: none;
}
