:root {
  --H: 220;
  --S: 80%;
  --L: 50%;
  --gradient-opacity: 1;

  /* Base colors */
  --color-white: #fff;
  --color-pink: pink;
  --color-grey: #c2c2c2;

  /* Main gradient colors */
  --color-pink-gradient: #fbe9ee;
  --color-purple-gradient: #f3f0f8;
  --color-blue-gradient: #ebf5fa;
  --color-green-accent: #f5f8f1;

  /* Deep Gradient colors */
  --color-deep-red-gradient: #170405;
  --color-deep-blue-gradient: #131022;
  --color-deep-violet-gradient: #08092d;

/* Pastel Gradient Colors */
--color-pink-gradient-pastel: #fbe9ee;
--color-purple-gradient-pastel: #f3f0f8;
--color-blue-gradient-pastel: #ebf5fa;
--color-green-accent-pastel: #f5f8f1;

/* Pastel Deep Gradient Colors */
--color-deep-red-gradient-pastel: #9e6b6c;
--color-deep-blue-gradient-pastel: #8d89a7;
--color-deep-violet-gradient-pastel: #9d7faa;

  /* Text shadow colors */
  --color-purple-glow: #dbbdf9;

  /* Div background colors */
    --div-bg: rgba(226, 151, 178, 0.5); /* light mode pink */
  [data-theme="dark"] {
    --div-bg: rgba(38, 32, 71, 0.5); /* dark mode blue */
  }
  /* Rainbow colors */
  --color-red: #ff0000;
  --color-orange: #ff8800;
  --color-yellow: #ffff00;
  --color-green: #00ff00;
  --color-cyan: #00ffff;
  --color-blue: #0000ff;
  --color-magenta: #ff00ff;

  /* Main gradient */
  --gradient-main: linear-gradient(45deg, var(--color-pink-gradient), var(--color-purple-gradient), var(--color-blue-gradient));

  /* Dark gradient */
  --gradient-main-dark: linear-gradient(45deg, var(--color-deep-red-gradient), var(--color-deep-blue-gradient), var(--color-deep-violet-gradient));


}

/* ======================================== */
/* ========= Base and Grid Styles ========= */
/* ======================================== */


@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url(../fonts/PixgamerRegular-OVD6A.ttf) format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "Pixel Gothic";
  src: url(../fonts/DeutscheZierschrift-ALOA.ttf) format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "nintendo-ds-bios";
  src: url(../fonts/Nintendo-DS-BIOS.ttf) format("truetype");
  font-style: normal;
}


@font-face {
  font-family: "romanceA";
  src: url(../fonts/RomanceA.ttf) format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "romanceB";
  src: url(../fonts/RomanceB.ttf) format("truetype");
  font-style: normal;
  font-weight: lighter;
}

body,
html {
  color: black;
  overflow-y: none;
  letter-spacing: 0.2px;
  background-color: var(--color-white);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  font-family: "Pixelated MS Sans Serif", "Pixel Sans Serif", sans-serif;
  
}

@media (min-width: 870px) {
  body {
    zoom: 1;
    transform: none;
  }
}

@media (min-width: 871px) {
  body {
    zoom: 1.2;
  }

  @supports not (zoom: 1.2) {
    body {
      transform: scale(1.2);
      transform-origin: top left;
    }
  }
}


.container {
  display: grid;
  grid-template-columns: auto minmax(min-content, 1fr);
  grid-template-rows: auto 1fr auto;
  position: relative;
  z-index: 1;
  grid-template-areas:
    "Title Title"
    "left-sidebar main-body"
    "left-sidebar main-body"
    "footer-container footer-container";
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
  align-items: stretch;
  gap: 2px;
}

/* Mobile responsiveness */
@media (max-width: 870px) {
  body {
  }

  .main-body {
    border: 0px!important;
    padding: 0 0px;
    margin: 0 0px;
    height: 100%;
    width: 100%;
  }

  .change-colrow{
    grid-area: main-body;
    border-left: 1px dotted var(--color-grey);
    border-right: 1px dotted var(--color-grey);
    border-bottom: 1px solid var(--color-grey);
    border-top: 1px dotted var(--color-grey);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin: 2px;
  }


.stamps {
    grid-template-areas:
      "zawarudo        stamps-container sundial"
      "zawarudo        stamps-container sundial"
      "zawarudo        stamps-container sundial" !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto auto;
    padding: 5px;
  }

  .evangelion {
    width: 100%; /* fills its td just like stamps does */
    padding-bottom: 10px;
    padding: 5px;
  }

  .change-colrow tr{
    display:flex;
    flex-direction: column-reverse;
  }

  #table-chan {
    display: table;
  }

  #table-chan tr {
    display: table-row;
  }

  #table-chan td {
    display: table-cell;
  }

  .change-colrow {
      table-layout: auto;
  }
  
  .change-colrow td{
    padding-left: 0px!important;
  }

  .change-colrow td {
      width: 100% !important;
      display: block;
  }

  p3 {
    border-width: 0px;
  }

  p3:hover {
    background-color: transparent;
    border-style: dotted;
    border-width: 0px;
  }
  
  .description {
    grid-row: 1;
    overflow-y: none;
    overflow-x: none;
  }

  .description td {
    width: 100% !important;
  }

  .container {
    padding: 0px;
    height: 100%;
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-areas:
      "Title"
      "left-sidebar"
      "main-body"
      "footer-container";
  }

  .moving-gif {
    pointer-events: none;
  }
  
  .mobile-row {
    flex-direction: row; /* horizontal on mobile */
  }


  #calendar {
    height: 100%;
  }

  #status {
    min-width: 150px!important;
  }

  .side-container {
  display: block;
  }
  
  .avatar {
    display: block;
    grid-column: 1;
  }
  
.content-container {
    position: sticky !important;
    width: 100% !important;
    bottom: 0 !important;
    z-index: 999 !important;
    gap: 5px;
    margin-top: -2px;
}


  .main-body {
    overflow: visible !important;  /* overflow:auto/hidden also traps stacking */
    z-index: 0;
  }

  .main-body-layout {
    position: unset !important;  /* this was also creating a stacking context */
  }

.footer-container {  
  margin-top: 0px ;
}

}

.Title {
  font-family: "Pixel Gothic", sans-serif;
  grid-area: Title;
  text-align: center;
  width: 100%;
  text-shadow: var(--color-purple-glow) 0px 0px 8px;
  color: var(--color-white);
  margin-top: 1%;
  
}

/* Apply gradient text for the site title in light mode only */
[data-theme="light"] .Title h1 {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
}

/* When Fun is enabled on light mode, force title to white */
[data-theme="light"][data-fun="on"] .Title h1, .main-body .main-header h1 {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--color-white);
}

/* ========================================= */
/* ========== Left Sidebar Styles ========== */
/* ========================================= */

.left-sidebar-title {
  padding: 0;
  grid-area: left-sidebar-title;
  width: 100%;
  height: auto;
  text-shadow: rgb(46, 43, 49) 0px 0px 2px;
  letter-spacing: 3px;
  background: var(--gradient-main);
  background-clip: border-box;
  -webkit-background-clip: border-box;
  border-style: solid;
  border-width: 0px 0px 1px 0px;
  color: var(--color-white);
  margin-bottom: 5px;
  transition: background 0.5s ease-in-out;
  /*-webkit-text-fill-color: transparent;
    */
}

.left-sidebar-title h1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  position: relative;
  text-align: center; 
}

.left-sidebar-title .star {
  font-size: 0.5em;
  opacity: 1;
  margin: 0 5px;
  transition: opacity 0.5s ease-in-out;
}

.left-sidebar-title .star.blink {
  opacity: 0;
}

.left-sidebar-title .star.glitch-blink {
  animation: glitch-blink 0.2s steps(1, end) 3;
}

@keyframes glitch-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.left-sidebar-title .title-text {
  font-size: 0.5em;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  letter-spacing: normal!important;
}

.left-sidebar-title .title-text.blink {
  opacity: 0;
}

.left-sidebar-title .title-text.glitch-blink {
  animation: glitch-blink 0.2s steps(1, end) 3;
}

.left-sidebar {
  grid-area: left-sidebar;
  margin: 0;
  border: 1px solid var(--color-grey);
  border-radius: 5px;
  padding: 5px;
  height: fit-content;
  background-color: var(--color-white);
}

[data-theme="dark"] .left-sidebar {
  background-color: black;
}

.side-container {
  display: flex;
  align-items: center;
}

.mew {
  height: auto;
  vertical-align: middle;
}

hr {
  color: var(--color-pink);
  border-top: 1px dashed var(--color-white);
  position: sticky;
}

img#eve {
  width: 100px!important;
  height: 100px!important;
  image-rendering: pixelated;
  display: block;
  border-style: dashed;
  border-width: 1px 0px 1px 0px;
  color: var(--color-grey);
}

[data-theme="dark"] .items img#eve {
  color: var(--color-white);
}


.control-box {
  grid-column: 1;
  width: 100px;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  align-items: center;
  position: relative;
}


/* Nav sidebar layout */
.items {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 10px;
}

.items {
  counter-reset: item-counter;
}

[class^="item"] {
  counter-increment: item-counter;
}

.right-items .item {
  height: 35px;
  width: 100%;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px dotted;
  padding-top: 2x;
  background: linear-gradient(30deg,
      var(--color-pink-gradient-pastel),
      var(--color-purple-gradient-pastel), 
      var(--color-blue-gradient-pastel));
  background-size: 100% 100%;
  animation: gradientShift 15s infinite linear;
  transition: background 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: var(--gradient-opacity);
}

[data-theme="dark"] .right-items .item {
  background: linear-gradient(30deg,
      var(--color-deep-red-gradient),
      var(--color-deep-blue-gradient), 
      var(--color-deep-violet-gradient));
  background-size: 100% 100%;
  animation: gradientShift 15s infinite linear;
  transition: background 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: var(--gradient-opacity);
  color: var(--color-white)!important;
}


.right-items .item p3 button:hover  {
  transition: 0.2s ease-in-out;
  width: 100%;
  height: 100%;

}


.right-items .item p3 button  {
  width: 100%;
  height: 100%;
  text-align: left;
  line-height: 25px;
  text-align: center;
}

.right-items .item p3 .push-text:hover::before {
  content: "★";   /* your text */
  position: absolute;
  left: 5px;
}

.right-items .item p3 .push-text:hover  {
  padding-left: 35px;
  transition: 0.2s ease-in-out;
  width: 100%;
  background-repeat: no-repeat;
  color: white;
  margin-left: -4px;
  position: relative;
}


.right-items .item {
  width: 100%;
}

.right-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}



@media (max-width: 600px) {
  .stamps {
    grid-template-areas:
      "zawarudo         stamps-container"
      "sundial          sundial" !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto;
    height: 225px;
    overflow-y: auto;
  }

  #calendar .days {
    column-gap: 0.1rem!important;
  }
  #sky-svg {
    margin: 0;
  }
  
  #sky-wrap {
    margin: 0;
    max-width: 300px!important;
  }

  .sundial {
    width: auto!important;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
  }

  .sundial-container {
    display: flex;
    flex-direction: column;
    padding: 2px;
  }

  .time-row {
    font-size: 0.8rem!important;
    margin: 2px 0;
  }

  #progress-label {
    font-size: 0.8rem!important;
    margin: 2px 0;
  }

  .scroll-content {
    width:auto;
  }

  #eve-button {
    width: 88px!important;
    height: 31px!important;
  }

}


/* Mobile Layout */
@media (max-width: 870px) {
  
  .items {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    width: 100%;
  }

  .items img#eve {
  width: 100px;
  height: 100px;
  }


.right-items .item p3 button:hover  {
  all: unset;
}


.right-items .item p3 button  {
  text-align: center;
}

.right-items .item p3 .push-text:hover  {
  all: unset;
}

  .right-items {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 7px;
    height: 100px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .right-items .item {
    width: 100%;
    height: 28px;
    margin: 0;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .right-items .item:last-child:nth-child(odd) {
    grid-column: 1 / -1; 
  }

p3:hover {
  border-collapse: separate;
  margin: 0px;
  border-style: dashed;
  border-width: 1px;
  width: initial;
  height: initial;
  display: block;
}
 

  #sky-svg {
    margin: 0;
    height: 100%;
  }
  
  #sky-wrap {
    margin: 0;
    height: 100%;
  }

  .sundial {
    width: auto!important;
  }

  .sundial-container {
    display: flex;
    flex-direction: column;
    padding: 2px;
    height: 191px !important;
  }

  .time-row {
    font-size: 0.8rem!important;
    margin: 2px 0;
  }

  #progress-label {
    font-size: 0.8rem!important;
    margin: 2px 0;
  }

  #calendar {
    min-height: 141px!important;
    height: 191px !important;
  }

  .days {
    font-size: 1em!important;
  }

  .weekday {
    text-align: center;
    width: 1.3rem!important;
    padding: 0px;
    margin: 0px;
  }

  .day {
    width: 1.2rem!important;
    height: 1.2rem!important;
    max-width: 1.2rem!important;
    max-height: 1.2rem!important;
    border-radius: 2px;
    gap: 0.5rem;
  }

  .main-body .main-header {
  }
  

  .zawarudo {
    grid-area: zawarudo;
    display: grid;
    gap: 5px!important;
    grid-template-areas:
      "login"
      "status-online"
      "i-mood"
      "last-fm"
      "my-button"
      "last-entry"
      "tags";
  }

  .my-button {
    height: 100%;
    padding-bottom: 0px!important;
  }

  
}

@media (max-width: 576px) {
  .content-container {
    position: sticky !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
  }
  
}


@media (max-width: 425px) {
  #calendar {
    height: 191px !important;
    min-width: fit-content !important;
  }

  .days {
    padding-top: 15px!important;
    font-size: 0.8em!important;
  }

  .weekday {
    text-align: center;
    width: 1rem!important;
    padding: 0px;
    margin: 0px;
  }

  .day {
    width: 1.1rem!important;
    height: 1.1rem!important;
    max-width: 1.1rem!important;
    max-height: 1.1rem!important;
    border-radius: 2px;
  }

}


@media (max-width: 392px) {
  .stamps {
    grid-template-areas:
      "stamps-container"
      "zawarudo" 
      "sundial" !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
    height: 220px;
    overflow-y: auto;
    margin: 0;
    width: 100% !important;
    justify-items: center;
  }
}

/* ========================================== */
/* ============ Main Body Styles ============ */
/* ========================================== */

.main-body {
  grid-area: main-body;
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px solid var(--color-grey);
  border-top: 1px dotted var(--color-white)!important;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow-y: auto;
  transition: transform 0.6s, height 0.6s;
  position: relative;
  scrollbar-width: none;       /* Note: Firefox */
  -ms-overflow-style: none;    /* Note: Internet Explorer/Edge */
  min-width: 340px;
  height: 100%;
  background-color: white;
}

[data-theme="dark"] .main-body {
  background-color: black;
}


.main-body-layout {
  grid-area: main-body-layout;
  display: grid;
  grid-template-areas:
    "blog"
    "content-container";
  grid-template-rows: 1fr auto;
  position: relative;
}

td, tr, tbody, table {
  overflow: visible !important; /* tables clip sticky by default */
}

.main-body-layout.container-floating {
  grid-template-rows: 1fr 0px;
}



.minimize {
position:absolute;
top: 0;
right: 0;
}

  .main-body::-webkit-scrollbar {
    display: none; /* Note: Chrome, Safari */
  }

.description {
  grid-area: description;
  grid-row: 1;
  margin: 10px;
  margin-bottom: 0px;
  overflow-y: none;
  overflow-x: none;
  scrollbar-width: none;
}

.lobby {
  grid-area: description;
  grid-row: 1;
  padding: 0px;
  margin: 8px;
  overflow-y: none;
  overflow-x: none;
  height: 358px;
  scrollbar-width: none;
}


.lobby-box {
  height: 358px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  width: 100%;
  border-left: 1px dashed;
  line-height: 25px;
  position: relative;
}

.intro {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: 1px;
  width: 100%;
  border-left: 1px dashed;
  padding-left: 5px;
  padding-right: 15px;
  text-align: justify;
  line-height: 1;
  position: relative;
}

  .zawarudo {
    grid-area: zawarudo;
    display: grid;
    gap: 8px;
    grid-template-areas:
      "status-online"
      "i-mood"
      "last-fm"
      "my-button" 
      "tags"
      "last-entry";
      height: 100%;
  }

  .stamps-container { grid-area: stamps-container; }
  .sundial       { grid-area: sundial; }
  .status-online { grid-area: status-online; }
  .i-mood        { grid-area: i-mood; }
  .last-entry        { grid-area: last-entry; }
  .last-fm      { grid-area: last-fm; }
  .my-button       { grid-area: my-button; }
  .login       { grid-area: login; }
  .tags       { grid-area: tags; }

.login div {
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px dotted var(--color-grey)!important;
  border-top: 1px solid var(--color-white)!important;
}

[data-theme="dark"] .login div {
  border: 1px dotted var(--color-white);
}

.tags div {
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px dotted var(--color-grey)!important;
  border-top: 1px solid var(--color-white)!important;
}

[data-theme="dark"] .tags div {
  border: 1px dotted var(--color-white);
}

.last-entry div {
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px dotted var(--color-grey)!important;
  border-top: 1px solid var(--color-white)!important;
}

[data-theme="dark"] .last-entry div {
  border: 1px dotted var(--color-white);
}

.imood div {
  background-color: var(--color-white);
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px dotted var(--color-grey)!important;
  border-top: 1px solid var(--color-white)!important;
}

[data-theme="dark"] .imood div {
  border: 1px dotted var(--color-white);
}


.status-online div {
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px dotted var(--color-grey)!important;
  border-top: 1px solid var(--color-white)!important;
}

[data-theme="dark"] .status-online div {
  border: 1px dotted var(--color-white);
}

  .stamps {
  display: grid;
  grid-template-areas:
    "zawarudo"
    "stamps-container"
    "sundial";
  grid-template-columns: 1fr;
  align-items: start;
  align-content: start;
    gap: 8px;
    overflow: auto;
    scrollbar-width: none;
  justify-items: stretch;
  }

.stamps-container {
  grid-area: stamps-container;
  position: relative;
}


  .evangelion {
  display: grid;
  grid-template-areas:
    "login"
    "stamps-container"
    "last-entry"
    "tags";
  grid-template-columns: 1fr;
  align-items: start;
  align-content: start;
    gap: 8px;
    overflow: auto;
    scrollbar-width: none;
  justify-items: stretch;
  }


.sundial {
  grid-area: sundial;
  position: relative;
  border-top: 0px;
}


.stamps img {
  width: auto;
  opacity: 0.8;
}

th {
  font-weight: normal;
  color: black;
}

[data-theme="dark"] th {
  font-weight: normal;
  color: var(--color-white);
}

/*  image-rendering: pixelated; */

.stamps img:hover {
  opacity: 1;
}

.content-container {
  flex-shrink: 0!important;
  position: sticky!important;
  bottom: 0!important;
  z-index: 1!important;
  padding-top: 0px!important;
  padding: 10px!important;
  background-color: var(--color-white);
}

.content-container {
  grid-area: content-container;
  grid-row: 2;
  scrollbar-width: 0px;
  overflow: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  grid-template-areas: "fun rss";
}

.content-container {
  background-color: var(--color-white);
}


[data-theme="dark"] .content-container {
  background-color: black;
}

.fun {
  grid-area: fun;
}

.rss {
  grid-area: rss;
}

.fun,
.rss {
  display: inline-block;
  text-align: left;
  padding: 5px;
  margin: 0;
  border-radius: 5px;
  border: 1px dashed;
  width: 100%;
  height: 135px;
  box-sizing: border-box;
}

iframe {
  border-width: 0px;
}

.center-title {
  margin: 0;
  width: inherit;
  /*white-space: nowrap;*/
}

.center-title h1 {
  text-align: center;
  font-size: 1.2em;
  -webkit-text-fill-color: transparent;
}

.main-body .main-header h1 {
  margin: 0;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: background 0.5s ease-in-out;
  font-family: "romanceB", sans-serif;
}

.main-body .main-header {
  position: sticky;
  z-index: 1;
  top: 0;
  overflow: hidden;
  padding: 5px;
  background: var(--gradient-box);
  background-clip: padding-box;
  border-width: 0px 0px 1px 0px;
  border-style: solid;
  border-color: white;
}

.widget-container {
  grid-area: widget-container;
  grid-row: 2;
  scrollbar-width: 0px;
  overflow: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px;
  grid-template-areas: "last-fm x-widget";
}


.last-fm,
.x-widget {
  display: inline-block;
  text-align: left;
  padding: 5px;
  margin: 0;
  border-radius: 5px;
  border: 1px dashed;
  width: 100%;
  box-sizing: border-box;
}


.last-fm {
  grid-area: last-fm;
  position: relative;
  border-radius: 5px;
  border: 1px dashed;
  box-sizing: border-box;
  background-color: var(--color-white);
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px solid var(--color-grey)!important;
  border-top: 1px dotted var(--color-grey)!important;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  min-width: 141px;
  min-height: 0px !important;
}

[data-theme="dark"] .last-fm {
  border: var(--color-white);
  border-left: 1px dotted var(--color-white);
  border-right: 1px dotted var(--color-white);
  background-color: black;
}


.my-button {
  grid-area: my-button;
  position: relative;
  border-radius: 5px;
  padding-bottom: 5px;
  border: 1px dashed;
  box-sizing: border-box;
  background-color: var(--color-white);
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px solid var(--color-grey)!important;
  border-top: 1px dotted var(--color-grey)!important;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  min-height: 0px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-theme="dark"] .my-button {
  border: var(--color-white);
  border-left: 1px dotted var(--color-white);
  border-right: 1px dotted var(--color-white);
  background-color: black;
}

.x-widget {
  grid-area: x-widget;
  position: relative;
  border-radius: 5px;
  border: 1px dashed;
  box-sizing: border-box;
}



/* ========================================= */
/* ============= Footer Styles ============= */
/* ========================================= */


.footer-container {  
  grid-area: footer-container;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  grid-template-areas:
    "links";
  overflow: none;
  position: relative;
  background-color: var(--color-white)!important;
  border-radius: 5px;
}

[data-theme="dark"]  .footer-container {
  background-color: black!important;
}

.links {
  grid-area: links;
}

.center-chan{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.links {
  text-align: left;
  width: 100%;
  padding: 0px;
  margin: 0px;
  border-radius: 5px;
  border: 1px dashed var(--color-grey);  
}

.links:hover {
  border: 1px dotted var(--color-grey);
  margin: 0px;
}

.links h2 {
  font-weight: 300;
  padding-left: 5px!important;
}

.links a {
  white-space: nowrap;
  font-size: inherit;
  border-radius: 5px;
  opacity: 1;
  padding: 2px;
  border: 1px dashed var(--color-white);
  background: url('../images/bgrainbow.png');
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  text-align: center;
}

.links h2,
.main-body .main-header h1,
.rss h2,
.blog h2,
.stamps .stamps-container #calendar h2,
#time-display h2 {
  border-style: dotted;
  border-width: 0px 0px 1px 0px;
  padding: 0px;
  padding-bottom: 2px;
  padding-top: 2px;
  font-size: 18px;
  margin: 0px;
  white-space: nowrap;
  font-family: "romanceB", sans-serif;
  font-weight: 300;
}

.stamps .stamps-container #calendar h2, #time-display h2 {
  font-family: "nintendo-ds-bios", sans-serif;
}

[data-theme="light"] .rss h2,
[data-theme="light"] .main-body .main-header h1,
[data-theme="light"] .blog h2, 
[data-theme="light"] .stamps .stamps-container #calendar h2,
[data-theme="light"] #time-display h2 {
  color: var(--color-blue);
  background: none;
}

[data-theme="light"] .links h2 {
  color: var(--color-blue);
}

/* Images and Icons */
.links img,
.rss img {
  vertical-align: middle;
  height: 17px;
  image-rendering: pixelated;
}

.fun .imgCenter {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========================================= */
/* =========== Background Styles =========== */
/* ========================================= */


@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }

  25% {
    background-position: 25% 60%;
    filter: hue-rotate(30deg);
  }

  50% {
    background-position: 50% 40%;
    filter: hue-rotate(60deg);
  }

  75% {
    background-position: 75% 60%;
    filter: hue-rotate(30deg);
  }

  100% {
    background-position: 100% 50%;
    filter: hue-rotate(0deg);
  }
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: var(--gradient-main);
  background-size: 200% 200%;
  transition: opacity 0.5s ease-in-out;
}
*/

.star-layer {
  width: 100%;
  height: 100%;
  background: url('../images/star.gif') top;
  background-size: auto;
  image-rendering: pixelated;
  animation: gradientAnimation 40s infinite;
  margin: 0px;
  padding: 0px;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ==================================== */
/* =========== Other Styles =========== */
/* ==================================== */

button {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Pixelated MS Sans Serif", sans-serif;
  height: 100%;
}


p3 {
  border-collapse: separate;
  background-color: transparent;
  border-style: dashed;
  border-width: 0px;
  height: 29px;
  width: initial;
  display: block;
  margin-top: 2px;
}


button .a {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Pixelated MS Sans Serif", sans-serif;
  height: 100%;
}


p4 {
  border-collapse: separate;
  background-color: transparent;
  border-style: dashed;
  border-width: 1px;
  border-radius: 50%;
  height: 1rem;
  width: 1rem;
  display: block;
  font-size: 0.7rem;
  text-align: center;
  background-color: white;
  border-collapse: separate;
  border-style: dashed;
}

[data-theme="dark"] p4 {
  background-color: black;
  border-color: var(--color-white);
  color: white;
}

p4:hover {
  border-collapse: separate;
  border-style: dashed;
  border-width: 1px;
  height: 1rem;
  width: 1rem;
  display: block;
  flex: 1 1 auto;
}

p3:hover {
  background: linear-gradient(to bottom,
      rgba(216, 209, 214, 0.3),
      rgba(219, 206, 216, 0.3),
      rgba(222, 203, 218, 0.3),
      rgba(226, 199, 220, 0.3),
      rgba(229, 196, 222, 0.3),
      rgba(232, 193, 224, 0.3),
      rgba(235, 190, 226, 0.3),
      rgba(239, 186, 228, 0.3),
      rgba(242, 183, 230, 0.3),
      rgba(245, 180, 232, 0.3),
      rgba(248, 177, 234, 0.3),
      rgba(252, 173, 236, 0.3),
      rgba(255, 170, 238, 0.3));
  border-collapse: separate;
  margin: 2px;
  border-style: dashed;
  border-width: 1px;
  width: initial;
  display: block;
  margin-top: 2px;
  flex: 1 1 auto;

}

#rss-feed {
  padding-top: 5px;  
  height: 100px;
  overflow-y: auto;
  scrollbar-width: none;
}

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

/* List and Bullet Styles */
.bullet-wrapper {
  display: inline-block;
  padding: 3px;
  width: max-content;
  margin: 2px 0;
}


#custom-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#custom-list li {
  display: flex;
  align-items: center;
  gap: 0px;
}


ul {
  list-style-type: none;
  padding: 0px;
  margin: 0px;
}


ul.styled {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.styled li {
  position: relative;
  padding-left: 1.5rem; /* 🔥 creates space for bullet */
}

ul.styled li::before {
  content: "⛧";
  position: absolute;   /* 🔥 key fix */
  left: 0;
  font-size: 0.8rem;
}

/* Link Styles */
a {
  text-decoration: none;
  font: inherit;
}

/* Rainbow Glow Effect */
@keyframes rainbow-shadow {
  0% {
    text-shadow: var(--color-red) 0px 0px 8px;
  }

  14% {
    text-shadow: var(--color-orange) 0px 0px 8px;
  }

  32% {
    text-shadow: var(--color-yellow) 0px 0px 8px;
  }

  48% {
    text-shadow: var(--color-green) 0px 0px 8px;
  }

  64% {
    text-shadow: var(--color-cyan) 0px 0px 8px;
  }

  80% {
    text-shadow: var(--color-blue) 0px 0px 8px;
  }

  100% {
    text-shadow: var(--color-magenta) 0px 0px 8px;
  }
}

p2.glow {
  text-decoration: none;
  text-shadow: -1px 1px 1px var(--color-blue-gradient),
    1px 1px 1px var(--color-green-accent),
    1px -1px 1px var(--color-blue-gradient),
    -1px -1px 1px var(--color-purple-gradient);
  letter-spacing: 1pt;
  -webkit-transition: text-shadow 2s linear;
  -moz-transition: text-shadow 800ms linear;
  -o-transition: text-shadow 800ms linear;
  transition: text-shadow 800ms linear;
  outline: 0 none;
  font-size: 1rem;
}

[data-theme="dark"] p2.glow {
  color: white;
  text-shadow: -0px 0px 0px var(--color-blue-gradient),
    0px 0px 0px var(--color-green-accent),
    0px -0px 0px var(--color-blue-gradient),
    -0px -0px 0px var(--color-purple-gradient);
}

p2.glow:hover,
p2.glow:focus {
  color: var(--color-white);
  animation: rainbow-shadow 2s linear infinite;
}

a.glow {
  text-decoration: none;
  text-shadow: -1px 1px 1px var(--color-blue-gradient),
    1px 1px 1px var(--color-green-accent),
    1px -1px 1px var(--color-blue-gradient),
    -1px -1px 1px var(--color-purple-gradient);
  letter-spacing: 1pt;
  -webkit-transition: text-shadow 2s linear;
  -moz-transition: text-shadow 800ms linear;
  -o-transition: text-shadow 800ms linear;
  transition: text-shadow 800ms linear;
  outline: 0 none;
  font-size: 1rem;
}

a.glow:hover,
a.glow:focus {
  color: var(--color-white);
  animation: rainbow-shadow 2s linear infinite;
}

 @keyframes yipee {
    0% {
        text-shadow: none;
        text-shadow: 0px !important;
    }
    100% {
        text-shadow: -1px 1px 3px var(--color-blue-gradient), 
                     1px 1px 3px var(--color-green-accent),
                     1px -1px 3px var(--color-blue-gradient),
                     -1px -1px 3px var(--color-purple-gradient);
    }
 }
 
.yipee {
    text-decoration: none;
}

.yipee:hover {
    animation: yipee 0.3s forwards ease-in-out;
}

.blog-title {
    font-size: 1.1em;
    margin-bottom: 3px;
    font-family: "romanceA", sans-serif;
    text-decoration: none;
    letter-spacing: 1pt;
    transition: all 0.3s ease;
}

.blog-title:hover {
    animation: glowAndSize 0.3s forwards ease-in-out;
}

.gradient-box {
  animation: gradientShift 15s infinite linear;
  transition: background 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: var(--gradient-opacity);
}

/* Light Theme Pastel Gradient */
[data-theme="light"] .gradient-box {
  background: linear-gradient(30deg,
    var(--color-pink-gradient-pastel),
    var(--color-purple-gradient-pastel),
    var(--color-blue-gradient-pastel));
}

/* Dark Theme Deep Gradient */
[data-theme="dark"] .gradient-box {
  background: linear-gradient(30deg,
    var(--color-deep-red-gradient),
    var(--color-deep-blue-gradient),
    var(--color-deep-violet-gradient));
  color: var(--color-white) !important;
  border-color: var(--color-white);
}

[data-theme="light"] .section-glow {
  opacity: 0.5;
}

@keyframes sectionGlow {
    0% {
        text-shadow: 0 0 5px currentColor;
    }
    25% {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
    50% {
        text-shadow: 0 0 25px currentColor, 0 0 35px currentColor, 0 0 45px currentColor;
    }
    75% {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
    100% {
        text-shadow: 0 0 5px currentColor;
    }
}

/* Enhanced smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

button.inactive {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
  background: none;
  border: none;
}

button.inactive .glow {
  text-shadow: none;
  color: gray;
}


/*************************
********* CALENDAR *******
*************************/

#calendar {
  justify-content: center;
  text-align: center;
  background-color: white; 
  flex: 1;
  height: 100%; 
  /*min-width: 190px; um why?*/
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px solid var(--color-grey);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top: 0px;
}

[data-theme="dark"]  #calendar {
  background-color: rgb(0, 0, 0); 
}

.header {
  width: auto;
  height: 20px;
  padding: 3px;
  text-align: left;
  font-weight: bold;
  font-family: "nintendo-ds-bios", sans-serif;
  font-style: italic;
  padding-left: 10px;
  border-bottom: 1px dotted;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  padding: 0.3rem;
  font-size: 0.7rem;
  text-align: center;
  font-family: "nintendo-ds-bios", sans-serif;
  max-width: 200px;

  margin: 0 auto; /* centers horizontally */
}

[data-theme="dark"] .day {
  border-color: white;
}

.weekday {
  text-align: center;
  max-width: 1.1rem;
}

[data-theme="dark"] .day {
  background-color: unset;
  border: 1px dotted white;
  color: white;
}

[data-theme="dark"] .weekday {
  color: white;
}

.day {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dotted;
  max-width: 1.1rem;
  max-height: 1.1rem;
  border-radius: 3px;
  background-color: white;
}


.today {
  color: #4000ff;
}

  #time-display {
    font-size: 1rem;
    letter-spacing: 0.05rem;
    text-align: center;
    border-top: 1px solid var(--color-white)!important;
    border: 1px dotted var(--color-grey);
    width: 100%!important;
  }

  #sky-wrap {
    position: relative;
    width: 100%;
    margin: 0;
    max-width: 200px;
  }

  .header-line {
  }

  .sundial-container {
  display: grid;
  text-align: center;
  border-left: 1px dotted var(--color-grey);
  border-right: 1px dotted var(--color-grey);
  border-bottom: 1px solid var(--color-grey)!important;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top: 0px;
  position: relative;
  background-color: var(--color-white);
  height: 100%;
  }

[data-theme="dark"] .sundial-container {
  border: 1px dotted white!important;
  border-bottom: 1px solid var(--color-grey)!important;
  border-top: 0px!important;
  background-color: black;
  border-top: 0px;
}


  #sky-svg { width: 100%; display: block; }

  .time-row {
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 0.7rem;
    padding: 0 8px;
    line-height: 1;
    height: fit-content;
    text-align: center;
  }

  [data-theme="dark"] .time-row {
    color: var(--color-white);
  }


  #progress-label {
    text-align: center;
    font-size: 0.7rem;
    color: inherit;
    height: fit-content;
  }

  

  [data-theme="dark"] #progress-label {
    color: var(--color-white);
  }

  [data-theme="dark"] #arc-track {
    stroke: var(--color-white);
  }

  [data-theme="dark"] #label-now {
    stroke: var(--color-white);
  }

  [data-theme="dark"] #time-display {
    color: var(--color-white);
    border: 1px dotted white;
  }

  [data-theme="dark"] #label-rise {
    stroke: var(--color-white);
  }

  [data-theme="dark"] #label-set { 
    stroke: var(--color-white);
  }

  #info {
    text-align: center;
    font-size: 0.7rem;
  }

.header-line{
  display:flex;
  justify-content:space-between;
  font-size:1em;
  margin:0;
  padding: 0 10px 0 10px;
}

.header-line .left{
  text-align:left;
}

.header-line .right{
  text-align:right;
}


.header-line h2{
  display:flex;
  justify-content:space-between;
  margin:0;
  font-size:1em;
  padding: 0 10px 0 10px;
}

#monthYear {
  border: 1px dotted var(--color-grey);
  border-top: 1px solid var(--color-white)!important;
  height: fit-content;
}

[data-theme="dark"] #monthYear {
  border: 0px;
  border-bottom: 1px dotted var(--color-white);
  border-left: 1px dotted var(--color-white);
  border-right: 1px dotted var(--color-white);
}



#time-display.gradient-box.header-line {
  height: fit-content;
}

[data-theme="dark"] #horizon {
  stroke: white;
}


#songlink {
  display: flex; 
  flex-direction: row;  
  align-items: center;  
  gap: 10px;          
  text-decoration: none;
  color: inherit; 
  width: 100%;  
}

#songlink > div {
  display: flex;
  flex-direction: column;

#songname,
#artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}  overflow: hidden;   
}

 [data-theme="dark"] #songname,
 [data-theme="dark"] #artist, 
 code {
  color: var(--color-white);
} 

#lastplayed {
  font-size: 0.8rem!important;
}

.scroll-content {
  overflow-x: hidden;
  overflow-y: auto;
  text-align: left;
  height:31px;
  width: 88px;
}

code {
  font-family: "Pixelated MS Sans Serif", "Pixel Sans Serif", sans-serif;
  color: black;
  }

[data-theme="dark"] code {
  color: var(--color-white);
}

#table-chan td {
    border-bottom: 1px dotted var(--color-blue);
    border-top: 1px dotted var(--color-blue);
    border-radius: 0px;
    height: 31px!important;
    width: 88px!important;
    padding-left: 0px;
  }

#eve-button {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


 [data-theme="dark"] #table-chan td {
    border-bottom: 1px dotted var(--color-grey);
    border-right: 1px dotted var(--color-grey);
  }


  .change-colrow td:last-child {
  border-bottom: 1px dotted var(--color-grey);
  padding-left: 5px;
  border-bottom-right-radius: 5px;

}



.change-colrow td:last-child {
  position: relative;
}


.intro-td {
  padding-left: 0 !important;
  border-bottom: none !important;
}




[data-theme="dark"] .today {
  color: #683e95;
}

#content-container.docked {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  z-index: 1 !important;
}


.evangelion {
  width: 100%; /* fills its td just like stamps does */
}

.stamps {
  width: 100%;
}

#sky-wrap #label-rise, #label-set, #label-now {
  font-family: "nintendo-ds-bios", sans-serif;
}

/* ========================================== */
/* ============ Blog Section Styles ========== */
/* ========================================== */

.blog {
  grid-area: blog;
  position: relative;
  padding: 5px;
  margin: 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  border: 1px dashed;
  box-sizing: border-box;
}

.blog h2 {
  border-style: dotted;
  border-width: 0px 0px 1px 0px;
  padding: 0px;
  padding-bottom: 2px;
  padding-top: 2px;
  font-size: 18px;
  margin: 0px;
  white-space: nowrap;
  font-family: "romanceB", sans-serif;
  font-weight: 300;
}

[data-theme="light"] .blog h2 {
  color: var(--color-blue);
  background: none;
}

.blog-posts {
  margin-top: 10px;
}

.blog-post {
  border-bottom: 1px dotted var(--color-grey);
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-title {
  font-family: "romanceA", sans-serif;
  font-size: 1.1em;
  letter-spacing: 1pt;
  margin-bottom: 5px;
  margin-top: 5px;
}

[data-theme="light"] .blog-post-title {
  color: var(--color-blue);
}

[data-theme="dark"] .blog-post-title {
  color: var(--color-pink);
}

.blog-post-date {
  font-size: 0.8rem;
  color: gray;
  display: block;
  margin-bottom: 8px;
}

[data-theme="dark"] .blog-post-date {
  color: #888;
}

.blog-post-content p {
  line-height: 1;
  margin-bottom: 10px;
  text-align: justify;
}

.blog-post-content strong {
  letter-spacing: 0.5pt;
}

[data-theme="light"] .blog-post-content strong {
  color: var(--color-blue);
}

[data-theme="dark"] .blog-post-content strong {
  color: var(--color-pink);
}