/* ===== СТРАНИЦА ЗАМЕТОК ===== */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Caveat', cursive;

  background-image: url('img/notes_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ===== ЭКРАН ПАРОЛЯ ===== */
#password-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.password-box {
  background: #fff9e9;
  border: 3px solid #3a2a1a;
  border-radius: 8px;
  padding: 25px 30px;
  max-width: 400px;
  text-align: center;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
}

.password-box h1 {
  margin: 0 0 10px 0;
  font-family: 'Pacifico', cursive;
  font-size: 26px;
  color: #808000;
}

.password-box p {
  margin: 0 0 15px 0;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: #3a2a1a;
}

#passInput {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 18px;
  font-family: 'Caveat', cursive;
  border: 2px solid #808000;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fff;
  text-align: center;
}

#passBtn {
  padding: 8px 25px;
  background: #808000;
  color: #fff9e9;
  border: none;
  border-radius: 6px;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#passBtn:hover {
  background: #5c5c00;
}

#passError {
  margin-top: 12px;
  color: #d04070;
  font-weight: bold;
  font-family: 'Caveat', cursive;
  font-size: 16px;
}

/* ===== ШАПКА ===== */
#notes-header {
  text-align: center;
  padding: 20px 10px 5px 10px;
}

#notes-header h1 {
  margin: 0;
  font-family: 'Pacifico', cursive;
  font-size: 38px;
  color: #fff9e9;
  letter-spacing: 3px;
  text-shadow: 3px 3px 0 #3a2a1a;
  text-transform: uppercase;
}

/* ===== МЕНЮ ===== */
#notes-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  flex-wrap: wrap;
}

#notes-nav a {
  display: inline-block;
  padding: 6px 14px;
  background: #d8d8c8;
  color: #3a2a1a;
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #3a2a1a;
  border-radius: 4px;
  transition: background 0.15s;
}

#notes-nav a:hover,
#notes-nav a.active {
  background: #808000;
  color: #fff9e9;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
#notes-container {
  max-width: 1100px;
  margin: 10px auto;
  padding: 0 15px;
}

/* ===== БУМАЖНЫЙ ЛИСТ ===== */
#note-paper {
  position: relative;

  background-image: url('img/paper.png');
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);

  /* отступ слева — под стикеры */
  padding: 40px 50px 50px 220px;
  min-height: 600px;
}

/* ===== СПИСОК ДАТ — СТИКЕРЫ ПОВЕРХ БУМАГИ ===== */
#dates-list {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

#dates-list h3 {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: #808000;
  margin: 8px 0 4px 0;
  font-weight: bold;
}

#dates-list h3:first-child { margin-top: 0; }

/* КАЖДАЯ ДАТА — ЦВЕТНОЙ СТИКЕР */
.date-sticker {
  display: block;
  padding: 6px 10px;
  background: #f0e878;
  color: #3a2a1a;
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  font-weight: bold;
  text-align: center;

  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);

  transition: transform 0.15s, background 0.15s, color 0.15s;
}

/* Разные наклоны и цвета — «наклеенные» */
.date-sticker:nth-of-type(1) {
  background: #f8e070;
  transform: rotate(-2deg);
}
.date-sticker:nth-of-type(2) {
  background: #e8f080;
  transform: rotate(1.5deg);
}
.date-sticker:nth-of-type(3) {
  background: #f0c878;
  transform: rotate(-1deg);
}
.date-sticker:nth-of-type(4) {
  background: #b8e888;
  transform: rotate(2deg);
}
.date-sticker:nth-of-type(5) {
  background: #f0a878;
  transform: rotate(-1.5deg);
}

.date-sticker:hover {
  transform: rotate(0deg) scale(1.08);
  background: #808000;
  color: #fff9e9;
}

/* ===== ТЕКСТ ЗАМЕТКИ ===== */
#note-content {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  line-height: 1.7;
  color: #2a2a2a;
  padding-left: 10px;
}

.note h2 {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: #3a2a1a;
  margin: 0 0 15px 0;
  font-weight: bold;
  border-bottom: 2px dashed #808000;
  padding-bottom: 8px;
}

.note p {
  margin: 0 0 12px 0;
}

/* Декор */
.notes-cat {
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 120px;
  pointer-events: none;
}

.notes-sticker {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 90px;
  transform: rotate(15deg);
  pointer-events: none;
}

/* ===== ФУТЕР ===== */
#notes-footer {
  max-width: 1100px;
  margin: 20px auto;
  padding: 10px 15px;

  background: #fff9e9;
  border: 2px solid #3a2a1a;
  border-radius: 6px;

  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: #3a2a1a;
  flex-wrap: wrap;
}

#notes-footer a {
  color: #808000;
  text-decoration: underline;
}