html,
body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-text-size-adjust: none;
    width: 100%;
    height: 100%;
    position: fixed;
}   

input[type=checkbox] {
    cursor: pointer;
}

#overlays,
#connecting {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
}

#connecting {
    z-index: 100;
}

#connecting-content {
    width: 350px;
    background-color: #fff;
    margin: 100px auto;
    border-radius: 15px;
    padding: 5px 15px;
}

#title {
    padding: 10px;
}

#nick {
    transform: translate(5%, -80%);
    width: 70%;
    background-color: #111; /* Cambiado por neón similar */
    border: none; /* Quitamos borde negro */
    outline: none;
    border-radius: 5px;
    height: 37px;
    padding-left: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #f4f8f8;
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.4);
    margin-top: 38px;
}


#skinCenter {
    width: 90px;
    height: 90px;
    background-color: #fff;
    border-radius: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    background-size: cover;
    background-position: center;
    border: 2px solid rgb(0, 0, 0);
    cursor: pointer;
    transition: all .3s ease-in-out;
}

#skinCenter:hover {
    border: 2px solid #525252;

}

#nick::placeholder,
#skin::placeholder {
    color: #888;
    transition: color 0.3s ease;
}

#nick:focus::placeholder,
#skin:focus::placeholder {
    color: transparent;
}

#skinName {
    padding-top: 35%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #ccc
}


#backgroundSelect {
    background-color: rgba(0, 0, 0, 0.39);
    height: 35px;
    border-radius: 7px;
    transform: translate(0%, -20%);
}

.bgSet {
    width: 12%;
    height: 60%;
    background-color: #ffffff6c;
    margin: 3px;
    transform: translate(97.5%, 20%);
    border-radius: 3px;
    cursor: pointer;
    transition: all .2s ease-in-out;
    /* Adds space around each div */
}

.bgSet:hover {
    opacity: 80%;
}

.grid {
    display: flex;
    gap: 5px;
    /* Adds space between divs */
    flex-wrap: wrap;
    /* Allows them to wrap onto new lines if needed */
}

#skinCenter {
    float: left;
}

#nick,
#skinCenter {
    display: inline;
}

#gamemode {
    margin-top: 5px;
    width: 100%;
}

#imagePanel {
    width: 350px;
    height: 100px;
    background-color: rgba(46, 44, 45, 0.5);
    /* Semi-transparent background */
    margin: 10px auto;
    border-radius: 5px;
    padding: 5px 15px;
    position: absolute;
    top: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    left: 50%;
    transform: translate(-50%, -230%);
    backdrop-filter: blur(10px);
    /* Blur effect */
}

#imagelogo {
    width: 315px;
    height: 89px;
}

#CreditsPanel {
    width: 350px;
    height: 75px;
    /* Semi-transparent background */
    margin: 10px auto;
    border-radius: 5px;
    padding: 5px 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -500%);
    backdrop-filter: blur(10px);
    /* Blur effect */
}

.credit-container {
    display: flex;
    align-items: center;
    /* Centers items vertically */
    justify-content: center;
    /* Centers items horizontally */
}

#creditImg {
    border-radius: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin-right: 10px;
    /* Adds space between the image and the text */
}

#credittext {
    color: #fff;
    font-family: "Fredoka", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    text-decoration: none;
    /* Removes underline from the link */
    display: inline-block;
    line-height: 1.2;
}

#playPanel {
    width: 360px;
    height: 245px;
    padding-top: 40px;
    background-color: rgba(46, 44, 45, 0.5);
    margin: 0 auto;
    border-radius: 5px;
    padding: 20px;
    position: absolute;
    top: 51.1%;
    left:50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: #d1d1d1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


#leftPanel {
    width: 250px;
    height: 331px;
    background-color: rgba(46, 44, 45, 0.5);
    margin: 0 auto;
    border-radius: 5px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-175%, -66.5%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: #d1d1d1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#serverpanel {
    width: 250px;
    height: 435px;
    background-color: rgba(46, 44, 45, 0.5);
    margin: 0 auto;
    border-radius: 5px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(75%, -50%); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: #d1d1d1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#settingsTitle {
    font-size: 25px;
    background-color: rgba(0, 0, 0, 0.39);
    text-align: center;
    height: 40px;
    border-radius: 5px;
    color: #fff;
}

.checkboxset {
    background-color: rgba(0, 0, 0, 0.39);
    width: 100%;
    height: 35px;
    margin-top: 5px;
    border: none;
    color: #fff;
    border-radius: 5px;
    transition: all .5s ease-in-out;
}

.selectedcheckboxset {
    background-color: rgba(43, 43, 43, 0.349);
    width: 100%;
    height: 35px;
    margin-top: 5px;
    border: none;
    color: #fff;
    border-radius: 5px;
    transition: all .15s ease-in-out;
}

#group-3 {
    margin-top: 20px;
}

#group-4 {
    margin-top: 20px;
}

#chat_textbox {
    transition: all .5s ease-in-out;
    position: absolute;
    z-index: 1;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 0px;
    outline: none;
    color: #fff;
    height: 30px;
    text-indent: 12px;
    left: 10px;
    width: 400px;
    font-family: "Ubuntu";
}

#chat_textbox:focus {
    background: rgba(0, 0, 0, .5);
}

#footer {
    text-align: center;
    margin-bottom: 10px;
    margin-top: -10px;
}

#play-btn {
    width: 85%;
    margin-bottom: 10px;
    transform: translate(95.5%, -155.5%);
}

#spectate-btn {
    float: right;
    top: 0;
    transform: translate(6%, -155.5%);
}

#play-btn,
#spectate-btn {
    display: inline;
    background-color: #0BDA51;
    width: 34%;
    color: #fff;
    border: none;
    height: 30px;
    border-radius: 5px;
    margin-top: 8px;
    transition: all 0.2s;   

}

#play-btn:hover,
#spectate-btn:hover {
    background-color: #2cb459;
}

#group-1 {
    transform: translate(-3%, 3%);
}

#gallery-btn {
    width: 100%;
    margin-bottom: 5px;
    display: none;
    outline: none;
    border: none;
    background-color: #647fdd;
    height: 30px;
    border-radius: 5px;
    color: #fff;
    transform: translate(0%, 10%);
    /* Visible when skins are loaded */
    transition: all 0.2s;

}

#gallery-btn:hover {
    background-color: #6181f3;
}

#discord-btn {
  width: 225px;
  height: 33px;
  background: linear-gradient(45deg, #7289da, #4e5d94);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(114, 137, 218, 0.5);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2; /* <- ya no es -100 */
  top: -40px;
  margin-left: 93px;
}

#removeSkin {
    font-size: 25px;
    background-color: #00000000;
    outline: none;
    border: none;
    color: rgb(212, 45, 45);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 100000;
    transform: translate(-265%, -21%);
}

hr {
    border: 2px solid #0a0a0a;
    background-color: #0a0a0a;
    /* Creates a 2px solid black line */
    height: 1px;
    border-radius: 5px;
    /* Optional: To control the height */
}


#touchpad,
#touchCircle,
#splitBtn,
#ejectBtn {
    position: fixed;
}

#touchpad,
#splitBtn,
#ejectBtn {
    z-index: 2;
}

#touchpad {
    background: #000;
    opacity: 0.3;
    width: 20vw;
    height: 20vh;
    left: 0;
    bottom: 0;
}

#touchCircle {
    width: 4vw;
    height: 4vw;
    border-radius: 2vw;
    background: #f00;
    opacity: 0.3;
    z-index: 3;
}

#splitBtn,
#ejectBtn {
    width: 8vw;
    height: 8vw;
    border-radius: 4vw;
    background: #777;
    opacity: 0.5;
}

#splitBtn {
    right: 18vw;
    bottom: 0;
}

#ejectBtn {
    bottom: 18vw;
    right: 0;
}

#playSounds:checked+#soundsVolume {
    display: inline;
}

#soundsVolume {
    display: none;
    width: 100px;
    height: 18px;
    padding: 0;
    /* IE fix */
    vertical-align: middle;
}

#settings label {
    margin-right: 10px;
    user-select: none;
}

#stats {
    position: absolute;
    /* or 'fixed' depending on your intent */
    left: 25px;
    top: 25px;
    border-radius: 8px;
}

.server-stats-container{
    position: absolute;
    left: 0;
    right: 0;
    top: 25px;
    border-radius: 8px;
    font-size: 30px;
    color: #f0e119;
    font-family: "Fredoka", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    text-shadow: 2px 2px 5px black, -2px -2px 5px black, 2px -2px 5px black, -2px 2px 5px black;
}
.server-stats-container .server-stats{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* #serverStat {
    position: absolute;
    left: 48%;
    top: 15px;
    border-radius: 8px;
    font-size: 30px;
    color: #f0e119;
    font-family: "Fredoka", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    text-shadow: 2px 2px 5px black, -2px -2px 5px black, 2px -2px 5px black, -2px 2px 5px black;
} */

.stat {
    color: #ee51c7;
    font-size: 30px;
    font-family: "Fredoka", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    text-shadow: 2px 2px 5px black, -2px -2px 5px black, 2px -2px 5px black, -2px 2px 5px black;
}

#score-stats {
    color: #5ce9e9;
}

#div_lb {
    color: #fff;
    right: 10px;
    top: 10px;
    text-align: center;
    padding: 5px;
    overflow: hidden;
    user-select: none;
}


#div_lb>.header {
    color: #fff;
    font-size: 23.5px;
    font-weight: bold;
    overflow: hidden;
    margin-top: 1px;
    font-family: "Fredoka", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    text-align: center;
}

#lb_detail>div {
    float: left;
    width: 100%;
}

#lb-details {
    margin-top: 5px;
}

#div_lb {
    width: 205px;
    font-weight: bold;
    border-radius: 10px;
}


#div_lb div div {
    font-size: 19px;
    font-weight: bold;
    width: 100%;
}

#lb_detail {
    font-weight: bold;
    padding-bottom: 5px !important;
    padding-left: 5px;
    font-family: "Fredoka", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    text-align: left;
}

#div_lb {
    background: linear-gradient(to right, #2020209d, #42424296);
    cursor: default;
    user-select: none;
    position: absolute;
    padding-bottom: 16px;
    padding-top: 10px;
}

/* General scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    /* Width of the scrollbar */
    height: 8px;
    /* Height of the scrollbar (for horizontal scrollbar) */
}

::-webkit-scrollbar-track {
    background: rgb(0 0 0 / 50%);
    /* Track color */
    border-radius: 7px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.7);
    /* Thumb color */
    border-radius: 7px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    /* Border around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 1);
    /* Thumb color when hovered */
}



/* For the input box container */
/* Chat */
#chatbox {
    color: rgba(255, 255, 255, .8);
    background: rgba(0, 0, 0, 0.6);
    width: 450px !important;
    height: 200px !important;
    padding: 10px;
    min-width: 200px;
    min-height: 200px;
    margin: 0 0 5px 0;
    position: relative;
    left: 0px !important;
    overflow: hidden;
    cursor: default;
}

.sender {
    font-weight: bold;
    font-size: 16px;
    color: white;
    font-family: "Fredoka", serif;
    padding-left: 5px;
}

.msg {
    font-weight: normal;
    font-size: 16px;
    font-family: "Fredoka", serif;
}

#input_box,
#input_box2 {
    padding: 10px;
}

#chatPopup_ {
    padding: 5px;
    width: 440px;
    height: 255px;
    border-radius: 7px;
    background-color: rgb(0 0 0 / 50%);
    margin-bottom: 5px;
    overflow-y: auto;
    /* Enable scrolling if content overflows */
}

/* Apply custom scrollbar styles to specific elements */
#chatRoom {
    max-height: 100%;
    overflow-y: scroll;
    /* Enable vertical scrolling */
    padding: 0 10px 0 0;
}

#chatRoom div {
    color: #fff;
    font-size: 12px;
}

#msgArea {
    word-wrap: break-word;
    font-family: "Fredoka", serif;
}

#chatboxArea {
    width: 100%;
    position: relative;
    bottom: 0;
    overflow-y: auto;
    /* Enable scrolling when needed */
}



#input_box {
    width: 100%;
    border: 0;
}

#input_box2 {
    animation: 0.4s fadeIn;
}

::placeholder {
    color: #fff;
}

#chatboxArea2 {
    left: 5px;
    bottom: 5px;
    position: absolute;
}

#chatboxArea2 img {
    margin-left: 2px
}

#input_box2 {
    width: 440px;
    padding: 5px 10px;
    outline: none;
    border: none;
    background-color: rgb(0 0 0 / 50%);
    height: 40px;
    border-radius: 7px;
    font-family: "Fredoka", serif;
}

#input_box2:focus {
    color: #ccc;
}

/* === TEXTOS NEÓN EN SETTINGS === */

#leftPanel button,
#leftPanel .checkboxset {
    color: #00f0ff;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    text-shadow: 0 0 5px #00f0ff, 0 0 8px #00f0ff;
    transition: text-shadow 0.3s ease;
}

/* Al pasar el mouse, brilla más */
#leftPanel button:hover,
#leftPanel .checkboxset:hover {
    text-shadow: 0 0 8px #00f0ff, 0 0 12px #00f0ff;
    transform: scale(1.05);
}
.neon-title {
    color: #00f0ff;
    font-weight: bold;
    text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff;
    }
    50% {
        text-shadow: 0 0 2px #00f0ff, 0 0 4px #00f0ff;
    }
}
/* ====Neon for Settings & Servers ==== */

/* Titles like "settings", "Servers" */
#settingsTitle,
.header {
    font-size: 28px;
    font-weight: bold;
    color: #00f0ff;
    font-family: 'Fredoka', sans-serif;
    text-align: center;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite;
    text-shadow: 0 0 6px #00f0ff, 0 0 10px #00f0ff;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 6px #00f0ff, 0 0 10px #00f0ff;
    }
    50% {
        text-shadow: 0 0 3px #00f0ff, 0 0 6px #00f0ff;
    }
}

/* BOTONES Settings y Servers */
#leftPanel button,
#leftPanel .checkboxset,
#serverpanel button,
#serverpanel .checkboxset {
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    color: #00f0ff;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    text-shadow: 0 0 5px #00f0ff, 0 0 8px #00f0ff;
    border: none; /* REMOVE the edge */
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Effect to pass the mouse */
#leftPanel button:hover,
#leftPanel .checkboxset:hover,
#serverpanel button:hover,
#serverpanel .checkboxset:hover {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
    background: #333;
}
#leftPanel #settingsTitle,
#serverpanel #settingsTitle {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Fredoka', sans-serif;
    text-align: center;
    margin-bottom: 10px;
    text-shadow:
        0 0 4px #00f0ff,
        0 0 6px #00f0ff,
        0 0 10px #00f0ff;
}
/* === White neon buttons (Settings and Servers) === */

#leftPanel .checkboxset,
#serverpanel .checkboxset {
    background: rgba(15, 15, 15, 0.4); /* fondo más suave */
    color: #ffffff;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    text-shadow: 0 0 3px #00f0ff, 0 0 6px #00f0ff;
    border: 1px solid rgba(0, 255, 255, 0.15);
    padding: 6px 10px;
    line-height: 1.4;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.1) inset;
}

/* Hover más intenso */
#leftPanel .checkboxset:hover,
#serverpanel .checkboxset:hover {
    background: rgba(25, 25, 25, 0.6);
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

#custom-toggles {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra los toggles dentro del panel */
    gap: 10px;
    margin-top: 20px;
  }
  
  
  .toggle-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0 12px;
    font-family: 'Fredoka', sans-serif;
    color: #fff;
    text-shadow: 0 0 3px #00f0ff;
    font-size: 13px;
    height: 36px;
    width: 90%;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    gap: 10px;
  }
  
  .toggle-card input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #00f0ff;
    border-radius: 3px;
    background: transparent;
    position: relative;
    cursor: pointer;
    display: inline-block;
    margin: 0; /* ✅ quita espacio extra */
    padding: 0;
    align-self: center;
    justify-self: center;
  }
  
  .toggle-card input[type="checkbox"]:checked {
    background-color: #00f0ff;
    box-shadow: 0 0 5px #00f0ff;
  }
  
  .toggle-card input[type="checkbox"]:checked::after {
    content: "✔";
    color: #000;
    font-size: 10px;
    position: absolute;
    top: -1px;
    left: 3px;
  }
  
  .label-text {
    font-weight: bold;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
  }

  .server-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

#serverpanel .toggle-server {
    width: 90%;
    height: 36px;
    border-radius: 10px;
    background: rgba(30, 30, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-family: 'Fredoka', sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px #00f0ff, 0 0 12px #00f0ff !important;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.2);
    transition: all 0.2s ease;
  }
  
  #serverpanel .toggle-server:hover {
    background: rgba(40, 40, 40, 0.8) !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transform: scale(1.03);
  }
  #serverpanel .toggle-server.active{
    background: rgba(40, 40, 40, 0.8) !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transform: scale(1.03);
  }

  #infoPanel {
    background: rgba(30, 30, 30, 0.88);
    border-radius: 15px;
    padding: 20px 15px 10px 15px; /* Reducción del padding inferior */
    margin-top: 15px;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-family: 'Fredoka', sans-serif;
    color: #fff;
    width: 300px;
    height: auto; /* AUTO para que se adapte al contenido */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
/* Panel base del infoBox */
#infoBox.panel {
    width: 250px;
    background-color: rgba(46, 44, 45, 0.5);
    border-radius: 15px;
    padding: 20px; 
    backdrop-filter: blur(6px);
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Fredoka', sans-serif;
    color: #fff;
    text-shadow: 0 0 3px #00f0ff;
    text-align: center;
  }
  
  /* Título del info box (para que se vea como los demás) */
  .infoTitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #00f0ff;
    text-shadow: 0 0 8px #00f0ff, 0 0 16px #00f0ff;
  }
  
  /* Estilo para los enlaces */
  #infoBox a {
    color: #00ffee;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease;
  }
  
  #infoBox a:hover {
    color: #00ffff;
    text-shadow: 0 0 6px #00f0ff;
  }
  
  
  #infoBox .info-content p {
    margin: 8px 0;
    font-size: 14px;
  }
  
  #infoBox .info-content a {
    color: #00f0ff;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 0 6px #00f0ff;
  }
  
  #infoBox .info-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px #fff;
  }
   
  #infoBox .info-content {
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    text-align: left;
    margin-top: 10px;
  }
  
  #infoBox .info-content a {
    display: block;
    margin: 6px 0;
    color: #fff;
    font-weight: bold;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    text-shadow: 0 0 5px #00f0ff, 0 0 8px #00f0ff;
    text-decoration: none;
    transition: transform 0.2s ease;
    text-align: center;
  }
  
  #infoBox .info-content a:hover {
    transform: scale(1.05);
    color: #00f0ff;
  }

  #infoBox.panel {
    width: 120%;
    box-sizing: border-box;
    margin-left: -20px;
  }
  #leftColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .label-text-white-glow {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 4px #00f0ff, 0 0 6px #00f0ff;
    font-family: 'Fredoka', sans-serif;
  }
  
.toggle-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .toggle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 255, 255, 0.2);
  }
  
.toggle-server {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-server:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 255, 255, 0.2);
}
#toggleChatBtn {
    background: none;
    border: none;
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    text-shadow: 0 0 5px #00f0ff; 
    display: inline; 
  }
  
  
  #toggleChatBtn:hover {
    text-decoration: underline;  
  }

  #toggleChatBtn:active {
    transform: none;  
  }

  .chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
  }
  .chat-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
  }
  
  #input_box2 {
    flex: 1;
    height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    margin-right: 10px;
  }
  #toggleChat {
    padding: 6px 12px;
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.6); 
    border: none; 
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: none; 
    box-shadow: none; 
 }

#toggleChat:hover {
    background-color: rgba(0, 0, 0, 0.6); 
    color: white; 
 }

#infoBox {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 10px;
    width: 220px;  
    height: 180px;  
    font-family: Arial, sans-serif;
    overflow-y: auto; 
    max-height: 180px;  
    overflow-x: hidden;  
 }

#settingsTitle {
    font-size: 18px; 
    font-weight: bold;
    text-align: center;
    color: #00f0ff;
    margin-bottom: 8px;
 }

.info-content p {
    font-size: 12px;  
    line-height: 1.5;
    text-align: justify;
    color: white;
 }


#servers {
    margin-bottom: 10px;  
 }

  .custom-select {
  position: relative;
  width: 222px;
  margin-top: -35px;
  margin-left: 103px;
  z-index: 100;
}

#selected-clan {
  width: 100%;
  padding: 8px 10px;
  background: #111;
  color: white !important; 
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  cursor: pointer;
}

#clan-list {
  position: absolute;
  top: 100%;
  width: 100%;
  max-height: 85px;
  overflow-y: auto;
  background: #111;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  margin-top: 5px;
  display: none;
  z-index: 1000; 
}

#clan-list li {
  padding: 8px 10px;
  list-style: none;
  color: #eef1f1;
  cursor: pointer;
  font-weight: bold;
}

#clan-list li:hover {
  background: rgba(0, 255, 255, 0.2);
}
.clan-container {
  position: relative;       
}

.clan-dropdown {
  position: absolute;       
  top: 0; left: 0;          
  z-index: 1;               
}

#discord-btn {
  position: relative;
  z-index: 2;               
}


.clan-container.open .clan-dropdown {
  z-index: 3;             
}
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  overflow: hidden;
  display: grid;
  color: white;
  background: black;
}
* {
    user-select: none; /* bloquea selección en toda la página */
}

#input_box2 {
    user-select: text; /* chat input */
}
#div_lb {
    width: 245px;   
    max-height: 600px; 
    overflow-y: auto;  
    background-color: rgba(0,0,0,0.6); 
    padding: 12px;  
    border-radius: 8px; /* Bordes redondeados si quieres */
    margin-top: 120px;
}

#div_lb .header {
    font-size: 23px;
    text-align: center;
    margin-bottom: 5px;

   
    color: #faf7f7;

    /* Control de texto largo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
    display: block;

    
    text-shadow: none;
    animation: none;
    filter: none 
}
#lb_detail .leaderboard-item{
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
    gap: .75rem;
}

#lb_detail .leaderboard-skin {
    border-radius: 10rem;
    width: 30px;
    height: 30px;
    flex-shrink: 0; /* evita que se deforme */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
#lb_detail p {
    font-size: 18px;
    margin-bottom: 0;
    white-space: nowrap;        
    overflow: hidden;           
    text-overflow: ellipsis;    
    max-width: 150px;           
}
#winner-box {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 245px; 
    padding: 15px;
    border-radius: 10px;
    background: linear-gradient(to right, #1e1e1e, #383838);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    font-family: "Fredoka", serif;
    font-optical-sizing: auto;
    font-style: normal;
    display: flex;
    align-items: center;
    text-align: left;
    overflow: hidden;
    user-select: none;
    z-index: 100;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#winner-box #crown-icon {
    width: 85px;
    height: 85px;
    transform: translateY(-22px);
}

#winner-box #leaderboardTitle {
    display: block;
    margin-top: -29px;
    white-space: nowrap;        /* Evita salto de línea */
    overflow: hidden;           /* Oculta lo que sobresalga */
    text-overflow: ellipsis;    /* Añade "..." si es muy largo */
    max-width: 100%;            
}



















  

  
