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

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, .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 {
	width: 100%
}

#skin {
	/*width: 33%; */
	float: right
}

#nick,
#skin {
	display: inline
}

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

#helloDialog {
	width: 350px;
	max-width: 350px;
	color: #fff;
	background-color: #FFFFFF;
	margin: 10px auto;
	border-radius: 5px;
	padding: 10px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%)
}

#helloDialog h2 span {
	color: #3f51b5
}

#helloDialog h2 {
	font-size: 25px;
	padding: 5px;
	text-align: center;
	text-transform: uppercase;
	font-family: fredoka one, cursive
}

#helloDialog input.green {
	border-color: #4caf50;
	color: #4caf50
}

#helloDialog select.blackblue {
	border-color: #607d8b;
	color: #607d8b
}

#helloDialog input,
#helloDialog select {
	border: 3px solid #3f51b5;
	color: #3f51b5;
	font-weight: 700;
	font-size: 14px;
	background: #ffffff12
}

#chat_textbox {
	transition: all .5s ease-in-out;
	position: absolute;
	z-index: 1;
	bottom: 10px;
	background: rgba(0, 0, 0, .2);
	border: 0;
	outline: none;
	color: #fff;
	height: 30px;
	text-indent: 12px;
	left: 10px;
	width: 300px;
	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;
	font-weight: 700
}

#spectate-btn {
	width: 13%;
	float: right;
	top: 0;
	font-weight: 700
}

#play-btn,
#spectate-button {
	display: inline
}

#gallery-btn {
	width: 100%;
	margin-bottom: 5px
}

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

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

#touchpad {
	background: #000;
	opacity: .3;
	width: 20vw;
	height: 20vh;
	left: 10px;
	bottom: 85px
}

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

#splitBtn,
#ejectBtn {
	width: 8vw;
	height: 8vw;
	max-height: 60px;
	max-width: 60px;
	border-radius: 4vw;
	background: #777;
	opacity: .5
}

#splitBtn {
	right: 40px;
	bottom: 165px
}

#ejectBtn {
	bottom: 165px;
	right: 110px
}

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

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

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

.checkbox input[type=checkbox] {
	margin-left: -15px!important
}

.checkbox label {
	background: #9c27b0;
	padding-right: 10px;
	color: #fff;
	border-radius: 4px;
	margin-right: 2px!important;
	margin-bottom: 2px
}

/* Estilo básico para os botões */
button,
.btn {
    font-size: 14px;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efeito ao passar o mouse */
button:hover,
.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Efeito ao clicar */
button:active,
.btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zoom-effect {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: auto;
    height: auto;
}

.zoom-effect img {
    display: block;
    transition: transform 0.5s ease;
}

.zoom-effect:hover img {
    transform: scale(1.2);
}

/* Melhorias visuais no widget e menu servidores */
#discord-widget {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1050;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    background: #2c2f33;
    transition: all 0.3s ease;
    width: 360px;
    height: 350px;
}

#discord-widget iframe {
    border-radius: 12px;
    width: 100% !important;
    height: 100% !important;
}

#server-menu {
    display: none;
    position: fixed;
    top: 380px;
    left: 10px;
    width: 360px;
    background: #23272a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    color: #ddd;
    font-family: "Ubuntu", sans-serif;
    z-index: 1050;
    user-select: none;
    padding: 16px 24px;
    transition: all 0.3s ease;
}

#server-menu h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 20px;
    color: #7289da;
    text-align: center;
    text-shadow: 0 0 4px #7289da;
    letter-spacing: 0.05em;
}

#server-menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#server-menu li {
    background: #2c2f33;
    margin-bottom: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    width: 48%;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
    user-select: none;
}

#server-menu li:hover {
    background: #7289da;
    color: #fff;
    box-shadow: 0 0 12px #7289da;
}

/* Aviso interno estilizado */
#internal-alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7289da;
    color: white;
    padding: 14px 24px;
    border-radius: 30px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(114, 137, 218, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;
    user-select: none;
}

#internal-alert.show {
    opacity: 1;
    pointer-events: auto;
}

/* BOTÃO DO WHATSAPP */
#whatsapp-button {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1050;
    transition: all 0.3s ease;
}

#whatsapp-button a.whatsapp-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #25D366, #128C7E);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: 2px solid white;
}

#whatsapp-button a.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    background: linear-gradient(145deg, #128C7E, #25D366);
}

#whatsapp-button a.whatsapp-btn:active {
    transform: translateY(1px);
}

#whatsapp-button a.whatsapp-btn img {
    width: 28px;
    height: 28px;
    margin-left: 10px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

#whatsapp-button a.whatsapp-btn span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Estatísticas pós-morte */
#death-stats {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.death-stats-content {
    background-color: #23272a;
    border-radius: 15px;
    padding: 30px;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
    font-family: 'Ubuntu', sans-serif;
}

.death-stats-content h2 {
    margin-top: 0;
    color: #7289da;
    font-size: 28px;
    margin-bottom: 25px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #7289da;
}

.stat-label {
    font-weight: bold;
    color: #99aab5;
}

.stat-value {
    font-weight: bold;
    color: white;
}

#close-stats-btn {
    background-color: #7289da;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

#close-stats-btn:hover {
    background-color: #5b6eae;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.4);
}

/* Ranking TOP 20 */
#top20-ranking {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 250px;
    background: rgba(35, 39, 42, 0.9);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: 'Ubuntu', sans-serif;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

#top20-ranking h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #7289da;
    text-align: center;
    font-size: 18px;
}

#ranking-list ol {
    padding-left: 20px;
    margin: 0;
}

#ranking-list li {
    margin-bottom: 8px;
    font-size: 14px;
    list-style-type: decimal;
}

/* Ocultar TOP 20 em mobile */
@media only screen and (max-width: 768px) {
    #top20-ranking {
        display: none;
    }
}

/* ===================== */
/* NOVOS ESTILOS ADICIONADOS */
/* ===================== */

/* Botões de Login e Registro */
.auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
}

.btn-register {
    background: linear-gradient(145deg, #4CAF50, #2E7D32);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-login {
    background: linear-gradient(145deg, #2196F3, #0D47A1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-register:hover, .btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-register:active, .btn-login:active {
    transform: translateY(1px);
}

/* Ícones para os botões */
.icon-user-plus, .icon-user {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
}

.icon-user-plus:before {
    content: "+";
    font-weight: bold;
}

.icon-user:before {
    content: "👤";
}


/* NOVOS ESTILOS ADICIONADOS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
}

.modal-content {
    background: #2c3e50;
    color: white;
    width: 90%;
    max-width: 400px;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.modal h2 {
    text-align: center;
    margin-top: 0;
}

.modal input {
    color: black;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
}

.modal button {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.modal .btn-submit {
    background: #27ae60;
}

.modal .btn-close {
    background: #e74c3c;
}

.modal .btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

#login-form, #register-form {
    margin-top: 15px;
}


#ranking-list {
    transition: opacity 0.3s;
}

#ranking-list.loading {
    opacity: 0.5;
    position: relative;
}

#ranking-list.loading::after {
    content: "Atualizando...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #7289da;
    font-weight: bold;
}

.private-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #ff5722;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
}

/* Adicionado: Estilo para botões na conta */
#account-modal .btn-action {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

#account-modal .btn-danger {
    background-color: #f44336;
}

#account-modal .btn-secondary {
    background-color: #2196F3;
}

#account-modal .btn-action:hover {
    opacity: 0.9;
}

/* Adicionado: Estilo para itens de skin */
.private-skin-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* Adicionado: Scroll vertical para conteúdo da conta */
#account-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* Estilos para as abas da galeria */
#gallery-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.gallery-tab {
  padding: 8px 16px;
  margin: 0 5px;
  background-color: #2c3e50;
  color: #ecf0f1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Ubuntu', sans-serif;
  font-size: 14px;
  transition: background-color 0.3s;
}

.gallery-tab:hover {
  background-color: #34495e;
}

.gallery-tab.active {
  background-color: #3498db;
  font-weight: bold;
}

/* Melhorias visuais para a galeria */
#gallery-content {
  max-width: 800px;
  background: #2c3e50;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#skinsUL {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skin {
  position: relative;
  margin: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.skin:hover {
  transform: scale(1.05);
}

.circular {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #3498db;
  object-fit: cover;
}

.private-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

/* Garantir que as funções estejam acessíveis */
#gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: none;
}

#gallery-content {
  background: #2c3e50;
  width: 90%;
  max-width: 800px;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  color: white;
}

.gallery-tab {
  background: #34495e;
  border: none;
  color: white;
  padding: 10px 15px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.gallery-tab.active {
  background: #3498db;
}

/* Estilos para mensagem de nenhuma skin */
.no-skins {
  text-align: center;
  padding: 20px;
  color: #ecf0f1;
  font-size: 18px;
}

.no-skins button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: bold;
}

.no-skins button:hover {
  background: #2980b9;
}

/* Garantir que as imagens sejam exibidas corretamente */
.circular {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #eee; /* Cor de fundo para imagens quebradas */
  border: 2px solid #3498db;
}

/* Melhorar a mensagem de nenhuma skin */
.no-skins {
  text-align: center;
  padding: 20px;
  color: #ecf0f1;
  font-size: 18px;
}

.no-skins button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 16px;
}