html, body { overscroll-behavior: none; touch-action: none; } body { margin: 0; overflow: hidden; background: url('scene03bg.png') no-repeat center center / cover, #000; font-family: 'BrightAura', sans-serif; } @font-face { font-family: 'BrightAura'; src: url('Bright_Aura.ttf') format('truetype'); font-weight: normal; font-style: normal; } .frame-box { width: 100%; max-width: 450px; height: calc(100vh - 20px); /* 10px oben + 10px unten */ margin: 10px auto; /* auto = horizontal zentriert */ position: absolute; top: 0px; left: 50%; transform: translateX(-50%); border: 15px solid #333; border-radius: 50px; box-sizing: border-box; background: transparent; pointer-events: none; } #skyImage { display: none; } #game { position: relative; width: 100vw; height: 100vh; } #logoImage { position: absolute; top: 80px; left: 50%; transform: translateX(87%) translateX(-50%); width: 150px; z-index: 5; } #whiteCircle { position: absolute; background: white; border-radius: 50%; width: 400px; height: 400px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; } #dangerBar { position: absolute; width: 100px; height: 20px; background: #00aaff; border-radius: 1px; z-index: 1; } #centerDot { position: absolute; background: #00aaff; border-radius: 50%; width: 90px; height: 90px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; } #character { position: absolute; width: 40px; /* z. B. Breite deines Bildes, kannst du anpassen */ height: 40px; /* Höhe anpassen, oder "auto" wenn du das Seitenverhältnis behalten willst */ background: url('char0FlyFreeDuck.png') no-repeat center center / contain; transform: translate(-50%, -50%) rotate(0deg); z-index: 3; } .taskBox { position: absolute; font-size: 15px; font-weight: bold; color: #111; background: white; padding: 4px 8px; border-radius: 5px; transform: translate(-50%, -50%); z-index: 3; display: none; } #score { position: absolute; top: 170px; left: calc(50% - 60px); /* 100px nach links von der Mitte */ transform: translateX(-50%); font-size: 25px; font-weight: 800; color: #58ccfe; z-index: 4; user-select: none; text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #timer { position: absolute; top: 200px; left: calc(50% - 10px); transform: translateX(-50%); font-size: 25px; font-weight: 800; color: #58ccfe; z-index: 4; user-select: none; text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #scoreLabel, #timerLabel { position: absolute; font-size: 25px; font-weight: 800; color: #58ccfe; font-family: 'BrightAura', sans-serif; z-index: 4; user-select: none; text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #scoreLabel { top: 170px; left: calc(50% - 180px); } #timerLabel { top: 200px; left: calc(50% - 180px); } #equation { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); font-size: 60px; font-weight: 800; color: #58ccfe; z-index: 4; user-select: none; white-space: nowrap; /* verhindert Umbruch */ max-width: 90vw; /* maximale Breite auf 90% der Viewport-Breite */ overflow: hidden; /* optional: versteckt Überlauf */ text-overflow: ellipsis; /* optional: zeigt „…“ bei extrem langen Gleichungen */ text-align: center; /* zentriert Text im Element */ text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #startScreen, #endScreen { position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); top: 0; left: 0; z-index: 10; display: flex; align-items: center; justify-content: center; flex-direction: column; } #startButton, #retryButton { font-size: 32px; font-family: 'BrightAura', sans-serif; font-weight: bold; padding: 15px 40px; border: none; border-radius: 10px; cursor: pointer; background: white; color: #00aaff; margin-top: 20px; } #endScreen { display: none; } #finalScore { font-size: 30px; /* vorher 50px */ font-weight: bold; color: white; text-align: center; /* zentriert */ white-space: pre-line; /* Zeilenumbrüche respektieren, falls du \n im Text hast */ text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #highscoreButton { position: fixed; bottom: 15px; right: 15px; font-family: 'BrightAura', sans-serif; border: 5px solid #333; /* behalten */ font-size: 13px; padding: 5px 12px; border-radius: 12px; background: white; color: #00aaff; cursor: pointer; z-index: 20; } #highscoreOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 30; } #highscoreBox { background: white; border: 6px solid #333; border-radius: 20px; padding: 30px; width: calc(100% - 10px); /* 30px links + 30px rechts Abstand */ max-width: 350px; height: 500px; text-align: center; font-family: 'BrightAura', sans-serif; display: flex; flex-direction: column; box-sizing: border-box; /* wichtig, damit padding berücksichtigt wird */ justify-content: space-between; /* Platz zwischen Liste und Button */ } #highscoreList { flex: 1; overflow-y: auto; text-align: left; margin-bottom: 20px; font-size: 14px; /* <- Hier Schriftgröße anpassen, z. B. 14px */ } #highscoreList div { padding: 2px 0; } #highscoreBox button { font-family: 'BrightAura', sans-serif; font-size: 20px; padding: 10px 30px; border: none; border-radius: 7px; background: #00aaff; color: white; cursor: pointer; align-self: center; /* zentriert den Button horizontal */ margin-top: auto; /* schiebt den Button an das untere Ende */ } #highscoreTitle { font-size: 30px; margin-bottom: 30px; text-align: center; /* optional, damit es schön mittig ist */ } #homeButton, #infoButton { position: fixed; bottom: 15px; font-family: 'BrightAura', sans-serif; border: 5px solid #333; font-size: 13px; padding: 5px 12px; border-radius: 12px; background: white; color: #00aaff; cursor: pointer; z-index: 20; } #homeButton { left: 15px; } #infoButton { left: 100px; /* Abstand vom linken Rand — kannst du anpassen */ } .enemy { position: absolute; width: 25px; height: 25px; background: url('enemy1.png') no-repeat center center / contain; border: none; /* Rand entfernen, da er sonst oft stört bei Bildern */ border-radius: 0; /* Falls du keine abgerundeten Ecken willst */ z-index: 3; display: none; } #coin { position: absolute; width: 15px; height: 15px; background: gold; border: 5px solid #333; border-radius: 50%; z-index: 3; display: none; } #bftcoin { position: absolute; width: 40px; /* Größe nach Wunsch anpassen */ height: 40px; background: url('bftButton.png') no-repeat center center / contain; border: none; /* optional: kein Rand */ border-radius: 50%; /* optional: falls du den Kreislook willst */ z-index: 3; display: none; } @media (max-width: 730px) { body { margin: 0; overflow: hidden; background: url('scene03bg.png') no-repeat center center / cover, #000; font-family: 'BrightAura', sans-serif; } #logoImage { position: absolute; top: 80px; left: 50%; transform: translateX(65%) translateX(-50%); width: 150px; z-index: 5; } #game { position: relative; width: 100vw; height: 100vh; } #whiteCircle { position: absolute; background: white; border-radius: 50%; width: 350px; height: 350px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; } #dangerBar { position: absolute; width: 100px; height: 20px; background: #00aaff; border-radius: 1px; z-index: 1; } #centerDot { position: absolute; background: #00aaff; border-radius: 50%; width: 95px; height: 95px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; } #character { position: absolute; width: 40px; /* z. B. Breite deines Bildes, kannst du anpassen */ height: 40px; /* Höhe anpassen, oder "auto" wenn du das Seitenverhältnis behalten willst */ background: url('char0FlyFreeDuck.png') no-repeat center center / contain; transform: translate(-50%, -50%) rotate(0deg); z-index: 3; } #skyImage { position: absolute; left: 51%; top: 52.5%; transform: translate(-50%, -50%); width: 100%; height: 62vh; object-fit: cover; z-index: 1; } .taskBox { position: absolute; font-size: 15px; font-weight: bold; color: #111; background: white; padding: 4px 8px; border-radius: 5px; transform: translate(-50%, -50%); z-index: 3; display: none; } #score { position: absolute; top: 170px; left: calc(50% - 60px); /* 100px nach links von der Mitte */ transform: translateX(-50%); font-size: 25px; font-weight: 800; color: #58ccfe; z-index: 4; user-select: none; text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #timer { position: absolute; top: 200px; left: calc(50% - 10px); transform: translateX(-50%); font-size: 25px; font-weight: 800; color: #58ccfe; z-index: 4; user-select: none; text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #scoreLabel, #timerLabel { position: absolute; font-size: 25px; font-weight: 800; color: #58ccfe; font-family: 'BrightAura', sans-serif; z-index: 4; user-select: none; text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #scoreLabel { top: 170px; left: calc(50% - 180px); } #timerLabel { top: 200px; left: calc(50% - 180px); } #equation { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); font-size: 60px; font-weight: 800; color: #58ccfe; z-index: 4; user-select: none; white-space: nowrap; /* verhindert Umbruch */ max-width: 90vw; /* maximale Breite auf 90% der Viewport-Breite */ overflow: hidden; /* optional: versteckt Überlauf */ text-overflow: ellipsis; /* optional: zeigt „…“ bei extrem langen Gleichungen */ text-align: center; /* zentriert Text im Element */ text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #startScreen, #endScreen { position: absolute; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); top: 0; left: 0; z-index: 10; display: flex; align-items: center; justify-content: center; flex-direction: column; } #startButton, #retryButton { font-size: 32px; font-family: 'BrightAura', sans-serif; font-weight: bold; padding: 15px 40px; border: none; border-radius: 10px; cursor: pointer; background: white; color: #00aaff; margin-top: 20px; } #endScreen { display: none; } #finalScore { font-size: 30px; /* vorher 50px */ font-weight: bold; color: white; text-align: center; /* zentriert */ white-space: pre-line; /* Zeilenumbrüche respektieren, falls du \n im Text hast */ text-shadow: -3px -3px 0 #333, 3px -3px 0 #333, -3px 3px 0 #333, 3px 3px 0 #333, -3px 0px 0 #333, 3px 0px 0 #333, 0px -3px 0 #333, 0px 3px 0 #333, -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333; } #highscoreButton { position: fixed; bottom: 15px; right: 15px; font-family: 'BrightAura', sans-serif; border: 5px solid #333; /* behalten */ font-size: 13px; padding: 5px 12px; border-radius: 12px; background: white; color: #00aaff; cursor: pointer; z-index: 20; } #highscoreOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 30; } #highscoreBox { background: white; border: 6px solid #333; border-radius: 20px; padding: 30px; width: calc(100% - 10px); /* 30px links + 30px rechts Abstand */ max-width: 350px; text-align: center; font-family: 'BrightAura', sans-serif; display: flex; flex-direction: column; box-sizing: border-box; /* wichtig, damit padding berücksichtigt wird */ justify-content: space-between; /* Platz zwischen Liste und Button */ height: 450px; overflow-y: auto; /* Scrollbar, wenn nötig */ } #highscoreList { flex: 1; overflow-y: auto; text-align: left; margin-bottom: 20px; font-size: 14px; /* <- Hier Schriftgröße anpassen, z. B. 14px */ } #highscoreList div { padding: 2px 0; } #highscoreBox button { font-family: 'BrightAura', sans-serif; font-size: 20px; padding: 10px 30px; border: none; border-radius: 7px; background: #00aaff; color: white; cursor: pointer; align-self: center; /* zentriert den Button horizontal */ margin-top: auto; /* schiebt den Button an das untere Ende */ } #highscoreTitle { font-size: 30px; margin-bottom: 30px; text-align: center; /* optional, damit es schön mittig ist */ } #homeButton, #infoButton { position: fixed; bottom: 15px; font-family: 'BrightAura', sans-serif; border: 5px solid #333; font-size: 13px; padding: 5px 12px; border-radius: 12px; background: white; color: #00aaff; cursor: pointer; z-index: 20; } #homeButton { left: 15px; } #infoButton { left: 100px; /* Abstand vom linken Rand — kannst du anpassen */ } .enemy { position: absolute; width: 25px; height: 25px; background: url('enemy1.png') no-repeat center center / contain; border: none; /* Rand entfernen, da er sonst oft stört bei Bildern */ border-radius: 0; /* Falls du keine abgerundeten Ecken willst */ z-index: 3; display: none; } #coin { position: absolute; width: 15px; height: 15px; background: gold; border: 5px solid #333; border-radius: 50%; z-index: 3; display: none; } #bftcoin { position: absolute; width: 40px; /* Größe nach Wunsch anpassen */ height: 40px; background: url('bftButton.png') no-repeat center center / contain; border: none; /* optional: kein Rand */ border-radius: 50%; /* optional: falls du den Kreislook willst */ z-index: 3; display: none; } .frame-box { display:none; } }