*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
}

body{
    background-color: #eff3ff;
}

body::-webkit-scrollbar{
  display: none;
}

body.swal2-shown > [aria-hidden="true"] {
  transition: 0.1s filter;
  filter: blur(10px);
}

html {
  scrollbar-width: none;
}

.container{
    width: 350px;
    position: absolute;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    background-color: #16181e;
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.20);

}

#card {
    position: relative;
    width: 100%;
    padding: 30px 20px;
  }

  #card img {
    display: block;
    width: 180px;
    max-height: 200px;
    position: relative;
    margin: 20px auto;
  }

  #btn {
    display: block;
    padding: 15px 60px;
    font-size: 18px;
    background-color: #ed6516;
    color: #ffffff;
    position: relative;
    margin: 30px auto;
    border: none;
    border-radius: 5px;
  }

  #result {
    display: block;
    padding: 15px 40px;
    font-size: 18px;
    background-color: #1f232c;
    color: #ed6516;
    position: relative;
    margin: 30px auto;
    border: 1px solid #ed6516;
    border-radius: 5px;
    text-align: center;
    pointer-events: auto;
  }


  #chrono{
    margin: 20px auto;
    width: 200px;
    font-size: 2em;
    text-align: center;
    color: #ed6516;
  }
  

  input[type="submit"], #btnLeaderboard{
    display: block;
  padding: 15px 60px;
  font-size: 18px;
  background-color: #ed6516;
  color: #ffffff;
  position: relative;
  margin: 30px auto;
  border: none;
  border-radius: 5px;
}

  .leaderboard {
    max-width: 25rem;
    margin: 5rem auto;
    border-radius: 1rem;
    box-shadow: 2px 2px 16px 1px #aaa;
    font-family: sans-serif;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  header {
    background-color: #ed6516;
    color: white;
    text-transform: uppercase;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    height: 14rem;
    position: relative;
  }
  
  h1 {
    font-size: 3rem;
    line-height: 3rem;
    position: absolute;
    margin-left: 4rem;
    top: 4rem;
  }
  
  #imgLeaderboard {
    height: 16rem;
    position: absolute;
    bottom: 0;
    right: 1rem;
  }
  
  nav {
    width: 100%;
    position: absolute;
    bottom: 0;
    font-size: 0.9rem;
    background: linear-gradient(
      to bottom,
      transparent,
      transparent 10%,
      rgba(22, 22, 22, 0.5)
    );
  }
  
  nav a {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    display: inline-block;
    font-weight: bold;
  }
  
  nav a.active {
    border-bottom: 4px solid #9ccf56;
  }
  
  nav a:first-child {
    margin-left: 3rem;
  }
  
  nav a + a {
    margin-left: 1rem;
  }
  
  table {
    background-color: #16181e;
    color: #999;
    width: 100%;
    border-collapse: collapse;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow: hidden;
  }
  
  thead {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
  }
  
  tbody .nick {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
  }
  
  tbody tr:nth-child(2n) {
    background-color: #1f232c;
  }
  
  .nick {
    text-align: left;
  }
  
  .rank,
  .sp,
  .kd {
    text-align: right;
  }
  
  .rank {
    width: 4ch;
    padding-left: 1rem;
  }
  
  .sp,
  .kd {
    width: 8ch;
  }
  
  th {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  td {
    padding: 1rem 1rem;
  }
  
  /* #1f232c */
  
