*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

:root {
  --blue: #28c3f6;
  --red: #fe4848;
  --green: #74ff68;
  --background: #160c13;
  --foreground: #effcf6;
  --font: "Outfit", sans-serif;
  /* test live reload change */
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

body {
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-self: stretch;
}

ul {
  margin-left: 1rem;
}
ul li h3 {
  margin-top: 0.5rem;
}

h1,
h2,
h3 {
  color: var(--blue);
}

h1 {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}
h1 a {
  text-decoration: none;
  color: var(--blue);
}

h2,
h3 {
  margin-top: 0.5em;
  font-weight: normal;
  text-align: center;
}

input[type=text] {
  border: none;
  padding: 1rem;
  font-weight: 500;
  color: var(--blue);
  background: transparent;
  flex: 1;
  border-radius: 5px;
  border: 1px solid var(--blue);
  transition: border-color 0.3s ease;
  font-size: 1.2rem;
}

input[type=text]:focus {
  border-color: var(--blue);
}

button {
  font-family: var(--font);
  font-weight: 500;
  color: #000;
  background: var(--blue);
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1.2rem;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  animation: none;
}

button:hover {
  filter: brightness(0.9);
  /* Darken slightly on hover */
}

#rooms {
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#join-room {
  align-items: stretch;
  gap: 0.5rem;
  flex-direction: column;
}
#join-room h3 {
  font-size: 1.7rem;
}
#join-room #join-room-title {
  text-align: left;
  color: var(--green);
}
#join-room div {
  display: flex;
  gap: 1rem;
}
#join-room div input {
  align-self: stretch;
}

#rooms-list button {
  font-size: 1rem;
  padding: 1rem 0.5rem;
  flex: 1;
  background: var(--green);
}

#join-room button {
  padding: 1rem 1rem;
  align-self: center;
  background: var(--green);
  text-transform: uppercase;
  font-size: 1.5em;
}

#rooms-list button.blue {
  background: var(--blue);
}

.players-list,
.players-list h3 {
  font-size: 1rem;
  text-align: left;
}

.players-list h3 {
  color: var(--blue);
}

.players-list h3.warning {
  color: var(--red);
}

.players-list .player-names {
  color: var(--green);
}

#start-game button,
#virtual-keyboard button {
  background-color: var(--blue);
}

div#start-game {
  align-self: center;
}

#game-area {
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 1rem;
}

#players-list {
  flex-direction: column;
}

#players-list div.current {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  font-weight: bold;
  padding-left: 12px;
  position: relative;
}

button#quickstart {
  align-self: stretch;
  display: block;
}

#wordinprogress {
  display: flex;
  font-size: 48px;
  font-weight: bold;
  color: var(--blue);
  text-transform: uppercase;
  justify-content: center;
  align-items: center;
}

#round-messages,
#game-messages {
  font-size: 1.2rem;
  padding: 1rem;
  font-weight: 500;
  color: var(--green);
  text-align: center;
  vertical-align: middle;
}

#round-messages {
  height: 5em;
}

#game-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
  justify-content: center;
  flex-direction: column;
}

.room-url {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  word-break: break-all;
}

/* Animation for updates */
@keyframes highlight {
  0% {
    background-color: #fff;
  }
  50% {
    background-color: #e3f2fd;
  }
  100% {
    background-color: #fff;
  }
}
.highlight {
  animation: highlight 1s ease-in-out;
}

#current-player {
  display: none;
}

.current-player-highlight,
.current-player {
  border-left: 4px solid var(--green);
  font-weight: bold;
  padding-left: 1rem;
  position: relative;
}

#players-list {
  color: var(--blue);
  align-self: stretch;
}

.player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.8rem;
}

div#game-status p {
  text-align: center;
  flex: 1;
}

div#game-status {
  align-self: stretch;
  justify-content: space-between;
  align-items: inherit;
  flex-direction: column;
}

#game-updates {
  margin: 15px auto;
  padding: 10px;
  max-width: 400px;
  min-height: 50px;
  border-radius: 5px;
  text-align: center;
  font-size: 16px;
}

.update-message {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.update-info {
  background-color: #e3f2fd;
  color: #1976d2;
}

.update-success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.update-error {
  background-color: #ffebee;
  color: #c62828;
}

.update-eliminated {
  background-color: #fce4ec;
  color: #c2185b;
}

.update-winner {
  background-color: #fff3e0;
  color: #e65100;
  font-weight: bold;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.update-animate {
  animation: slideIn 0.3s ease-out;
}

.update-fade {
  opacity: 0;
}

div.container {
  max-width: 600px;
  position: relative;
  display: flex;
  flex: 1;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 0 1rem;
}
@media (max-width: 600px) {
  div.container {
    width: 100vw;
    height: 100vh;
  }
}

#rules-icon {
  position: fixed;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--background);
  background: var(--green);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

#rules-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--foreground);
  color: var(--background);
  min-height: 100vh;
  padding: 1rem;
  padding-top: 4rem;
  padding-bottom: 6rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000; /* Ensure it's above the main content */
  overflow-y: scroll;
}
#rules-modal .modal-content {
  max-width: 600px;
  margin: 0 auto;
}
#rules-modal button a {
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
#rules-modal h2 {
  font-size: 1.3rem;
  color: var(--background);
}
#rules-modal button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}
#rules-modal li,
#rules-modal p {
  font-size: 0.9rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
#rules-modal ul {
  margin-top: 0.5rem;
}
#rules-modal p:first-of-type {
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  #rules-modal {
    padding-bottom: 100px;
  }
  footer {
    width: 100vw;
  }
}
@media (min-width: 800px) {
  #rules-modal ul,
  #rules-modal p {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #rules-modal li ul {
    margin-left: 1rem;
  }
}
#rules-modal.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

#rules-modal.slideUp {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  /* Ensure it's above the rules modal */
  opacity: 0;
  /* Start fully transparent */
  transition: opacity 0.3s ease;
  /* Smooth fade-in/out */
}

#video-overlay.visible {
  display: flex;
  /* Show the overlay when the 'visible' class is added */
  opacity: 1;
  /* Fully visible */
}

#video-container {
  position: relative;
  width: 100%;
  background: var(--background);
  padding: 10px;
  border-radius: 8px;
}

#video-container iframe {
  width: 100%;
  height: 450px;
}

#close-video {
  position: absolute;
  bottom: -0.5rem;
  right: 0.5rem;
  padding: 0.3em 0.7em;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--background);
  background: var(--green);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
input {
  font-family: var(--font);
}

input::-moz-placeholder {
  font-family: var(--font);
  font-size: 1.2rem;
}

input::placeholder {
  font-family: var(--font);
  font-size: 1.2rem;
}

#player-name::-moz-placeholder {
  color: var(--blue);
  font-size: 1.5rem;
  opacity: 0.8;
}

#player-name::placeholder {
  color: var(--blue);
  font-size: 1.5rem;
  opacity: 0.8;
}

.turn-status {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--green);
  padding: 12px;
  margin: 0;
  text-align: center;
}

/* When it's the player's turn, add some emphasis */
.turn-status:contains("your turn") {
  color: var(--blue);
  background-color: #ebf5fb;
}

#start-game-button {
  margin: 1rem auto;
}

#submit-challenge {
  text-align: center;
}

#submit-challenge button {
  background-color: var(--red);
  margin: auto;
}

#rooms-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  align-self: stretch;
}

#rooms-list p {
  color: var(--green);
  font-size: 1.2rem;
  text-align: center;
}

.room-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#rooms-list a {
  display: block;
  padding: 10px;
  border: none;
  color: #fff;
  background: var(--green);
  border-radius: 5px;
  margin: 5px 0;
  text-decoration: none;
}

.message_player {
  color: var(--blue);
  font-weight: bold;
}

.uppercase {
  text-transform: uppercase;
  font-weight: bold;
  color: var(--blue);
}

.eliminated {
  color: var(--red);
  text-decoration: line-through;
}

div#virtual-keyboard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  align-self: stretch;
  flex: 1;
}

.keyboard-row {
  display: flex;
  white-space: nowrap;
  gap: 2px;
  justify-content: center;
  height: 2em;
}

#virtual-keyboard button {
  padding: 0;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 1.9em;
  font-size: 1.1rem;
  margin: 0;
}

#virtual-keyboard button.enter {
  font-size: 0.8em;
  letter-spacing: 1px;
  padding: 0 1.2rem;
}

#virtual-keyboard button.enter,
#virtual-keyboard button.delete {
  background: var(--green);
}

div#submit-challenge {
  flex: 1;
}

span.ghost-strikes {
  font-weight: bold;
}

#submit-challenge button:disabled {
  opacity: 0;
}

#letter-input {
  color: var(--green);
  animation: fadeinandout 1s ease-in-out infinite;
}

@keyframes fadeinandout {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}
.messages {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.messages #game-messages {
  padding-bottom: 0;
}

#share-link {
  display: none;
}
#share-link button {
  display: flex;
  font-size: 13px;
  padding: 0.5rem;
  text-transform: uppercase;
  align-items: center;
  gap: 4px;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.aic {
  align-items: center;
}

.fdc {
  flex-direction: column;
}

.jcc {
  justify-content: center;
}

.gap1 {
  gap: 1rem;
}

.m1 {
  margin: 1rem;
}

.m0 {
  margin: 0;
}

.mt0 {
  margin-top: 0;
}

.mv1 {
  margin: 1rem 0;
}

input#player-name:focus-visible {
  border: none;
  outline: 1px solid var(--blue);
}

/* desktop styles */
@media (min-width: 600px) {
  #rooms h2,
  #rooms h3 {
    text-align: left;
  }
  #rooms #get_started {
    justify-content: start;
  }
  .container {
    background: var(--background);
    border-radius: 1rem;
    min-width: 500px;
    min-height: 800px;
    margin-top: 1rem;
  }
  body {
    height: auto;
    background: var(--foreground);
  }
}
/* style updates 8-8-25 */
#ghost_logo {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
}
#ghost_logo img {
  width: 32px;
  height: 32px;
}

footer {
  font-size: 12px;
  position: sticky;
  background-color: var(--background);
  bottom: 0;
  left: 0;
  padding-bottom: 1.5rem;
  text-align: center;
  margin-top: auto;
}
footer a {
  color: var(--green);
}

html.page {
  overflow-x: hidden;
}
html.page main {
  padding: 1rem 1rem 3rem 1rem;
}
html.page main a {
  color: var(--green);
}
html.page main h2 {
  margin-bottom: 1rem;
}
html.page main h3 {
  text-align: left;
}/*# sourceMappingURL=style.css.map */