@font-face {
    font-family: Poppins;
    src: url(../web/fonts/Poppins.ttf);
}

@font-face {
    font-family: Poppins-Light;
    src: url(../web/fonts/Poppins-Light.ttf);
}

:root {
--color-primary: #DBB10D;
}

html,
body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    user-select: none;
    background-color: transparent !important;
}

/*    HUD     */

#container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100vw;
    height: 100%;
    overflow: hidden;
}

.status-zone {
    position: absolute;
    bottom: 0.5;
    display: flex;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    width: 30rem;
    height: 4.0rem;
    gap: 1.5rem;
    overflow: hidden;
}

.square {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-primary);
    font-size: 0.8rem;
    transform: rotateY(0deg) rotate(45deg);
    transition: display 0.8s ease-in-out;
    overflow: hidden;
}

.interior-square {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    background: radial-gradient(circle, rgb(49, 48, 48) 0%, #242425 64%);
}

.status {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 3.5rem;
    background: radial-gradient(circle, rgb(49, 48, 48) 0%, #242425 64%);
    font-size: 1.0vw;
    --status: -100%;
    transform: rotate(45deg) translateX(calc(var(--status) * 1));
    transition: transform 0.85s ease-in-out;
}

i {
    position: absolute;
    transform: rotate(-45deg);
    color: var(--color-primary);
}


/*    SPEEDOMETER     */

.vehicle-zone {
    position: absolute;
    bottom: 0.5vw;
    right: 1vw;
    display: flex;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    width: 18vw;
    height: 8.5vw;
    overflow: hidden;
}

.vehicle-section {
    display: flex;
    align-items: center;
    justify-items: center;
    align-content: center;
    color: var(--color-primary);
    justify-content: center;
    width: 18vw;
    height: 7vw;
}

.speedometer-section {
    display: flex;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-content: center;
    width: 18vw;
    height: 1.5vw;
}


.vehicle-health-section {
    display: flex;
    align-items: center;
    justify-items: center;
    align-content: center;
    flex-direction: column;
    justify-content: flex-end;
    width: 9vw;
    height: 7vw;
}

.vehicle-gear-section {
    display: flex;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-content: flex-end;
    flex-direction: column;
    width: 2vw;
    height: 7vw;
    font-weight: 800;
    font-family: Poppins;
    font-size: 1.3vw;

}

.belt {
    display: none;
    position: absolute;
    top: 50%;
    left: 60%;
    height: 3vw;
    width: 3vw;
    font-size: 0.8vw;
    background-image: url(../web/icons/seatbelt.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: blinking 1.2s infinite; 
    transition: opacity 0.5s ease;
}

@keyframes blinking {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }


.vehicle-speed-section {
    display: flex;
    align-items: flex-end;
    justify-items: flex-end;
    align-content: flex-end;
    justify-content: center;
    width: 6.5vw;
    height: 9vw;
    font-family: Poppins;
    font-weight: 800;
    font-size: 3.5vw;
}

.vehicle-speed-section {
    display: flex;
    align-items: flex-end;
    justify-items: flex-end;
    align-content: flex-end;
    justify-content: center;
    width: 6.5vw;
    height: 9vw;
    font-family: Poppins;
    font-weight: 800;
    font-size: 3.5vw;
}

.bar-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8.5vw;
    height: 0.6vw;
    font-family: Poppins;
    font-size: 3.5vw;
    gap: 0.1vw;
}

.area-bar {
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    background: radial-gradient(circle, rgb(49, 48, 48) 0%, #242425 64%);
    justify-content: flex-start;
    width: 8vw;
    border-radius: 0.2vw;
    height: 0.4vw;
    font-family: Poppins;
    font-size: 3.5vw;
}

#engine-health {
    display: flex;
    background-color: var(--color-primary);
    justify-content: center;
    width: 0vw;
    border-radius: 0.2vw;
    height: 0.4vw;
    transition: width 0.3s ease-in-out;

}

#fuel-value {
    display: flex;
    background-color: var(--color-primary);
    justify-content: center;
    width: 8vw;
    border-radius: 0.2vw;
    height: 0.4vw;
}

#engine-bar {
    width: 7vw;
    margin-left: 1.8vw;
}

.fa-engine-warning,
.fa-engine,
.fa-gas-pump {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8vw;
    width: 1vw;
    height: 0.9vw;
}

.speedometer-bar {
    display: flex;
    background: radial-gradient(circle, rgb(49, 48, 48) 0%, #242425 64%);
    justify-content: flex-start;
    width: 18vw;
    border-radius: 0.3vw;
    height: 1vw;
    font-family: Poppins;
}

#speedometer {
    display: flex;
    width: 18vw;
    height: 1vw;
    border-radius: 0.3vw;
    background-color: var(--color-primary);

}

/*    MINIMAP     */

.minimap-zone {
    position: absolute;
    display: none;
    background: radial-gradient(circle, rgba(49, 48, 48, 0.086) 0%, #24242580 64%);
    border-radius: 0.2vw;
    border-width: 0.2vw;
    border-style: solid;
    border-color: var(--color-primary);
    width: 17.2rem;
    height: 12rem;
    left: 100%;
}


/*   MENU    */


.hud-zone {
    display: none;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    background: radial-gradient(circle, rgb(49, 48, 48) 0%, #242425 64%);
    border-radius: 0.2vw;
    border-width: 0.2vw;
    border-style: solid;
    border-color: var(--color-primary);
    width: 25vw;
    height: 40vw;
    font-size: 1.2vw;
    font-family: Poppins;
    color: white;
    padding: 1vw;
    overflow-y: scroll;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 0.3vw;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 1vw;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }

.hud-options {
    display: flex;
    justify-content: flex-start;
    justify-items: center;
    align-items: center;
    width: 23vw;
    height: auto;
    flex-direction: column;
    gap: 0.5vw;
}

.hud-thing {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    width: 23vw;
    height: 3vw;
    gap: 1vw;
}

.section-hud-name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6vw;
    height: 2vw;
    border-color: var(--color-primary);
    border-left-style:solid;
    border-right-style:solid;
    border-width: 0.1vw;
    font-size: 1.0vw;
}

.hud-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20vw;
    height: 2vw;
}

.hud-text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2vw;
    height: 2vw;
    font-size: 0.8vw;
    background: radial-gradient(circle, rgb(49, 48, 48) 0%, #242425 64%);
    border-radius: 0.2vw;
    border-width: 0.1vw;
    border-style: solid;
    border-color: var(--color-primary);
    transform: rotate(45deg);
}

.hud-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20vw;
    height: 2vw;
    color: white;
    font-size: 0.8vw;
    border-width: 0.1vw;
    border-bottom-style: solid;
    border-bottom-color: var(--color-primary);
}

.hud-description {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24vw;
    height: 1vw;
    font-size: 0.5vw;
}

.hud-speedometer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4vw;
    height: 2vw;
    font-size: 0.85vw;
    background: radial-gradient(circle, rgb(49, 48, 48) 0%, #242425 64%);
    border-width: 0.1vw;
    border-bottom-style: solid;
    border-bottom-color: var(--color-primary);
}

.form-check-input,
.form-switch,
.form-check  {
    font-size: 1.2vw;
}


input[type="checkbox"] {
    outline: none;
    box-shadow: none;
    border-style: none;
    color: var(--color-primary);
}

input[type="checkbox"]:checked {
    outline: none;
    box-shadow: none;
    border-style: none;
    background-color: var(--color-primary);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
    color: var(--color-primary);


}


.radar-size {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15vw;
    height: 3vw;
    gap: 0.3vw;
}

#input-radar-height,
#input-radar-width {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.8vw;
    color: white;
    background: radial-gradient(circle, rgb(49, 48, 48) 0%, #242425 64%);
    width: 4vw;
    height: 3vw;
    outline: none;
    appearance: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-width: 0.1vw;
    border-bottom-color: var(--color-primary);
}

.radar-size-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 15vw;
    height: 3vw;
    gap: 1vw;
}
#reset-size:hover {
    padding: 1vw;
}
#done-size:hover {
    padding: 1vw;
}
::placeholder {
color: white;
}


.pallet-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18vw;
    height: 4vw;
    gap: 1vw;
}

.color-option {
    display: flex;
    width: 2vw;
    height: 2vw;
    font-size: 0.8vw;
    border-radius: 0.2vw;
    border-width: 0.1vw;
    border-style: solid;
    border-color: #ffffff;
    transform: rotate(45deg);
}

#color-1 {
background-color: #940e0e;
}
#color-2 {
background-color: #DBB10D;
}

#color-3 {
background-color: #17720e;
}

#color-4 {
background-color: #1a1285;
}

#color-5 {
background-color: #811373;
}

#color-6 {
background-color: #ffffff;
}