/* =====================
   ПЕРЕКЛЮЧЕНИЕ ШРИФТА
===================== */
/* По умолчанию Orbitron */
body, .orbitron-font {
  font-family: 'Orbitron', sans-serif !important;
}

/* Avali Scratch для элементов с буквами */
.avali-font {
  font-family: 'Avali Scratch', cursive !important;
}



.font-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.9em;
  cursor: pointer;
  z-index: 999;
}

.font-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}
body, .orbitron-font, .avali-font {
  transition: font-family 0.5s ease, letter-spacing 0.5s ease, opacity 0.3s ease;
  /* Можно добавить плавное изменение цвета, если нужно */
}


/* Когда включён Avali Scratch */
.avali-font {
  letter-spacing: 0.05em; /* чуть шире */
    font-weight: 100 !important;
}

.font-transition {
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.font-transition-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* =====================
   HOLOGRAPHIC BLOCKS
===================== */
.holographic-block {
  position: relative;
  background: rgba(0, 255, 247, 0.05);
  border-radius: 12px;
  padding: 25px 20px 25px 30px;
  color: #00fff7;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  font-family: 'Orbitron', monospace;
  user-select: text;
  overflow: hidden;
  --glow-color-1: #00fff7;
  --glow-color-2: #00bfbf;
  box-shadow: none;
}

.holographic-block.status-initial {
  --glow-color-1: #40e0d0;
  --glow-color-2: #38b8b8;
}

.holographic-block.status-error {
  --glow-color-1: #ff3b3b;
  --glow-color-2: #cc2a2a;
  color: #cc2a2a;
}

.holographic-block.status-fine {
  --glow-color-1: #4caf50;
  --glow-color-2: #3b8a3a;
  color: #3b8a3a;
}

.holographic-block:not(.status-initial):not(.status-error):not(.status-fine):not(.status-pink):not(.status-amber) {
  --glow-color-1: #787676;
  --glow-color-2: #676767;
  color: #676767;
}
.holographic-block.status-pink {
    --glow-color-1: #bb55f4;
    --glow-color-2: #ad27f8;
    color: #e03ff3;

}
.holographic-block.status-amber {
    --glow-color-1: #e6aa12;
    --glow-color-2: #fac53e;
    color: #f29d3d;
}
.holographic-block::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--glow-color-1),
    var(--glow-color-2),
    var(--glow-color-1)
  );
  box-shadow: 0 0 0 1.2px var(--glow-color-1);
  animation: pulseOpacity 4s ease-in-out infinite;
  z-index: 1;
  transition: background 0.3s ease;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.1; }
}

/* =====================
   ВСПЛЫВАЮЩЕЕ МЕНЮ
===================== */
.menu-popup {
  position: fixed;
  top: 60px;
  left: 15px;
  background: rgba(10, 20, 25, 0.95);
  border: 1px solid rgba(0,255,229,0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0,255,229,0.15);
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1099;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-popup.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Кнопки в меню */
.menu-popup .nav-btn {
  width: 180px;
  text-align: center;
  font-size: 1rem;
  padding: 8px 10px;
  background: none;
  border: 2px solid #00ffe5;
  color: #00ffe5;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.menu-popup .nav-btn:hover {
  background: #00ffe5;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0,255,229,0.5);
}

/* На мобиле — кнопка чуть меньше */
@media (max-width: 768px) {
  .menu-button {
    top: 10px;
    left: 10px;
    font-size: 1.2rem;
    padding: 5px 10px;
  }

  .menu-popup {
    top: 30px;
    transform: translateY(10%);
    align-items: left;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .menu-popup .nav-btn {
    width: 90%;
  }
}

/* =====================
   МИНИ-КНОПКА МЕНЮ
===================== */
.menu-button {
  position: fixed;
  top: 15px;
  left: 15px;
  background: rgba(0,255,229,0.1);
  border: 1px solid rgba(0,255,229,0.3);
  color: #00fff7;
  font-size: 1.4rem;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 1100;
  transition: background 0.2s ease, box-shadow 0.3s ease;
}

.menu-button:hover {
  background: rgba(0,255,229,0.3);
  box-shadow: 0 0 10px rgba(0,255,229,0.6);
}

/* =====================
   SIDEBAR / TOP BUTTONS
===================== */
.sidebar {
  position: fixed;
  top: 0;
  left: -220px; /* скрыто по умолчанию */
  height: 100%;
  width: 240px;
  background: rgba(10, 20, 25, 0.4);
  border-right: 1px solid rgba(0,255,229,0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 40px;
  backdrop-filter: blur(8px);
  z-index: 100;
  box-shadow: 4px 0 15px rgba(0, 255, 229, 0.05);
  transition: left 0.4s ease, opacity 0.4s ease;
  opacity: 0.5;
}

/* при наведении мыши — выезжает */
.sidebar:hover {
  left: 0;
  opacity: 1;
}

/* контент не дергается */
body {
  margin-left: 0;
  transition: margin-left 0.4s ease;
}
.sidebar:hover ~ .container,
.sidebar:hover ~ main {
  margin-left: 240px;
}

/* Внутренние кнопки */
.sidebar .top-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.sidebar .nav-pill {
  width: 100%;
  text-align: center;
}

.sidebar .nav-btn {
  width: 90%;
  text-align: center;
  font-size: 1rem;
  margin: 4px 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.sidebar .nav-btn:hover {
  background-color: #00ffe5;
  color: #000;
  transform: scale(1.03);
  box-shadow: 0 0 8px rgba(0,255,229,0.6);
}

/* =====================
   КНОПКИ
===================== */
button.nav-btn {
  background: none;
  border: 2px solid #00ffe5;
  color: #00ffe5;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button.nav-btn:hover {
  background-color: #00ffe5;
  color: #000;
}

.nav-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.top-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
  top: 15px;
  right: 15px;
  gap: 10px;
  z-index: 999;
}


.side-note-container {
    line-height: 1.6;
    position: relative;
}

.float-holo {
    float: left;
    width: 180px;
    max-width: 45%;
    margin: 0 20px 10px 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    opacity: 0.9;
}

.side-text {
    text-align: left;
}

/* Мобилки: переставляем картинку сверху */
@media (max-width: 600px) {
    .float-holo {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 60%;
        max-width: 300px;
    }
}