
#monthPicker {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 260px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
}
/* FONTS */
.bbh-bogle-regular {
  font-family: "BBH Bogle", sans-serif;
  font-weight: 1000;
  font-style: normal;
}

.cause-regular {
  font-family: "Cause", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

    body {
      font-family: Arial, sans-serif;
      background: #f8f8f8;
      margin: 0;
      padding: 20px;
      text-align: center;
      transition: 0.3s;
    }

    .H1 { 
      font-size: 36px; /* Liminal Diaries */
      font-family: "Cause", cusrive;
      border:hsl(351, 100%, 95%) 2px solid;
      border-radius:15px;
      background: hsl(351, 100%, 95%);
      padding: 10px 1px;
      max-width: 300px;
      text-align: center;
      display: block;
      margin: 20px auto;
      text-shadow: 4px 4px 0px rgba(255, 0, 0, 0.2);
      
    }
    #monthYear {
      font-size: 18px;
      font-family: "Cause", cursive;
      text-decoration: underline;
      text-decoration-thickness: 0.1px;
      text-underline-offset: 4px;
      cursor: pointer;
      border:hsl(0, 0%, 90%) 0.3px solid;
      border-radius:8px;
      background: hsl(0, 0%, 100%);
      padding: 10px 1px;
      max-width: 150px;
      text-align: center;
      display: block;
      margin: 20px auto;
      
    }

    #monthYear:hover  {
      color:#5a0033
  
    }

    /* CALENDAR GRID */
    #calendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
      max-width: 800px;
      margin: 20px auto;
    }

    .day {
      background: white;
      border-radius: 6px;
      padding: 10px;
      min-height: 80px;
      cursor: pointer;
      position: relative;
      border: 1px solid #ddd;
      transition: 0.2s;
    }

    .day:hover {
      background: #ffe7b3;
      transform: scale(1.03);
    }

    .entry-dot {
      width: 8px;
      height: 8px;
      background: #f54c84;
      border-radius: 50%;
      position: absolute;
      bottom: 5px;
      right: 5px;
    }

    /* MONTH PICKER POPUP */
    .month-picker-box {
      display: none;
      position: absolute;
      top: 150px;
      left: 50%;
      transform: translateX(-50%);
      background: rgb(255, 255, 255);
      padding: 15px;
      border-radius: 10px;
      width: 260px;
      box-shadow: 0 4px 15px rgba(253, 253, 253, 0.2);
      z-index: 20;
    }

    .year-row button {
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: rgb(187, 85, 102);
      padding: 0;
      margin: 0;
      line-height: 1;
    }
    .year-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
      margin-bottom: 20px;
    }

    .month-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
  
    }

    .month-grid div {
      padding: 8px;
      background: #f1f1f1;
      border-radius: 6px;
      cursor: pointer;
      transition: 0.2s;
    }

    .month-grid div:hover {
      background: #f08da3;
    }

    /* MODAL */
   #modal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.4);
      justify-content: center;
      align-items: center;
    }

    .modal-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  width: 420px;          /* wider modal */
  max-width: 90%;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* title inside modal */
.modal-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

/* BIG, aesthetic entry box */
textarea {
  width: 100%;
  height: 260px;         /* 🔥 bigger writing area */
  padding: 14px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid #e3c5d8;
  background: #fff7fc;
  resize: vertical;      /* user can drag to resize */
  box-sizing: border-box;
}

/* buttons row under the textarea */
.modal-content button {
  margin-top: 12px;
  margin-right: 8px;
  padding: 8px 14px;
  border-radius: 8px;
}

/* match themes */

body.dark .modal-content {
  background: #2a2a2a;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

body.dark textarea {
  background: #202020;
  color: #f5f5f5;
  border-color: #555;
}

body.pink .modal-content {
  background: #fff0f7;
  color: #5a0033;
}

body.pink textarea {
  background: #ffeef7;
  color: #5a0033;
  border-color: #ffb6d4;
}


    button { margin-top: 10px; }

    /* DARK MODE */
    body.dark { background: #1e1e1e; color: white; }
    body.dark .day { background: #2a2a2a; border-color: #444; color: white; }
    body.dark .modal-content { background: #2a2a2a; color: white; }
    body.dark #modal { background: rgba(0,0,0,0.7); }
    body.dark .month-picker-box { background: #2a2a2a; color: white; }
    body.dark .month-grid div { background: #444; }
    body.dark .month-grid div:hover { background: #666; }

/*BACKGROUND IMAGE*/
body  {
    background-image: url("images/pinkliminal.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

  /* PASTEL PINK MODE */
body.pink {
  background: #ffe6f2;
  color: #5a0033;
}

body.pink .day {
  background: #fff0f7;
  border-color: #ffb6d4;
  color: #5a0033;
}

body.pink .day:hover {
  background: #ffd1e8;
}

body.pink .modal-content {
  background: #fff0f7;
  color: #5a0033;
}

body.pink .entry-dot {
  background: #ff6ea8; 
}

body.pink .month-picker-box {
  background: #fff0f7;
}

body.pink .month-grid div {
  background: #ffe0ed;
}

body.pink .month-grid div:hover {
  background: #ffcce1;
}
.theme-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

/* Main button */
#themeButton {
  padding: 9px 13px;
  border-radius: 8px;
  background-color:hsl(351, 100%, 95%);
  border-color:hsl(351, 100%, 95%);
  font-size: 14px;
  cursor: pointer;
}

/* Hidden menu */
.theme-menu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  width: 150px;
  overflow: hidden;
  z-index: 999;
}

.theme-menu div {
  padding: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.theme-menu div:hover {
  background: #ffe1f0;
}

/* DARK MODE styling for menu */
body.dark .theme-menu {
  background: #2a2a2a;
}

body.dark .theme-menu div:hover {
  background: #444;
}

/* PINK MODE styling for menu */
body.pink .theme-menu {
  background: #fff0f7;
}

body.pink .theme-menu div:hover {
  background: #ffd1e8;
}

footer a {
  color:#770028
}