/*html/common/global.css*/

/* Global CSS Styles */

/* Reset and base styles */
:root {
  --fontSize: 20px;
  --lineHeight: 30px;
  /* Тень для объемного текста */
  --mainMenu-shadow: -0.4px -0.6px 0.3px rgb(160, 160, 160, 0.6), 0.4px 0.6px 0.3px rgb(70, 70, 70, 0.6), -0.8px -1.2px 3px rgb(215, 215, 215, 0.8), 1.6px 2.2px 4px rgb(0, 0, 0, 0.8), -2.4px -3.3px 8px rgb(255, 255, 255), 3.2px 4.4px 5px rgb(255, 255, 255);

  --text3-shadow: 0.2px 0.3px 0.3px rgb(255, 255, 255, 0.4), -0.4px -0.6px 0.6px rgb(0, 0, 0, 0.6), 0px 4px 3px rgb(225, 225, 225), 0px 6px 3px rgb(225, 225, 225), 0px 2px 3px rgb(225, 225, 225), 0px -2px 3px rgb(225, 225, 225), 2px 0px 3px rgb(225, 225, 225), -2px 0px 3px rgb(225, 225, 225), 0px -4px 4px rgb(225, 225, 225), 0px -6px 4px rgb(225, 225, 225), 0px -8px 4px rgb(225, 225, 225), 0px -10px 4px rgb(225, 225, 225), 0px -12px 4px rgb(225, 225, 225);
}

/* Base body styles */
body {
  font-style: italic;
  font-size: var(--fontSize);         /* 20px */
  line-height: var(--lineHeight);    /* 30px */
  font-family: "Comic Sans MS", sans-serif;
  background-color: #b0b0b0;
  margin: 0; padding: 0;
}

/* Basic element resets */
div {
  margin: 0px;
  padding: 0px;
}

td {
  text-align: right;
  vertical-align: bottom;
}

ol, ul {
  margin-top: 0;
  margin-bottom: 0;
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Form elements */
input, textarea, select, button {
  font-family: "Comic Sans MS", sans-serif;
}

/* Common utility classes */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Focus styles for accessibility */
:focus {
  outline: 2px solid rgba(0, 100, 255, 0.4);
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Common animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* RTL support */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea {
  text-align: right;
}

/* Common link styles */
a {
  color: #1e2071;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1e2071cc;
  text-decoration: underline;
}

/* Clearfix utility */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Loading indicator */
.loading-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #1e2071;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Print styles */
@media print {
  body {
    background: none;
    color: black;
    font-size: 12pt;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .no-print {
    display: none !important;
  }
}


.picBtn {
  filter: drop-shadow(5px 10px 10px rgba(0, 0, 0, 0.73));
  max-width: 100%;
  transition: filter 1s cubic-bezier(0, 0.2, 0.9, 1.0);
}

.picBtn:hover {
  cursor: zoom-in;
  filter: drop-shadow(7px 12px 12px rgba(0, 0, 0, 0.85));
}

/* ========= СТИЛИ ДЛЯ ТЕКСТА НА ФОНЕ ========== */

/* Основной стиль "стены" (светлый текст с тенью) */
.wall-text {
  font-family: Arial, sans-serif;
  color: #eee;
  text-shadow: var(--mainMenu-shadow);
  /* font-weight: bold; <-- УБРАЛИ ЖИРНОСТЬ ИЗ БАЗЫ */
  text-align: justify;
  opacity: 0.85;
  padding: 1em;
}

/* Заголовки внутри .wall-text остаются яркими и жирными */
.wall-text h1,
.wall-text h2,
.wall-text h3 {
  color: #fff;
  text-align: left;
  border-bottom: none;
  text-shadow: var(--mainMenu-shadow), 0 0 5px rgba(255, 255, 255, 0.2);
  font-weight: bold; /* <<< ВОЗВРАЩАЕМ ЖИРНОСТЬ ДЛЯ ЗАГОЛОВКОВ */
}

/* Списки внутри .wall-text */
.wall-text ul {
  list-style-position: inside;
  padding-left: 0;
}

.wall-text li {
  margin-bottom: 0.8em;
}

/* Ссылки внутри .wall-text */
.wall-text a {
    color: #d1d1ff;
    text-decoration: underline;
    text-shadow: var(--mainMenu-shadow);
}

.wall-text a:hover {
    color: #ffffff;
}

/* --- НОВЫЙ СТИЛЬ для "нормального" текста на стене --- */
.wall-text-normal {
  font-family: Arial, sans-serif; /* Обычный шрифт */
  font-weight: normal; /* Убираем жирность */
  color: rgba(0, 0, 0, 0.7); /* Темно-серый цвет, как у .text2black */
  text-shadow: var(--mainMenu-shadow); /* Легкая тень для читаемости */
  text-align: justify;
  line-height: 1.6; /* Стандартный line-height для обычного текста */
  opacity: 1; /* Убираем прозрачность */
  margin-bottom: 1em; /* Добавляем стандартный отступ для абзацев */
}

/* Стили для ссылок внутри .wall-text-normal */
.wall-text-normal a {
  color: #1e2071; /* Стандартный цвет ссылки */
  text-decoration: underline;
  text-shadow: var(--mainMenu-shadow); /* Убираем тень у ссылок */
}

.wall-text-normal a:hover {
  color: #161a5e;
}

/* Стили для <strong> внутри .wall-text-normal */
.wall-text-normal strong {
   font-weight: bold; /* Убедимся, что strong остается жирным */
   color: inherit; /* Наследуем цвет текста */
}

/* Стили для специфичных <strong> (примечания) */
.wall-text-normal strong[style*="color: red"] {
  display: block;
  margin-top: 0.5em;
  font-size: 0.9em;
  font-weight: bold; /* Делаем примечание менее заметным */
  color: #d9534f; /* Красный цвет */
  text-shadow: var(--mainMenu-shadow);
}

/* ================================================== */