@import "https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/css/bootstrap.min.css";
@import "./assets/styles/common.css";
@import "./assets/styles/instructions.css";
@import "./assets/styles/customNav.css";

html,
body {
  padding: 0;
  margin: 0;
  border: 0;
  font-family: sans-serif;
  background-color: black;
  color: white;
  font-size: clamp(14px, 1.2vw, 18px);
}

#tgt {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

#ui {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #37e5ff;
  transition: background-color 0.5s;
}

.pageframe {
  opacity: 0;
  transition: opacity 0.25s;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.show_play_dailies_page #page_play_dailies_page {
  opacity: 1;
  pointer-events: initial;
  height: 100vh;
  overflow-y: auto;
}
.show_text_instructions_page #page_text_instructions_page {
  opacity: 1;
  pointer-events: initial;
}

.button_menu_page {
  text-align: center;
}

.game-level .difficulty_cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
}

.difficulty_card {
  background: var(--difficulty-card);
  border-radius: 8px;
  text-align: left;
}
.difficulty_card p {
  margin-top: 8px;
}

.difficulty_heading {
  margin: 0;
  color: #f88;
}

.button_group {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 20px);
}

.steps_list {
  padding-left: clamp(10px, 2vw, 24px);
  list-style-type: circle;
}

.feedback_types {
  list-style-type: "- ";
  color: var(--secondary-text);
}

/* .emoji_examples li {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
  padding: clamp(4px, 1vw, 12px) clamp(4px, 1vw, 12px);
  font-size: clamp(14px, 1.2vw, 18px);
} */

/* .emoji_examples code {
  margin: 0 clamp(2px, 0.5vw, 5px);
  padding: clamp(2px, 0.5vw, 4px) clamp(4px, 1vw, 8px);
  border-radius: clamp(2px, 0.5vw, 4px);
} */

#penaltyMessageRow {
  transition: opacity 0.5s;
  opacity: 1;
}

#penaltyMessageRow.hidden {
  opacity: 0;
}

.version_claim {
  position: absolute;
  bottom: clamp(8px, 1vw, 16px);
  right: clamp(8px, 1vw, 16px);
}

/* custom shape */

.my-custom-border-container {
  margin-top: 4rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding-bottom: clamp(9.375rem, 5.2174rem + 8.673vw, 15.625rem);
}
@media (min-width: 1560px) {
  .my-custom-border-container {
    margin-top: 4.5rem;
  }
}
@media (max-width: 1025px) {
  .my-custom-border-container {
    border-radius: 40px;
    margin-top: 3rem;
    padding-bottom: 0;
    margin-bottom: clamp(5rem, 2.0897rem + 6.0711vw, 9.375rem);
  }
}
@media (max-width: 767px) {
  .my-custom-border-container {
    border-radius: 25px;
  }
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-image: url(./assets/images/Union-min.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top;
  mix-blend-mode: color-burn;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 1025px) {
  .bg-layer {
    background-repeat: repeat;
    background-image: none;
    background-color: #00ddfb;
    background-size: cover;
    box-shadow: 0px 0px 5px 10px rgba(2, 120, 136, 0.5);
    border: 5px solid rgba(2, 120, 136, 0.5);
    border-radius: 40px;
  }
}
@media (max-width: 767px) {
  .bg-layer {
    border-radius: 25px;
    border: 3px solid rgba(2, 120, 136, 0.5);
  }
}

.inner-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 0.0859rem + 3.4284vw, 3rem) clamp(8px, 2vw, 32px) clamp(8px, 2vw, 12px);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* min-height: clamp(41.75rem, 39.4633rem + 4.7702vw, 45.1875rem); */
  min-height: 750px;
}
@media (max-width: 1920px) {
  .inner-content {
    min-height: 770px;
  }
}
@media (max-width: 1439px) {
  .inner-content {
    min-height: 700px;
  }
}
@media (max-width: 1279px) {
  .inner-content {
    min-height: 650px;
  }
}
@media (max-width: 1025px) {
  .inner-content {
    min-height: 480px;
  }
}
@media (max-width: 1024px) {
  .inner-content {
    min-height: 70vh;
    padding-bottom: 80px;
    padding-top: 30px;
  }
}
@media (max-width: 767px) {
  .inner-content {
    min-height: 70vh;
    padding-bottom: 80px;
  }
}

/* custom shape */
.my-custom-border-container.difficult .emojiword_display {
  font-size: 90%;
}
.my-custom-border-container.brutal .emojiword_display {
  font-size: 80%;
}
.emojiword_display {
  margin: 0rem auto var(--spacing-lg);
  transition: font-size 0.5s;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  font-size: 100%;
  margin-bottom: clamp(20px, 1.5vw, 40px);
}
@media (max-width: 480px) {
  .emojiword_display {
    width: 100%;
  }
}
.emojiword_display tbody {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 480px) {
  .emojiword_display tbody {
    /* width: 100%; */
  }
}
.emojiword_display tbody td {
  margin: 0;
  padding: 0;
  width: clamp(60px, 6vw, 110px);
  height: clamp(60px, 6vw, 110px);
  text-align: center;
  font-size: clamp(36px, 3.5vw, 60px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: clamp(14px, 1.5vw, 25px);
}
@media (max-width: 767px) {
  .emojiword_display tbody td {
    width: clamp(40px, 6vw, 80px);
    height: clamp(40px, 6vw, 80px);
    font-size: clamp(24px, 3.5vw, 40px);
    border-radius: clamp(6px, 1.5vw, 12px);
  }
}

.ecpd_puzzle_row,
.ecpd_editor_row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(0.8125rem, 0.5215rem + 0.6071vw, 1.25rem);
  margin-bottom: clamp(1.25rem, 1.0005rem + 0.5204vw, 1.625rem);
}
@media (max-width: 767px) {
  .ecpd_puzzle_row,
  .ecpd_editor_row {
    gap: clamp(0.4375rem, 0.3543rem + 0.1735vw, 0.5625rem);
    width: 100%;
  }
}
@media (max-width: 480px) {
  .ecpd_puzzle_row,
  .ecpd_editor_row {
    /* justify-content: space-around; */
  }
}
.show_play_dailies_page.has_won .ecpd_puzzle_row,
.ecpd_editor_row {
  width: 100%;
  /* justify-content: space-evenly; */
}
.my-custom-border-container.difficult .emojiword_display .ecpd_puzzle_row {
  gap: clamp(10px, 1.5vw, 20px);
}
.my-custom-border-container.difficult .emojiword_display .ecpd_editor_row {
  gap: clamp(10px, 1.5vw, 20px);
}
@media (max-width: 767px) {
  .my-custom-border-container.difficult .emojiword_display .ecpd_puzzle_row,
  .my-custom-border-container.difficult .emojiword_display .ecpd_editor_row {
    gap: 6px;
    justify-content: center;
  }
}

.my-custom-border-container.brutal .emojiword_display .ecpd_puzzle_row {
  gap: clamp(10px, 1.5vw, 15px);
}
.my-custom-border-container.brutal .emojiword_display .ecpd_editor_row {
  gap: clamp(10px, 1.5vw, 15px);
}
@media (max-width: 767px) {
  .my-custom-border-container.brutal .emojiword_display .ecpd_puzzle_row,
  .my-custom-border-container.brutal .emojiword_display .ecpd_editor_row {
    gap: 6px;
    justify-content: center;
  }
}

.ecpd_puzzle_row .left_col,
.ecpd_editor_row .left_col {
  width: 0px;
  display: inline-table;
  display: none;
}
.ecpd_puzzle_row .right_col,
.ecpd_editor_row .right_col {
  width: 0px;
  display: inline-table;
  display: none;
}

.conceded-input input {
  background: #b2b2b2 !important;
}

.conceded-input td {
  border: 8px solid #d4d4d4 !important;
}

.ecpd_puzzle_row td {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%);
  border: clamp(6px, 0.5vw, 8px) solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 4px rgba(255, 255, 255, 0.1);
  background-clip: padding-box;
  backdrop-filter: blur(2px);
}
@media (max-width: 767px) {
  .ecpd_puzzle_row td {
    border-width: 4px;
  }
}
@media (max-width: 480px) {
  .ecpd_puzzle_row td {
    border-width: 2px;
  }
}

/* .ecpd_editor_row {
  padding-top: 30px;
} */
.ecpd_editor_row td {
  overflow: hidden;
  display: inline-flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.3);
  border: clamp(6px, 0.5vw, 8px) solid #fff;
}
@media (max-width: 767px) {
  .ecpd_editor_row td {
    border-width: 4px;
  }
}
@media (max-width: 480px) {
  .ecpd_editor_row td {
    border-width: 2px;
  }
}

.ecpd_editor_row input {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: transparent;
  border: 0px solid transparent;
  color: #fff;
  font-family: "ADLaM Display", sans-serif;
}
.ecpd_editor_row input:focus {
  outline: none;
}

.my-custom-border-container.difficult .emojiword_display tbody td {
  width: clamp(80px, 6vw, 100px);
  height: clamp(80px, 6vw, 100px);
}
.my-custom-border-container.brutal .emojiword_display tbody td {
  width: clamp(80px, 6vw, 100px);
  height: clamp(80px, 6vw, 100px);
}
@media (max-width: 1024px) {
  .my-custom-border-container.difficult .emojiword_display tbody td {
    width: clamp(40px, 6vw, 80px) !important;
    height: clamp(40px, 6vw, 80px) !important;
  }
  .my-custom-border-container.brutal .emojiword_display tbody td {
    width: clamp(40px, 6vw, 80px);
    height: clamp(40px, 6vw, 80px);
  }
}
@media (max-width: 480px) {
  .my-custom-border-container.difficult .emojiword_display tbody td,
  .my-custom-border-container.brutal .emojiword_display tbody td {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}
/* Concede Button */
/* concede button */
#dailies_concede_button_box {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
}

#dailies_reveal_button_box {
  position: absolute;
  bottom: 0rem;
  left: 0rem;
  z-index: 100;
}

@media (max-width: 1024px) {
  #dailies_reveal_button_box {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
  }
}

#dailies_concede_button_box button:hover {
  opacity: 100%;
}
.concede_button,
.reveal_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(10.75rem, 4.3013rem + 9.2801vw, 15.4375rem);
  height: clamp(3.4375rem, 2.3981rem + 2.1683vw, 5rem);
  margin: 0 auto;
  padding: 0;
  position: relative;
  background-color: #ffdbdb;
  border: clamp(6px, 0.5vw, 8px) solid #ffdfdf;
  border-radius: clamp(16px, 3vw, 45px);
  box-shadow:
    0px 2px 7.5px rgba(0, 0, 0, 0.35),
    inset 0px -14px 18px 3px #f67474;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    opacity 0.2s;
  font-size: clamp(1.2rem, 0.0853rem + 1.9081vw, 2.375rem);
  text-shadow: 0px 3px 5px rgba(0, 0, 0, 0.25);
  line-height: 1;
  font-weight: 400;
  color: #fd1313;
  font-family: "Alatsi";
}
@media (max-width: 767px) {
  .concede_button,
  .reveal_button {
    width: clamp(7.5rem, 6.3943rem + 4.914vw, 8.75rem);
    height: clamp(2.5rem, 0.8415rem + 7.371vw, 4.375rem);
    font-size: 16px;
  }
}
.reveal_button {
  background-color: #c2dbff;
  border: clamp(6px, 0.5vw, 8px) solid #deeaff;
  box-shadow:
    0px 2px 7.5px rgba(0, 0, 0, 0.35),
    inset 0px -14px 18px 3px #91b1e1;
  color: #00327c;
}

.concede_button:hover {
  opacity: 0.95;
  box-shadow:
    0px 6px 16px rgba(0, 0, 0, 0.25),
    inset 0px -18px 24px 3px #ed9a14;
}

.concede_button.disabled,
.concede_button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.concede-message {
  color: red;
  font-weight: bold;
  padding: 5px;
}
.outcome.has_lost {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 0 clamp(0.375rem, 0.2087rem + 0.3469vw, 0.625rem);
}

.outcome.has_lost table {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.outcome.has_lost table tbody {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0px;
  width: 100%;
  /* padding: 0 clamp(0.55rem, 0.3253rem + 0.1602vw, 0.7375rem); */
}
@media (max-width: 767px) {
  .outcome.has_lost table tbody {
    justify-content: space-around;
  }
}
.outcome.has_lost table tbody tr {
  font-size: clamp(1rem, 0.8337rem + 0.3469vw, 1.25rem);
  color: #000;
  width: auto !important;
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.outcome.has_lost table tbody tr td {
  /* width: auto !important; */
  height: auto !important;
  font-size: clamp(1rem, 0.9168rem + 0.1735vw, 1.125rem);
  align-items: flex-start;
}

@media (max-width: 767px) {
  .outcome.has_lost table tbody tr td {
    font-size: 14px !important;
    height: auto !important;
  }
}
@media (max-width: 480px) {
  .outcome.has_lost table tbody tr td {
    font-size: 12px !important;
    height: auto !important;
  }
}

.show_play_dailies_page.has_lost .ecpd_puzzle_row {
  margin-bottom: 15px !important;
}

.ecpd_editor_row input:focus {
  background-color: #8fb;
}

.ecpd_history_row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.4375rem, 0.3543rem + 0.1735vw, 0.5625rem);
}

.ecpd_history_row .left_col {
  line-height: 1.2;
  font-family: alatsi, sans-serif;
  font-size: clamp(1rem, 0.9168rem + 0.1735vw, 1.125rem);
  font-weight: 400;
  color: #082056;
  min-width: clamp(3.125rem, 1.8777rem + 2.6019vw, 5rem);
  text-align: left;
}
.ecpd_history_row .history-letters {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #ffedbe, #ffdf8a);
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(236, 174, 16, 0.5);
  border-radius: clamp(1rem, 0.8337rem + 0.3469vw, 1.25rem);
  padding: 3px clamp(1.25rem, 1.0421rem + 0.4337vw, 1.5625rem);
  display: flex;
  gap: clamp(2.5rem, 2.0842rem + 0.8673vw, 3.125rem);
  margin: 0 clamp(1rem, 0.8337rem + 0.3469vw, 1.25rem);
  height: 40px;
}
@media (max-width: 767px) {
  .ecpd_history_row .history-letters {
    gap: 10px;
    height: 30px;
  }
}
@media (max-width: 480px) {
  .ecpd_history_row .history-letters {
    gap: 6px;
  }
}

.ecpd_history_row .history-letters span {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.125rem, 0.9587rem + 0.3469vw, 1.375rem);
  font-weight: 400;
  color: #6d5f39;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    1px 1px 4px rgba(0, 0, 0, 0.2);
}
.ecpd_history_row .right_col {
  background: linear-gradient(to bottom, #ffedbe, #ffdf8a);
  border: 1px solid rgba(236, 174, 16, 0.5);
  /* padding: 3px clamp(0.25rem, 1.0421rem + 0.4337vw, 0.5625rem); */
  color: #082056;
  font-weight: 400;
  font-family: "Fredoka", sans-serif;
  border-radius: clamp(1rem, 0.8337rem + 0.3469vw, 1.25rem);
  min-width: clamp(5.625rem, 4.5856rem + 2.1683vw, 7.1875rem);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 100px;
}
@media (max-width: 767px) {
  .ecpd_history_row .right_col {
    /* min-width: 70px; */
    height: 30px;
  }
}
.ecpd_history_row .right_col .tries-score-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-left: 10px;
}
.ecpd_history_row .right_col .tries-score-container svg {
  width: 26px;
}
@media (max-width: 767px) {
  .ecpd_history_row .right_col .tries-score-container svg {
    width: 20px;
  }
}
.ecpd_history_row .right_col .tries-score-container i {
  margin-right: 10px;
  margin-left: 5px;
  font-style: normal;
}
.ecpd_history_row .right_col .tries-score-container.won {
  background: linear-gradient(to bottom, #98f2ff, #2eb6ca);
  border-radius: clamp(0.8rem, 0.8337rem + 0.3469vw, 1rem);
  height: 32px;
  width: calc(100% - 4px);
  padding-left: 0px;
}
@media (max-width: 767px) {
  .ecpd_history_row .right_col .tries-score-container.won {
    height: 24px;
  }
}
.ecpd_history_row .right_col .tries-score-container.won svg {
  margin-bottom: 14px;
  max-width: 80px;
  width: auto;
}
@media (max-width: 767px) {
  .ecpd_history_row .right_col .tries-score-container.won svg {
    max-width: 50px;
    margin-bottom: 5px;
  }
}

.ecpd_history_row.you-won {
  margin-top: clamp(0.4375rem, 0.3543rem + 0.1735vw, 0.5625rem);
}
.ecpd_history_row.you-won .history-letters {
  background: #ffcf4d url("./assets/images/won-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0px 0px 10px 10px rgba(255, 207, 77, 0.5);
}

.you-won-message {
  font-weight: 400;
  font-size: clamp(1.3rem, 0.853rem + 1.5081vw, 1.9rem);
  color: #5218ff;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  /* margin-bottom: 20px; */
}

/* guess controls */
.guess-controls-container {
  margin-top: auto;
}

.score-section {
  margin: 0 auto;
}

.score-section p {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  color: #0d1a54; /* dark blue */
  text-shadow:
    -3px -3px 0 #fff,
    3px -3px 0 #fff,
    -3px 3px 0 #fff,
    3px 3px 0 #fff,
    1px 1px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 0;
  margin: 0;
}

.remaining_message {
  color: #4c0103;
  font-family: "Alatsi";
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.25rem, 0.9174rem + 0.6938vw, 1.75rem);
  line-height: 1.2;
  /* margin: clamp(1rem, 0.8337rem + 0.3469vw, 1.25rem) 0; */
}
.message_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.message_box button {
  width: clamp(15.625rem, 11.4674rem + 8.673vw, 21.875rem);
  height: clamp(3.125rem, 2.0856rem + 2.1683vw, 4.1875rem);
  transition:
    opacity 0.25s,
    background-color 0.25s;
  border-radius: clamp(1.875rem, 1.4592rem + 0.8673vw, 2.5rem);
}
.message_box button.unavailable {
  pointer-events: none;
}
.message_box button.available {
  background: #13e421;
  border: 8px solid #9affa1;
  box-shadow:
    0px 2px 7.5px rgba(0, 0, 0, 0.35),
    inset 0px -14px 18px 3px #0cbe18;
  border-radius: 40px;
  cursor: pointer;
  color: #fff;
}
.message_box button.available.has_won {
  background: #6db2f7;
  box-shadow:
    0px 2px 7.5px rgba(0, 0, 0, 0.35),
    inset 0px -14px 18px 3px #027df9;
  border: 8px solid rgb(187, 216, 246);
  opacity: 100%;
  width: auto !important;
}
.message_box button.available.has_lost {
  background: #ff6818;
  box-shadow:
    0px 2px 7.5px rgba(0, 0, 0, 0.35),
    inset 0px -14px 18px 3px #fe2b18;
  border: 8px solid #f6968d;
  opacity: 100%;
}
.guess-button {
  background-color: #aaaaaa;
  color: #fff;
  border: none;
  padding: clamp(0.3125rem, 0.1046rem + 0.4337vw, 0.625rem) 10px;
  border-radius: clamp(0.5rem, 0.4168rem + 0.1735vw, 0.625rem);
  font-size: clamp(1.25rem, 1.0837rem + 0.3469vw, 1.5rem);
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  /* margin: 0 auto clamp(0.625rem, 0.5418rem + 0.1735vw, 0.75rem); */
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-bottom: 20px; */
}

.score-text {
  font-size: clamp(24px, 4vw, 52px);
  color: #082156;
  text-shadow:
    -3px -3px 0 #fff,
    3px -3px 0 #fff,
    -3px 3px 0 #fff,
    3px 3px 0 #fff,
    1px 1px 4px rgba(0, 0, 0, 0.2);
  padding: clamp(8px, 2vw, 20px);
}

.revealed-soltion-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px 0;
  max-width: clamp(18.75rem, 17.9185rem + 1.7346vw, 20rem);
}
.revealed-soltion-container.won {
  max-width: 100%;
}

.solution-display {
  margin: 0;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
@media (max-width: 767px) {
  .solution-display {
    width: auto;
  }
}
.revealed-soltion-container.won .solution-display {
  justify-content: space-around;
  margin-bottom: 15px;
}

.solution-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 6vw, 110px);
}
.revealed-soltion-container.won .solution-row {
  align-items: flex-start;
  width: auto;
  color: red;
}
@media (max-width: 767px) {
  .revealed-soltion-container.won .solution-display {
    margin-bottom: 10px;
    justify-content: center;
    width: auto;
    gap: 15px;
  }
}
@media (max-width: 480px) {
  .revealed-soltion-container.won .solution-display {
    gap: 12px;
  }
}
@media (max-width: 390px) {
  .revealed-soltion-container.won .solution-display {
    gap: 8px;
  }
}

.solution-row .letter {
  font-weight: bold;
  text-align: right;
  font-size: clamp(14px, 1.5vw, 24px);
  text-transform: uppercase;
}

.solution-row .justification {
  color: #666;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: normal;
}
@media (max-width: 480px) {
  .solution-row .letter {
    font-size: clamp(12px, 1.2vw, 18px);
  }
  .solution-row .justification {
    font-size: clamp(12px, 1.2vw, 16px);
  }
}
.ecpd_puzzle_row.testing-revealed {
  margin-bottom: 0;
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 15px;
  background-color: randomColor();
  opacity: 1;
  animation: fallAnimation 4s linear forwards;
}

@keyframes fallAnimation {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.summary-screen {
  text-align: center;
  padding: 2rem;
}

.score-display {
  font-size: 2.5rem;
  margin: 2rem 0;
  color: #4caf50;
}

.play-again-button {
  background-color: #4caf50;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.progress-display {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  border-radius: 4px;
}

.game-over-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-over-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.game-over-content h2 {
  margin: 0 0 1rem 0;
  color: #333;
}

.game-over-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.close-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.close-button:hover {
  background: #0056b3;
}

.game-result-page {
  padding: clamp(10px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.game-result-page .result-wrapper {
  width: clamp(220px, 30vw, 450px);
  background: #fff;
  font-size: clamp(8px, 1vw, 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: clamp(6px, 1vw, 10px);
  margin: 0;
  padding-bottom: clamp(12px, 2vw, 30px);
}

.game-result-page .result-wrapper h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: #ff4d8f;
}

.game-result-page .result-wrapper .score-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: clamp(40px, 6vw, 80px);
  width: clamp(40px, 6vw, 80px);
  border: clamp(1px, 0.3vw, 2px) solid #7b4dff;
  border-radius: clamp(25px, 6vw, 50px);
  color: #7b4dff;
  background: #f5f3ff;
  gap: clamp(3px, 1vw, 6px);
  margin-bottom: clamp(10px, 2vw, 30px);
}

.congrats-heading {
  font-size: clamp(1rem, 2vw, 2rem);
  color: #4b3399;
  font-weight: bold;
  margin-top: clamp(-5px, -1vw, -10px);
}

.score-title {
  font-size: clamp(10px, 1vw, 14px);
  font-weight: bold;
  color: #4b3399;
}

.obtained-score {
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: bolder;
  color: #7b4dff;
}

#restart_game_button_box {
  z-index: 100;
}
#restart_game_button_box button {
  margin: 0;
  padding: clamp(4px, 1vw, 10px) clamp(8px, 2vw, 30px);
  position: relative;
  right: 0;
  bottom: 0;
  border: none;
  border-radius: clamp(10px, 2vw, 20px);
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: bold;
  color: #fff;
}
#restart_game_button_box button:hover {
  opacity: 100%;
}
.restart_game_button {
  background-color: #4b3399;
}

.welcome-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

.welcome-content {
  width: clamp(280px, 40vw, 400px);
  background-color: #fff;
  border-radius: clamp(8px, 1vw, 10px);
  padding: clamp(16px, 2vw, 24px);
}

.logo_container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.logo_container img {
  width: 100%;
  max-width: 200px;
}
@media (max-width: 767px) {
  .logo_container img {
    max-width: 150px;
  }
}

.welcome-content h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: #ff4d8f;
}

.welcome-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #000;
  margin-bottom: clamp(8px, 2vw, 20px);
}
.welcome-content strong {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: #000;
  font-weight: normal;
  font-style: italic;
  margin-bottom: clamp(10px, 2vw, 30px);
}

.welcome-content button {
  background-color: #4b3399;
  color: white;
  padding: clamp(8px, 2vw, 16px) clamp(16px, 4vw, 32px);
  font-size: clamp(1rem, 2vw, 1.2rem);
  border: none;
}

.back_to_selection_button {
  position: absolute;
  top: clamp(6px, 2vw, 15px);
  left: clamp(4px, 1vw, 10px);
  z-index: 100;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
}

.padding-right-10 {
  padding-right: 10px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(8px, 2vw, 16px);
  padding: 0 clamp(8px, 2vw, 16px);
}

.button-row button {
  font-size: clamp(12px, 1.2vw, 16px);
  margin: 0;
  width: auto;
  display: inline-block;
  line-height: 1.5em;
  border-radius: clamp(8px, 1vw, 16px);
}

.custom-container {
  position: relative;
  width: clamp(180px, 70vw, 1176px);
  background: transparent;
  border-radius: clamp(10px, 2vw, 30px);
  box-sizing: border-box;
  margin: 0 auto;
  box-shadow: 0px 2px 7.5px rgba(0, 0, 0, 0.35);
}

.custom-container::before {
  content: "";
  position: absolute;
  bottom: clamp(-40px, -6vw, -80px);
  width: clamp(120px, 60vw, 800px);
  height: clamp(40px, 6vw, 80px);
  background: transparent;
  border-radius: 0px 0px clamp(10px, 2vw, 30px) clamp(10px, 2vw, 30px);
  box-shadow: 0px 10px 10px -2px rgba(0, 0, 0, 0.35);
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Footer styles for game pages --- */
.footer-game-bg {
  background: #00ddfb; /* match main game bg, adjust if needed */
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 0;
  border-top: 1px solid rgba(5, 183, 206, 0.5);
  font-size: 1rem;
  box-shadow: 0px -1px 5px 0px rgba(2, 120, 136, 0.5);
  width: 100%;
  z-index: 100;
}
.button_menu_page .footer-game-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
}
@media (max-width: 1024px) {
  .button_menu_page .footer-game-bg {
    position: relative;
  }
}

.upper-footer {
  padding: 40px 0 20px;
}
.logo-holder {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
@media (max-width: 767px) {
  .logo-holder {
    justify-content: center;
  }
}

.logo-holder img {
  max-width: 237px;
  height: auto;
}

/* .footer-nav .nav-list {
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}
.footer-nav .nav-list li a {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #353434;
}
.footer-nav .nav-list li a:hover {
  color: #6d6e6e;
} */
.footer-nav h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 400;
  color: #353434;
  text-align: left;
  margin-bottom: 24px;
}

.address-holder h3 {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  color: #353434;
  /* text-align: left; */
  margin-bottom: 24px;
}
.address-holder {
  text-align: left;
  color: #353434;
}
@media (max-width: 767px) {
  .address-holder {
    text-align: center;
    padding: 20px 0 5px;
  }
}
.address-holder address,
.address-holder a {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #353434;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  margin: 0 auto;
  padding: 0 32px;
  flex-wrap: wrap;
}
.footer-bottom {
  border-top: 1px solid rgba(5, 183, 206, 0.7);
  margin-top: 0px;
  padding: 16px 32px 5px;
  text-align: center;
  color: #353434;
  font-size: 18px;
}
@media (max-width: 767px) {
  .footer-bottom {
    font-size: 16px;
    padding: 16px 0px 5px;
  }
}
.footer-bottom p {
  color: #585858;
  margin: 6px 0;
  text-align: center;
}
