@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@keyframes flicker {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes border-flicker {
  0% { 
    border-color: rgba(0, 255, 65, 0.7); 
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
    color: rgba(0, 255, 65, 0.7); /* Для тексту "PHOTO" */
  }
  50% { 
    border-color: rgba(0, 255, 65, 1); 
    box-shadow: 0 0 10px rgba(0, 255, 65, 1);
    color: rgba(0, 255, 65, 1);
  }
  100% { 
    border-color: rgba(0, 255, 65, 0.7); 
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.7);
    color: rgba(0, 255, 65, 0.7);
  }
}

body {
      background-color: black;
      color: #00ff41;
      font-family: "Press Start 2P";
      font-size: 20px;
      text-align: center;
      font-weight: 400;
      font-style: normal; 
      line-height: 1.6;         
      padding: 20px;
}

h1, h2, p, hr {
  animation: flicker 0.6s infinite;
}

.column {
  text-align: left;
}

hr {
  border: none;
  border-top: 2px dashed #00ff41;
  background-color: transparent;
  height: 0;
}

.char-grid, .char-anoth {
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.char-grid li, .char-anoth li {
  width: 200px; 
  display: flex;
  justify-content: center;
}

.char-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.image-placeholder {
  width: 150px;
  height: 150px;
  border: 2px solid #00ff41;
  background-color: #111;
  box-shadow: 0 0 10px #00ff41;
  margin-bottom: 10px;
  overflow: hidden; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Додаємо анімацію рамки сюди! */
  animation: border-flicker 0.6s infinite;
}

.char-pic {
  width: 150px;       /* Жорстко фіксуємо ширину */
  height: 150px;      /* Жорстко фіксуємо висоту */
  object-fit: cover;  /* Картинка ідеально заповнить квадрат без спотворень */
  display: block;
  transform: scale(1.3); /* 1.2 означає збільшення на 20% */
}

/* Робимо так, щоб посилання не псувало наш ретро-шрифт */
.char-link {
    text-decoration: none; /* Прибираємо підкреслення */
    color: inherit; /* Текст залишається зеленим */
    display: block; /* Посилання працює на всю площу блоку */
}

/* МАГІЯ: Ефект при наведенні мишки (hover) */
.char-link:hover .image-placeholder {
    animation: none; /* Вимикаємо блимання, коли мишка на картинці */
    border-color: #ffffff; /* Рамка стає білою */
    box-shadow: 0 0 10px #ffffff; /* Яскраве біле світіння */
    transform: scale(1.01); /* Сама рамочка ледь-ледь виїжджає вперед */
    transition: all 0.1s ease-in-out; /* Плавний перехід */
    cursor: pointer; /* Курсор перетворюється на "руку" */
}

/* Змінюємо колір тексту при наведенні */
.char-link:hover p {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
    transition: all 0.1s ease-in-out;
}

.back-link {
  text-decoration: none;
  color: #00ff41;
  margin-right: 15px;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  animation: flicker 0.6s infinite;
}

/* Змінюємо колір тексту при наведенні */
.back-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
    animation: none;
    cursor: pointed;
}




/* --- СТИЛІ СТОРІНКИ ДОСЬЄ --- */

/* Ставимо фото і текст характеристик поруч */
.dossier-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 50px; /* Відстань між фото і текстом */
    margin: 30px 0;
}

/* ЗБІЛЬШУЄМО ЗЕЛЕНУ РАМКУ */
.image-placeholder.large-photo {
    width: 300px;
    height: 360px;
    margin-top: 40px; /* Рамка опуститься на 30 пікселів вниз */
}

/* ЗБІЛЬШУЄМО КАРТИНКУ ТА РОБИМО ЗУМ */
.dossier-pic {
    width: 300px;       
    height: 360px;      
    max-width: 320px;
    max-height: 380px;
    object-fit: cover;  
    display: block;
    transform: scale(1.2) translateY(20px);
}

/* Оформлення колонки з характеристиками */
.dossier-stats {
    text-align: left;
    max-width: 500px;
}
.dossier-stats ul {
    list-style-type: square; /* Квадратні маркери */
    padding-left: 20px;
}
.dossier-stats li {
    margin-bottom: 12px;
    font-size: 18px;
}
.dossier-stats span {
    color: #ffffff; /* Назви (AGE, FULL NAME) будуть білими для контрасту */
}



.likes {
    text-align: left;
    max-width: 500px;
  }
.likes ul {
    list-style-type: square; /* Квадратні маркери */
    padding-left: 20px;
}
.likes li {
    margin-bottom: 12px;
    font-size: 18px;
}
.likes span {
    color: #ffffff; /* Назви (AGE, FULL NAME) будуть білими для контрасту */
}





/* Стилі для медичного блоку */
.med-record {
    border: 1px dashed #ff003c; /* Червона пунктирна рамка */
    background-color: rgba(255, 0, 60, 0.05); /* Легкий червонуватий фон */
    padding: 15px;
    margin-top: 20px;
    /*max-width: 600px;*/
}

.warning-text {
    color: #ff003c; /* Червоний колір для попередження */
    margin-top: 0;
    text-shadow: 0 0 5px #ff003c;
    animation: text-flicker 2s infinite; /* Повільне блимання */
}

.med-stats {
    text-align: left;
    list-style-type: none;
    padding-left: 0;
    color: #ff88a0; /* Блідо-рожевий/червоний для тексту */
}

.med-stats li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.med-stats span {
    color: #ff003c; /* Яскраво-червоні заголовки */
    font-weight: bold;
}










/* ЕФЕКТ СТАРОГО CRT МОНІТОРА */
body::after {
    content: "";
    position: fixed; /* Закріплюємо поверх усього екрану */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Створюємо напівпрозорі горизонтальні лінії */
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none; /* ДУЖЕ ВАЖЛИВО! Дозволяє клікати "крізь" лінії на посилання */
    z-index: 9999; /* Робить так, щоб сітка була поверх усіх картинок і текстів */
}

/* Блимаючий курсор для друкарської машинки */
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.cursor {
    animation: blink-cursor 1s infinite;
    color: #00ff41;
}