* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 190px;
  color: #5e6565;
  background-image: url('https://i.pinimg.com/736x/07/67/4c/07674c024b6dbfb1415f1f8f49c68cd8.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* Centered Layout Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffffdd; /* soft white with some transparency */
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 10px #e3cad8;
}

/* Fonts */
.header-title {
  margin: 0;
  color: #f8d2ed;
  font-size: 28px;
  font-family: 'Press Start 2P', monospace;
  padding-top: 1px;
}

.header-handle {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  margin-top: 15px;
  color: #dfb7d1;
}

/* Header */
.header {
  text-align: left;
  padding: 10px 10px;
  position: relative;
  color: #e4a2c8;
}

/* Footer */
.footer {
  background-color: #f8f8df;
  padding: 10px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}

/* Layout */
.row {
  display: flex;
  flex-wrap: wrap;
}

.column {
  padding: 1px;
  min-height: 100px;
  margin: 5px; /* spacing */
}

.column.left-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #E6FAF9;
  gap: 10px;
  position: relative; /* for absolute children */
}

.column.middle {
  flex: 2;
  background-color: #FAE6F2;
  text-align: center;
  padding-top: 20px;
}

.column.right-side {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  background-color: #dae6d3;
  gap: 10px;
}

/* Navigation */
.nav-section {
  padding: 8px;
  border: 2px solid #ceebf2;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  background-color: #fff;
}

.nav-section ul {
  list-style: none;
  padding-left: 0;
}

.nav-section ul li {
  margin: 8px 0;
}

.nav-section ul li a {
  color: #b8afaf;
  text-decoration: none;
}

.nav-section ul li a:hover {
  text-decoration: underline;
}

/* Scroll section */
.scroll-section {
  flex: 1;
  overflow: auto;
  max-height: 130px;
  background-color: #ffffffcc;
  border: 2px solid #b8e5f3;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 8px;
}

/* Main title */
.main-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 25px;
  text-align: left;
  color: #edbfd9;
  margin-bottom: 10px;
}

/* Divider */
.divider {
  height: 2px;
  width: 100%;
  margin: 0 auto 20px auto;
  background-color: #dfb9cb;
}

/* Intro text */
.intro-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  background-color: #fffff9;
  border: 2px solid #f5d6e3;
  color: #898686;
  padding: 20px;
  line-height: 1.5;
  text-align: left;
  padding-left: 10%;
}

.journal-message {
  margin-top: 30px;
  text-align: left;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}

.journal-message textarea {
  width: 90%;
  height: 60px;
  padding: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  background-color: #fffafc;
  border: 2px solid #f4cdd8;
  border-radius: 6px;
  resize: none;
}

.journal-message button {
  margin-top: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 4px 8px;
  background-color: #ffe6f0;
  border: 2px solid #f4cdd8;
  cursor: pointer;
  color: #716e6e;
  border-radius: 6px;
}

#journalDisplay {
  margin-top: 20px;
}

.entry {
  background-color: #fff9fb;
  border: 2px dashed #f4cdd8;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  box-shadow: 2px 2px 4px #f0dce5;
}

.entry-date {
  font-size: 8px;
  color: #c6a4b5;
  margin-top: 6px;
  text-align: right;
  opacity: 0.7;
}

/* Extra fun to do */
.music-player {
  position: relative ;
  bottom: auto ;
  left: auto ;
  margin-top: 20px;
  background: #fff3fa;
  border: 2px solid #f4cdd8;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 2px 2px 5px #eacadb;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  z-index: 9999;
}

.music-player button {
  background-color: #ffe6f0;
  border: 2px solid #f4cdd8;
  border-radius: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 4px 8px;
  cursor: pointer;
  margin-top: 5px;
}

/* 🐾Draggable Stickers */
.draggable {
  position: absolute;
  width: 60px;
  cursor: grab;
  z-index: 1000;
}

/* Calendar */
.calendar-title {
  text-align: left;
  color: #d6a7c1;
  font-family: 'Press Start 2P';
  font-size: 11px;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 50px);
  column-gap: 1px;   /* horizontal spacing (between columns) */
  max-width: 380px; /* wider calendar */
  margin: 2px;
}

.day {
  border: 1px solid #e4c0dc;
  background: #fff7fd;
  height: 20px;
  padding: 1px 2px;
  font-size: 1px;
  font-family: 'Press Start 2P';
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.day strong {
  display: block;
  font-size: 10px;
  text-align: end;
  color: #b68da9;
}

/* Show note preview under date */
.day .note-preview {
  font-size: 12px;
  color: #c97ca6;
  margin-top: 6px;
  white-space: pre-wrap;
}

/*  Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: #fff0f9;
  margin: 10% auto;
  padding: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  border: 2px solid #f9c6db;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  color: #eaa1bc;
  cursor: pointer;
}

#note-text {
  width: 100%;
  padding: 8px;
  border: 1px solid #ffd6eb;
  border-radius: 8px;
  background: #fffafc;
  font-family: 'Press Start 2P';
  font-size: 10px;
  resize: none;
}

/* Secret Note */
.secret-content {
  display: none;
  background: #ffeaf4;
  padding: 10px;
  font-family: 'Press Start 2P';
  font-size: 10px;
  border-radius: 10px;
  margin-top: 5px;
}

/* Post-It Notes */
.postit {
  background: #fcf8de;
  width: 150px;
  height: 150px;
  padding: 10px;
  border: 2px solid #f1f6d4;
  box-shadow: 3px 3px 5px hsl(39, 71%, 84%);
  font-family: 'Press Start 2P';
  font-size: 11px;
  position: absolute;
}

/* Digital Pet */
#pixel-pet {
 font-size: 10px;
 font-family: 'Press Start 2P';
}
#pixel-pet:hover {
  transform: scale(1.1);
}
#feed-pet-btn:hover {
  background: #ff9acc;
}


/*  Sliding Tabs */
.tab-container {
  position: relative ;
  left: auto ;
  top: auto ;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}

.tab-container button {
  background: #ffe8f4;
  color: #b799ac;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.tab-container button:hover {
  background-color: #f1dbe4;
}

.tab-content {
  position: relative ;
  left: auto ;
  top: auto ;
  margin-top: 10px;
  display: none;
  max-width: 100%;
  background: #fbf4f6;
  border: 2px solid #f2d5e5;
  padding: 15px;
  border-radius: 15px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}

progress {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: #ffd9e8;
  border-radius: 10px;
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background-color: #ffd9e8;
  border-radius: 10px;
}

progress::-webkit-progress-value {
  background-color: #e775af;
  border-radius: 10px;
}

progress::-moz-progress-bar {
  background-color: #e775af;
  border-radius: 10px;
}

.floating-note {
  width: 160px;
  min-height: 120px;
  background: #fff8fb;
  color: #5c4d52;
  border: 2px dashed #f4a3c3;
  border-radius: 10px;
  padding: 10px;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  position: absolute;
  top: 150px;
  left: 150px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow-wrap: break-word;
}

.close-note {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ffb3c6;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  padding: 2px 6px;
}


/* Responsive */
@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }
}