/* Add a black background color to the top navigation */

.topnav {
  background-color: #333;
  overflow: hidden;
  display: flex;
}
.popup {
    display: none;

    position: fixed;
    inset: 0;

    width: 1;
    height: auto;

    background-color: rgba(0, 0, 0, 0.6);

    z-index: 9999;
}

.popup-content {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: auto;
    padding: 25px;

    background-color: #05272a;
    color: #04AA6D;
    outline: solid 2px #04AA6D;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);

    border-radius: 10px;

    box-sizing: border-box;

 }
.close {
    position: absolute;
    top: 10px;
    right: 15px;

    font-size: 28px;
    font-weight: bold;

    color: #04AA6D;
    cursor: pointer;

    transition: 0.2s;
}

.close:hover {
    color: #04AA6D;
    transform: scale(1.2);
}

.topnav a {
  flex: 1;
  color: aliceblue;
  text-align: center;
  padding: 12px 0;   
  text-decoration: none;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
}
body {
  background-color: #05272a;
  color: white;
  justify-content: center;
  font-family:'Courier New', Courier, monospace;
}
.note-grid {
    display: grid;
    /* your existing grid properties */
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    width: 100%;
}

h1 {
  color: white;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
}
p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  text-align: center;
  color: aliceblue
}
li {
color: aliceblue;
font-family: 'Courier New', Courier, monospace;
text-align: center;
}
.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
    align-items: start;
}

.sticky-note {
    width: 100%;
    min-height: 170px;
    height: auto;

    position: relative;
    padding: 22px;

    box-sizing: border-box;

    background-color: #e7e09f;
    color: #222;
    text-decoration: none;

    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.25);

    transform: rotate(-1deg);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sticky-note::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 100%;
    height: 9px;

    background: inherit;

    clip-path: polygon(
        0 0,
        7% 55%,
        14% 20%,
        21% 65%,
        28% 30%,
        35% 70%,
        42% 20%,
        50% 60%,
        58% 25%,
        65% 75%,
        73% 30%,
        81% 65%,
        89% 20%,
        95% 60%,
        100% 25%,
        100% 0
    );
}

.sticky-note:nth-child(2n) {
    transform: rotate(1.5deg);
}

.sticky-note:nth-child(3n) {
    transform: rotate(-2deg);
}

.sticky-note:nth-child(4n + 1) {
    background-color: #e7e09f;
}

.sticky-note:nth-child(4n + 2) {
    background-color: #f2b5b5;
}

.sticky-note:nth-child(4n + 3) {
    background-color: #b9d9b0;
}

.sticky-note:nth-child(4n) {
    background-color: #b8cbe8;
}

.sticky-note:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 4px 10px 18px rgba(0, 0, 0, 0.35);
}

.folder-note {
    background-color: #b9d9b0;
}

.note-pin {
    position: absolute;
    width: 9px;
    height: 9px;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background-color: #7c7770;
}

.note-icon {
    margin-top: 15px;
    margin-bottom: 14px;
    font-size: 28px;
}

.note-title {
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: bold;
}

.note-subtitle {
    margin-top: 10px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    opacity: 0.55;
}
.back-button {
      position: relative;
    top: 10x;
    right: 0px;

    font-size: 28px;
    font-weight: bold;

    color: aliceblue;
    cursor: pointer;

    transition: 0.2s;
    font-family: 'Courier New', Courier, monospace;
}
.empty {
  text-align: center;
  color: #e7e09f;
}
h2 {
    color: white;
    font-family: 'Courier New', Courier, monospace;
}
h3 {
    color: white;
    font-family: 'Courier New', Courier, monospace;
}
h4 {
    color: white;
    font-family: 'Courier New', Courier, monospace;
}
td {
    color: white;
    font-family: 'Courier New', Courier, monospace;
}
.excalidraw-container {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    overflow: hidden;
}

.excalidraw-container svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
/* ===== Markdown note styling ===== */

.markdown-body {
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #d7ece9;
}

.markdown-body p,
.markdown-body li {
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  text-align: left;
  font-family: 'Courier New', Courier, monospace;
  color: #04AA6D;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.markdown-body h1 {
  font-size: 1.9rem;
  border-bottom: 1px solid rgba(4, 170, 109, 0.35);
  padding-bottom: 0.4rem;
}

.markdown-body h2 { font-size: 1.5rem; }
.markdown-body h3 { font-size: 1.2rem; }
.markdown-body h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.markdown-body p {
  margin: 0.8rem 0;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0.6rem 0 1.2rem 1.4rem;
  padding: 0;
}

.markdown-body li {
  margin-bottom: 0.35rem;
}

.markdown-body strong {
  color: #ffffff;
}

.markdown-body a {
  color: #04AA6D;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.markdown-body a:hover {
  color: #6be3ab;
}

.markdown-body code {
  font-family: 'Courier New', monospace;
  background: rgba(4, 170, 109, 0.12);
  color: #7fe0b8;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}

.markdown-body pre {
  background: #041c1e;
  border: 1px solid rgba(4, 170, 109, 0.25);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

.markdown-body pre code {
  background: none;
  padding: 0;
}

.markdown-body blockquote {
  border-left: 3px solid #04AA6D;
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  color: #9fc7c1;
  font-style: italic;
}

.markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid rgba(4, 170, 109, 0.25);
  padding: 0.5rem 0.8rem;
  text-align: left;
}

/* keep the wrapping <main> from adding extra centering */
.note-page {
  display: block;
}

@media (max-width: 600px) {
  .markdown-body {
    font-size: 16px;
    padding: 0 1rem 3rem;
  }
}