:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #007acc;
  --accent-hover: #005fa3;
  --border-color: #ccc;
  --box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #f5f5f5;
  --accent-color: #61dafb;
  --accent-hover: #21a1f1;
  --border-color: #444;
  --box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

a {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.btn {
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.page-wrapper {
  flex-grow: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
}

/* ============================= */
/* Cookie Widget with Fade In/Out */
/* ============================= */

.cookie-widget {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
  position: fixed;
  bottom: 1.5em;
  left: 50%;
  max-width: 420px;
  width: 90%;
  background-color: #222;
  color: white;
  padding: 1.5em 2em;
  text-align: center;
  font-size: 1em;
  border: 2px solid #000000;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.checkbox-wrapper {
  margin: 1em 0;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.checkbox-wrapper input[type="checkbox"]{
  width: 1.2em;
  height: 1.2em;
}

.checkbox-wrapper a {
  color: #61dafb;
  text-decoration: underline;
}

body.dark-mode .cookie-widget {
  border: 2px solid #ffd700;
}

/* Fade-in active state */
.cookie-widget.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Fade-out transition */
.cookie-widget.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
}

.cookie-widget p {
  margin: 0;
  line-height: 1.6;
  font-size: 1em;
}

.cookie-widget a {
  color: #ffd700;
  text-decoration: underline;
  font-size: 1em;
}

.cookie-widget button {
  margin-top: 1em;
  padding: 0.7em 1.5em;
  background-color: #444;
  border: none;
  color: white;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-widget button:hover {
  background-color: #555;
}

/* ============================= */
/* Cookie Consent Reset Button  */
/* ============================= */
.cookie-reset-button {
  margin-top: 1.5em;
  margin-bottom: 3em;
  padding: 0.75em 1.5em;
  background-color: #444;
  color: white;
  border: 2px solid black;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cookie-reset-button:hover {
  background-color: #555;
  border-color: #ffea80;
}

.commission-status {
  text-align: center;
  margin: 1rem auto;
}

.status-count {
  display: block;
  color: limegreen;
  font-weight: bold;
}

body.dark-mode .cookie-reset-button {
  background-color: #222;
  border-color: #ffd700;
  color: white;
}

body.dark-mode .cookie-reset-button:hover {
  background-color: #333;
  border-color: #ffea80;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#char-count {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 0.25rem;
  text-align: right;
}

#char-count.warning {
  color: red;
}

/* Thank You Page Styling */
.contact-text.thank-you-message {
  text-align: center;
  margin-top: 4rem;
  font-size: 1.25rem; /* Base paragraph size */
  line-height: 1.8;
}

.contact-text.thank-you-message h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-text.thank-you-message a.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--accent-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.contact-text.thank-you-message a.btn:hover {
  background-color: var(--accent-hover);
}

.external-links {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.external-links li {
  margin-bottom: 0.5rem;
}

.external-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

.external-links a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}


.spacer {
  flex-grow: 1;
}

.intro {
  text-align: center;
  margin-top: -150px;
  margin-bottom: 2rem;
}

.about-intro {
    margin-top: 0;
}

.intro.about-intro p {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.about-intro-text {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.location-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
}

.location-text {
  flex: 1 1 50%;
  min-width: 250px;
}

.location-map {
  flex: 1 1 400px;
  max-width: 500px;
  min-width: 280px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.location-map iframe {
  width: 100%;
  height: 250px;
  border: 0;
  box-sizing: border-box;
  display: block;
}

.footer-nav {
  flex-shrink: 0;
  background-color: var(--bg-color);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 2rem;
}

.footer-nav nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color);
  padding: 0.3rem 0.75rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-nav nav a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

body.dark-mode .footer-nav {
  background-color: var(--bg-color);
}

.footer-bottom {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.65;
  color: var(--text-color);
  background-color: var(--bg-color);
}

body.dark-mode .footer-bottom {
  color: var(--text-color);
  background-color: var(--bg-color);
}

.inline-link {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 600;
}

.inline-link:hover {
  color: var(--accent-hover);
}

.team-section {
  max-width: 800px;
  margin: 2rem auto;
}

.team-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

.team-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
  max-width: 600px;
}

.team-text p {
  text-align: justify;
}

form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: bold;
}

input, textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-color);
  color: var(--text-color);
}

button {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--accent-hover);
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  width: 100%;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form select {
  width: 100%;
  padding: 10px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 10px;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 4px var(--accent-color);
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.contact-form button {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-hover);
}

.commission-banner a {
  display: inline-block;
  line-height: 0;
}

.site-header {
  display: flex;
  align-items: center;
  padding: 2.5rem 0rem 0rem 2.5rem; /* reduced bottom padding */
}

#site-logo {
  height: 150px;
  user-select: none;
  pointer-events: none;
}

.footer-legal {
  text-align: left;
  padding: 0.5rem 2rem 2rem 2rem;
  font-size: 0.85rem;
  color: var(--text-color);
}

.footer-legal a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.myUL {
  list-style-type: none;
  padding-left: 0;
  max-width: 800px;
  margin: 2rem auto;
  line-height: 1.75;
  font-size: 1.1rem;
  text-align: left;
}

.myUL li {
  margin-bottom: 1.5rem;
}

.myUL li strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--accent-color);
}


.legal-section {
  text-align: center;
  line-height: 1.75;
  margin-top: -5rem;
  padding-top: 0;
}

.legal-privacy {
  text-align: center;
  line-height: 1.75;
  margin-top: -5rem;
  padding-top: 0;
}

.legal-cookies {
  text-align: center;
  line-height: 1.75;
  margin-top: -5rem;
  padding-top: 0;
}

.legal-dmca {
  text-align: center;
  line-height: 1.75;
  margin-top: -5rem;
  padding-top: 0;
}

.legal-accessibility {
  text-align: center;
  line-height: 1.75;
  margin-top: -5rem;
  padding-top: 0;
}

.mode-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mobile-hint {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 0.5rem;
  opacity: 0.7;
}

.mobile.zoom {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.products-header {
  text-align: center;
  margin: 3rem auto 2rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

.products-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.products-header p {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.6;
}

.product-entry {
  text-align: center;
  margin: 2rem auto;
  padding: 1rem;
  max-width: 500px;
}

.product-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.product-logo img.adobe-logo {
  max-width: 200px;
  height: auto;
  display: inline-block;
  margin-bottom: 0.5rem;
  user-select: none;
}

.product-logo img {
  max-width: 200px;
  height: auto;
  margin-bottom: 0.75rem;
  user-select: none;
  pointer-events: none;
}

.product-divider {
  margin: 2.5rem auto;
  border: none;
  height: 3px;
  width: 60%;
  background-color: var(--border-color); /* or use a solid color like #444 */
  opacity: 2.0;
}

.vscode-logo {
  width: auto;
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.product-link a {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: underline;
  display: inline-block;
  margin-top: 0.5rem;
}

.product-link a:hover {
  color: var(--accent-hover);
}

.product-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-desc {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  color: var(--text-color);
  line-height: 1.6;
}

.theme-sensitive {
  display: block;
  max-width: 180px;
  height: auto;
}

body.dark-mode .csp-logo {
  content: url("images/logo_kit/csp_main_logo_white.png");
}

body.dark-mode .ue-logo {
  content: url("images/logo_kit/UE-Logotype-2023-Vertical-White.png");
}

body.dark-mode .unity-logo {
  content: url("images/logo_kit/U_Logo_Small_White_CMYK_1C-1589x537-ada00fa.png");
}

.teaser-section {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.teaser-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.teaser-image {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.waitlist-form {
  max-width: 600px;
  margin: 3rem auto;
  background-color: var(--bg-color);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.waitlist-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.25rem;
}

.waitlist-form input,
.waitlist-form textarea,
.waitlist-form select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-color);
  color: var(--text-color);
  box-sizing: border-box;
  resize: none;
}

.waitlist-form input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.waitlist-form button {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.waitlist-form button:hover {
  background-color: var(--accent-hover);
}

.waitlist-form a {
  color: var(--accent-color);
  text-decoration: underline;
}

.waitlist-form a:hover {
  color: var(--accent-hover);
}

.waitlist-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.waitlist-container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.waitlist-container p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.works-section {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}

.works-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.works-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 1rem auto;
  text-align: center;
  letter-spacing: 0.25px;
}

.works-text strong {
  color: var(--accent-color);
  font-weight: 700;
}

.works-gallery {
  max-width: 1000px;
  margin: 2rem auto;
  text-align: center;
}

.works-gallery h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.gallery-item {
  width: 440px;
  max-width: 90vw;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--box-shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.gallery-item a {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
}

.gallery-item a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.gallery-item p {
  font-size: 1.25rem;
  line-height: 1.6;
  text-align: justify;
  margin: 0 0.5rem
}

.gallery-item strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

/* Responsive */
@media screen and (max-width: 1180px) {
  
  html {
  word-break: normal;
  overflow-wrap: break-word;
  }

  .content {
    padding: 1rem;
  }

  .cookie-widget {
    bottom: 1em;
    left: 1em;
    right: 1em;
    transform: none;
    max-width: unset;
    width: auto;
    font-size: 0.95em;
    padding: 1em;
  }

  .cookie-widget.show {
    transform: none;
  }

  .cookie-widget.fade-out {
    transform: none;
  }

  .cookie-widget button {
    width: 100%;
  }

  
  .location-section {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
  }

  .location-text,
  .location-map {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .location-map {
    border: none;
    box-shadow: none;
  }

  .location-map iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    border: 0;
    display: block;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-nav nav {
    flex-direction: column;
    align-items: center;
  }

  .footer-nav nav a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  form {
    width: 100%;
    padding: 0 1rem;
  }

  .contact-container {
    padding: 1rem;
  }

  .contact-form {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .contact-form label {
    align-self: flex-start;
    padding-left: 0.25rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    width: 100%;
  }

  .contact-form select {
    display: block;
    margin: 0 auto 10px auto;
    width: 90%;
    max-width: 400px;
    text-align: left;
  }

  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-text {
    text-align: left;
    padding: 0 1rem;
  }

  .team-text p {
    text-align: left;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  .site-header {
  justify-content: center;
  padding: 1rem 0;
  }

  #site-logo {
    height: 140px; /* scale it down */
    display: block;
    margin: 4rem auto 1rem auto; /* adds spacing below */
  }

  .intro{
    margin-top: 0;
  }

  .legal-section {
  padding: 1rem;
  margin: 1rem auto 0 auto;
  text-justify: center;
  max-width: 90%;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .legal-privacy {
    padding: 1rem;
    margin: 1rem auto 0 auto;
    text-justify: center;
    max-width: 90%;
  }

  .legal-privacy p,
  .legal-privacy li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .legal-cookies {
    padding: 1rem;
    margin: 1rem auto 0 auto;
    text-justify: center;
    max-width: 90%;
  }

  .legal-cookies p,
  .legal-cookies li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .legal-dmca {
    padding: 1rem;
    margin: 1rem auto 0 auto;
    text-justify: center;
    max-width: 90%;
  }

  .legal-dmca p,
  .legal-dmca li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .legal-accessibility {
    padding: 1rem;
    margin: 1rem auto 0 auto;
    text-justify: center;
    max-width: 90%;
  }

  .legal-accessibility p,
  .legal-accessibility li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .mode-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    padding: 0.75rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .mobile.zoom {
    pointer-events: auto;
    cursor: pointer;
  }

  .mobile.zoom img{
    cursor: zoom-in;
  }

  .page-wrapper,
  .waitlist-container,
  .waitlist-form {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }


  .mobile-hint {
    display: block;
  }


  .teaser-section {
    padding: 1rem;
  }

  .teaser-section h2 {
    font-size: 1.25rem;
  }

  .gallery-item {
      width: 90%;
    }

  .gallery-item p {
    max-width: 90%;
    margin: auto;
    text-align: center;
    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .gallery-item img {
      width: 100%;
  }

  .gallery-item strong {
    display: block;
    text-align: center;
    white-space: normal;
  }

  .vscode-logo {
    max-width: 40px;
  }

  .waitlist-form input,
  .waitlist-form textarea,
  .waitlist-form select,
  .waitlist-form button {
    width: 100%;
    box-sizing: border-box;
  }

}
