@import url("https://fonts.googleapis.com/css2?family=Barriecito&family=Butterfly+Kids&family=Englebert&family=Give+You+Glory&family=Monoton&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");


  
 
  
.confirmation-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .confirmation-popup {
    background-color: #13132a;
    border: 2px solid #f4c943;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    color: white;
  }
  
  .confirmation-popup button {
    margin: 20px;
    padding: 10px;
    background-color: #352870;
    color: #f4c943;
    border-radius: 5px;
    cursor: pointer;
    font-size: 110%;
  }

  .confirmation-popup button:hover, .confirmation-popup button:active{
    box-shadow: 0px 0px 6px white;
  }
  

#word-definition-banner{
    font-weight: bold;
    font-size:120%;
    font-style: italic;
    width:100%;
    text-align: center;
    padding:10px 0;
    margin:20px 0 10px;
    background-color: #13132a;
}

.popup {
    position: absolute;
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  


  .loading-dots::after {
    content: " .";
    animation: dots 1s steps(3, end) infinite;
  }
  
  @keyframes dots {
    0% { content: " ."; }
    33% { content: " .."; }
    66% { content: " ..."; }
  }
  
#back-button {
  display: none;
}
/* Game Styles */
.container {
  max-width: 100%;
}

/* Light mode */
#game .no-border {
  border: none;
}

/* Game Board*/
.game-header {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

h1,
h2,
#timer {
  text-align: center;
  align-self: center;
  font-family: "Englebert", cursive;
}

.room-name-mobile {
  display: none;
}

.room-name-standard {
  font-size: 170%;
  text-align: center;
  padding-left: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 10px;
}

.wordCount-element {
  background: #1b1835;
  border-radius: 5px;
}

.chat-user-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
  padding-left: 0px;
  margin-left: 0px;
}

.user-list-username {
  display: inline-block;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-overflow: ellipsis; /* Add "..." to the end of overflowing text */
  white-space: nowrap; /* Prevent text from wrapping to the next line */
  overflow: hidden; /* Hide any content that overflows the container */
  width: 80px;
  font-size: 70%;
  padding-left: 10px;
}

/* Word Lists */
.centered-element {
  width: 100%;
  overflow: visible;
  text-align: center;
  background-color: none;
  color: white;
  padding: none;
  margin: none;
  border: none;
}

#word-lists {
  flex-direction: row;
  width: 100%;
  height: 500px;
  overflow-y: scroll;
  display: flex;
  background-color: #13132a;
  font-size: 100%;
  justify-content: center;
  margin: 0px;
  font-family: "Nunito", sans-serif;
}

.word-list-table {
  width: 100%;
  height: 170px;
  display: flex;
  flex-direction: row;
  margin: 10px;
}

.word-sublist {
  margin: 10px;
}

.word-sublist-scroll {
  display: flex;
  flex-direction: column-reverse;
  overflow-y: auto;
  max-height: 75%;
  color: #352870;
}

.word{
    display: flex;
    justify-content: left;
    width:100%;
}
.popup {
  color: #1b1835;
  position: absolute;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* User List */
.rounded-circle {
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for effects */
  height: 30px;
  width: 30px;
}

.rounded-circle:hover,
.rounded-circle:active {
  transform: scale(1.1); /* Scale up the image slightly */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Add a shadow for depth */
}

.user-list {
  display: flex;
  flex-direction: column;
  height: 550px;
  overflow-y: auto;
  overflow-x: hidden;
  width: fit-content;
  padding: 5px 20px 20px 20px;
  margin-bottom: 0px;
  margin-left: 5px;
  border-radius: 20px;
  background-color: #13132a;
  width: 165px;
}

.user-list::-webkit-scrollbar-thumb {
  background: #1b1835;
}

#chat-log::-webkit-scrollbar-thumb {
  background: #1b1835;
  box-shadow: inset 0 0 5px white;
}

#chat-log::-webkit-scrollbar-thumb:hover {
  background: #fb2271;
}

.user-list::-webkit-scrollbar-thumb:hover {
  background: #fb2271;
}

.user-list::-webkit-scrollbar-track {
  box-shadow: none;
}

.user-list::-webkit-scrollbar {
  width: 10px;
}

/* Chat */
#chat-window {
  border-radius: 20px;
  border: solid #f5ce45 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

#chat-log {
  height: 40vw;
  background-color: #13132a;
  word-wrap: break-word; /* Legacy but works in most browsers */
  overflow-wrap: break-word; /* Modern standard */
  word-break: break-word; /* Ensures words break properly */
  padding: 10px;
  overflow-y: scroll;
  width: auto;
}

#chat-message {
  margin: top 10px;
  display: flex;
  flex-direction: row;
  width: auto;
}
#chat-message-input {
  font-size: 20px;
  width: 100%;
  background-color: white;
}

#colours-instructions {
  font-size: 80%;
  box-shadow: 0 0 10px #33c15b;
  display: flex;
  padding: 10px;
  justify-content: space-between;
  width: 100%;
  background-color: #13132a;
  border-radius: 15px;
}

#green-explained {
  color: rgb(51, 193, 91);
}

#yellow-explained {
  color: rgb(244, 202, 68);
}

#pink-explained {
  color: rgb(236, 85, 152);
}

#white-explained {
  color: white;
}

#scroll-to-bottom-btn {
  display: none;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #352870;
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;
}

#scroll-to-bottom-btn:hover {
  background-color: #0056b3;
}

#start-game {
  display: none;
}

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

#show-scores-button{
    padding:5px;
    font-size: 110%;
    background-color: transparent;
    font-weight: bold;
    border-radius: 5px;
    display:none;
    position:absolute;
    bottom: calc(50% - 35px);
    left: calc(50% - 41px);
    border-width: 4px;
    z-index: 2;
}

@media screen and (max-width: 576px) {
    #word-definition-banner{
        font-size:90%;
    }
    .word{
        justify-content: center;
    }
  .word-sublist {
    margin: 4px;
  }

  .word-score {
    display: none;
  }
  .row {
    --bs-gutter-x: 0;
  }
  /* Board Styles */
  /* board should take up full screenspace on mobiles */
  #board {
    width: 92vw;
    height: 92vw;
    gap: 15px;
    padding: 25px;
  }

  #match-mobile {
    display: initial;
    width: 40vw;
    text-align: center;
  }
  #match-standard {
    display: none;
  }
  #board-footer {
    display: flex;
    justify-content: space-between;
    align-items: space-between;
    width: 95%;
    padding-right: 10px;
    padding-left: 10px;
  }

  #guess {
    height: 50px;
    width: 70vw;
    font-size: 175%;
    display: none;
  }
  .room-name-mobile {
    display: unset;
  }
  .room-name-standard {
    display: none;
  }

  .letter {
    font-size: 10vw;
  }

  /* fix the chatlog height on mobiles displays */
  #chat-log {
    height: 200px;
  }
  /* hide the user list on mobiles displays */
  .user-list {
    display: none;
  }

  #word-lists {
    font-size: 60%;
  }

  #word-counters-container {
    max-height: 30px;
    overflow: hidden;
    transition: max-height 2s ease; /* Transition the height property when content changes */
  }

  /* display the word-counters above the board horizontally */
  #word-counters {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 10px;
    border-radius: 20px;
    border: solid white 3px;
    height: fit-content;
    padding: 10px;
    font-size: 85%;
  }

  .wordCount-element {
    margin-right: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
  .rotate-button {
    width: 40px;
    height: 40px;
    font-size: 33px;
  }
  /* Scores Modal */
  #scores-head {
    font-size: 80%;
  }

  #scores-head .big {
    font-size: 110%;
  }

  #scores {
    font-size: 80%;
  }

  .final-score,
  .pos {
    font-size: 110%;
  }
  .number-of-words {
    font-size: 80%;
  }
  #scores .player,
  #scores .best-word {
    font-size: 80%;
  }
  th,
  td {
    padding: 0px;
    text-align: center;
  }

  #board-footer {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .slider {
    transform: rotate(90deg);
  }

  #board .boojum {
    border: solid #33c15b 3px;
  }

  #board .snark {
    border: solid #febe38 3px;
  }

  #colours-instructions {
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }
}

@media screen and (min-width: 577px) and (max-width: 1199px) {
  #match-mobile {
    display: initial;
    width: 10vw;
    text-align: center;
  }

  .user-list {
    height: 44vw;
  }
  #match-standard {
    display: none;
  }
  #board-footer {
    display: flex;
    justify-content: space-between;
    align-items: space-between;
    width: 95%;
    padding-right: 10px;
    padding-left: 10px;
    color: rgb(84, 81, 111);
  }
  #guess {
    height: 50px;
    width: 70vw;
    font-size: 175%;
    display: none;
  }

  .slider {
    transform: rotate(90deg);
  }
  #board {
    width: 35vw;
    height: 35vw;
    gap: 15px;
    padding: 20px;
  }
  #board-footer {
    margin-top: 0px;
    margin-bottom: 0px;
    justify-content: space-between;
  }

  #board .boojum {
    border: solid #33c15b 4px;
  }

  #board .snark {
    border: solid #febe38 4px;
  }

  #word-counters {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 85%;
  }
  #word-counters-container {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
  }
  #chat-window {
    margin-left: 20px;
  }
  .letter {
    font-size: 4.2vw;
  }

  .rotate-button {
    width: 50px;
    height: 50px;
    font-size: 40px;
    line-height: 40px;
  }
}

@media screen and (min-width: 1200px) {

    #word-counters {
        display: flex;
        justify-content: center;
        flex-direction: column;
        height: 85%;
      }
      #word-counters-container {
        display: flex;
        width: 100%;
        height: 100%;
        justify-content: center;
      }
  /* Game Styles */
  /* Game Board */
  #board {
    width: 400px;
    height: 400px;
    padding: 25px;
    border-radius: 37.5px;
    gap: 20px;
  }

  #match-standard {
    height: 20px;
    margin-bottom: 10px;
  }

  #guess {
    width: 350px;
    height: 50px;
    border-radius: 15px;
    font-size: 225%;
  }

  .rotate-button {
    width: 65px;
    height: 65px;
    font-size: 55px;
    line-height: 65px; /* Centers arrow vertically within button */
  }

  .letter {
    font-size: 300%;
  }

  /* chat window */
  #chat-log {
    height: 500px;
  }
  #chat-window {
    margin-left: 40px;
  }
}

/* border animations */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.border-animation {
  position: relative;
  transform-style: preserve-3d;
}

.border-animation::after,
.border-animation::before {
  content: "";
  position: absolute;
  height: 103%;
  width: 103%;
  background-image: conic-gradient(
    from var(--angle),
    transparent 70%,
    green,
    white
  );
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transform: translateZ(-1px);
  padding: 10px;
  border-radius: inherit;
  animation: 0.5s spin linear infinite;
}
.border-animation::before {
  filter: blur(1rem);
  opacity: 0.7;
}

.border-animation-strong {
  position: relative;
  transform-style: preserve-3d;
}

.border-animation-strong::after,
.border-animation-strong::before {
  content: "";
  position: absolute;
  height: 106%;
  width: 106%;
  background-image: conic-gradient(
    from var(--angle),
    transparent 70%,
    green,
    white
  );
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transform: translateZ(-1px);
  padding: 10px;
  border-radius: inherit;
  animation: 0.5s spin linear infinite;
}
.border-animation-strong::before {
  filter: blur(1rem);
  opacity: 0.7;
}

.border-animation-stronger {
  position: relative;
  transform-style: preserve-3d;
}

.border-animation-stronger::after,
.border-animation-stronger::before {
  content: "";
  position: absolute;
  height: 107%;
  width: 107%;
  background-image: conic-gradient(
    from var(--angle),
    transparent 70%,
    green,
    white
  );
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transform: translateZ(-1px);
  padding: 10px;
  border-radius: inherit;
  animation: 0.5s spin linear infinite;
  filter: blur(7px);
}
.border-animation-stronger::before {
  /*filter: blur(1rem);*/
  opacity: 0.7;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}
