/* Splash */
#splash {
  position: fixed;
  inset: 0;
  background: rgb(4 44 80);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  flex-direction: column;
}

/* texto */
.splash-title {
  font-size: 38px;
  font-weight: 600;
  color: #f1f5f9;
}

.splash-brand{
  font-size: 24px;
  font-weight: 600;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #f1f5f9;
}

/* estado oculto */
#splash.hide {
  opacity: 0;
  visibility: hidden;
}

select{
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  font-size: 12px;
}

select:focus{
  outline: none;
  box-shadow: none;
}

select:hover{
  box-shadow: none;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  width: 100%;
  flex:1;
}

h1 {
  text-align: left;
  font-size: 50px;
  padding: 10px 10px 0px;
  margin-bottom: 0px;
}


h2 {
  text-align: left;
  margin-bottom: 15px;
  color: var(--green);
  font-size: 30px;
  padding: 0 10px;
  margin-top: 0px;
}

#scoreForm {
  margin-bottom: 20px;
  padding: 0 10px;
}

.top-row-form{
  display:flex;
  flex-direction: row;
  padding:10px 12px;
  position: sticky;
  z-index:10;
  top:0;
  height:24px;
  justify-content:space-between;
}

.top-etiq {
  display: none;
  background: transparent;
}

.top-sel{
  width: 40vw;
  border:none;
  background: transparent;
  padding: 4px;
  font-size:12px;
  font-weight:400;
  text-transform:uppercase;
  text-align:left;
}

.row-form{
  display:flex;
  flex-direction: row;
  padding:10px 5px;
  position: sticky;
  z-index:10;
  top:164px;
  height:22px;
  justify-content:space-between;
}

[hidden] {
  display: none !important;
}

.chart-container{
  position: relative;
  width: 100%;
  height: 260px;
}

.etiq {
  font-size: 10px;
  font-weight:600;
  text-transform:uppercase;
  padding: 0px 10px;
  transform-origin: left;
  margin-right: -5em;
  width: 10vw;
}

.sel{
  width: 80vw;
  border:none;
  background: transparent;
  font-size:16px;
  font-weight:600;
  text-transform:uppercase;
  border-radius:2px;
  text-align:left;
  text-indent: 5%;
  padding: 1px;
}

.players-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-container{
  z-index:10;
  position:sticky;
  top:44px;
  
}

.header {
  width: 100%;
  height: 120px;
  font-weight: bold;
  font-size:36px;
  border-left: rgb(200,200,200) solid 1px;
}

.titulo{
  padding:10px 20px 0;
  text-transform: uppercase;
}

.titulo2{
    padding:0px 20px 0;
    text-transform: uppercase;
    font-size:28px;
    font-weight:600;
}

.bajada{
  padding:0px 20px;
  font-size:18px;
  text-transform: uppercase;
}

footer {
  width: 100%;
  height: 100px;
  font-size:12px;
  display: flex;
  align-items: center; 
  justify-content: center;
}

/* =============================
   TABLAS
============================= */



table{
  font-size: 14px;
  table-layout: fixed;
  width: 100%;
  text-transform: uppercase;
  font-family:sans-serif;
}

th {
  font-size: 12px;
  vertical-align: center;
  height: 20px;
  position: sticky;
  top: 205px;
  z-index:10;
  width:10%;
}

td{
  font-size: 24px;
  font-weight: 700;
}  

th, td{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos_col{
  width: 10%;
  font-size:24px;
}

.pos_col_h{
  width: 10%px;
}

.player-cell{
  font-weight:700;
  padding:10px;
  font-size:18px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.player-cell-h{
  width:60%;
}

.player_name{
  display: flex;
  flex-direction: column;
}

.category{
  font-size: 10px;
  white-space: nowrap;
}


.leaderboard-table{
  width:100%;
  border-collapse:collapse;
  contain: layout paint;
}

#leaderboard{
  content-visibility:auto;
}

@media (max-width: 768px) {
  table {
    font-size: 12px;
  }
  td {
    font-size: 14px;
  }
 .player-cell{
    font-size: 14px;
  }
  .player_name{
    transform: scaleX(0.9);
    letter-spacing: -0.04em;
    transform-origin: left;
    margin-right: -2.5em;
  }
  .pos_col{
    width: 16px;
    font-size:16px;
    transform: scaleX(0.8);
    transform-origin: center;
    text-overflow:unset;
  }
  .pos_col_h{
    width: 16px;
    font-size:18px;
  }
  th {
    font-size: 8px;
  }
  .sort-btn {
    font-size: 10px;
  }
  .titulo{
    padding:18px 12px 0;
    font-size:28px;
  }

  .titulo2{
    padding:0px 12px 0;
    font-size:24px;
  }
  
  .bajada{
    padding:0px 12px;
    font-size:14px;
  }
  .player-cell{
    display: flex;
    justify-content: space-between;
  }
  h1 {
    font-size: 32px;
    font-weight:700;
    padding: 20px 10px 0;
  }
  
  h2 {
    font-size: 20px;
  }
}

.selectores{
  display: flex;
  align-items: center;
}

.btn-selector{
  width: 40px;
  height: 40px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s;
}

.btn-selector:hover{
  transform: scale(1.05);
}

.btn-selector img{
  width: 24px;
  height: 24px;
  object-fit: contain;
}