​body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: auto;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: url("/images/back.jpg") no-repeat center center fixed;
  background-size: cover;
  justify-content: center;
  color: aqua;
}
.modal-lang-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  margin-top: -18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
#lang-modal-title {
  font-size: 2rem;
  font-weight: bold;
  margin-left: 10px;
}
#lang-modal-close {
  background: #a42d3a;
  color: white;
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px #aaa5;
  transition: background 0.2s;
}
#lang-modal-close:hover {
  background: #d03e4b;
}
#loginform {
  margin: 20px auto;
  margin-top: 100px;
  background: #ffffff78;
  padding: 20px 0px 8px 14px;
  text-align: center;
  max-width: 99%;
  min-width: 600px;
  min-height: 428px;
  border-radius: 42px;
  box-shadow: 0px 0px 24px 0px #0fafbf;
}

#enter_name_text {
  font-size: 18px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff;
  width: 100%;
  font-weight: bold;
}

#loginform form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 0px;
}

#loginform label {
  font-size: 18px;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: bold;
  margin: 6px 6px 0px 0px;
}
#lang-btn-wrap {
  position: relative;
  top: 8px; /* Ou 10px, ajusta ao teu gosto */
  display: inline-flex; /* Mantém tudo na mesma linha */
  align-items: center; /* Alinha verticalmente */
}
#idioma-btn {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 123px;
  box-shadow: 0 2px 8px #aaa5;
  margin: -1px 2px -12px 9px;
}

#loginform input[type="text"]#name {
  width: 220px;
  max-width: 90vw;
  font-size: 23px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid #0062f961;
  box-shadow: 3px 5px 6px #eed;
  margin-left: -4px;
}

#loginform select {
  font-size: 18px;
  border-radius: 7px;
  border: 2px solid #e4ad60;
  background: #fff;
  outline: none;
  transition: border 0.2s;
  max-width: 210px;
  padding: 6px 12px;
}
#loginform input[type="text"]:focus,
#loginform select:focus {
  border-color: #e49544;
}

.login-rooms-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 18px 0;
}
.sala-btn {
  min-width: 110px;
  padding: 11px 16px;
  font-size: 19px;
  border-radius: 28px;
  border: 2.3px solid #e89972;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
  box-shadow: 0 2px 8px #0ad5f752;
  margin: 11px 5px;
  display: inline-block;
}
.sala-btn.active{
  background: #2c12dd;
  color: #fff;
  border-color: #0ad5f752;
}
.sala-btn:focus {
  background: #358bd7;
  color: #fff;
  border-color: #bb7c7c;
}
.sala-btn:not(.active):hover {
  background: #ffe7b9;
  color: #e09c23;
}
#loginform input[type="submit"] {
  padding: 0px 36px;
  font-size: 18px;
  font-weight: bold;
  background: #f2b84b;
  color: #fff;
  border: none;
  border-radius: 11px;
  margin: 0px auto 10px auto;
  transition: background 0.16s, color 0.14s;
  box-shadow: 0 2px 10px #ddbb7d22;
  cursor: pointer;
  width: auto;
}
#loginform input[type="submit"]:hover {
  background: #fba72e;
  color: #fff2db;
}

.displaychat1 {
  margin-top: -95px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  font-size: clamp(30px, 5vw, 50px);
  color: #0000ff1c;
  font-weight: bold;
  font-family: system-ui, sans-serif;
  z-index: 5;
  text-shadow: -8px 6px 4px #065d9b88;
  letter-spacing: 1px;
  user-select: none;
  pointer-events: none;
  margin-left: 50%;
  padding: 0px 0px 38px 0px;
}
.rights1 {
  font-weight: bold;
  font-size: smaller;
  color: #fff;
  text-align: center;
  margin-top: 11px;
  height: 10px;
}

@media (max-width: 380px) {
  #loginform {
    min-width: 159vh;
  }
  #loginform input[type="text"]#name,
  #loginform select,
  .sala-btn {
    min-width: unset;
    width: 96vw;
    margin: 0 0 7px 0 !important;
  }
  .login-rooms-row {
    flex-direction: column;
    gap: 7px;
  }
}

.onlines {
  background: #eabaac59;
  border-radius: 20px;
  border: 2px solid #ff830059;
  margin: -10px 0 10px 0;
    margin-right: 0px;
    margin-left: 0px;
  margin-right: auto;
  margin-left: auto;
  padding: 0px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 480px;
  max-width: 480px;
}

.flags-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 100%;
}

.flag-bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flag-pos {
  color: #b44;
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 3px;
}

.user-flag {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 2px 8px #4d3312d6;
  margin: 0px 0px;
}

.flag-num {
  color: #0066ff;
  font-size: 16px;
  font-weight: bold;
  margin-top: 1px;
}

.flags-ranking {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
svg:hover {
  filter: brightness(0.7);
}
.stats-icon {
  vertical-align: middle;
  margin-bottom: 2px;
}
.stats-num {
  font-size: smaller;
  vertical-align: middle;
}
