* {
  font-family: "Open-Sans", sans-serif;
}

body {
  background: url(assets/bg.jpg) no-repeat center center fixed;
  background-size: cover;
}

#container {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin: auto;
  gap: 3px;
}

.head {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  text-align: center;
}

h1 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-align: center;
  font-weight: bolder;
  color: #fff;
  font-size: 2.2rem;
}

#logo {
  height: 70px;
  width: 70px;
  border-radius: 50px;
  align-items: center;
}

.header {
  display: flex;
  font-size: 1.3rem;
  font-weight: bold;
  margin: auto;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
  padding: 10px 10px;
  width: 720px;
  background: rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  backdrop-filter: blur(27px);
  -webkit-backdrop-filter: blur(27px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.item {
  text-align: center;
}

.item:not(:first-child):not(:last-child) {
  margin: 0 1px;
}

.item:first-child::before {
  content: "";
  display: inline-block;
  width: 62px;
}

.item:nth-child(3) {
    width: 24px;
}

.item:last-child::after {
  content: "";
  display: inline-block;
  width: 40px;
}



#sticky-header {
  position: sticky;
  top: 0;
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
  width: 720px;
  padding: 7px;
  height: 100%;
  box-shadow: 0 15px 25px rgba(129, 124, 124, 0.3);
  border-radius: 0.7rem;
  border: 1px solid rgb(0, 0, 0, 0.37);
  background-color: rgba(255, 255, 255, 0.2);
}

.card-inner {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: space-around;
}

.front {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  text-align: center;
  margin-bottom: 20px;
}

p {
  flex: 0 0 auto;
}
.front p {
  margin: 0;
}

#player-d {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  text-align: left;
  gap: 3px;
}

#sno {
  margin-top: 3.2rem;
  margin-left: 1px;
  text-align: center;
  height: 17px;
  font-size: 1.4rem;
  font-weight: bold;
}

#streak {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  height: auto;
}

.streak {
    margin-top: 3em;
}

.streak-icon {
    height: 23px;
    width: 23px;
}

#name {
  height: 17px;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: left;
  width: 250px;
  text-transform: uppercase;
}

.btn {
  font-size: 1.2rem;
  width: 95px;
  border-radius: 7px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.27);
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

#icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-top: 1.5rem;
  margin-right: -1.5rem;
}

#score {
  color: blue;
  font-size: 1.2rem;
  font-weight: bolder;
  text-align: left;
  text-transform: uppercase;
}

#search {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items:center;
    margin: 0.3rem;
    padding: 0.3rem;
}

input {
  width: 690px;
  margin: auto;
  height: 20px;
  border-radius: 1.7rem;
  text-align: center;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  padding: 0.7em;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0px 1px 17px rgb(0, 0, 0, 0.3);
}

input:focus {
    outline: none;
    background-color: rgba(255,255,255, 0.7);
}

.chart-container {
  height: 0;
  width: 670px;
  overflow: hidden;
  color: #fff;
}


.table-container {
  max-height: 237px;
  overflow-y: auto;
  border-radius: 7px;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.score-table th,
.score-table td {
  padding: 8px;
  border: 1px solid #1a1a1b;
  text-align: center;
  background-color: rgba(255,255,255, 0.07);
}

tr {
    font-size: 1.2rem;
    font-weight: 470;
}

th {
    font-size: 1rem;
    top: 0;
    position: sticky;
}

.score-table th {
  color: #fafafa;
  background-color: #1a1a1a;
}

@media screen and (max-width: 600px) {
  body,
  html {
    scroll-behavior: smooth;
  }
  .card {
    width: 470px;
  }
  .chart-container {
    width: 470px;
  }
  .icon {
    height: 90px;
    width: 90px;
  }
  #name {
    width: 200px;
    font-size: 1.0rem;
  }
  #sno {
      font-size: 1.27rem;
  }
  #score {
      font-size: 1.0rem;
  }
  .btn {
    font-size: 1.0rem;
  }
  .header {
    margin-left: auto;
    width: 470px;
  }
  input {
      width: 450px;
  }
  .item:first-child::before {
    content: "";
    display: inline-block;
    width: 18px;
  }
  .item:nth-child(3) {
      width: 52px;
  }
  .item:last-child::after {
    content: "";
    display: inline-block;
    width: 0;
  }
}

@media only screen and (min-width: 600px) and (max-width: 768px) {
     body,
  html {
    scroll-behavior: smooth;
  }
  .card {
    width: 600px;
  }
  .chart-container {
    width: 600px;
  }
  .icon {
    height: 90px;
    width: 90px;
  }
  #name {
    font-size: 1.1rem;
  }
  .btn {
    font-size: 1.1rem;
  }
  #score {
      font-size: 1.1rem;
  }
  .header {
    margin-left: auto;
    width: 600px;
  }
  input {
      width: 580px;
  }
  .item:first-child::before {
    content: "";
    display: inline-block;
    width: 29px
  }
  .item:nth-child(3) {
    width: 20px;
  }
  .item:last-child::after {
    content: "";
    display: inline-block;
    width: 12px;
  }
}

#return-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#return-to-top a {
  text-decoration: none;
  color: #1a1a1a;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

#return-to-top a:hover {
  background-color: rgba(255, 255, 255, 0.7)
}

.made-with-love {
  margin-top: 40px;
  padding: 10px;
  clear: left;
  text-align: center;
  font-size: 17px;
  font-family: arial;
  color: white;
}
.made-with-love i {
  font-style: normal;
  color: red;
  font-size: 17px;
  position: relative;
  top: 2px;
}

#note {
    color: white;
}

::-webkit-scrollbar {
  width: 6px;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgb(1 2 3 / 40%);
  border-radius: 10px;
}
