/* Load custom font */
@font-face {
  font-family: 'Anarchy';
  src: url('/emoji_reaktionen/Anarchy.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Shake animation */
@keyframes shake-once {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.emoji-box {
  display: flex;
  gap: 20px;
  margin: 20px auto;
  padding: 15px;
  border: 2px solid black;   /* black border around the box */
  border-radius: 8px;
  max-width: 500px;
  justify-content: space-around;
}

/* Trigger shake once on hover */
.emoji-box:hover {
  animation: shake-once 0.5s;
  animation-iteration-count: 1; /* only once */
}

.emoji-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.emoji-wrapper:hover {
  transform: scale(1.5);
}

.emoji {
  width: 48px;
  height: 48px;
  filter: grayscale(100%);       /* default grey */
  transition: filter 0.3s ease;  /* smooth fade */
}

.emoji-wrapper:hover .emoji {
  filter: grayscale(0%);         /* fade back to color */
}

.emoji.selected {
  filter: grayscale(0%);
  border: 2px solid #ff9800;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff9800;
}

.emoji-count {
  font-size: 18px;
  font-family: 'Anarchy', sans-serif; /* apply custom font */
  color: #CD2424;
}
/* Toast container */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;              /* black background */
  color: red;                    /* red text */
  font-family: 'Anarchy', sans-serif; /* Anarchy font */
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6); /* optional red glow */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

/* Show state */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}