@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap");

/* ==================== */
/* VARIABLES */
/* ==================== */
:root {
  --primaryColor: #ff004e;
  --primary2Color: #ff004e;
  --secondaryColor: #121412;
  --height: 5vh;
}

/* ==================== */
/* BASE STYLES */
/* ==================== */
body {
  margin: 0;
  overflow: hidden;
  user-select: none;
  display: none;
}

/* ==================== */
/* MAIN HUD CONTAINER */
/* ==================== */
#hud_container {
  position: absolute;
  bottom: 1vh;
  right: 1vh;
}

/* ==================== */
/* CAR HUD */
/* ==================== */
#carhud {
  display: none;
  position: relative;
  height: var(--height);
  font-family: "Montserrat", sans-serif;
  color: white;
  width: auto;
}

#carhud_content {
  position: absolute;
  right: 1%;
  height: 100%;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 1vh;
}

#speedometer {
  background-color: #121412;
  border-radius: 0.60rem;
  height: 100%;
  margin-bottom: 1vh;
  padding: 0 0.5vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#speedometer_display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70%;
  aspect-ratio: 2.2;
  border: 1px solid #2f322d;
  border-radius: 0.25rem;
  background-color: transparent;
  padding: 0 1vh;
  box-sizing: border-box;
  margin-right: 0.5vh;
}

#speedometer_content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5vh;
  height: 100%;
  width: 100%;
}

#speedometer_label {
  font-size: 1.2vh;
  font-weight: 800;
  margin-top: 0.2vh;
  margin-left: 0.5vh;
  background: linear-gradient(0deg, #ff004e 0%, #ff004e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#speedometer_value {
  color: var(--primaryColor);
  font-size: 1.5vh;
  color: #fff;
  font-weight: 800;
}

#carhud_icons {
  margin-bottom: 1vh;
  background-color: #121412;
  border-radius: 0.60rem;
  display: inline-flex;
  align-items: center;
  padding: 0 1vh;
  height: 100%;
  gap: 0.5vh;
  max-width: 100%;
}

.white-label {
  color: white;
  font-weight: 800;
  margin-right: 0.5vh;
}

.gray-zeros {
  color: gray;
  font-weight: 800;
}

.gradient-numbers {
  background: linear-gradient(0deg, #ff004e 0%, #ff004e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

#carhud_icons .location {
  padding: 0 1vh;
  height: 70%;
  display: flex;
  align-items: center;
  border: 1px solid #2f322d;
  border-radius: 0.25rem;
  background-color: transparent;
  font-size: 1.5vh;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location {
  font-size: 1.5vh;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== */
/* MAIN HUD ELEMENTS */
/* ==================== */
#hud {
  background-color: #121412;
  border-radius: 0.60rem;
  width: auto;
  height: var(--height);
  padding: 0 0.5vh;
  display: inline-flex;
  flex-direction: row;
  justify-content: space-evenly;
  box-sizing: border-box;
}

.iconBox {
  position: relative;
  height: 100%;
  aspect-ratio: 0.9;
  box-sizing: border-box;
}

.icon {
  position: absolute;
  height: 70%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #2f322d;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconShape {
  font-size: 1.8vh;
  color: rgb(110, 110, 110);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.iconValue {
  background-image: linear-gradient(0deg, #ff004e 0%, #ff004e 100%);
  background-size: 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

#time {
  height: 70%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.9vh 0 0.3vh;
  margin-left: 0.3vh;
  margin-right: 0.5vh;
  border: 1px solid #2f322d;
  border-radius: 0.25rem;
  background-color: transparent;
  box-sizing: border-box;
  align-self: center;
}

#timeBox {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#timeValue {
  margin-bottom: 3%;
  font-size: 1.7vh;
  line-height: 100%;
  color: white;
  font-family: "Montserrat", sans-serif;
}

/* ==================== */
/* CINEMA MODE */
/* ==================== */
#cinema_container {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
}

#cinema_up {
  position: absolute;
  top: 0;
  width: 100%;
  height: 10vh;
  background-color: #000;
}

#cinema_down {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 10vh;
  background-color: #000;
}

/* ==================== */
/* WATERMARK */
/* ==================== */
#watermark {
  display: block;
  position: absolute;
  top: 1%;
  right: 1%;
  font-family: "Montserrat", sans-serif;
  color: white;
}

#watermark-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1vh;
}

#watermark-text {
  display: flex;
  flex-direction: column;
  gap: 0.4vh;
}

#main-id,
#server-id {
  font-size: 1.35vh;
  font-weight: 800;
  white-space: nowrap;
  background-color: #121412;
  padding: 0.55vh 1.2vh;
  border-radius: 0.30rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#play-logo {
  padding: 1vh 1.1vh;
  border-radius: 0.30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  line-height: 0;
}

#play-logo img {
  height: 5vh;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}

#wl-status {
  color: rgb(148, 148, 148, 0.8);
  font-weight: bold;
  font-size: 1.3vh;
  margin-top: 1vh;
}

/* ==================== */
/* NOTIFICATIONS */
/* ==================== */
#notifications-wrapper {
  position: fixed;
  top: 1vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1vh;
  align-items: center;
  pointer-events: none;
}

.notification {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5vh 2vh;
  font-family: "Montserrat", sans-serif;
  color: white;
  position: relative;
  animation: show-up 0.3s ease-out forwards;
  background-color: #121412;
  border-radius: 0.20rem;
  max-width: 40vh;
  width: fit-content;
}

.notification-icon {
  font-size: 2.2vh;
  margin-right: 1.5vh;
  background: linear-gradient(0deg, #ff004e 0%, #ff004e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notification-desc {
  font-size: 1.5vh;
  font-weight: 600;
  line-height: 1.6vh;
  word-break: break-word;
  flex-grow: 1;
}

.notify-circle {
  position: absolute;
  top: 0.6vh;
  right: 0.6vh;
  width: 1.4vh;
  height: 1.4vh;
  border-radius: 50%;
  background: conic-gradient(#ff004e var(--angle, 360deg), transparent 0deg);
  mask: radial-gradient(farthest-side, transparent 66%, black 67%);
  -webkit-mask: radial-gradient(farthest-side, transparent 66%, black 67%);
}

/* ==================== */
/* PROGRESS BAR */
/* ==================== */
#progress-bar-wrapper {
  position: absolute;
  bottom: 18vh;
  left: 50%;
  transform: translateX(-50%);
  width: 20vh;
  background-color: #121412;
  border-radius: 0.60rem;
  padding: 0.9vh 1vh 0.6vh 1vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  z-index: 9999;
}

#progress-bar-text {
  color: white;
  font-size: 1.1vh;
  font-weight: 700;
  margin-bottom: 0.4vh;
  text-align: center;
}

#progress-bar-track {
  width: 95%;
  height: 0.3vh;
  border-top: 1vh;
  background-color: #535353;
  border-radius: 0.2vh;
  overflow: hidden;
}

#progress-bar-fill {
  width: 0%;
  height: 100%;
  background: #ff004e;
  border-radius: 0.2vh;
}

/* ==================== */
/* ANIMATIONS */
/* ==================== */
.right-slide-in {
  animation: right-slide-in 1s forwards;
  -webkit-animation: right-slide-in 1s forwards;
}

.right-slide-out {
  animation: right-slide-out 0.5s forwards;
  -webkit-animation: right-slide-out 0.5s forwards;
}

@keyframes right-slide-in {
  0% { transform: translateX(0%); }
  100% { transform: translateX(110%); }
}

@keyframes right-slide-out {
  0% { transform: translateX(110%); }
  100% { transform: translateX(0%); }
}

.show-up {
  animation: show-up 2.5s forwards;
  -webkit-animation: show-up 2.5s forwards;
}

.close-down {
  animation: close-down 2.5s forwards;
  -webkit-animation: close-down 2.5s forwards;
}

@keyframes show-up {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes close-down {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.watermark-out {
  animation: watermark-out 1s forwards;
}

.watermark-in {
  animation: watermark-in 1s forwards;
}

@keyframes watermark-out {
  0% { transform: translateX(0%); }
  100% { transform: translateX(150%); }
}

@keyframes watermark-in {
  0% { transform: translateX(150%); }
  100% { transform: translateX(0%); }
}

@keyframes notify-ring-drain {
  0% { background: conic-gradient(#ff004e 360deg, transparent 360deg); }
  100% { background: conic-gradient(#ff004e 0deg, transparent 0deg); }
}

@keyframes bell-drynda {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(30deg); }
  20%  { transform: rotate(-28deg); }
  30%  { transform: rotate(25deg); }
  40%  { transform: rotate(-22deg); }
  50%  { transform: rotate(18deg); }
  60%  { transform: rotate(-14deg); }
  70%  { transform: rotate(10deg); }
  80%  { transform: rotate(-6deg); }
  90%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

.notification-icon.drynda {
  animation: bell-drynda 1.2s ease-out;
  transform-origin: top center;
}