.word-score {
  padding-left: 5px;
  font-size: 65%;
  color: #a9a4a4;
}

#colours-instructions {
  margin-top: 20px;
}

.td-score-percentage {
  width: 150px;
}

.td-score-percentage > div {
    box-shadow: 0 0 20px  rgb(91, 91, 91);
}

#timeless-level-buttons {
  display: flex;
  justify-content: center;
}

.level-button-pink {
    background-color: #352870;
  border: 5px outset #352870;
  color:#929295;
}

.level-button-green {
    background-color: #533eb1;
    border: 5px outset #533eb1;
    color:white;
}

.previous-link {
  display: flex;
  text-align: end;
  justify-content: flex-end;
}

.next-link {
  display: flex;
  text-align: start;
  justify-content: flex-start;
}

.board-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.date {
  font-size: 75%;
}

h2 {
  margin-bottom: 30px;
}

.table-cell {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 100%;
}

th {
  font-size: 120%;
  font-weight: bold;
  text-align: center;
}

#daily-board-scores-container {
  padding: 20px 20px 20px 20px;
  background-color: #13132a;
  border-radius: 15px;
  width: fit-content;
  height: fit-content;
  overflow: hidden;
}

#daily-board-scores-container td {
  border-bottom: 2px solid green;
  white-space: nowrap;
}

#daily-board-scores-container th {
  background-color: #13132a;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 2px solid green;
  padding: 0;
  box-sizing: border-box;
}

#timeless-board-scores-container {
  padding: 15px 40px 40px 40px;
  background-color: rgba(21, 11, 42, 0.5);
  border-radius: 15px;
  width: fit-content;
  height: fit-content;
  overflow: hidden;
  border: 3px solid #eb5497;
}

#timeless-board-scores-container td {
  white-space: nowrap;
}

#timless-board-scores-container th {
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0;
    box-sizing: border-box;
  }

#daily-board-scores {
  display: flex;
  justify-content: center;
  background-color: #13132a;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 15px !important;
  border: solid 2px green;
}

#timeless-board-scores {
  display: flex;
  justify-content: center;
  background-color: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  padding:5px 20px 20px;
}

.daily-board-scores-table {
  border-spacing: 0;
  border-collapse: separate;
}

#my-score {
  background-color: #352870;
}

.daily-board-scores-table tbody tr:last-child td {
  border-bottom: none;
}

.best-word {
  position: relative;
  bottom: 15px;
}

.best-word-score {
  position: absolute;
  bottom: -15px;
}

#levels-list{
    width:400px;
    text-align:left;
}

@media screen and (max-width: 577px) {


    #levels-list{
        width:300px;
    }
    #timeless-board-scores-container {
        padding: 20px;
      }

      #play-timelessboard-container{
        margin-top:20px;
      }
  .word-sublist {
    margin: 4px;
  }

  .word-score {
    display: none;
  }
  .row {
    --bs-gutter-x: 0;
  }
  .previous-link a,
  .next-link a {
    display: inline-block;
    width: 85px;
  }
  .next-link a {
    text-align: right;
  }
  .best-word {
    bottom: 12px;
  }
  .best-word-score {
    bottom: -15px;
  }
  .player-name {
    width: 60px;
  }
  #play-now {
    margin-bottom: 15px;
  }

  #daily-board-title {
    width: 100% !important;
  }
  .daily-board-scores-table {
    font-size: 70%;
  }

  #daily-board-scores, #timeless-board-scores {
    padding: 0;
    max-height: 400px;
  }
}

@media screen and (max-width: 900px) {
  .player-name {
    width: 60px;
  }

  #play-now {
    margin-bottom: 15px;
  }

  .daily-board-scores-table {
    font-size: 70%;
  }

  #daily-board-scores-container {
    padding: 0;
    margin: 15px 0px;
  }

  #daily-board-scores, #timeless-board-scores {
    max-height: 360px;
  }
}

@media screen and (min-width: 578px) and (max-width: 1399px) {
  #daily-board-scores, #timeless-board-scores {
    max-height: calc(40vw - 40px);
  }
}

@media screen and (min-width: 1400px) {
  #daily-board-scores, #timeless-board-scores {
    max-height: 410px;
  }
}

.play-now {
  width: fit-content;
  font-weight: bold;
  font-size: 100%;
  border-radius: 10px;
  padding: 1px 2px;
  border-width: 4px;
}

#play-daily-board-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
  padding: 10px 50px 10px;
}

#play-timelessboard-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
  background-color: rgba(21, 11, 42, 0.5);
  border-radius: 25px;
  padding: 30px 50px 30px;
}

#play-timelessboard-container > span {
    text-align:left;
}

.small-td {
  font-size: 80%;
}

.very-small-td {
  font-size: 60%;
}

.left-align {
  justify-content: left;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/daily.webp");
  opacity: 0.15  ;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}
