body { transition: all linear; animation-timing-function: linear; } #container { opacity: 1; transition: opacity 1s ease-out; } .fade-out { opacity: 0; /* Setzt die Opazität auf 0 */ transition: opacity 1s ease; /* Definiert die Dauer und Art der Transition */ } @keyframes fade { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } } #background { position: fixed; top: 0; left: 0; /* Preserve aspect ratio */ min-width: 100%; min-height: 100%; /* Animation properties */ animation: fade 5s infinite; /* Adjust duration as needed */ z-index: -1; /* Ensure background stays behind other content */ background: rgba(92, 91, 91, 0.45); /* Set your desired background color */ } #bar { position: absolute; width: 13vw; height: 3.5vh; /* Adjusted slightly for height */ background: rgba(0, 0, 0, 0.281); /* More transparency for closer match */ border-radius: 2px; border: 1px solid rgba(255, 255, 255, 0); left: 50%; top: 90%; transform: translateX(-50%); color: white; font-size: 1.2vw; text-align: center; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; animation: fadeInAndBounce 3s ease-in-out forwards; } @keyframes fadeInAndBounce { 0% { opacity: 0; transform: translate(-50%, 10%); } 30% { opacity: 1; transform: translate(-50%, 0%); } 50% { transform: translate(-50%, -2%); } 70% { transform: translate(-50%, 0%); } 100% { opacity: 1; transform: translate(-50%, 0%); } } #text1 { text-align: center; font-family: 'Poppins', sans-serif; font-size: 15px; color: #b3b3b3; } #name { position: absolute; left: 50%; top: 47.5%; transform: translate(-50%, -87.5%); font-family: "Arial-BoldItalic", sans-serif; font-style: italic; font-weight: 700; font-size: 80px; line-height: 45px; letter-spacing: 0.02em; color: rgb(255, 174, 0); text-shadow: 0 0 1.563vw #ffa600, 0 0 1.563vw #422b00; animation: fadeInAndBounce 3s ease-in-out forwards, zoom-in-out 3s infinite ease-in-out; } .bold { font-weight: bold; color: white; } #text3 { position: absolute; left: 43%; top: 50.5%; color: #ffffff; text-align: left; font-family: "Montserrat-Bold", sans-serif; font-size: 20px; font-weight: 700; text-transform: uppercase; position: absolute; width: 138px; height: 21px; display: flex; align-items: center; justify-content: flex-start; } @keyframes fg-updown { 0% {top: 95%} 50% {top: 92.5%} 100% {top: 95%} } @keyframes fg-updown2 { 0% {top: 87.5%} 50% {top: 85%} 100% {top: 87.5%} } .roleplay { position: absolute; color: #ffffff; text-shadow: 0 0 1.563vw #ffffff, 0 0 1.563vw #ffffff; font-family: "Montserrat-Bold", sans-serif; font-size: 30px; font-weight: 700; text-transform: uppercase; text-align: center; white-space: nowrap; /* Verhindert Zeilenumbruch, Box bleibt in einer Linie */ align-items: center; /* Vertikale Zentrierung */ justify-content: center; /* Horizontale Zentrierung */ top: 49%; left: 44.7%; letter-spacing: 3px; font-style: italic; animation: fadeInAndBounce 3s ease-in-out forwards, roleplay-zoom-in-out 3s infinite ease-in-out; } @keyframes zoom-in-out { 0%, 100% { transform: translate(-50%, -87.5%) scale(1); /* Normalgröße */ } 50% { transform: translate(-50%, -87.5%) scale(1.2); /* Vergrößert */ } } @keyframes roleplay-zoom-in-out { 0%, 100% { transform: scale(1); /* Standardgröße */ } 50% { transform: scale(1.3); /* Um 30% vergrößert */ } } /* Fade-Out Animation */ @keyframes fadeOut { 0% { opacity: 1; /* Element ist sichtbar */ } 100% { opacity: 0; /* Element ist unsichtbar */ } } /* Diese Klasse wird angewendet, um die Animation zu starten */ .fade-out { animation: fadeOut 1.5s forwards ease-out; /* Sanftes Ausblenden */ }