body {
  background-color: black;
  margin: 0; /* Чтобы убрать отступы браузера */
  font-family: Arial, sans-serif;
}

.ier {
  color: red;
  margin: 30px 0;
  font-size: 70px;
  text-align: center;
}

.txt {
  color: red;
  font-size: 50px;
  text-align: center;
  margin: 0 0 30px 0;
}

img {
  display: block;
  margin: 0 auto 40px auto;

}

.text-container {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  padding: 0 20px 50px 20px;
  justify-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
  min-width: 300px;
  max-width: 600px; /* ограничение максимальной ширины */
}

.info {
  width: 100%;
  text-align: left;
  padding-left: 20px;
  box-sizing: border-box;
}

.title {
  color: red;
  font-size: 40px; /* чуть меньше, чтобы заголовки были сбалансированы */
  margin-bottom: 10px;
}

.description {
  color: white;
  font-size: 20px;
  line-height: 1.8;
  margin: 0;
}

.jp {
  text-align: left;
}

ul {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 40px; /* немного больше для списков */
  color: white;
  font-size: 20px;
  line-height: 1.8;
}

li {
  margin-bottom: 8px;
}

.final-text {
  color: white;
  font-size: 24px; /* чуть больше, чем обычный текст */
  max-width: 900px;
  margin: 50px auto 80px auto; /* отступ сверху и снизу, по центру */
  text-align: center;
  line-height: 1.8;
  padding: 0 20px;
}

.final-title {
  color: red;
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.final-link {
  text-align: center;
  margin: 40px 0 60px 0;
}

.final-link a {
  color: red;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.final-link a:hover {
  color: #ff6666;
  text-decoration: underline;
}

.text-pair-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto;
  padding: 0 20px;
  max-width: 1200px;
}

.text-pair-container .info {
  flex: 1;
  min-width: 300px;
}

.corner-box {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: black;
  border: 2px solid black;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.corner-box:hover {
  transform: scale(1.1);
  background-color: #330000;
}
.corner-text {
  display: flex;
  justify-content: center;
  color: #cc0000;
  font-size: 40px;
  font-weight: bold;
  font-family: "Noto Sans JP", sans-serif;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 4px;
  text-shadow: 1px 1px 3px black;
}

.vanish {
  display: inline-block;
  font-size: 1.2rem;
  white-space: pre-wrap;
}

#camera-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: black;
  border: 2px solid red;
  padding: 20px;
  color: red;
  font-size: 1.2rem;
  display: none;
  z-index: 99999;
  width: 400px;         /* фиксированная ширина окна */
  max-height: 300px;    /* максимальная высота */
  overflow-wrap: break-word; /* перенос слов */
  word-wrap: break-word;     /* для старых браузеров */
  overflow-y: auto;     /* скролл, если текста много */
  white-space: normal;  /* учитывает пробелы и переносы */
}

/* Динамический фон */
#dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('forest.jpg') no-repeat center center;
  background-size: cover;
  filter: brightness(0.4) blur(1px);
  z-index: -999;
  pointer-events: none;
  transition: filter 1s linear;
}

/* Вспышки */
.flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

/* Эффект наблюдения */
.eye {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: red;
  opacity: 0.2;
  pointer-events: none;
  z-index: 9999;
}

/* Силуэты-преследователи для чёрного фона */
.shadow {
  position: fixed;
  width: 60px;
  height: 120px;
  background: rgba(50,0,0,0.4); /* тёмно-красная тень */
  border: 2px solid rgba(150,0,0,0.6); /* подсвечивание контура */
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.5s, transform 1s;
  filter: blur(2px);
  box-shadow: 0 0 20px rgba(200,0,0,0.6); /* красное свечение */
}


/* Фото с камеры */
#photo-container {
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border: 3px solid red;
  display: none;
  z-index: 9999;
}


#photo-container img {
  width: 100%;
  height: auto;
  filter: contrast(150%) saturate(200%) hue-rotate(-20deg);
}

/* Эффект глюка для подменённого текста */
.description.corrupt {
  color: #c00;
  text-shadow: 0 0 6px #900, 0 0 16px #000;
  animation: glitch 0.7s steps(2, jump-none) infinite alternate;
}

@keyframes glitch {
  0%   { transform: translate(0,0) skewX(0deg);   filter: blur(0); }
  25%  { transform: translate(1px,-1px) skewX(1deg); filter: blur(0.5px); }
  50%  { transform: translate(-1px,1px) skewX(-1deg); filter: blur(0); }
  75%  { transform: translate(2px,0) skewX(0.5deg);  filter: blur(0.4px); }
  100% { transform: translate(0,0) skewX(0deg);   filter: blur(0); }
}
