body {
      margin: 0;
      padding: 0;
      font-family: 'Courier New', monospace;
      background-color: #eaeaea;
      color: #000;
    }

a.breathinglink {
  color: #0000ee;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 1.05em; /* anchor left */
  transition: background-size 3.5s ease;
}

a.breathinglink:hover {
  background-size: 100% 1px;
}
    .topnav {
      background-color: #333;
      color: #fff;
      padding: 10px;
      display: flex;
      justify-content: center;
      gap: 20px;
      font-size: 14px;
      border-bottom: 4px double #888;
      position: relative;
    }
    .topnav a {
      color: #0f0;
      text-decoration: none;
      position: relative;
      padding: 4px 8px;
      cursor: pointer;
    }
    .topnav a:hover {
      text-decoration: underline;
    }
    .dropdown {
      display: none;
      position: absolute;
      top: 20px;
      background-color: #444;
      border: 1px solid #222;
      z-index: 999;
    }
    .dropdown a {
      display: block;
      padding: 6px 12px;
      white-space: nowrap;
      color: #0f0;
      text-decoration: none;
    }
    .dropdown a:hover {
      background-color: #555;
    }
    .topnav-item {
      position: relative;
    }
    .topnav-item:hover .dropdown {
      display: block;
    }
    .clicked {
      animation: blink 0.15s 2 alternate;
    }
    @keyframes blink {
      0% { background-color: #0f0; color: #000; }
      100% { background-color: #000; color: #0f0; }
    }
    .frame-container {
      display: flex;
      height: calc(100vh - 84px);
    }
    .sidebar {
      width: 220px;
      background-color: #dcdcdc;
      border-right: 4px ridge gray;
      padding: 10px;
      box-shadow: inset -2px 0 4px rgba(0,0,0,0.2);
      overflow-y: auto;
      height: calc(100vh - 104px);
    }
    .sidebar h3 {
      text-align: center;
      font-size: 14px;
      margin-top: 0;
    }
    .menu-section button {
      background: none;
      border: none;
      font-weight: bold;
      cursor: pointer;
      text-align: left;
      padding: 4px;
      width: 100%;
    }
    .submenu {
      padding-left: 10px;
    }
    .sidebar a {
      display: block;
      padding: 4px 8px;
      margin: 4px 0;
      background-color: #fff;
      text-decoration: none;
      color: #333;
      border-left: 3px solid #999;
      transition: background 0.2s;
    }
    .sidebar a:hover {
      background-color: #c0c0c0;
    }
.main {
  flex: 1;
  background: #eaeaea;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 10px;
  overflow-y: scroll;
}

.page {
  background: #fff;
  padding: 60px 75px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 1px solid #ccc;
  margin-bottom: 50px;
  
}
    .annotated {
      background-color: yellow;
      cursor: pointer;
    }
    .lightbox {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .note-box {
      background: #fff;
      padding: 20px;
      border: 2px solid #999;
      font-size: 14px;
    }
    .top-icons {
      display: flex;
      justify-content: flex-start;
      gap: 10px;
      padding: 10px 0;
    }
    .top-icons button {
      background: #333;
      color: #0f0;
      border: none;
      cursor: pointer;
      font-size: 20px;
    }
    .slide-panel {
      position: fixed;
      top: 84px;
      right: -350px;
      width: 300px;
      height: calc(100vh - 84px);
      background: #222;
      color: #0f0;
      padding: 10px;
      transition: right 0.3s ease-in-out;
      overflow-y: auto;
      z-index: 998;
    }
    .slide-panel .close-btn {
      display: block;
      text-align: right;
      font-size: 16px;
      cursor: pointer;
      color: #0f0;
      margin-right: 15px;
    }
    .footer {
      background-color: #111;
      color: #0f0;
      font-size: 12px;
      padding: 6px;
      text-align: center;
      font-family: monospace;
      border-top: 2px solid #666;
    }
.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 5px;
}
.arrow.rotated {
  transform: rotate(90deg);
}
.collapsed {
  display: none;
}
    pineinput[type="text"] {
      font-family: inherit;
      font-size: 16px;
      padding: 4px;
      width: 200px;
    }
    pinebutton {
      font-family: inherit;
      font-size: 16px;
      margin-left: 10px;
      cursor: pointer;
    }
.flee-text {
  display: inline-block;
  transition: transform 0.2s ease;
  position: relative;
  font-family: 'IBM Plex Mono', monospace;
}

.seen-text {
  display: inline-block;
  transition: transform 0.2s ease;
  position: relative;
  font-family: 'IBM Plex Mono', monospace;
}

.come-text {
  display: inline-block;
  transition: transform 0.2s ease;
  position: relative;
  font-family: 'IBM Plex Mono', monospace;
}

.weight-text {
  transition: font-weight 0.1s ease;
  font-weight: 300;
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
}

 .carousel-container {
      position: relative;
      width: 500px;
      height: 320px;
      overflow: hidden;
      margin-inline: auto;
    }

    .carousel-track {
      display: flex;
      transition: transform 0.5s ease;
      margin-inline: auto;
    }

    .index-card {
      width: 500px;
      height: 300px;
      background-color: #fffbe6;
      border: 1px solid #ccc;
      border-radius: 8px;
      box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
      padding: 20px 25px;
      box-sizing: border-box;
      margin-inline: auto;
      flex-shrink: 0;
      position: relative;
    }

    .card-title {
      font-weight: bold;
      margin-bottom: 20px;
      border-bottom: 2px solid pink;
      padding-bottom: 5px;
    }

    .card-line {
      height: 13px;
      border-bottom: 1px solid lightblue;
      margin-bottom: 4px;
    }

    .arrow2 {
      position: absolute;
      bottom: 10px;
      font-size: 1.2em;
      background: none;
      border: none;
      cursor: pointer;
      color: black;
      z-index: 10;
    }

    .arrow2-left {
      left: 10px;
    }

    .arrow2-right {
      right: 10px;
    }


    .textbook-box {
      width: 600px;
      background: #fff;
      font-family: 'Georgia', serif;
      font-size: 16px;
      line-height: 1.6;
      padding: 25px;
      border: 1px solid #ccc;
      border-left: 6px solid #336699;
      box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
      margin-top: 40px;
      color: #222;
      margin-inline: auto;
    }