body {
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	margin: 0;
	background: transparent;
	color: #24292f;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
}

body p {
	margin: 0.5rem 0.5rem;
	color: aliceblue;
	word-wrap: break-word;
}

body.feuerbach-mode p {
  animation: feuerbachText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #23ffeb,
    #000000,
    #23ffeb
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.dpsg-mode p {
  animation: dpsgText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #0073ff,
    #74ffdf,
    #f485c5,
    #0b2bff,
    #0073ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.braike-mode p {
  animation: braikeText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #fdfd9d,
    #7b7bff,
    #fdfd9d
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.mesk-mode p {
  animation: meskText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #cbca6b,
    #212121,
    #a6b0aa
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.hoegy-mode p {
  animation: hoegyText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #dc7951,
    #4354ab,
    #6bfaba
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.judo-mode p {
  animation: judoText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ffffff,
    #ff0000
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.unituebingen-mode p {
  animation: unituebingenText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #dc143c,
    #8b0000,
    #dc143c
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}



body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  transition: opacity 1.2s ease, background-position 6s ease, background-size 6s ease;
  background-size: 200% 200%;
}

/* Default gradient layer */
body::before {
  background: radial-gradient(circle, rgba(255, 0, 115, 1) 0%, rgba(233, 206, 148, 1) 100%);
  animation: defaultFlow 18s ease-in-out infinite;
  opacity: 1;
}

/* DPSG gradient layer */
body::after {
  background: linear-gradient(
    135deg,
    #f08c00 0%,
    #0b2f6b 20%,
    #0b7a3e 40%,
    #8b0020 60%,
    #f5c400 80%,
    #f08c00 100%
  );
  background-size: 450% 450%;
  animation: dpsgFlow 26s ease-in-out infinite;
  opacity: 0;
}

body.feuerbach-mode::before {
  opacity: 0;
}

/* Feuerbach gradient - Red and White (official Stuttgart Feuerbach colors) */
body.feuerbach-mode::after {
  background: linear-gradient(
    135deg,
    #a00000 0%,
    #ffffff 50%,
    #a00000 100%
  );
  background-size: 450% 450%;
  animation: feuerbachFlow 26s ease-in-out infinite;
  opacity: 1;
}

body.dpsg-mode::before {
  opacity: 0;
}

body.dpsg-mode::after {
  opacity: 1;
}

body.braike-mode::before {
  opacity: 0;
}

/* Braike gradient overrides the same ::after overlay when active */
body.braike-mode::after {
  background: linear-gradient(
    135deg,
    #7b7bff 0%,
    #fdfd9d 50%,
    #7b7bff 100%
  );
  background-size: 450% 450%;
  animation: braikeFlow 26s ease-in-out infinite;
  opacity: 1;
}

body.mesk-mode::before {
  opacity: 0;
}

/* Mesk gradient */
body.mesk-mode::after {
  background: linear-gradient(
    135deg,
    #323594 0%,
    #dedede 50%,
    #594f55 100%
  );
  background-size: 450% 450%;
  animation: meskFlow 26s ease-in-out infinite;
  opacity: 1;
}

body.hoegy-mode::before {
  opacity: 0;
}

/* Hoegy gradient */
body.hoegy-mode::after {
  background: linear-gradient(
    135deg,
    #51aedc 0%,
    #7bab43 50%,
    #fa6bab 100%
  );
  background-size: 450% 450%;
  animation: hoegyFlow 26s ease-in-out infinite;
  opacity: 1;
}

body.judo-mode::before {
  opacity: 0;
}

/* Judo gradient - Red and Black */
body.judo-mode::after {
  background: linear-gradient(
    135deg,
    #dc143c 0%,
    #000000 50%,
    #dc143c 100%
  );
  background-size: 450% 450%;
  animation: judoFlow 26s ease-in-out infinite;
  opacity: 1;
}

body.unituebingen-mode::before {
  opacity: 0;
}

/* Uni Tübingen gradient - Red and White */
body.unituebingen-mode::after {
  background: linear-gradient(
    135deg,
    #a51e37 0%,
    #f5f5f0 50%,
    #a51e37 100%
  );
  background-size: 450% 450%;
  animation: unituebingenFlow 26s ease-in-out infinite;
  opacity: 1;
}

#content-area {
  transition: min-height 0.6s ease;
}

.card {
	padding: 2rem 2.5rem;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	text-align: center;
	margin: 2rem;
	position: relative;
	top: 0;
	transition: all 0.3s ease;
	max-width: 20%;
}



.card:hover p {
	transition: opacity 0.3s ease, margin 0.3s ease, max-height 0.3s ease;
	max-height: 100px;
	opacity: 1;
}

.card p {
	transition: opacity 0.3s ease, margin 0.3s ease, max-height 0.3s ease;
	opacity: 0;
	margin: 0;
	max-height: 0;
	overflow: hidden;
  color: #57606a;
}


h1 {
	margin: 0.1rem 0.1rem;
  font-size: 2rem;
}

body.feuerbach-mode h1 {
  animation: feuerbachText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #23ffeb,
    #000000,
    #23ffeb
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.dpsg-mode h1 {
  animation: dpsgText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #0073ff,
    #74ffdf,
    #f485c5,
    #0b2bff,
    #0073ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.dpsg-mode h2,
body.dpsg-mode h3,
body.dpsg-mode h4,
body.dpsg-mode h5,
body.dpsg-mode h6 {
  animation: dpsgText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #0073ff,
    #74ffdf,
    #f485c5,
    #0b2bff,
    #0073ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.feuerbach-mode h2,
body.feuerbach-mode h3,
body.feuerbach-mode h4,
body.feuerbach-mode h5,
body.feuerbach-mode h6 {
  animation: feuerbachText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #23ffeb,
    #000000,
    #23ffeb
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.braike-mode h1 {
  animation: braikeText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #fdfd9d,
    #7b7bff,
    #fdfd9d
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.braike-mode h2,
body.braike-mode h3,
body.braike-mode h4,
body.braike-mode h5,
body.braike-mode h6 {
  animation: braikeText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #fdfd9d,
    #7b7bff,
    #fdfd9d
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.mesk-mode h1 {
  animation: meskText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #cbca6b,
    #212121,
    #a6b0aa
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.hoegy-mode h1 {
  animation: hoegyText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #dc7951,
    #4354ab,
    #6bfaba
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.judo-mode h1 {
  animation: judoText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #ff0000,
    #000000,
    #ff0000
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.unituebingen-mode h1 {
  animation: unituebingenText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #dc143c,
    #8b0000,
    #dc143c
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.mesk-mode h2,
body.mesk-mode h3,
body.mesk-mode h4,
body.mesk-mode h5,
body.mesk-mode h6 {
  animation: meskText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #cbca6b,
    #212121,
    #a6b0aa
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.hoegy-mode h2,
body.hoegy-mode h3,
body.hoegy-mode h4,
body.hoegy-mode h5,
body.hoegy-mode h6 {
  animation: hoegyText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #dc7951,
    #4354ab,
    #6bfaba
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.judo-mode h2,
body.judo-mode h3,
body.judo-mode h4,
body.judo-mode h5,
body.judo-mode h6 {
  animation: judoText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #ff0000,
    #000000,
    #ff0000
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

body.unituebingen-mode h2,
body.unituebingen-mode h3,
body.unituebingen-mode h4,
body.unituebingen-mode h5,
body.unituebingen-mode h6 {
  animation: unituebingenText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #dc143c,
    #8b0000,
    #dc143c
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}




button {
  position: relative;
  background: transparent;
  border: none;
  color: transparent;
}
button img {
  position: relative;
  z-index: 1;
}

button.active {
  background: transparent;
  box-shadow: none;
}

/* Prevent gradient effects on buttons and images in any mode */
body.feuerbach-mode button,
body.dpsg-mode button,
body.braike-mode button,
body.hoegy-mode button,
body.mesk-mode button,
body.judo-mode button,
body.unituebingen-mode button,
body.ghostdungeon-mode button,
body.feuerbach-mode button img,
body.dpsg-mode button img,
body.braike-mode button img,
body.hoegy-mode button img,
body.mesk-mode button img,
body.judo-mode button img,
body.unituebingen-mode button img,
body.ghostdungeon-mode button img {
  background: transparent !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: inherit !important;
  filter: none !important;
}

.liquidGlass-small.active-button {
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6),
              inset 0 0 10px rgba(255, 255, 255, 0.8),
              0 0 20px rgba(255, 200, 100, 0.9),
              0 0 40px rgba(255, 180, 50, 0.6),
              0 0 60px rgba(255, 150, 0, 0.4),
              0 0 80px rgba(255, 130, 0, 0.2);
}

.liquidGlass-small.button-glow {
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6),
              inset 0 0 10px rgba(255, 255, 255, 0.8),
              0 0 20px rgba(255, 200, 100, 0.9),
              0 0 40px rgba(255, 180, 50, 0.6),
              0 0 60px rgba(255, 150, 0, 0.4),
              0 0 80px rgba(255, 130, 0, 0.2);
}

@keyframes dpsgFlow {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

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

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

/* Braike background animation */
@keyframes braikeFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mesk background animation */
@keyframes meskFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hoegy background animation */
@keyframes hoegyFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Judo background animation */
@keyframes judoFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Uni Tübingen background animation */
@keyframes unituebingenFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

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

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

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

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

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

@keyframes dpsgHue {
  0%   { filter: hue-rotate(0deg) drop-shadow(0 0 8px rgba(255, 255, 255, 0.45)); }
  25%  { filter: hue-rotate(72deg) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)); }
  50%  { filter: hue-rotate(144deg) drop-shadow(0 0 12px rgba(255, 255, 255, 0.35)); }
  75%  { filter: hue-rotate(216deg) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)); }
  100% { filter: hue-rotate(288deg) drop-shadow(0 0 8px rgba(255, 255, 255, 0.45)); }
}

.finder {
  width: 50px; 
  height: 50px; 
  display: block;
  object-fit: contain;
}

body.dpsg-mode .finder {
  animation: dpsgHue 16s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

/* LIQUID GLASS STYLES */

.liquidGlass-wrapper {
  position: relative;
  display: flex;
  font-weight: 600;
  overflow: visible;
  border-radius: 12px;

  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);

  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
  align-items: center;
  justify-content: center;
}

.liquidGlass-effect {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 12px;

  backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  overflow: hidden;
}

.liquidGlass-tint {
  z-index: 1;
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.50);
}

.liquidGlass-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;

  overflow: hidden;

  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}

.liquidGlass-text {
  z-index: 3;
  font-size: 2rem;
  color: black;
  display: flex;
  width: 100%;
  justify-content: center;
}

.liquidGlass-text .dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

body.dpsg-mode .liquidGlass-text {
  animation: dpsgText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #f5c400,
    #8b0020,
    #0b7a3e,
    #0b2f6b,
    #f08c00,
    #f5c400
  );
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

/* Braike text: reverse of background (yellow → blue) */
body.braike-mode .liquidGlass-text {
  animation: braikeText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #fdfd9d,
    #7b7bff,
    #fdfd9d
  );
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

/* Mesk text: complementary colors */
body.mesk-mode .liquidGlass-text {
  animation: meskText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #cbca6b,
    #212121,
    #a6b0aa
  );
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

/* Hoegy text: complementary colors */
body.hoegy-mode .liquidGlass-text {
  animation: hoegyText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #dc7951,
    #4354ab,
    #6bfaba
  );
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

/* Judo text: red and black */
body.judo-mode .liquidGlass-text {
  animation: judoText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #ff0000,
    #000000,
    #ff0000
  );
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

/* Uni Tübingen text: red and dark red */
body.unituebingen-mode .liquidGlass-text {
  animation: unituebingenText 18s linear infinite;
  background: linear-gradient(
    90deg,
    #dc143c,
    #8b0000,
    #dc143c
  );
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
}

.liquidGlass-small .liquidGlass-effect,
.liquidGlass-small .liquidGlass-tint,
.liquidGlass-small .liquidGlass-shine {
  border-radius: 12px;
}

.liquidGlass-small .liquidGlass-text {
  font-size: inherit;
}

.liquidGlass-small button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CAROUSEL STYLES */
.carousel-container {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  animation: scroll 20s linear infinite;
  width: max-content;
  will-change: transform;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.liquidGlass-small {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 11));
  }
}

/* Mobile adjustments to prevent overflow of the title inside the glass box */
@media (max-width: 640px) {
  .card {
    max-width: 92vw;
    width: 92vw;
    margin: 1rem;
    padding: 1.25rem 1.5rem;
  }

  /* Ensure text wraps within the glass container */
  .liquidGlass-text,
  .liquidGlass-text .dock,
  .liquidGlass-text h1 {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.15;
  }

  /* Responsive title sizing for small screens */
  h1 {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
}

/* Tablet adjustments (e.g., Polypane small tablet) */
@media (min-width: 641px) and (max-width: 900px) {
  .card {
    max-width: 70vw;
    width: 70vw;
    margin: 1.5rem auto;
  }

  .liquidGlass-text,
  .liquidGlass-text .dock {
    text-align: center;
  }
}

