
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Special+Elite&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #17120f;
  color: #e8dfd0;
  font-family: 'IBM Plex Mono', monospace;
}

/* ДОСКА */

.board {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding: 35px 25px 120px;

  background-color: #493326;
  background-image:
    linear-gradient(rgba(15, 9, 6, .35), rgba(15, 9, 6, .35)),
    url("https://i.pinimg.com/1200x/c3/d3/5c/c3d35c71daf5ecba72b0874f867e9f11.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: inset 0 0 100px rgba(0, 0, 0, .65);
}

/* ЗАГОЛОВОК */

.board-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #eee2d0;
  text-shadow: 2px 3px 5px #000;
}

.department {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  opacity: .8;
}

.board-heading h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 5px;
  margin: 18px 0 10px;
}

.subtitle {
  font-family: 'Special Elite', cursive;
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: 2px;
}

.heading-line {
  width: 150px;
  height: 1px;
  margin: 22px auto;
  background: #c4a47c;
  opacity: .7;
}

/* РАБОЧАЯ ОБЛАСТЬ */

.evidence-area {
  position: relative;
  width: 100%;
  min-height: 750px;
}

/* ФОТОГРАФИИ */

.evidence {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: none;
  background: #ded3bf;
  cursor: pointer;

  box-shadow: 5px 9px 18px rgba(0, 0, 0, .6);
  transition: transform .25s, box-shadow .25s;
}

.evidence img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.evidence:hover {
  z-index: 5;
  box-shadow: 8px 14px 25px rgba(0, 0, 0, .8);
}

/* ОБЪЯВЛЕНИЕ */

.poster {
  top: 55px;
  left: 13%;
  width: 190px;
  transform: rotate(-3deg);
}

.poster:hover {
  transform: rotate(0deg) scale(1.04);
}

/* БОЛЬНИЦА */

.shelter {
  top: 110px;
  right: 13%;
  width: 265px;
  transform: rotate(3deg);
}

.shelter:hover {
  transform: rotate(0deg) scale(1.04);
}

/* ПОДПИСИ */

.caption {
  color: #38291e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}

/* КНОПКИ */

.pin {
  position: absolute;
  z-index: 3;
  top: -7px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8d1717;
  border: 1px solid #4a0c0c;
  box-shadow: 2px 3px 5px #0009;
}

/* МЫСЛИ ДЖЕЙСОНА */

.jason-thought {
  position: fixed;
  z-index: 15;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);

  width: min(720px, 85vw);
  min-height: 45px;

  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;

  text-shadow:
    0 0 5px #000,
    0 0 12px #000,
    2px 2px 4px #000;

  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.jason-thought.visible {
  opacity: 1;
}

/* МИГАЮЩИЙ КУРСОР */

.cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 4px;
  vertical-align: middle;
  background: #fff;
  animation: blink .8s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }

  51%, 100% {
    opacity: 0;
  }
}

/* ТЕЛЕФОНЫ */

@media (max-width: 650px) {
  .board {
    padding: 25px 12px 110px;
  }

  .evidence-area {
    min-height: 700px;
  }

  .poster {
    top: 30px;
    left: 5%;
    width: 150px;
  }

  .shelter {
    top: 250px;
    right: 5%;
    width: 210px;
  }

  .jason-thought {
    bottom: 20px;
    width: 90vw;
    font-size: 12px;
  }
}


/* ДОСКА */

.board {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding: 35px 25px;

  background-color: #493326;
  background-image:
    linear-gradient(rgba(15, 9, 6, .35), rgba(15, 9, 6, .35)),
    url("https://i.pinimg.com/1200x/c3/d3/5c/c3d35c71daf5ecba72b0874f867e9f11.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: inset 0 0 100px rgba(0, 0, 0, .65);
}

/* ЗАГОЛОВОК */

.board-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #eee2d0;
  text-shadow: 2px 3px 5px #000;
}

.department {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  opacity: .8;
}

.board-heading h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 5px;
  margin: 18px 0 10px;
}

.subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(12px, 1.8vw, 15px);
  font-weight: 500;
  letter-spacing: 3px;
  color: #e8dfd0;
  opacity: .9;
}

.heading-line {
  width: 150px;
  height: 1px;
  margin: 22px auto;
  background: #c4a47c;
  opacity: .7;
}

/* РАБОЧАЯ ОБЛАСТЬ ДОСКИ */

.evidence-area {
  position: relative;
  width: 100%;
  min-height: 750px;
}

/* ФОТОГРАФИИ */

.evidence {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: none;
  background: #ded3bf;
  cursor: pointer;

  box-shadow: 5px 9px 18px rgba(0, 0, 0, .6);
  transition: transform .25s, box-shadow .25s;
}

.evidence img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.evidence:hover {
  z-index: 5;
  box-shadow: 8px 14px 25px rgba(0, 0, 0, .8);
}

/* ОБЪЯВЛЕНИЕ */

.poster {
  top: 55px;
  left: 13%;
  width: 190px;
  transform: rotate(-3deg);
}

.poster:hover {
  transform: rotate(0deg) scale(1.04);
}

/* ПРИЮТ */

.shelter {
  top: 110px;
  right: 13%;
  width: 265px;
  transform: rotate(3deg);
}

.shelter:hover {
  transform: rotate(0deg) scale(1.04);
}

/* ПОДПИСИ */

.caption {
  color: #38291e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}

/* КНОПКИ */

.pin {
  position: absolute;
  z-index: 3;
  top: -7px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8d1717;
  border: 1px solid #4a0c0c;
  box-shadow: 2px 3px 5px #0009;
}

/* ОКНО ИНФОРМАЦИИ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 20px;
  background: rgba(0, 0, 0, .88);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(420px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  background: #ded3bf;
  color: #292019;
  text-align: center;
  box-shadow: 0 15px 60px #000;
  border: 1px solid #9d8a70;
}

.modal-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 2px;
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin: 15px auto;
}

.modal-content p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

.close {
  position: absolute;
  top: 5px;
  right: 12px;
  border: none;
  background: none;
  color: #33251b;
  font-size: 30px;
  cursor: pointer;
}

/* ТЕЛЕФОНЫ */

@media (max-width: 650px) {
  .board {
    padding: 25px 12px;
  }

  .evidence-area {
    min-height: 700px;
  }

  .poster {
    top: 30px;
    left: 5%;
    width: 155px;
  }

  .shelter {
    top: 340px;
    right: 5%;
    width: 215px;
  }

  .modal-content {
    padding: 25px 18px;
  }
}

