body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    text-align: center;
    overflow: hidden;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}

.modal-content {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(80, 200, 255, 0.4), 0 0 50px rgba(80, 200, 255, 0.2);
    border: 1px solid #50c8ff;
    max-width: 550px;
    width: 100%;
    animation: fadeInScale 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    perspective: 1000px; /* For 3D tilt effect */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    font-family: 'Audiowide', cursive;
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 30px;
    color: #50c8ff;
    text-shadow: 0 0 8px #50c8ff, 0 0 15px rgba(80, 200, 255, 0.5);
    position: relative;
    animation: subtle-glow 4s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% {
        text-shadow: 0 0 8px #50c8ff, 0 0 15px rgba(80, 200, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 12px #50c8ff, 0 0 25px rgba(80, 200, 255, 0.5);
    }
}

h1::before,
h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

h1::before {
    left: 2px;
    text-shadow: -1px 0 #00f;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

h1::after {
    left: -2px;
    text-shadow: -1px 0 #f0f, 1px 0 #0ff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        text-shadow: 0 0 5px #f04747, 0 0 10px #f04747, 0 0 20px #f04747;
    }
    5%, 15%, 25%, 45%, 55%, 75%, 85%, 95% {
        text-shadow: 0 0 5px #f04747, 0 0 10px #f04747, 0 0 20px #f04747, 0 0 30px #f04747, 0 0 40px #f04747;
    }
    10%, 20%, 30%, 50%, 70%, 80%, 90%, 100% {
        text-shadow: 0 0 5px #f04747, 0 0 10px #f04747, 0 0 20px #f04747;
    }
}

@keyframes glitch-anim-1 {
    0% { clip: rect(72px, 9999px, 86px, 0); }
    10% { clip: rect(44px, 9999px, 100px, 0); }
    20% { clip: rect(23px, 9999px, 79px, 0); }
    30% { clip: rect(10px, 9999px, 50px, 0); }
    40% { clip: rect(87px, 9999px, 102px, 0); }
    50% { clip: rect(18px, 9999px, 58px, 0); }
    60% { clip: rect(61px, 9999px, 84px, 0); }
    70% { clip: rect(9px, 9999px, 49px, 0); }
    80% { clip: rect(71px, 9999px, 94px, 0); }
    90% { clip: rect(48px, 9999px, 103px, 0); }
    100% { clip: rect(1px, 9999px, 60px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(7px, 9999px, 104px, 0); }
    10% { clip: rect(64px, 9999px, 88px, 0); }
    20% { clip: rect(12px, 9999px, 53px, 0); }
    30% { clip: rect(89px, 9999px, 110px, 0); }
    40% { clip: rect(41px, 9999px, 73px, 0); }
    50% { clip: rect(93px, 9999px, 113px, 0); }
    60% { clip: rect(14px, 9999px, 43px, 0); }
    70% { clip: rect(77px, 9999px, 92px, 0); }
    80% { clip: rect(51px, 9999px, 81px, 0); }
    90% { clip: rect(28px, 9999px, 62px, 0); }
    100% { clip: rect(82px, 9999px, 115px, 0); }
}

.profile-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    border: 1px solid #333;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.profile-card:hover {
    box-shadow: 0 8px 35px rgba(80, 200, 255, 0.3);
}

.profile-header {
    display: flex;
    align-items: center;
    transform: translateZ(40px); /* Give elements some depth for tilt */
}

.avatar-wrapper {
    position: relative;
    margin-right: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #50c8ff;
}

.status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background-color: #43b581;
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(67, 181, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 181, 129, 0);
    }
}

.profile-info {
    text-align: left;
}

.username {
    font-family: 'Audiowide', cursive;
    font-size: 2em;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.reason {
    font-size: 1.5em;
    color: #b9bbbe;
    margin: 0;
    min-height: 1.5em; /* Prevent layout shift during typing */
    transform: translateZ(20px); /* Give elements some depth for tilt */
}

.reason span {
    color: #ffffff;
    font-weight: 700;
}

.cursor {
    color: #50c8ff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Footer-Stil */
footer {
  color: #ffffff;                    /* weiße Schrift */
  text-align: center;            /* zentrierter Text */
  padding: 20px 10px;            /* Innenabstand */
  font-size: 14px;               /* Schriftgröße */
  position: fixed;               /* bleibt am unteren Rand */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Optional: Responsive Verhalten */
@media screen and (max-width: 600px) {
  footer {
    font-size: 12px;
    padding: 15px 5px;
  }
}

.button-container {
  display: flex;
  justify-content: center;      /* zentriert den Container horizontal */
  position: relative;
  width: 100%;
  margin-top: 40px;             /* Abstand nach oben */
}

.discord-button {
  position: absolute;
  left: 35px;  
  top: 215px;
  background-color: #5865F2;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.discord-button:hover {
  background-color: #4752C4;
}


.top-right-link {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.top-right-link a {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #0078D4;
  text-decoration: none;
  font-weight: bold;
}

.top-right-link a:hover {
  text-decoration: underline;
  color: #005a9e;
}