html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial Black', sans-serif;
  background-color: #FF4F1F;
  color: #FFEFCB;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
}


.main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.banner,
.scoreboard {
  width: 100%;
  height: 20%;
  background-color: #992E1F;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
}

.gameBanner {
  width: 100%;
  height: 20%;
  background-color: #FF4F1F;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
}


.gameBanner {
  flex: 0 0 180px;
  height: 180px;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  gap: .75rem;
  padding: .5rem 1rem;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sparkle {
  position: absolute;
  font-size: 2vw;
  color: #FFD966;
  animation: twinkle 2s infinite alternate;
}

.sparkle:nth-child(2) {
  top: 10%;
  left: 45%;
}

.sparkle:nth-child(3) {
  top: 20%;
  right: 20%;
}

.sparkle:nth-child(4) {
  bottom: 15%;
  left: 35%;
}

.sparkle:nth-child(5) {
  bottom: 20%;
  right: 10%;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.icon-box {
  width: 10%;
  background-color: rgba(255, 239, 203, 0.5);
  border-radius: 12px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4vw;
  color: #222;
  position: absolute;
}

.icon-box.left {
  left: 10%;
}

.icon-box.right {
  right: 10%
}

.icon-box img {
  max-height: 100px;
  max-width: 100px;
}

.center-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  padding: 2rem;
  min-width: 700px;
  width: 95%;
}

.center-text h1 {
  font-size: 4vw;
  margin: 0;
  color: #FFEFCB;
  text-shadow: 5px 5px #1f1f1f;
}

.center-text h2 {
  font-size: 2vw;
  margin: 0;
  color: #FFEFCB;
  text-shadow: 2px 2px #1f1f1f;
  transform: rotate(-5deg);
}

h1 {
  font-size: 4vw;
  margin: 0;
  color: #FFEFCB;
  text-shadow: 5px 5px #1f1f1f;
}

h2 {
  font-size: 2vw;
  margin: 0;
  color: #FFEFCB;
  text-shadow: 2px 2px #1f1f1f;
  transform: rotate(-5deg);
}


.instructions {
  margin-top: 3rem;
  background-color: #FFEFCB;
  color: black;
  padding: 1rem 2rem;
  border-radius: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  text-shadow: none;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  text-align: left;
}


.pnbutton {
  background-color: #FFEFCB;
  color: #FF4F1F;
  font-size: 1.2rem;
  /* padding: 0.7rem 1.5rem; */
  margin: 0.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  position: absolute;
  /* top: 190px */
}

.pnbutton:hover {
  background-color: #FFD966;
}

.pnbutton.prev {
  left: .5%;
}

.pnbutton.next {
  right: .5%;
}


button {
  background-color: #FFEFCB;
  color: #FF4F1F;
  font-size: 1.2rem;
  padding: 0.7rem 1.5rem;
  margin: 0.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #FFD966;
}

/* prompt-display {
      margin: 2rem auto;
      font-size: 2rem;
      background-color: #FFEFCB;
      color: #333;
      padding: 1rem;
      border-radius: 10px;
      width: 100%;
    } */

.prompt-display {
  margin-top: 2rem;
  background-color: #FFEFCB;
  padding: 15px;
  border-radius: 10px;
  /* display: none; */
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 2rem;
  color: #333;
}

.player-display-container {
  position: relative;
  width: 80%;
  margin-bottom: 2rem;
  text-align: center;
  vertical-align: top;
}

.player-display {
  font-size: 2.5rem;
  font-weight: bold;
}

.timer-display {
  position: fixed;
  bottom: 2%;
  left: 1%;
  background-color: #FFEFCB;
  color: #FF4F1F;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1.5rem;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}


.next-button {
  position: fixed;
  bottom: 2%;
  right: 1%;
  background-color: #FFEFCB;
  color: #FF4F1F;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1.5rem;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  font-family: 'Arial Black', sans-serif;
}

.next-button:hover {
  background-color: #FFD966;
}

.error-popup,
.confirm-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFEFCB;
  color: #FF4F1F;
  padding: 1.5rem;
  border-radius: 12px;
  width: 300px;
  font-size: 1rem;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
  text-align: center;
  display: none;
  z-index: 1100;
}

.error-popup button,
.confirm-popup button {
  margin-top: 10px;
  padding: 5px 15px;
  background-color: #FF4F1F;
  color: #FFEFCB;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.error-popup button:hover,
.confirm-popup button:hover {
  background-color: #FF3300;
}

/* Home / welcome screen */
.game-screen--home {
  background-color: #FF4F1F;
  color: #FFEFCB;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding: 30px 20px;
  text-align: center;
}

.game-screen--home .home-instructions {
  max-width: 900px;
  font-size: 1.3em;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.game-screen--home .home-instructions .highlight {
  color: #FFD700;
  font-weight: bold;
}

.game-screen--home .home-instructions .emoji {
  font-size: 2.5em;
  margin-top: 25px;
}

#confirmMessage {
  white-space: pre-line;
}