body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #2b2b2b, #1f1f1f); /* Dark gradient background */
}

.initialize_ui {
  display: none; /* Hide initially */
  width: 100%;
  height: 100%;
  position: absolute;
  animation: fadeIn 1s ease-in-out; /* Fade-in animation */
}

.scoreboard_main {
  width: 30%;
  height: auto;
  position: absolute;
  top: 20%;
  right: 1%;
  transform: none;
}

.scoreboard_header {
  background-image: url("https://r2.fivemanage.com/Xl7w1f1oBZ5eKrExaRdJL/WALKTHROUGH_ANIMATION_1.gif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(0, 0, 0, 0.9);
  border-radius: 0.5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 5vw;
  padding: 0.5vw;
}

.online_users {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.8);
  font-weight: 800;
  font-style: italic;
  font-size: 1vw;
  padding: 0.5vw 2vw;
  border: 2px solid #ffffffe6;
  border-radius: 999px;
  text-shadow:
    -2px -2px 0 #000,  
     2px -2px 0 #000,  
    -2px  2px 0 #000,  
     2px  2px 0 #000,
     0 0 15px rgba(255, 255, 255, 0.8);
  margin: 2vw auto 0 auto;
  width: fit-content;
}

.msverde {
  text-shadow: 0 0 15px rgba(0, 255, 106, 0.8);
}

.white {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.msamarillo {
  text-shadow: 0 0 15px rgba(255, 230, 0, 0.8);
}

.msrojo {
  text-shadow: 0 0 15px rgba(255, 0, 43, 0.8);
}

.activities {
  max-height: 20vw;
  overflow-y: auto;
  padding: 1vw;
}

.activities-item {
  background-color: rgba(24, 24, 24, 0.8);
  padding: 1vw;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  border-radius: 0.5vw;
}

.activities-item .label, .activities-item .available {
  font-weight: 800;
  font-size: 1vw;
  color: #e0e0e0;
  margin-bottom: 0.5vw;
}

.activities-item .available {
  font-size: 0.9vw;
}

.jobs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-y: auto;
  margin-top: 2%;
  margin-bottom: 2%;
  gap: 0.5vw;
}

.jobs > div {
  background-color: rgba(24, 24, 24, 0.85);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 0.4vw;
  padding: 0.6vw;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 7vw;
  min-width: 80px;
  transition: transform 0.3s, background-color 0.3s;
}

.jobs > div:hover {
  transform: translateY(-3px);
  background-color: rgba(30, 30, 30, 0.9);
}

.jobs .jobs_color {
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.jobs_color .jobs-icon {
  margin-bottom: 0.3vw;
}

.jobs_color .jobs-icon img {
  width: 2vw;
  height: 2vw;
  object-fit: contain;
}

.jobs .number {
  font-weight: 800;
  font-size: 0.9vw;
  color: #fff;
  margin-top: 0.3vw;
}

.businesses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-y: auto;
  margin-top: 2%;
  margin-bottom: 2%;
  gap: 0.5vw;
}

.businesses > div {
  background-color: rgba(24, 24, 24, 0.85);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 0.4vw;
  padding: 0.6vw;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 7vw;
  min-width: 80px;
  transition: transform 0.3s, background-color 0.3s;
}

.businesses > div:hover {
  transform: translateY(-3px);
  background-color: rgba(30, 30, 30, 0.9);
}

.businesses .businesses_color {
  border-left: 3px solid rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.businesses_color .businesses-icon {
  margin-bottom: 0.3vw;
}

.businesses_color .businesses-icon img {
  width: 2vw;
  height: 2vw;
  object-fit: contain;
}

.businesses .number {
  font-weight: 800;
  font-size: 0.9vw;
  color: #fff;
  margin-top: 0.3vw;
}

.scoreboard-menu {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  gap: 1vw;
  cursor: pointer;
}

.scoreboard-menu-item {
  padding: 0.8vw 2vw;
  background: rgba(19, 19, 19, 0.979);
  border: 2px solid rgb(0, 0, 0);
  border-radius: 0.5vw;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.5vw;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.scoreboard-menu-item:hover {
  background: rgba(19, 19, 19, 0.979);
  box-shadow: 0 0 20px rgba(162, 0, 255, 0.6);
  transform: scale(1.05);
} 

.scoreboard-menu-item.active {
  background: rgba(19, 19, 19, 0.979);
  border: 2px solid rgba(55, 23, 197, 0.5);
  box-shadow: 0 0 15px rgba(162, 0, 255, 0.6);
  transform: scale(1.1);
}

.scoreboard-content-section {
  display: none;
  margin-top: 20px;
  max-height: 100%;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
  background: rgba(19, 19, 19, 0.979);
  border: 2px solid rgb(10, 10, 10);
  border-radius: 0.5vw;
}

.active {
  display: block;
  opacity: 1;
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background-color: #4a4a4a;
  border-radius: 1vw;
  border: 4px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #6a6a6a;
}

@keyframes fadeIn {from { opacity: 0; } to { opacity: 1; }}
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); }}