@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap"); * { margin: 0; padding: 0; font-family: 'Poppins', sans-serif; } :root { --main-400-hsl: #48ff00; --main-400: #48ff00; } .hud { position: absolute; display: flex; align-items: center; bottom: 1%; /* Ustawiamy na dole ekranu */ left: 50%; /* Wyśrodkowanie poziome */ transform: translateX(-50%); padding: 1.2vh 1.75vh; background-color: rgba(15, 15, 15, 0.85); color: white; border-radius: 0.7vh; gap: 2.4vh; position: absolute; /* tylko raz */ overflow: hidden; box-sizing: border-box; /* ważne przy padding */ max-width: fit-content; /* żeby nie rozciągało na całą szerokość */ width: auto; /* dostosuj szerokość do zawartości */ } .hud::before, .hud::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; border-radius: 0 0 100% 0 / 0 0 100% 0; filter: blur(12px); background: rgba(21, 255, 0, 0.677); z-index: 10; animation: shadowFade 6s ease-in-out infinite; opacity: 0; } .hud::before { top: 0; left: 0; } .hud::after { bottom: 0; right: 0; border-radius: 100% 0 0 100% / 100% 0 0 100%; } @keyframes shadowFade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } .hud i { font-size: 1.7vh; } #heart { margin-left: -0.2vh; background: linear-gradient(to right, var(--main-400) 0%, var(--main-400) 0%); -webkit-background-clip: text; background-clip: text; color: transparent; } #armour { margin-left: -0.2vh; background: linear-gradient(to right, var(--main-400) 0%, var(--main-400) 0%); -webkit-background-clip: text; background-clip: text; color: transparent; } #microphone { margin-left: -0.2vh; background: linear-gradient(to right, var(--main-400) 0%, var(--main-400) 0%); -webkit-background-clip: text; background-clip: text; color: transparent; } /* CARHUD */ .carhud { position: fixed; /* fixed, żeby było na dole ekranu zawsze */ bottom: 6%; /* 6% od dołu */ right: 1%; /* 1% od prawej */ display: flex; align-items: center; padding: 0.8vh 1.3vh; font-size: 1.5vh; background-color: rgba(15, 15, 15, 0.85); color: white; font-weight: 500; border-radius: 0.7vh; gap: 1vh; max-width: 320px; /* maksymalna szerokość */ width: auto; /* szerokość dopasowana */ overflow: hidden; transform: none; /* wyłącz transformacje */ z-index: 1000; /* na wierzchu */ } .carhud::before, .carhud::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; border-radius: 0 0 100% 0 / 0 0 100% 0; filter: blur(12px); background: rgba(21, 255, 0, 0.677); z-index: 10; animation: shadowFade 6s ease-in-out infinite; opacity: 0; } .carhud::before { top: 0; left: 0; } .carhud::after { bottom: 0; right: 0; border-radius: 100% 0 0 100% / 100% 0 0 100%; } @keyframes shadowFade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } .carhud i { font-size: 1.7vh; color: var(--main-400); margin-right: -0.35vh; margin-left: -0.5vh; }