:root[data-color-mode="light"] {
  --main-bg: #b1ca68;
  --tert-bg: #fbab2b;
  --cont-bg: #fff;
  --head-text: #29522b;
  --main-text: #000;
  --yellow: #f8ea8a;
  --circle-bg: #e4a046;
  --link-unv: #46813f;
  --link-vis: #355831;
  --mo-link: #f2d128;
  --cl-link: #f2d128;
  --cal-color: #ffdb6a;
  
  --event-dean: #761f09;
  --event-haruhi: #af70cc;
  --event-lena: #fd751d;
  --event-sora: #55bfff;
  --event-soul: #e7bd44;
  --event-hikaru: #ff9f55;
  --event-tohru: #ff66a1;
  --event-markiplier: #da2727;
  --event-leon: #2130a3;
  --event-adonis: #ec8211;
  --event-default: #f58841;  /* fallback for events without specific color */
}

:root[data-color-mode="dark"] {
  --main-bg: #000;
  --tert-bg: #b1ca68;
  --cont-bg: #29522b;
  --head-text: #29522b;
  --main-text: #FFF;
  --yellow: #fbe025;
  --circle-bg: #3c4043;
  --link-unv: #ca8428;
  --link-vis: #f3a033;
  --mo-link: #f2d128;
  --cl-link: #e4a046;
  --cal-color: #417537;
  
  --event-dean: #761f09;
  --event-haruhi: #af70cc;
  --event-lena: #fd751d;
  --event-sora: #55bfff;
  --event-soul: #e7bd44;
  --event-hikaru: #ff9f55;
  --event-tohru: #ff66a1;
  --event-markiplier: #da2727;
  --event-leon: #2130a3;
  --event-adonis: #ec8211;
  --event-default: #f58841;  /* fallback for events without specific color */
}

* {
    box-sizing: border-box;
}

/* Utility classes you can mix and match */
.text-center { text-align: center; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-col { display: flex; flex-direction: column; font-size: inherit; }

.rounded {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
}

body {
  background: var(--main-bg);
  font-size: 0.875em;
  font-family: monospace;
  padding: 0;
  margin: 0;
  padding-bottom: 250px;
}
  
.wrapper {
  top: 0;
  margin: 0 auto;
  width: 870px;
}

.wrapper-2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0px;
  justify-content: flex-start;
}
  
.sidebar-left {
  width: 175px;
  flex-shrink: 0;
  margin-right: 10px;
  min-width: 0;  /* Allows flex items to shrink below their content width */

}

.sidebar-right {
  width: 175px;
  flex-shrink: 0;
  min-width: 0;  /* Allows flex items to shrink below their content width */
}
  
.main pre, .main code {
    white-space: pre-wrap;  /* Wraps long code lines */
    word-break: break-all;
}  
  
.main {
  flex-grow: 1;
  margin-left: 0;
  margin-right: 10px;
  min-width: 0;  /* Allows flex items to shrink below their content width */
  overflow: hidden;       /* Prevents content from spilling out */
  word-wrap: break-word;  /* Breaks long words */
  overflow-wrap: break-word;
}
  
.wrapper, .links a {
  color: #4f3d46;
}
  
.box {
  border: 3px double #333;
  background: var(--cont-bg);
  padding: 0;
}
  
.header {
  border: 3px double #333;
  background: linear-gradient(rgb(255, 215, 77, 0.75), rgb(255, 215, 77, 0.75));
  text-align: center;
  margin-top: 15px;
  top: 0;
  height: auto;
}
  
  /* Global link styles - this is what's missing! */
a:link {
    color: var(--link-unv);
}

a:visited {
    color: var(--link-vis);
}

a:hover {
    color: var(--mo-link);
}

a:active {
    color: var(--cl-link);
}
  
.links {
  border: 3px double #333;
  border-bottom: 1px solid #4C638F;
  background: var(--tert-bg);
  margin-top: 0;
  color: var(--link-unv);
}

.links::after {
  content: " ";
  display: block;
  border-bottom: 1px solid #252547;
  color: var(--link-vis);
}

.link {
  display: inline-block;
  color: var:(--link-unv);
}

.links a {
  color: var(--link-unv);
  text-decoration: none;
  margin-left: 8px;
  display: inline-block;
  padding: 8px 8px;
}

.links a:hover {
  background-color: #4C638F;
  color: var(--mo-link);
}
  
.title {
  display: none;
}

.footer {
  height: 0;
}
  
.box h1, .box h2, .box h3, .box h4 {
  background: var(--tert-bg);
  margin: 0;
  padding: 0.35em 0.25em 0.3em 0.25em;
  text-align: center;
  border-bottom: 3px double #333;
  color: var(--head-text);
}
  
.inner {
  padding: 0.25em 1em 0.3em 1em;
  font-size: 1.075em;
  color: var(--main-text);
}
  
@media(max-width:880px) {
  .wrapper {
    width: calc(340px + 50vw);
  }
  .sidebar-left, .sidebar-right {
    width: 160px;
  }
}

@media(orientation:portrait) {
  .wrapper {
    width: 96vw;
    margin: 0 auto;
    padding: 0;
    position: relative;
  }
  .wrapper-2 {
    width: 94vw;
    margin: 0 auto;
    padding: 0;
    flex-direction: column;
  }
  .sidebar-left, .main, .sidebar-right {
    position: relative;
    width: 92vw;
    margin: 0.25rem 1vw;
    flex-shrink: 1;
  }
}

:root[data-color-mode="light"] .hidden_in_light_mode {
  display: none;
}

:root[data-color-mode="dark"] .hidden_in_dark_mode {
  display: none;
}

.color_mode_button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: right;
  justify-content: right;
  padding: 5px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: #FFEA63;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50px;
  background-color: var(--circle-bg, #e0e0e0);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.color_mode_button svg {
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: #FFEA63;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5px;
}

.color_mode_button#enable_dark_mode:hover svg,
.color_mode_button#enable_dark_mode:focus svg {
  outline: none;
  fill: blue;
}

.color_mode_button#enable_light_mode:hover svg,
.color_mode_button#enable_light_mode:focus svg {
  outline: none;
  fill: yellow;
}

.my-hr {
    width: 100%;
    height: 1px;
    background-color: var(--main-text);
    border: none;
}

/* ============================================
   ZONELETS INTEGRATION STYLES
   Add these to your existing style.css
   ============================================ */

/* Zonelets Container - if you're using their #container structure */
/* NOTE: Your .wrapper already serves this purpose, so this is optional */
#container {
  margin: 0;  /* Remove default margins since your .wrapper handles layout */
  width: 100%;
  background-color: transparent;  /* Let your .box handle backgrounds */
}

/* Zonelets Content Area - where blog posts live */
#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em 1em 0.3em 1em;
    font-size: 1.075em;
    color: var(--main-text);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Zonelets Header (navigation menu that gets injected) */
#header {
  background-color: var(--tert-bg);  /* Match your theme */
  padding: 0;
  margin-bottom: 0;
  border-bottom: 3px double #333;
}

#header ul {
  list-style-type: none;
  padding: 0.35em 0.25em;
  margin: 0;
  text-align: center;
}

#header li {
  display: inline-block;
  margin: 0 1em;
}

#header li a {
  color: var(--link-unv);
  text-decoration: none;
  background-color: inherit;
}

#header li a:hover {
  color: var(--mo-link);
  text-decoration: underline;
  background-color: transparent;
}

/* Zonelets Footer */
#footer {
  font-size: 0.85em;
  padding: 10px 5%;
  text-align: center;
  color: var(--main-text);
  background-color: var(--tert-bg);
  margin-top: 1em;
  border-top: 3px double #333;
}

#footer a {
  color: var(--link-unv);
}

#footer a:hover {
  color: var(--mo-link);
}

/* Post Title (injected into #postTitleH1) */
#postTitleH1 {
  background: var(--tert-bg);
  margin: 0;
  padding: 0.35em 0.25em 0.3em 0.25em;
  text-align: center;
  border-bottom: 3px double #333;
  color: var(--head-text);
  font-size: 1.8em;
}

/* Post Date */
#postDate {
  text-align: center;
  color: var(--main-text);
  padding: 10px;
  margin: 0;
  font-weight: normal;
  background-color: var(--cont-bg);
}

/* Next/Previous Navigation */
#nextprev {
  text-align: center;
  margin-top: 1.5em;
  padding: 10px;
  border-top: 1px solid var(--tert-bg);
  border-bottom: 1px solid var(--tert-bg);
}

#nextprev ul, #nextprev li {
    /* match your blog's styles */
    font-size: inherit;
    padding-left: 0;
    list-style: none;
}
#nextprev a {
  color: var(--link-unv);
  text-decoration: none;
  margin: 0 10px;
}

#nextprev a:hover {
  color: var(--mo-link);
  text-decoration: underline;
}

/* Post List (for archive page) */
#postlistdiv ul,
#recentpostlistdiv ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#postlistdiv li,
#recentpostlistdiv li {
  margin: 0.5em 0;
  padding: 0;
}

#postlistdiv a,
#recentpostlistdiv a {
  color: var(--link-unv);
  text-decoration: none;
}

#postlistdiv a:hover,
#recentpostlistdiv a:hover {
  color: var(--mo-link);
  text-decoration: underline;
}
.inner #content {
    font-size: 1em; /* same as .inner's 1.075em relative to body? actually 1em = .inner's font size */
}

.moreposts {
  margin-top: 0.5em;
  font-style: italic;
}

/* Make sure your existing .inner works with Zonelets content */
.main .inner p:first-child {
  margin-top: 0;
}

/* Next/Previous Navigation */
#postTags {
  text-align: center;
  color: var(--main-text);
  padding: 0.5em;
  margin: 0;
  font-weight: normal;
  background-color: var(--cont-bg);
  border-bottom: 1px solid var(--tert-bg);
}

#postTags ul, #postTags li {
    /* match your blog's styles */
    font-size: inherit;
    padding-left: 0;
    list-style: none;
}
#postTags a {
  color: var(--link-unv);
  text-decoration: none;
  margin: 0 10px;
}

#postTags a:hover {
  color: var(--mo-link);
  text-decoration: underline;
}

.inner img {
  max-width: 100%;
  height: auto;
}

img {
  max-width: 100%;
  height: auto;
}

progress {
  width: 40%;
  border: 0 none;
  background: var(--main-bg);
  border-radius: 14px;
}
progress::-moz-progress-bar {
  border-radius: 12px;
  background: var(--link-unv);

}
/* webkit */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  progress {
    height: 5px;
  }
}
progress::-webkit-progress-bar {
    background: transparent;
}  
progress::-webkit-progress-value {  
  border-radius: 12px;
  background: var(--link-unv);
} 

.floating-corner-image {
                position: fixed;
                bottom: 20px;
                right: 20px;
                width: 175px; /* Adjust size as needed */
                height: auto;
                z-index: 9999;
              }
              .floating-corner-image img {
                width: 100%;
                height: auto;
                border-radius: 8px; /* Optional: rounded corners */
              }
              /* ===== Scrollbar CSS ===== */
              /* Firefox */
              * {
                scrollbar-width: auto;
                scrollbar-color: var(--cont-bg) var(--tert-bg);
              }
            
              /* Chrome, Edge, and Safari */
              *::-webkit-scrollbar {
                width: 16px;
              }
            
              *::-webkit-scrollbar-track {
                background: #ffffff;
              }
            
              *::-webkit-scrollbar-thumb {
                background-color: #8f54a0;
                border-radius: 10px;
                border: 3px solid #ffffff;
              }
