@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
}

.hud {
    position: absolute;
    bottom: 1%;
    left: 20%;
    display: flex;
    flex-direction: row; 
    gap: 0.5rem; 
}

.status {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45px; 
}

.bar-container {
    width: 55px;   
    height: 45px;          
    background-color: #a7a7a75e;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
}

.bar-container i {
    position: absolute;
    color: rgb(12, 12, 12);
    font-size: 0.9rem;
    z-index: 2;
    pointer-events: none;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
}

.bar-wrapper {
    width: 100%;
    height: 100%;
    transform: rotate(-20deg);
    transform-origin: bottom left;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.bar {
    width: 100%;
    height: 0%; 
    background-color: #fdc51c;
    border-radius: 8px;
    transition: height 0.3s ease;
    position: relative;
    z-index: 1;
}

#hunger-bar {
    background-color: rgb(238, 188, 52);
}
#thirst-bar {
    background-color: rgb(238, 188, 52);
}
#health-bar {
    background-color: rgb(238, 188, 52);
}
#armour-bar {
    background-color: rgb(238, 188, 52);
}
#voice-bar {
    background-color: rgb(238, 188, 52);
}

.fuel-container {
    position: absolute;
    bottom: 2%; 
    left: -4%;
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 10px; 
}

.fuel-line {
    width: 80px;
    height: 5px;
    background-color: #a7a7a75e;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.fuel-fill {
    height: 100%;
    width: 55%;
    background-color: rgb(238, 188, 52);
    transition: width 0.3s ease-in-out;
}

.fuel-text {
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

.fuel-icon {
    font-size: 0.7rem;
    color: rgb(214, 214, 214);
}



.icon {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    pointer-events: none; 
}

.speedometer-container {
    position: absolute;
    bottom: 5%;
    right: 6%;
    font-family: "Montserrat", sans-serif;
    font-weight: 200;
    font-style: italic;
    font-size: 4.5rem;
    color: white;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 10px; 
}

.speedometer {
    display: flex;
    gap: 0.1rem;
    align-items: center;
}

.speed-color {
    color: white;
}

.speed-color.gray {
    color: gray;
}

.location-display {
    font-family: "Montserrat", sans-serif;
    font-weight: 200;
    position: absolute;
    bottom: 7%;
    left: 20%; 
    color: white;
    font-size: 1.2rem;
    text-align: left;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 0; 
}

.location-text-container,
.location-description-container {
    display: flex;
    align-items: center;
    gap: 0; 
}

#location-text {
    font-size: 1.3rem; 
    font-weight: 400;
}

#location-icon {
    font-size: 1.5rem; 
    margin-right: 5px; 
}

#location-description {
    font-size: 1rem; 
    color: #ccc; 
}

#description-icon {
    font-size: 1rem; 
    margin-right: 5px; 
}

.status-indicators {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-left: 170px;
    margin-top: -75px;
}

.indicator-box {
    width: 35px;
    height: 40px;
    background-color: #a7a7a75e;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative; 
}

.indicator-box i {
    position: absolute;
    color: rgb(12, 12, 12);
    font-size: 0.75rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.seatbelt-fill {
    width: 100%;
    height: 0%;
    background-color: rgb(238, 188, 52);
    transition: height 0.3s ease;
}

.engine-fill {
    width: 100%;
    height: 100%;
    background-color: rgb(238, 188, 52);
    transition: height 0.3s ease, background-color 0.3s ease;
}

