@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.25);

  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.6);

  --accent: #0a84ff;

  --radius: 1.5vh;
}

#rain {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 0;
   pointer-events: none;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  color: var(--text-main);

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    radial-gradient(circle at 20% 20%, #012842 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, #ec70ec3f 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, #39004b 0%, transparent 40%),
    #222222;
}

.container {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45vh;
  background:
    radial-gradient(circle at 20% 20%, #012842 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, #00032b 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, #00334b 0%, transparent 40%),
    #00000065;
  backdrop-filter: blur(3vh) saturate(180%);
  -webkit-backdrop-filter: blur(3vh) saturate(180%);
  border-radius: var(--radius);
  border: 0.1vh solid var(--glass-border);
  box-shadow: 0 1vh 4vh rgba(0,0,0,0.6), inset 0 0.1vh 0 var(--glass-highlight);
  padding: 1.5vh;
}

#main { 
  text-align: center;
  padding: 1vh;
  font-size: 1.5vh;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  display: table;
  width: 100%;
  table-layout: fixed;
  background: var(--glass-strong);
  margin-bottom: 1vh;
  border-radius: 0.5vh;
}

th {
  padding: 1vh;
  font-size: 1.2vh;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

tbody {
  display: block;
  max-height: 33.9vh;
  overflow-y: auto;
  overflow-x: hidden;
}

tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
  background: #1e1f1f86;
  border: 0.1vh solid rgb(66, 66, 66);
  transition: all 0.25s ease;
}

td {
  padding: 1.2vh;
  text-align: center;
}

th:nth-child(1),
td:nth-child(1) {
  width: 4vh;
}

th:nth-child(2),
td:nth-child(2) {
  width: 4vh;
}

th:nth-child(3),
td:nth-child(3) {
  width: 10vh;
}

tbody tr:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.01);
}

#players {
  font-size: 1.4vh;
  white-space: nowrap;
}

.id {
  color: var(--accent);
  font-weight: 500;
}

.ping {
  padding: 0.5vh 1.3vh;
  border-radius: 5vh;
  font-size: 1.2vh;
  font-weight: 500;
  backdrop-filter: blur(1vh);
  border: 0.1vh solid rgba(255,255,255,0.15);
}

.ping-low { background: rgba(48, 209, 88, 0.2); }
.ping-mid { background: rgba(255, 214, 10, 0.2); }
.ping-high { background: rgba(255, 69, 58, 0.2); }

.priority {
  color: #cda6f8;
  font-weight: 500;
}

.footer {
  margin-top: 1.3vh;
  text-align: center;
  font-size: 1vh;
  color: var(--text-muted);
  background: var(--glass-strong);
  padding: 1vh;
  border-radius: 1vh;
}

::-webkit-scrollbar {
  width: 0.5vh;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 0.2vh;
}

#searchInput {
  border: 0.1vh solid rgba(31, 98, 161, 0.37); 
  background:rgba(26, 48, 68, 0.37);
  font-size: 1.5vh;
  border-radius: 1.5vh;
  outline: none;
  color: white;
  padding: 1vh;
  text-align: center;
  margin-bottom: 0.5vh;
  
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fav-btn {
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.fav-btn i {
  font-size: 1.5vh;
  transition: 0.2s ease;
}

.fav-btn i:hover {
  transform: scale(1.2);
}

.fav-inactive {
  color: white;
}

.fav-active {
  color: gold;
  text-shadow: 0 0 0.1vh gold;
}

#escapeBtn {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  padding: 1.2vh 2vh;
  font-size: 1.4vh;
  border-radius: 1vh;
  border: none;
  cursor: pointer;

  color: white;
  background: var(--glass-bg);
  backdrop-filter: blur(1vh);
  border: 0.1vh solid rgba(255,255,255,0.2);

  transition: top 0.15s ease, left 0.15s ease;
  z-index: 9999;
}

#secondBtn {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  padding: 1.2vh 2vh;
  font-size: 1.4vh;
  border-radius: 1vh;
  border: none;
  cursor: pointer;

  color: white;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(1vh);
  border: 0.1vh solid rgba(255,255,255,0.2);

  z-index: 9999;
}

/* tel lol */
@media screen and (max-width: 1024px) {

  .container {
      position: absolute;
      top: 70%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 45vh;
      background:
        radial-gradient(circle at 20% 20%, #012842 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, #00032b 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, #00334b 0%, transparent 40%),
        #00000065;
      backdrop-filter: blur(3vh) saturate(180%);
      -webkit-backdrop-filter: blur(3vh) saturate(180%);
      border-radius: var(--radius);
      border: 0.1vh solid var(--glass-border);
      box-shadow: 0 1vh 4vh rgba(0,0,0,0.6), inset 0 0.1vh 0 var(--glass-highlight);
      padding: 1.5vh;
  }
  
}