* { margin: 0; padding: 0; box-sizing: border-box; } :root { --icon-size: 18px; } @font-face { font-family: digital; src: url("../fonts/digital-7.ttf"); } body { height: 100vh; display: none; align-items: center; justify-content: center; overflow: hidden; color: white; } .status-container { position: absolute; bottom: 1%; left: 1%; } .bx { color: white; /* optional: style the icon */ font-size: var(--icon-size); } .player-container { display: flex; align-items: center; /* justify-content: center; */ height: 55px; min-width: 325px; direction: ltr; /* background-color: rgba(0, 0, 0, 0.2); */ padding: 5px; user-select: none; } .player-status-circle { position: relative; width: 37.5px; height: 37.5px; border-radius: 50%; display: flex; justify-content: center; align-items: center; overflow: hidden; margin: 5px; border: 1px solid rgba(255, 255, 255, 0.35); } .status-progress-bar { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(60, 60, 60, 0.35); } .status-progress { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #2ecc71; transition: width 0.2s ease-out, background-color 0.2s ease-out; /* Animation on width change */ } .player-status-icon { border: none; outline: none; position: relative; z-index: 1; color: white; } .stamina .player-status-icon { margin-bottom: 3px; } .voiceColor { background-color: rgb(195, 195, 195); } .healthColor { background: #5db411; } .armorColor { background: #00b3ff; } .hungerColor { background: orange; } .thirstColor { background: #47a8d4; } .stressColor { background: rgb(190, 0, 0); } .staminaColor { background: #88bace; } .fuelColor { background: #9ca73b; } .harnessColor { background: #7f3ba7; } .nitrousColor { background: #eb32ad; } .purgeColor { background: #ebba32; } .diseaseColor { background: #239215; } .inVehicle { display: none; } .vehicle-rpm { margin-top: 3px; width: 100px; height: 3px; background: #ffbd00; transition: width 0.2s ease-out; } .vehicle-speedometer { /* display: block; */ user-select: none; position: absolute; bottom: 2%; height: 70px; width: 17%; padding: 10px; background-color: rgba(0, 0, 0, 0.2); /* border: 1px solid rgba(255, 255, 255, 0.2); */ text-shadow: 0px 0px 2px black; border-radius: 5px; } .vehicle-speedometer-body { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; height: fit-content; } .vehicle-column-fuel { position: absolute; left: 1%; } .fuelSpeedometer { font-family: digital; font-size: 30px; margin: 5px; } .fuelSpeedometerText { color: #ffbd00; font-family: digital; font-size: 16px; } .speed { font-family: digital; font-size: 45px; margin: 5px; } .mph { color: #ffbd00; font-family: digital; font-size: 25px; } .seatbelt { color: rgba(255, 255, 255, 0.5); font-size: 20px; text-transform: uppercase; position: absolute; right: 1%; } .seatbelt img { opacity: 1; height: 2.5vh; } .streetnames { display: flex; top: 3%; width: auto; position: absolute; } .streetname { font-family: Rubik, sans-serif; font-size: 14px; margin: 5px; padding: 7px; color: white; background-color: rgba(0, 0, 0, 0.35); border-radius: 10px; user-select: none; height: 30px; width: auto; border: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; } .streetnameIcon { color: #ffbd00; font-size: 16px; margin-right: 5px; text-shadow: 1px 1px rgba(0, 0, 0, 0.5); } .financial-status { font-family: Oswald, sans-serif; width: auto; height: auto; position: absolute; top: 10%; right: 1%; } .money { font-size: 40px; text-align: end; color: green; text-shadow: 2px 2px #000; } .add { color: green; text-align: end; font-size: 30px; text-shadow: 2px 2px #000; } .remove { color: red; text-align: end; font-size: 30px; text-shadow: 2px 2px #000; } .slide-in { animation: slide-in 0.3s ease-in-out forwards; } .slide-out { animation: slide-out 0.3s ease-in-out forwards; } @keyframes slide-in { from { opacity: 0; transform: translateY(20%); } to { opacity: 1; transform: translateY(0); } } @keyframes slide-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20%); } } /* Logo */ .hud-logo { width: 75px; height: 75px; display: flex; justify-content: center; align-items: center; top: 0.2%; right: 0.1%; /* background-color: red; */ user-select: none; } .player-bank { font-family: Oswald, sans-serif; font-size: 11px; font-weight: 500; color: rgb(245, 245, 245); text-transform: none; } .player-cash { font-family: Oswald, sans-serif; font-size: 11px; font-weight: 500; color: rgb(245, 245, 245); text-transform: none; } .notification-container { font-family: Rubik, sans-serif; position: absolute; left: 1%; padding: 5px; color: rgb(250, 250, 250); font-size: 12px; } .notification-body { display: flex; align-items: center; width: 320px; background-color: rgba(0, 0, 0, 0.2); padding: 14px; text-shadow: 1px 1px rgba(0, 0, 0, 0.5); border-radius: 10px; animation: slide-in 0.3s ease-in-out forwards; margin-bottom: 5px; user-select: none; } .notification-container.slide-out { animation: slide-out 0.3s ease-in-out forwards; } .notification-title { font-size: 14px; color: white; font-weight: 500; } .notification-body i { margin-right: 10px; font-size: 16px; } .notification-body.inform { background-color: rgba(202, 17, 140, 0.2); } .notification-body.inform i { color: #ffbd00; } .notification-body.error { background-color: rgba(192, 18, 18, 0.2); } .notification-body.error i { color: rgb(211, 57, 57); } .notification-body.success { background-color: rgba(66, 167, 52, 0.2); } .notification-body.success i { color: rgb(71, 223, 51);; } .blackbars { display: none; width: 100%; height: 100%; } .bars-up { top: 0%; width: 100%; background-color: black; position: absolute; height: 10vh; z-index: 999; } .bars-down { bottom: 0%; width: 100%; background-color: black; position: absolute; height: 10vh; z-index: 999; }