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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a1a, #4a0033);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #eee;
}

header {
  text-align: center;
  margin-top: 2rem;
  /* margin-bottom: 2rem; */
  position: relative;
}

.logo {
  max-width: 90%;
  width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 1rem;
}

.logo-big {
  max-width: 100%;
  width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 0.5rem;
}

.spacer {
  height: 2em; /* same as <br><br> */
}

.sub-header {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #ff3e78;
}

.page-wrapper {
  margin: 0 auto;       /* centres on screen */
  padding: 0 1rem;      /* adds breathing space left/right */
}

.container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0 1rem;      /* horizontal breathing room */
}

.main-container {
  margin: 20px 0;
  background-color: #111111;
  padding: 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255, 0, 128, 0.25);
  text-align: left;
  max-width: 800px;
  color: #f1f1f1;
  width: 100%;
}

.main-container img {
  width: 100%;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.8rem;
  color: #ff3e78;
  margin-bottom: 1rem;
  text-align: left;
}

h1.center {
  text-align: center;
}

h2 {
  text-align: left;
}

p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.spacer {
  height: 1em;
}

.button-wrapper {
  text-align: center;
}

.patreon-button {
  background-color: #ff3e78;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.patreon-button:hover {
  background-color: #ff66a3;
}

.footer-link {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

.footer-link a {
  color: #999;
  text-decoration: underline;
}

/* NSFW toggle switch */
.nsfw-toggle {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #666;
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ff3e78;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.nsfw-label {
  font-size: 1rem;
  color: #ccc;
}

/* NSFW sections hidden by default */
.nsfw-section {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nsfw-section.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.role-block {
  max-width: 800px;
  background-color: #111;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255, 0, 128, 0.25);
  margin-bottom: 1rem;
}

.download-block {
  width: 100%;
  max-width: 800px;      /* matches role-block */
  background-color: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255, 0, 128, 0.25);
  margin: 1rem auto 2rem auto;
  text-align: center; 
}

.download-block h2 {
  color: #ff3e78;
  margin-bottom: 1rem;
}

.download-block p {
  color: #ddd;
  margin-bottom: 1.5rem;
}

.download-block a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff3e78, #ff3c78);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-block a:hover {
  background: linear-gradient(135deg, #ff3c78, #ff3e78);
  transform: scale(1.05);
}

/* download block no margins */
.download-block-file {
  max-width: 800px;      /* matches role-block */
  text-align: center; 
}

.download-block-file h2 {
  color: #ffdec7;
  margin-bottom: 1rem;
}

.download-block-file p {
  color: #ddd;
  margin-bottom: 1.5rem;
}

/* showcase */
.showcase-container .showcase-row:nth-of-type(odd) {
  flex-direction: row;
}

.showcase-container .showcase-row:nth-of-type(even) {
  flex-direction: row-reverse;
}

.showcase-row {
  display: flex;
  flex-wrap: nowrap;          /* prevent unwanted vertical stacking */
  align-items: flex-start;    /* top alignment */
  gap: 2rem;
  margin-bottom: 0.15rem;
}

.showcase-row img {
  flex: 1 1 0;                /* flexible width, allow shrinking */
  min-width: 300px;           /* prevents collapsing too small */
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  align-self: flex-start;
  margin-top: 0.5rem;
  
  border: 2px solid rgba(25, 45, 61, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.showcase-row img:hover {
  border-color: #1f3648;
  transform: scale(1.02);
}

.showcase-images {
  width:45%;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* spacing between images */
}

/* no flip flopping */
.showcase-row-noflip {
  display: flex;
  flex-wrap: nowrap;          /* prevent unwanted vertical stacking */
  align-items: flex-start;    /* top alignment */
  gap: 2rem;
}

.showcase-row-noflip img {
  flex: 1 1 0;                /* flexible width, allow shrinking */
  min-width: 300px;           /* prevents collapsing too small */
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  align-self: flex-start;
  margin-top: 0.5rem;
  
  border: 2px solid rgba(25, 45, 61, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.showcase-row-noflip img:hover {
  border-color: #1f3648;
  transform: scale(1.02);
}

.showcase-text {
  flex: 1 1 0;
  /*min-width: 300px;*/
}

.showcase-text p {
  margin: 0.3rem 0;
}

.showcase-text ul {
  padding-left: 1.2rem;
  margin: 0.3rem 0 0.6rem 0;
}

.showcase-text ul li {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.showcase-text ul li::marker {
  color: #B3306D;
  font-weight: bold;
}

/* Optional: responsive fallback for narrow screens */
@media (max-width: 720px) {
  .showcase-row {
    flex-wrap: wrap;           /* allow stacking on narrow screens */
  }
  .showcase-row img,
  .showcase-text {
    min-width: 100%;
  }
}


.hr-styled {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #872553, #B3306D, #872553);
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
  border-radius: 1px;
}

 .lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s ease;
 }

 .lightbox.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
 }

 .lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255,255,255,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
 }

 .lightbox-content:hover {
    transform: scale(1.02);
 }

 .lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    max-width: 90%;
    margin-top: 1rem;
}

 .lightbox .close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.2s ease;
 }

 .lightbox .close:hover {
    color: #ff3e78;
 }
  
 .popup-button {
    background: linear-gradient(135deg, #c5005f, #e60085); /* darker pink gradient */
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(198, 0, 95, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(198, 0, 95, 0.5);
}

.popup-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(198, 0, 95, 0.3);
}

.showBtn {
  color: #ff66a3;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}
.showBtn:hover {
  color: #ff3e78;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup {
  background: #111111;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(255, 0, 128, 0.25);
  transform: scale(0.7);
  transition: transform 0.3s ease;
  cursor: pointer;
  max-width: 700px;
  max-height: 70vh;
  overflow-y: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 1em;
  text-align: left;
  box-sizing: border-box;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #4375b1 #111111;
}

/* Chrome, Edge, Safari */
.popup::-webkit-scrollbar {
  width: 12px;
}

.popup::-webkit-scrollbar-track {
  background: #111111;
  border-radius: 6px;
}

.popup::-webkit-scrollbar-thumb {
  background-color: #4375b1;
  border-radius: 6px;
  border: 3px solid #111111;
}

/* apply hover when the popup (host) is hovered — accepted by validators */
.popup:hover::-webkit-scrollbar-thumb {
  background-color: #5589c7;
}



.overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.overlay.active .popup {
  transform: scale(1);
}


pre[class*="language-"] {
    white-space: pre-wrap;       /* wrap lines */
    word-break: normal;          /* don’t break inside tokens */
    tab-size: 4;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    overflow-wrap: normal;       /* avoid breaking spans */
}

pre[class*="language-"] > code {
    display: block;              /* code block fills pre */
    white-space: inherit;        /* inherit pre’s whitespace rules */
	font-size:0.8em;
}


/* Inline links within content */
a {
    color: #ff3e78;
    text-decoration: none;
    font-weight: 600;
}
a:hover {
    color: #ff6a98;
    text-decoration: underline;
}

/* CTA-style link buttons (e.g. Authenticate, Download buttons) */

a.pink_button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff3e78, #ff3c78);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

a.pink_button:hover {
  background: linear-gradient(135deg, #ff3c78, #ff3e78);
  transform: scale(1.05);
}

a.dark-pink_button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #9b596d, #7e5763);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

a.dark-pink_button:hover {
  background: linear-gradient(135deg, #7e5763, #9b596d);
  transform: scale(1.05);
}


a.button-link {
    display: inline-block;
    background: linear-gradient(135deg, #b3306d, #872553);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: #f1f1f1;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 0, 128, 0.25);
}
a.button-link:hover {
    background: linear-gradient(135deg, #c6407f, #9d2d62);
    box-shadow: 0 6px 16px rgba(255, 0, 128, 0.35);
}

/* Auth box link specifically */
.auth-box a {
    color: #ffe0ef;
    font-weight: 700;
}
.auth-box a:hover {
    color: #ffffff;
}

/* nav menu */
.simple-nav{
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.simple-nav a{
  color: #ddd;
  text-decoration: none;
  font-weight: 600;
}

.simple-nav a:hover{
  text-decoration: underline;
}



