@font-face {
    font-family: bankgothic;
    src: url("./font/bankgothic.ttf");
}

body {
    overflow: hidden;
    display: block;
}

.container {
    position: absolute;
    top: 96.7%;
    left: -2.1%;
    width: 380px;
    min-width: 300px;
    max-width: 450px;
    display: inline-flex;
    justify-content: center;
    padding: 0.3vw 0.8vw;
    border-radius: 1vw;
    gap: 0.5vw;
    scale: 70%;
}

.container-bg {
    position: absolute;
    top: 78.7%;
    left: 1.65%;
    width: 265px;
    height: 245px;
    background: rgba(0,0,0,0.35);
    border-radius: 0.6vw;
    box-shadow: 0 0 18px 8px rgba(0,0,0,0.45);
    z-index: 0;
    pointer-events: none;
}

.container-bg.car {
    position: absolute;
    top: 76%;
    left: 1.65%;
    width: 265px;
    height: 255px;
    background: rgba(0,0,0,0.35);
    border-radius: 0.6vw;
    box-shadow: 0 0 18px 8px rgba(0,0,0,0.45);
    z-index: 0;
    pointer-events: none;
}

.hud {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 6px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.6);
}

.info {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.3vw;
    color: rgb(103, 199, 228);
}

.icon {
    font-size: 1vw;
    color: inherit;
    flex-shrink: 0;
}

.dentro {
    background-color: rgba(255,255,255,0.08);
    height: 0.6vw;
    border-radius: 25vw;
    width: 60px;
    min-width: 0px;
    max-width: 60px;
    margin-left: 0.1vw;
    margin-right: 0.1vw;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 6px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.6);
}

.fill {
    background-color: currentColor;
    height: 100%;
    width: 100%;
    border-radius: 25vw;
    transition: width .3s;
    position: absolute;
    left: 0;
    top: 0;
}

.money-container {
    position: absolute;
    top: 77.7%;
    left: -2%;
    width: 380px;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 1vw;
    padding: 0.3vw 0.8vw;
    scale: 70%;
    z-index: 10;
}

.money {
    display: flex;
    align-items: center;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 1.2vw;
    font-weight: bold;
    gap: 0.4vw;
    text-shadow: 0 0 6px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.6);
    margin-left: 0.5vw;
}

.money.efectivo {
    color: #7fffa3;
    margin-left: 1.6vw;
}
.money.banco {
    color: #e0e0e0;
    margin-right: 1.6vw;
}
.money.coins {
    color: #fcf96a;
}

.carhud-container {
    position: absolute;
    right: 0vw;
    bottom: 1.7vw;
    width: 180px;
    background: linear-gradient(to bottom, #1a1a30 0%, #3b3b6e 100%);
    border-radius: 0.7vw;
    border-style: solid;
    border-color: #3b3b6e;
    box-shadow: 0 0 8px 2px #1a1a30;
    padding: 0.4vw 0.7vw 0.7vw 0.2vw;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 0.7vw;
    margin-right: 2vw;
}

.speed-info {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    text-shadow: 0 0 6px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.6);
}

.carhud-speed {
    font-size: 1.7vw;
    width: 3.5vw;
    text-align: center;
    margin-left: -0.1vw;
}

.carhud-speedmark-fix {
    display: block;
    width: 100%;
    text-align: center;
}

.carhud-speedmark {
    font-size: 0.8vw;
    background-color: #1a1a30;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 2px;
    margin-left: auto;
    margin-right: auto;
}

.carhud-row {
    display: flex;
    align-items: center;
    gap: 0.7vw;
}

.carhud-label {
    color: #fff;
    width: 1.6vw;
    padding-left: 4%;
    text-align: center;
}

.carhud-bar-bg {
    background: rgba(255,255,255,0.08);
    border-radius: 0.7vw;
    width: 150px;
    height: 14px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.carhud-bar {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 0.7vw;
    transition: 100%;
}

.carhud-fuel {
    background-color: #2a9df4;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0%;
    height: 100%;
    max-width: 150px;
    max-height: 16px;
}

.carhud-bar-text {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    position: absolute;
    color: #fff;
    font-size: 0.90vw;
    z-index: 2;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.carhud-accel-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    width: 55px;
    gap: 0.2vw;
    margin-top: -0.6vw;
    margin-left: 0.6vw;
}

.carhud-accel-num {
    font-size: 1vw;
    color: #fff;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    font-size: 1.5vw;
    text-align: left;
    margin-bottom: 0.1vw;
    margin-left: -0.4vw;
}

.carhud-accel-bar-bg {
    position: relative;
    width: 80px;
    height: 5px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
    margin-bottom: 0.1vw;
}

.carhud-accel-bar-fill-bg {
    position: absolute;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    z-index: 1;
    height: 100%;
    width: 100%;
}

.carhud-accel-bar-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background: #e74c3c;
    border-radius: 6px;
    z-index: 2;
}

.carhud-icons-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35vw;
    margin-left: -0.5vw;
    margin-top: 0.3vw;
}

.carhud-icon {
    font-size: 0.8vw;
    color: #e0e0e0;
    opacity: 0.85;
    text-shadow: 0 0 6px rgba(0,0,0,0.7);
}

.carhud-icon.danger {
    color: #f1ff77;
    opacity: 0%;
}
.carhud-icon.lock {
    color: #ececec;
    opacity: 0%;
}
.carhud-icon.belt {
    color: #ff5e5e;
    opacity: 100%;
}

#hud-notification {
    position: fixed;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 2vw;
    color: #fff;
    text-shadow: 0 0 10px #000, 0 2px 8px #000;
    z-index: 9999;
    pointer-events: none;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    user-select: none;
}

.money-float {
    position: absolute;
    bottom: 100%;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 1.2vw;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.7s;
    z-index: 99;
    text-shadow: 0 0 6px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.6);
    white-space: nowrap;
}

.money-float {
    position: absolute;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 1.2vw;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    z-index: 99;
    text-shadow: 0 0 6px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.6);
    white-space: nowrap;
    transition: opacity 0.3s;
}

.money-float.gain { color: #fff; }
.money-float.loss { color: #fc6565; }

.ui {
    position: fixed;
    top: 78.96%;
    left: -3.4vw;
    transform: translateY(-50%);
    margin: 0;
    width: 460px;
    height: 300px;
    z-index: 1000;
    overflow: hidden;
    display: none;
    text-align: center;
    scale: 60%
}

.bar {
    margin: 0 auto;
    position: relative;
    font-weight:500;
    color:rgba(255,255,255, 1);
    font-family: 'Oswald', sans-serif;
}

.svg {
    display: block;
    width: 100%;
    height: 20px;
    font-size: 4pt;
    font-weight: 700;
    transform: scale(1.5);
    position: relative;
}

#center-mic {
    position: fixed;
    bottom: 1vh;
    --mic-left: 17.5%;
    left: var(--mic-left);
    transform: translateX(-50%);
    z-index: 99999;
    opacity: 0.98;
    color: #888;
    font-size: 1.7vw;
    pointer-events: none;
    display: block;
}

#center-mic.talking {
    position: fixed;
    bottom: -0.5vh;
    --mic-left: 17.5%;
    left: var(--mic-left);
    transform: translateX(-50%);
    z-index: 99999;
    opacity: 0.8;
    color: #4cff4c;
    font-size: 1.7vw;
    pointer-events: none;
    display: block;
    animation: mic-pulse 0.8s infinite;
}

@keyframes mic-pulse {
    0%   { transform: translate(-50%, -50%) scale(1); }
    50%  { transform: translate(-50%, -50%) scale(1.18); }
    100% { transform: translate(-50%, -50%) scale(1); }
}