body {
  background-image: url('../images/brain.gif'); 
  background-size: cover; 
  background-position: center; 
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  perspective: 1000px;
  position: relative;
}

.profile-card {
  background-color: rgba(14, 25, 34, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 20px;
  width: 225px;
  text-align: center;
  border: 1px solid rgba(0, 191, 255, 0.6);
  transition: transform 0.2s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative; /* Wichtig für das Canvas */
  overflow: hidden; /* Wichtig für das Canvas */
}

.rain-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Klicks gehen durch das Canvas durch */
  z-index: 5; /* Überlagert den Karteninhalt */
}

.expandable-content {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.7s ease-in-out;
  margin-top: 0;
}

.profile-card.open .expandable-content {
  max-height: 500px; 
  opacity: 1;
  margin-top: 20px;
}

.main-info {
  margin-bottom: 20px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.5); 
}

h2 {
  font-size: 1.5rem;
  margin: 0;
}

.name-container {
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.sparkle-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background-image: url('../images/sparkle.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

h2 {
  font-size: 1.5rem;
  margin: 0;
  position: relative;
  z-index: 2;
}

.location {
  font-size: 0.9rem;
  color: #a7d9ed; 
  margin-top: 5px;
}

.social-links {
  border-top: 1px solid rgba(0, 191, 255, 0.3);
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links p {
  display: none;
}

.social-links a img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s, filter 0.2s;
}

.social-links a img:hover {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 191, 255, 0.8));
}

.discord-tag {
  display: flex;
  align-items: center;
  background-color: rgba(8, 18, 25, 0.9); 
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 1rem;
  border: 1px solid rgba(0, 191, 255, 0.6); 
  justify-content: flex-start;
  width: calc(100% - 3px);
  box-sizing: border-box;
  gap: 15px;
}

.discord-avatar-container {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.discord-tag .avatar {
  width: 70px;
  height: 70px;
  margin: 0;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.4); 
}

.discord-tag span {
  font-weight: bold;
  font-size: 1.1rem;
  color: #e0f6ff; 
}

.footer-credit {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(14, 25, 34, 0.7);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 191, 255, 0.4);
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.85rem;
  color: #e0f6ff;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.footer-credit .heart-emoji {
  color: #ff69b4;
  font-size: 1.1em;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #80848E;
  border: 3px solid rgba(8, 18, 25, 0.9);
  transition: background-color 0.3s ease;
  z-index: 10;
}

.status-dot.online { background-color: #23A559; }
.status-dot.idle   { background-color: #F0B232; }
.status-dot.dnd    { background-color: #F23F43; }