/* Фон, Видео и Курсор */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'IBM Plex Mono', monospace;
  cursor: none;
}

/* Видеофон */
#bg-video {
position: fixed;
top: 0;
left: 0;
min-width: 100%;
min-height: 100%;
object-fit: cover;
z-index: -2;
}

/* Затемнение поверх видео */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.2); /* 20% затемнение */
z-index: -1;
}

/* Контейнер по центру */
.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 500px;
  background: #fff;
  border: 1px dashed #000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Скроллируемая область */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 15px 15px;
}

/* Скрытие скролла */
.scroll-area::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.scroll-area {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Секции */
.section {
  margin-bottom: 5px;
}

/* Заголовки */
.header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: normal;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header::after {
  content: "";
  display: block;
  width: 100%;
  height: 0.9px;
  background: #000;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* Верхняя картинка */
.top-image {
  width: 100%;
  margin-bottom: 10px;
  display: block;
}

/* Индикатор [+] */
.toggle-indicator {
  position: relative;
  z-index: 2;
  padding-left: 10px;
  font-family: 'IBM Plex Mono', monospace;
}

/* Контент при клике */
.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0;
  font-size: 13px;
}
.section.active .content {
  max-height: 200px;
  opacity: 1;
  padding: 10px 0;
}

/* Пиксельный курсор */
.pixel {
  position: fixed;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 9999;
  animation: pixel-fade 0.4s ease-out forwards;
}

@keyframes pixel-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* Ссылки */
.links {
  display: grid;
  padding-bottom: 15px;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.h1 {
  text-align: left;
}
.h2 {
  text-align: center;
}
.h3 {
  text-align: right;
}



@media (max-width: 600px) {
  .container {
    width: 90vw; /* почти на весь экран */
    height: 60vh; /* почти вся высота */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .scroll-area {
    padding: 20px 15px;
  }

  .header {
    font-size: 16px;
  }

  .content {
    font-size: 14px;
  }

  .links {
    
    gap: 10px;
    margin-bottom: 15px;
  }

  .h1, .h2, .h3 {
    text-align: center;
  }

  .top-image {
    width: 100%;
    height: auto;
  }
}
