
/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #FCFCEC;
  background-image: url(""); /* sample working URL */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  font-family: 'VT323', monospace;
  color: #FCFCF0;
  font-size: 0.9rem;
}

.main-header {
  position: relative;
  width: 100vw;
  max-width: 100%;
  border: none;
  box-shadow: none;
  padding: 0;
}

.header-image {
  display: block;
  width: 100vw;
  height: auto;
  margin: 0;
}

.bookmark-toggle {
  position: fixed;
  top: -20px;
  left: 5px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.bookmark-toggle:hover {
  transform: scale(1.05);
}

.bookmark-toggle img {
  display: block;
  height: 100px;
  width: auto;
}

.sidebar {
  position: fixed;
  top: 170px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  width: 180px;
  background-color: transparent;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 999;
}

.sidebar.open {
  transform: translateX(0);
}

.nav-image {
  position: relative;
  display: block;
  width: 200px;
  height: 80px;
  margin-top: -15px;
  background-size: cover;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav1 { background-image: url("https://files.catbox.moe/ndh8i3.png"); }
.nav2 { background-image: url("https://files.catbox.moe/lo7ugy.png"); }
.nav3 { background-image: url("https://files.catbox.moe/8pmwdb.png"); }
.nav4 { background-image: url("https://files.catbox.moe/xrm259.png"); }

.nav-image span {
  position: absolute;
  top: 50%;
  left: 26px;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: bold;
  color: #504CD8;
  text-shadow: 1px 1px #F0F0E0;
  white-space: nowrap;
  pointer-events: none;
}

.nav-image:hover {
  transform: scale(1.05) rotate(-1deg);
  filter: brightness(1.1) saturate(1.2);
}

.main-container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  gap: 20px;
  position: relative;
}

.content-wrapper {
  flex-grow: 1;
  padding: 0 20px;
  margin-left: 150px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.grid-box {
  border-radius: 0px;
  background-color: #F0F0E0;
  overflow: hidden;
  box-shadow: 10px 10px 0px #80E4C4;
  display: flex;
  flex-direction: column;
  height: 220px;
}

.grid-box:nth-of-type(1) {
  grid-column: span 4;
}
.grid-box:nth-of-type(1) .window-bar {
  background-color: #FC78B8;
}

.grid-box:nth-of-type(2) {
  grid-column: span 2;
}
.grid-box:nth-of-type(2) .window-bar {
  background-color: #A0E440;
}

.grid-box:nth-of-type(3) {
  grid-column: span 3;
}
.grid-box:nth-of-type(3) .window-bar {
  background-color: #C4FD40;
}

.grid-box:nth-of-type(4) {
  grid-column: span 3;
}
.grid-box:nth-of-type(4) .window-bar {
  background-color: #7CDDD4;
}

.grid-box:nth-of-type(5) .window-bar {
  background-color: #504CD8;
  color: #FCFCEC;
}

.grid-box:nth-of-type(6) .window-bar {
  background-color: #F8B830;
}

.grid-box:nth-of-type(7) .window-bar {
  background-color: #1C0874;
  color: #FCFCEC;
}

.grid-box:nth-of-type(8) .window-bar {
  background-color: #FCFCEC;
  color: #1C0874;
}

.guestbook {
  grid-column: span 2;
  height: auto;
}

.guestbook-frame {
  width: 100%;
  height: 350px;
  border-radius: 6px;
  border: 1px solid #80E4C4;
  margin-top: 10px;
}

.window-bar {
  background-color: #80E4C4;
  color: #F0F0E0;
  padding: 6px 14px;
  font-weight: bold;
  font-size: 0.85rem;
  border-bottom: 1px solid #80E4C4;
  text-align: right;
  position: relative;
}

.window-bar::before {
  content: '\f00d \f2d0 \f068';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #1C0874;
  font-size: 0.8rem;
  letter-spacing: 6px;
  position: absolute;
  left: 10px;
  top: 4px;
}

.window-body {
  background: repeating-linear-gradient(to bottom, #FCFCF0, #FCFCF0 20px, #ECF0E8 23px);
  padding: 15px 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #80E4C4;
  line-height: 1.4;
  flex-grow: 1;
  overflow: auto;
}

/* Notepad styling */
.notepad {
  background-color: white;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  position: relative;
}

.notepad-titlebar {
  background: #e5b4ff;
  color: black;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  font-weight: bold;
  border-bottom: 2px solid #a0f0ff;
}

.notepad-buttons {
  display: flex;
  gap: 2px;
}

.notepad-btn {
  width: 16px;
  height: 16px;
  background: #d6bcff;
  border: 1px solid #222;
  font-size: 10px;
  font-weight: bold;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.notepad-btn:hover {
  background: #ff8c8c;
  color: white;
}

.close-btn {
  background-color: #C0C0C0;
  border: 1px solid #808080;
  color: black;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0 6px;
  cursor: pointer;
  margin-left: 8px;
}

.close-btn:hover {
  background-color: red;
  color: white;
}

.checklist .window-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  background: transparent;
}

.checklist td {
  text-align: left;
  padding: 4px 6px;
  font-size: 0.85rem;
  color: #1C0874;
}

.checklist td:first-child::before {
  content: '☐ ';
  color: #504CD8;
  margin-right: 4px;
}

.calendar-part {
  width: 140px;
  background-color: #F0F0E0;
  box-shadow: -10px -10px 0px #80E4C4;
  border-radius: 0;
  margin-top: 300px;
  position: fixed;
  z-index: 1000;
  font-family: 'Courier New', monospace;
  color: #1C0874;
}

.notepad-circles {
  display: flex;
  gap: 6px;
  padding: 10px 10px;
}

.circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.circle.red { background: #ff5f56; }
.circle.yellow { background: #ffbd2e; }
.circle.green { background: #27c93f; }

.calendar-title {
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0 10px;
  margin-top: -6px;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 0.85rem;
  }

  .calendar-part {
    position: static;
    z-index: auto;
  }

  .main-header,
  .header-image {
    width: 100%;
    overflow-x: hidden;
  }

  .main-container {
    flex-direction: column;
    padding: 10px;
    width: 100%;
  }

  .sidebar-wrapper {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
    align-items: center;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
  }

  .nav-image {
    width: 40%;
    height: 40px;
    background-size: cover;
  }

  .nav-image span {
    font-size: 0.75rem;
    left: 10px;
  }

  .calendar-part {
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
    border-radius: 0;
    background-color: #F0F0E0;
    color: #1C0874;
    font-family: 'Courier New', monospace;
  }

  .calendar-title {
    padding: 5px 10px;
    font-size: 0.85rem;
  }

  .calendar-body {
    padding: 10px;
    font-size: 0.8rem;
  }

  .notepad-circles {
    padding: 10px;
    gap: 6px;
  }

  .content-wrapper {
    padding: 0;
    margin-left: 0;
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .grid-box {
    width: 100%;
    height: auto;
    grid-column: span 1 !important;
    box-shadow: 4px 4px 0px #80E4C4;
  }

  .window-bar {
    font-size: 0.8rem;
    padding: 6px 10px;
    text-align: left;
  }

  .window-bar::before {
    font-size: 0.7rem;
    top: 6px;
    left: 6px;
    letter-spacing: 4px;
  }

  .window-body {
    padding: 12px;
    background-color: #ffffff;
    font-size: 0.85rem;
    color: #80E4C4;
    overflow-x: auto;
  }

  .guestbook {
    grid-column: span 1;
  }

  .guestbook-frame {
    height: 300px;
    width: 100%;
  }

  .notepad {
    width: 100%;
    box-shadow: none;
    margin-top: 10px;
  }

  .notepad-titlebar {
    padding: 6px 8px;
    flex-wrap: wrap;
  }

  .bookmark-toggle img {
    height: 60px;
  }

  .checklist .window-body table {
    font-size: 0.75rem;
  }

  .checklist td:first-child::before {
    margin-right: 2px;
  }
}
