:root {
  --light-gray: #eeeeee;
  --cool-blue: #3c91e6;
  --cool-purple: #9370db;
  --text-dark: #333333;
}

body, main {
  font-family: 'Comfortaa';
  font-size: 16px;
  background-color: var(--bg-gray);
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.header {
  background-color: var(--cool-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--light-gray);
  padding: 3rem 1rem;
}

.game-list {
  list-style-type: none;
  padding-left: 0;
  color: var(--light-gray);
  margin: 0;
  height: calc(100vh - 11rem);
  overflow-y: auto;
}

.game-list::-webkit-scrollbar {
  display: none;
}

.game-list li:nth-child(even) {
  background-color: var(--cool-blue);
}

.game-list li:nth-child(odd) {
  background-color: var(--cool-purple);
}

.game-card {
  padding: 2%;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.header-h1 {
  margin-left: 1rem;
}

.redirect-btn {
  padding: 15px 25px;
  border: unset;
  border-radius: 15px;
  color: var(--text-dark);
  z-index: 2;
  background: var(--light-gray);
  position: relative;
  font-weight: 1000;
  font-size: 17px;
  -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
  box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
  transition: all 250ms;
  overflow: hidden;
  margin-right: 1rem;
  cursor: pointer;
 }
 
.redirect-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 15px;
  background-color: var(--cool-purple);
  z-index: -1;
  -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
  box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
  transition: all 250ms;
  cursor: pointer;
}

.redirect-btn:hover {
  color: var(--light-gray);
  background-color: var(--cool-purple);
}

.redirect-btn:hover::before {
  width: 100%;
}

.redirect-btn-blue:hover,
.redirect-btn-blue::before {
  background-color: var(--cool-blue)!important;
}

.game-card-score,
.game-card-date {
  cursor: default;
}

.game-details {
  background-color: var(--cool-purple);
  /* margin-top: -1.5rem; */
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  padding: 1rem 3rem;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.redirect-btns-container {
  display: flex;
}

.game-point-history {
  background-color: var(--cool-purple);
  color: var(--light-gray);
  padding: 0rem 3rem;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: space-between;
}

.game-point-history tr {
  display: flex;
  justify-content: space-between;
}

.game-point-history > div > table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.game-point-history > div > table th,
.game-point-history > div > table td {
  padding: 12px 24px;
  text-align: left;
}

.p1-redirect,
.p2-redirect {
  cursor: pointer;
}

.two-columns {
  display: flex;
  justify-content: space-between;
}

.p1-col {
  background-color: var(--cool-blue);
}

.p2-col {
  background-color: var(--cool-purple);
}

.p1-col,
.p2-col {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pos-abs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
}

.dropdown {
  position: relative;
  width: 250px;
  font-family: sans-serif;
}

.dropdown input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 16px;
  background-color: white;
  font-family: 'Comfortaa';
  font-weight: bold;;
}

.dropdown-list {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  display: none;
  z-index: 1000;
}

.dropdown-list li {
  padding: 10px;
  cursor: pointer;
}

.dropdown-list li:hover {
  background-color: #f0f0f0;
}

.dropdown input:focus {
  outline: none;
  box-shadow: none;
}

.middle-button-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.centered-table-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100vw;
  height: calc(100vh - 9rem);
  margin-top: 9rem;
  display: flex;
  justify-content: center;
  overflow-y: auto;
}

.centered-table-container tr {
  display: flex;
  justify-content: space-between;
}

.leaderboard-table tr {
  display: flex;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.centered-table-container > div > table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.centered-table-container > div > table th,
.centered-table-container > div > table td {
  padding: 12px 24px;
  text-align: left;
  color: var(--light-gray);
}

.centered-table-container > div {
  width: 60%;
}

.centered-table-container th > h1 {
  color: var(--light-gray);
  text-align: center;
  margin: 0;
  /* margin-bottom: 5rem; */
  font-size: 3rem;
}

.centered-table-container::-webkit-scrollbar {
  display: none;
}

.purple-bg {
  background-color: var(--cool-purple);
}

#p1-name-redirect,
#p2-name-redirect,
.p-name-redirect {
  cursor: pointer;
}

.leaderboard-p-name {
  display: flex;
  align-items: center; 
}

.leaderboard-p-name > h1:first-child,
.leaderboard-p-name > h2:first-child {
  margin-right: 0.5rem;
}

.leaderboard-first-place {
  font-size: 3rem;
}

.leaderboard-second-place {
  font-size: 2.5rem;
}

.leaderboard-third-place {
  font-size: 2rem;
}

.leaderboard-placement-display > h1,
.leaderboard-placement-display > h2 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
}

.leaderboard-p-name > h1 {
  text-decoration: underline;;
}

.leaderboard-other-places {
  display: flex;
  align-items: center;
}

.leaderboard-table tr:first-child {
  margin-top: 1rem;
}

.leaderboard-table tr:last-child {
  margin-bottom: 1rem;
}

.live-score-display-container {
  display: flex;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}

.live-score-p1-display,
.live-score-p2-display {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Comfortaa';
}

.live-score-p1-display {
  background-color: var(--cool-blue);
}

.live-score-p2-display {
  background-color: var(--cool-purple);
}

.live-score-p1-display > span,
.live-score-p2-display > span {
  font-size: 12.5rem;
  font-weight: bold;
  color: var(--light-gray);
  margin: 0;
  padding: 0;
}
