@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
}

.JetBrains {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 0.7em !important;
  color: rgba(var(--bs-body-color-rgb), 0.85);
}

.JetBrainsHeader {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 1.2em !important;
}

.JetBrainsVersionen {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 0.9em !important;
}

.JetBrainsFooter {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 0.74em !important;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

main#gameArea {
  flex: 1;
  position: relative;
  background: var(--bs-body-bg);
  overflow: hidden;
}

header,
footer {
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color-translucent);
  border-top: 1px solid var(--bs-border-color-translucent);
  padding: 0.75rem 1rem;
}

#gameArea {
  position: relative;
  height: calc(100vh - 112px);
  background: var(--bs-body-bg);
  overflow: hidden;
  cursor: crosshair;
}

#pixel {
  position: absolute;
  visibility: hidden; /* wird nach Positionierung sichtbar gemacht */
  width: 1px;
  height: 1px;
  background: transparent;
  z-index: 10;
}

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1055;
}

.custom-link {
  text-decoration: underline;
  text-decoration-color: rgba(var(--bs-body-color-rgb), 0.5);
  color: rgba(var(--bs-body-color-rgb), 0.9);
}

@media (max-width: 576px) {
  footer {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* Globales SVG-Styling */

.svg-icon,
.icon {
  height: 1em;
  width: 1em;
  vertical-align: -0.125em;
}

.bd-mode-toggle .bi {
  width: 1em;
  height: 1em;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

/* Offcanvas Basis */
.offcanvas-custom {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background-color: var(--bs-body-bg);
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 1050;
}

.offcanvas-custom.active {
  right: 0;
}

.offcanvas-start {
  visibility: hidden;
}
.offcanvas-start.show {
  visibility: visible;
}

/* Standardmäßig: Body NICHT verschieben auf kleinen Bildschirmen */
.body-shift {
  transition: margin-right 0.3s ease;
}

/* Nur auf DESKTOP verschieben */
@media (min-width: 768px) {
  .body-shift {
    margin-right: 400px;
  }
}

.icon-container {
  width: 2.2em; /* Einheitliche Icon-Box */
  height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.text-container {
  margin-left: 0.5em;
  flex-grow: 1;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.menu-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
  padding: 0.5em 0;
}

.menu-link:hover {
  background-color: rgba(0, 0, 0, 0.05); /* leichtes Hover-Highlight */
}

.menu-link:hover .icon-container {
  transform: scale(1.2); /* Icon leicht vergrößern */
  color: #0d6efd; /* Bootstrap-Primary oder deine Wunschfarbe */
}

.profil-image {
  height: 6em;
  z-index: 2;
  border-radius: 50px;
  background: transparent;
}

.profil-text {
  padding-top: 4em !important;
}

.aboutme {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
  font-size: 0.9em !important;
}

/* Rotierender Titel in Menü */
.rotating-title {
  display: inline-block;
  height: 1.5em;
  overflow: hidden;
  position: relative;
  text-align: center;
  margin-top: 0.2rem;
}
.rotating-title span {
  display: inline-block;
  white-space: nowrap;
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
  min-width: 10px; /* Optional: damit es nicht zappelt bei kurzen Wörtern */
}

#fun-title {
  display: inline-block;
  white-space: nowrap;
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
}

@keyframes slideIn {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.button-group {
  border: 1px solid #70b60f !important;
  display: flex !important;
  width: fit-content !important; /* Passt die Breite an den Inhalt an */
  max-width: 100% !important; /* Verhindert Überlauf */
  margin-right: 5px !important;
  margin-bottom: 5px !important;
}

.svg-container {
  width: 3em;
  height: 3em;
  background-color: #70b60f;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Nicht schrumpfen */
}

.svg-container svg {
  max-width: 100%;
  max-height: 100%;
}

.link-button {
  padding: 0.5em 1em;
  width: 8em;
  text-decoration: none;
  color: #ffffff;
  background-color: #7ac70c;
  display: flex;
  align-items: center; /* Vertikale Zentrierung des Textes */
  border-left: 1px solid #7ac70c;
}

.link-button:hover {
  text-decoration: underline;
}

.action-button {
  padding: 0.5em 1em;
  cursor: pointer;
  border-left: 1px solid #8ee000;
  color: #ffffff;
  background-color: #8ee000;
  display: flex;
  align-items: center; /* Vertikale Zentrierung des Textes */
  flex-shrink: 0; /* Nicht schrumpfen */
}

.action-button:hover {
  background-color: #82cd01;
}

/* Animation Konfetti */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

.modal {
  overflow: visible !important;
}

.modal-dialog {
  overflow: visible !important;
}

.confetti-piece,
.brand-icon {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  will-change: transform, opacity;
}

.confetti-piece {
  width: 8px;
  height: 12px;
  border-radius: 1px;
  background-color: red;
  animation: confetti-spray 2s ease-out forwards;
}

.brand-icon {
  width: 24px;
  height: 24px;
  animation: brand-spray 2s ease-out forwards;
}

@keyframes confetti-spray {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(720deg);
    opacity: 0;
  }
}

@keyframes brand-spray {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(360deg) scale(0.8);
    opacity: 0;
  }
}
.dropdown.bd-mode-toggle {
  visibility: hidden;
}
html.theme-ready .dropdown.bd-mode-toggle {
  visibility: visible;
}

.link-logo a {
  color: rgba(var(--bs-body-color-rgb));
  text-decoration: none !important;
}

/* Pulsierenedes Herz */
.heart-beat {
  display: inline-block;
  animation: realistic-heartbeat 1.5s infinite ease-in-out;
  transform-origin: center;
}

@keyframes realistic-heartbeat {
  0% {
    transform: scale(1);
  }

  10% {
    transform: scale(1.3);
  }

  20% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.2);
  }

  40% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

/* Donation Container */
.donation-container {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-vertical {
  font-size: 1.2rem !important; /* Schriftgröße vergrößern */
  padding: 10px 15px !important; /* Innenabstand vergrößern */
  border-radius: 8px !important; /* Abgerundete Ecken */
}


/* Container für die Share-Buttons innerhalb des Off-Canvas */
.share-container {
  margin-bottom: 20px;
  width: 90%;
}

.share-container h3 {
  margin-bottom: 15px;
  font-size: 1em;
}

/* Stile für die Share-Buttons (horizontale Anordnung und Umbruch) */
.share-buttons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* Ermöglicht den Umbruch in mehrere Zeilen */
  gap: 10px; /* Abstand zwischen den Buttons (horizontal und vertikal) */
  width: 100%;
}

.share-buttons li {
  flex: 0 0 auto; /* Verhindert, dass die Buttons sich unnötig vergrößern */
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center; /* Zentriert das Icon ohne Text */
  width: 40px; /* Beispielbreite für die Buttons */
  height: 40px; /* Beispielhöhe für die Buttons */
  border-radius: 5px;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out; /* Sanftere Übergänge */
  animation: none; /* Standardmäßig keine "Einatmen"-Animation */
}

.share-button:hover {
  opacity: 0.9;
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: breathe 2s ease-in-out infinite alternate, float 2s ease-in-out infinite alternate; /* Animationen beim Hovern */
}

.share-button svg {
  width: 24px;
  height: 24px;
  fill: white;
  animation: none; /* Standardmäßig keine schwebende Animation */
  transition: transform 0.2s ease-in-out; /* Für sanften Übergang bei Hover */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Farbliche Anpassungen für die Marken */
.share-facebook {
  background-color: #1877f2;
}

.share-twitter {
  background-color: #000000;
}

.share-bluesky {
  background-color: #118BED;
}

.share-mail {
  background-color: #ffc115;
}

.share-threads {
  background-color: #000000;
}

.share-mastodon {
  background-color: #6364ff;
}

.share-qrcode {
  background-color: #76c20bb4;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
