:where([class^="ri-"])::before {
  content: "\f3c2";
}

body {
  background-color: #1a1c2a;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  background-image: url('assets/styles/Background.jpg');
  background-attachment: fixed;
  background-size: cover;
}

.minecraft-font {
  font-family: 'VT323', monospace;
}

.card {
  background-color: rgba(30, 32, 46, 0.85);
  backdrop-filter: blur(5px);
  border: 2px solid #2d3748;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: #ef4444;
  text-shadow: 0 0 5px rgba(251, 85, 35, 0.5);
  transform: translateY(-3px);
}

.diamond-icon {
  color: #ef4444;
  text-shadow: 0 0 5px rgba(251, 85, 35, 0.5);
}

.minecraft-button {
  background-color: #3a3f5a;
  border: 2px solid #2d3748;
  transition: all 0.2s ease;
}

.minecraft-button:hover {
  background-color: #4a5568;
  border-color: #ef4444;
}

.minecraft-button:active {
  transform: scale(0.98);
}

.tab-active {
  background-color: #ef4444;
  color: #1a1c2a;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 4px;
  cursor: pointer;
}

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

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3a3f5a;
  transition: .4s;
  border-radius: 24px;
}

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

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

input:checked + .switch-slider:before {
  transform: translateX(26px);
}

@keyframes flash {
  0%   { background-color: rgba(255, 255, 0, 0.2); }
  100% { background-color: transparent; }
}

.flash {
  animation: flash 1s ease;
}

.perspective {
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
}

.flip-front, .flip-back {
  backface-visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  border-radius: 8px; /* falls du runde Ecken möchtest */
}

.flip-back {
  transform: rotateY(180deg);
  background-color: #1a1c2a;
  /* optional: andere Styles */
}

.front {
  backface-visibility: hidden;
}

.back {
  backface-visibility: hidden;
  transform: rotateY(180deg);
}


/* Scrollbar für WebKit-Browser (Chrome, Safari, Edge Chromium) */
.scrollbar {
  overflow-y: auto; /* Scrollen erlauben */
  padding: 60px 0;
}

/* Track (Hintergrund) */
.scrollbar::-webkit-scrollbar {
  width: 8px;
}

/* Scrollbar-Schieber */
.scrollbar::-webkit-scrollbar-thumb {
  background-color: #ef4444; /* Tailwind Rot (red-500) */
  border-radius: 10px;
  border: 2px solid transparent; /* Abstand zum Rand */
  background-clip: content-box;
  transition: background-color 0.3s ease;
}

/* Hover Effekt */
.scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: #b91c1c; /* dunkleres Rot (red-700) */
}

/* Scrollbar Track (Hintergrund) */
.scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05); /* leicht transparent */
  border-radius: 10px;
}

/* Firefox */
.scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #ef4444 transparent;
}
html {
  scroll-behavior: smooth;
}

.particle, .diamond-particle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  transform-style: preserve-3d; /* für 3D-Rotation */
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  border-radius: 0;
}

.diamond-particle {
  font-weight: bold;
  text-shadow: 0 0 5px rgba(59, 130, 246, 0.25);
  z-index: 2000;
}

.particle {
  text-shadow: 0 0 5px rgba(251, 85, 35, 0.5);
  z-index: 1;
}

/* 3D-Fall-Animation */
@keyframes fall-rotate {
  0% {
    transform: translateY(0) rotateX(var(--start-rotate-x)) rotateY(var(--start-rotate-y)) rotateZ(var(--start-rotate-z));
    opacity: 0.75;
  }
  100% {
    transform: translateY(110vh) rotateX(var(--end-rotate-x)) rotateY(var(--end-rotate-y)) rotateZ(var(--end-rotate-z));
    opacity: 0;
  }
}

/* Float-Animation mit 3D Rotation */
@keyframes float-rotate {
  0% {
    transform: translateY(0) rotateX(var(--start-rotate-x)) rotateY(var(--start-rotate-y)) rotateZ(var(--start-rotate-z));
  }
  100% {
    transform: translateY(500px) rotateX(var(--end-rotate-x)) rotateY(var(--end-rotate-y)) rotateZ(var(--end-rotate-z));
  }
}

/* Slot-Maschine Container */
#slot-machine {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 250px; /* deutlich kleiner */
  height: 150px;
  padding: 12px 16px !important;
  z-index: 9;
  font-size: 0.75rem; /* Schrift kleiner */
}

#slot-machine h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Blöcke kleiner */
#slot-machine .wheel {
  width: 50px !important;
  height: 50px !important;
}

#slot-machine .wheel img {
  width: 40px !important;
  height: 40px !important;
}

/* Buttons */
#spinButton {
  background: linear-gradient(to bottom, #eab308, #d97706);
  color: #1a1c2a;
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px #a16207;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}

#spinButton:hover {
  background: linear-gradient(to bottom, #facc15, #d97706);
}

#spinButton:active {
  transform: translateY(2px);
  box-shadow: 0 2px #a16207;
}

#slot-machine .minecraft-button {
  font-size: 0.75rem;
  padding: 6px 12px;
}

/* Label Schrift anpassen */
#slot-machine label {
  font-size: 0.85rem;
}

/* Diamond Counter & Message */
#slotDiamondCounter {
  font-weight: bold;
  color: #38bdf8;
}

#slotMessage {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.25rem;
  color: #ef4444;
  min-height: 2rem;
}

/* Optional: blinkender Gewinntext */
#slotMessage.win {
  color: #22c55e;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

/* Spin-Animation */
@keyframes fake-spin {
  0%   { transform: rotate(0deg) scale(1); filter: blur(0); }
  20%  { transform: rotate(20deg) scale(1.05); filter: blur(2px); }
  40%  { transform: rotate(-20deg) scale(1.05); filter: blur(2px); }
  60%  { transform: rotate(15deg) scale(1.02); filter: blur(1px); }
  80%  { transform: rotate(-15deg) scale(1.02); filter: blur(1px); }
  100% { transform: rotate(0deg) scale(1); filter: blur(0); }
}

.wheel.spinning {
  animation: fake-spin 1.2s ease-in-out;
}

.rising-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background-color: gray;
  opacity: 0.7;
  will-change: transform, opacity;
  animation-name: rise-and-fade;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes rise-and-fade {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

.custom-checkbox {
  color: #ef4444;
  display: flex;
  align-items: center;
  font-family: 'VT323', monospace;
  font-size: 1.75rem;
  cursor: pointer;
}

..custom-checkbox input[type="checkbox"] {
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  border: 2px solid #ef4444;
  border-radius: 0.25rem;
  background-color: white;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}


.custom-checkbox input[type="checkbox"]:checked {
  background-color: #ef4444;
}



