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

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

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

a {
  color: #6dd1ea;
}

a:hover {
  color: #6ff2fb;
}

a:visited {
  color: #6dd1ea;
}

a:active {
  color: #6dd1ea;
}


.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;
}

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

.page-wrapper {
  margin: 0 auto;
  padding: 0 1rem;
}

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

.main-container {
  background-color: #111111;
  padding: 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 128, 255, 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: #b8f0fb;
  margin-bottom: 1rem;
  text-align: left;
}

h1.center {
  text-align: center;
}

h2 {
  color: #6dd1ea;
  margin-bottom: 0.5rem;
  text-align: left;
}

h4 {
  color: #6dd1ea;
  margin-bottom: 0.5rem;
  text-align: left;
}

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

.spacer {
  height: 1em;
}

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

.patreon-button {
  background-color: #4da6ff;
  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: #66b3ff;
}

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

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

/* special toggle switch */
.special-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: #4da6ff;
}

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

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

/* hidden by default */
.special-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  margin-top: 1rem; /* top + bottom spacing */
  transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.special-section.visible {
  max-height: 500px; /* adjust for tallest content */
  opacity: 1;
  transform: translateY(0);
}

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

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

.contact-block h2 {
  color: #4da6ff;
  margin-bottom: 1rem;
}

.contact-block p {
  color: #ddd;
  margin-bottom: 2rem;
  text-align: left;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  background: #0b0b0b;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 220px;
}

.contact-item:hover {
  background: linear-gradient(135deg, #0b1724, #11243b);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(77, 166, 255, 0.3);
}

.contact-item img {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.contact-item:hover img {
  opacity: 1;
}

.contact-item a {
  color: #6dd1ea;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}


.text-left {
    flex-direction: row;
}

.text-right {
    flex-direction: row-reverse;
}

.showcase-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 0.15rem;
}

.showcase-row img {
  flex: 1 1 0;
  min-width: 300px;
  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 {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* spacing between images */
}

.showcase-text {
  flex: 1 1 0;
  min-width: 400px;
}

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

.showcase-text p .highlight {
  color: #ff8c42;
  font-style: italic;
}

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

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

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

/* Smaller showcase */
.showcase-row.showcase-row--small {
  gap: 0.75rem;
  margin-bottom: 0.08rem;
}

.showcase-row.showcase-row--small img {
  flex: 0 0 auto;
  width: 200px;
  min-width: 0;
  max-width: 200px;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
  align-self: flex-start;
  margin-top: 0.25rem;
  margin-right: 0.80rem; /* add spacing between images and text */
  border: 1px solid rgba(25, 45, 61, 0.4);
  transition: border-color 0.2s ease, transform 0.2s ease;
  object-fit: cover;
}

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

.showcase-row.showcase-row--small .showcase-text {
  min-width: 260px;
  flex: 1 1 auto;
}

/* thumbnails */
.showcase-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* adjust 220px to thumbnail size */
  gap: 1rem; /* spacing between thumbnails */
  margin-bottom: 1rem;
}

.showcase-thumbnails img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(25,45,61,0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
  object-fit: cover;
}

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



@media (max-width: 720px) {
  .showcase-row {
    flex-wrap: wrap;
  }
  .showcase-row img,
  .showcase-text {
    min-width: 100%;
  }
}

.hr-styled {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #1f3648, #3399ff, #1f3648);
  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: #4da6ff;
}

.popup-button {
  background: linear-gradient(135deg, #0059b3, #0073e6);
  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(0, 115, 230, 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(0, 115, 230, 0.5);
}

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

.showBtn {
  color: #66b3ff;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.showBtn:hover {
  color: #4da6ff;
}

.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(0, 128, 255, 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;
}

/* 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;
}

.popup::-webkit-scrollbar-thumb:hover {
  background-color: #5589c7;
}

.popup {
  scrollbar-width: thin;
  scrollbar-color: #4375b1 #111111;
}

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

/* default: arrow right */
summary {
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    color: #418fbb;
    padding: 0.3em 0.5em;
    border: 1px solid #1f3648;
    border-radius: 4px;
    background-color: #111111;
    list-style: none;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    background-color: #121212;
}

summary::after {
    content: "▼";
    position: absolute;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
}

/* arrow just after the text */
.summary-center::after {
    content: "▼";
    display: inline-block;
    margin-left: 0.3em; /* spacing after text */
    transition: transform 0.2s ease;
}

/* rotate when open */
details[open] .summary-center::after {
    transform: rotate(180deg);
}

/* text centering */
.summary-center {
    text-align: center;
    position: relative; /* only needed if other absolute positioning exists */
    padding: 0.3em 0.5em;
}

/* arrow right */
.summary-right::after {
    right: 0.5em;
}

/* arrow left */
.summary-left::after {
    left: 0.5em;
}

.summary-right {
	text-align: right;
    padding-right: 2.5em;
}

.summary-left {
	text-align: left;
    padding-left: 2.5em;
}


pre[class*="language-"] {
    white-space: pre-wrap;
    word-break: normal;
    tab-size: 4;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    overflow-wrap: normal;
}

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