body {
  margin: 0;
  padding: 0;
  /*font-family: 'Pixelify Sans', sans-serif;*/
  /*font-family: "Geo", sans-serif;*/
  font-family: "Fira Code", monospace;
  background: #111;
  color: #eee;
  font-size: 0.85rem;
}

body.light a {
  color: #735BC1;
}
body.light a:hover {
  color: #111;
}
a {
  color: #FF00AA;
  transition: all 0.3s ease-out;
  cursor: pointer;
}
a:hover {
  color: #fff;
}

body.light {
  background: #ECEFF4;
  color: #111;
}
body.light .box { background: #ECEFF4; }
body.light .download-btn { background: #111; color: #fff; }

body.light .ascii-box {
  background: transparent;
  border-color: #111;
}

body.light .module-card {
  background: transparent;
  border-color: #111;
}

body.light .ascii-table th {
  background: transparent;
  border-color: #111;
  color: #111;
}

body.light .ascii-table td,
body.light .ascii-table tr:nth-child(even) td {
  background: transparent;
  color: #111;
  border-color: #111;
}


body.light .double-border {
  border-color: #111;
}

body.light .box h2,
body.light .module-card h3,
body.light .bonk h2,
body.light .bonk h3 {
  color: #111;
}


body.light .divider {
    border-color: #111;
}

body.light .box span > span { background: #111; color: #eee; }



/* Default: dark mode (no .light class) */
.theme-toggle {
  text-align: right;
  margin: 0.5rem 1rem;
  cursor: pointer;
}

.symbol {
  display: inline-block;         /* ensures pseudo-element has a box to render in */
  line-height: 1;                /* avoid extra vertical space */
  font-size: 2rem;               /* size the icon cleanly */
}

/* Show moon by default */
body:not(.light) .theme-toggle .symbol::after {
  content: "☀️";
}

/* Show sun in light mode */
body.light .theme-toggle .symbol::after {
  content: "🌙";
}

.theme-toggle {
  text-align: right;
  margin: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
}
.theme-toggle .symbol {
  user-select: none;
}


.stripe { height: 10px; }
.stripe.teal { background: #00FFD5; width: 60%; }
.stripe.magenta { background: #FF00AA; width: 80%; }
.stripe.yellow { background: #FFD700; width: 100%; }


.ascii-logo {
  font-size: 0.8rem;
  /*color: #FFD700;*/
  white-space: pre;
  overflow-x: auto;
  width: fit-content;
  margin: auto;
  font-size: clamp(0.5rem, 2vw, 1rem);
}

.tagline {
  text-align: center;
  color: #FF00AA;
  margin-bottom: 2rem;
}

header {
  text-align: center;
  padding: 1rem;
}
header h1 {
  /*font-family: 'Press Start 2P', cursive;*/
  font-size: 2rem;
  margin: 0;
  /*color: #FFD700;*/
}
.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: #FFD700;
  color: #111;
  text-decoration: none;
  font-size: 1.2rem;
  border: 2px solid #fff;
  box-shadow: 0 0 10px #FFD700;
}
.download-btn:hover {
  background: #FF00AA;
  color: #fff;
  box-shadow: 0 0 15px #FF00AA;
}

.flow { max-width: 800px; margin: auto; padding: 1rem; }

.ascii-box {
  border: 2px solid #00FFD5;
  padding: 0rem 1rem;
  margin: 1rem 0;
  background: #111;
}

.box {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 800px;
  background: #111;
}
.double-border {
  border: 20px double #00FFD5;
}
.box h2 {
  font-family: 'Press Start 2P', cursive;
  color: #FFD700;
}
.box ul { list-style: none; padding-left: 0; }
.box li { margin: 0.3rem 0; }
.box p span { color: #FF00AA; font-size: 0.9rem; }
.box span > span { background: #eee; color: #111; }

/* Helper spacers */
.spacer-2rem { height: 2rem; }
.spacer-4rem { height: 4rem; }


.align-right {
    display: flex;
    justify-content: flex-end;
}
.align-reverse {
    display: flex;
    flex-direction: row-reverse;
}


/* Frame rows for feature comparison */
.frame {
  display: flex;
  flex-direction: column;
}
.frame .row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #FF00AA;
  padding: 0.3rem 0;
}
.frame .row span {
  flex: 1;
  /*text-align: center;*/
}
.frame .row span:last-child {
    flex-grow: 2;
}


.bonk {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.bonk h2 {
  font-family: 'Press Start 2P', cursive;
  color: #FFD700;
  margin-bottom: 0.2rem;
}

.divider {
  border-bottom: 2px dashed #FF00AA;
  margin-bottom: 1rem;
}

.bonk p {
  margin: 1rem 0;
  line-height: 1.4;
}

.bonk h3 {
  font-family: 'Press Start 2P', cursive;
  color: #00FFD5;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ASCII-style table */
.ascii-table {
  width: 100%;
  border-collapse: collapse;
  /*font-family: 'VT323', monospace;*/
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.ascii-table th,
.ascii-table td {
  border: 1px solid #FFD700;
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.ascii-table th {
  background: #111;
  color: #FFD700;
}

.ascii-table td {
  background: #111;
  color: #eee;
}

.ascii-table tr:nth-child(even) td {
  background: #111;
}





.modules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.module-card {
    flex-basis: calc(33.3% - 2rem);
    box-sizing: border-box;
    border: 2px solid #00FFD5;
    padding: 1rem;
    background: #111;
    min-width: 250px;
    flex-grow: 1;
    position: relative;
}

.module-card.new::after {
  content: "🆕";
  position: absolute;
  top: -1.1rem;
  right: -1.1rem;
  font-size: 2.2rem;
}

.module-card h3 {
  font-family: 'Press Start 2P', cursive;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 0rem;
  font-size: 1rem;
  font-family: "Geo", sans-serif;
  font-size: 2rem;
}

.module-card p {
  margin: 0.5rem 0;
  line-height: 1.4;
  font-size: 0.85rem;
}


.card-title-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-title-wrapper span {
    font-size: 2rem;
    margin-right: 1rem;
}

.module-card .card-title-wrapper span {
    align-self: flex-start;
}





.sha-container {
  margin-top: 1.0em;
  position: relative;
  font-family: monospace;
}

.sha-link {
  color: #AA00FF;
  text-decoration: underline;
  cursor: pointer;
  position: relative;
}

.donate-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem;
    text-align: center;
}

.donate-wrapper p {
    margin: 0 1rem;
}





.tooltip {
  position: absolute;
  margin-left: 0.5em;
  background: #111;
  color: #fff;
  padding: 0.3em 0.6em;
  border-radius: 6px;
  font-size: 0.75em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tooltip.show {
  opacity: 1;
}



.meme-wrapper {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
img {
  max-width: 100%;
  height: auto;
}


.img-totop {
  max-width: 90%;
}

#toTop {
  width: 3.2rem;
  aspect-ratio: 1 / 1;
  display: none;
  position: fixed;
  bottom: 4.5rem;
  right: 0.5rem;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #FFD700;
  color: white;
  cursor: pointer;
  padding: 7px;
  border-radius: 100%;
  transition: all 0.2s ease-out;
}
#toTop:focus, #toTop:active {
  background-color: #FFD700;
}
#toTop:hover {
  background-color: #FF00AA;
}





footer {
  padding: 1rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  width: 20px;
  background: #735BC1;
  color: #fff;
  border-radius: 100%;
  aspect-ratio: 1/1;
  text-decoration: none;
  margin: 2px;
}

footer a:hover {
  background: #fff;
  color: #111;
}




/* modal -------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  align-items: center;
  justify-content: center;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-content {
  background-color: #000;
  padding: 0 2rem 2rem;
  max-width: 500px;
}

.close {
  color: #FF00AA;
  font-size: 3rem;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #00FFD5;
  text-decoration: none;
  cursor: pointer;
}







/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/** {
  scrollbar-width: thin;
  scrollbar-color: #ECEFF4 #111111;
}*/

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  height: 15px;
  width: 15px;
}
*::-webkit-scrollbar-track {
  border-radius: 0px;
  background-color: #111111;
  border: 3px solid #111111;
}

*::-webkit-scrollbar-thumb {
  border-radius: 0px;
  background-color: #ECEFF4;
  border: 3px solid #111111;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #FF00AA;
}