/* GENERAL */

body {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  background-color: #0d0c1d;
  color: #f8f8f2;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}

.header {
  background-color: #1b1725;
  text-align: center;
  border-bottom: 2px solid #8a2be2;
  box-shadow: 0 0 10px #ff79c6;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.footer {
  text-align: center;
  font-size: 1.5rem;
  color: #666;
  padding: 15px;
  border-top: 2px solid #8a2be2;
}

@media (min-width: 600px) {
  .footer {
    font-size: 2rem;
    padding: 20px;
  }
}

a {
  color: #ff79c6;
  text-decoration: none;
}


/* LOGO */

.logo {
  font-size: 2rem;
  margin-bottom: 5px;
  text-shadow: 0px -2px 0px #ff79c6;
}

.logotype {
  font-size: 1.2rem;
  color: #bd93f9;
  text-shadow: 0 0 4px #ff79c6;
}

@media (min-width: 600px) {
  .logo {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .logotype {
    font-size: 2rem;
  }
}



/* MENU */

.menu {
  display: flex;
  justify-content: space-between;
  margin: 1rem auto;
  flex-direction: column;
}

@media (min-width: 960px) {
  .menu {
    padding: 0 9em;
    flex-direction: row;
    margin: 1rem 0; 
  }
}

.menu--usermenu {
  padding: 3px 10px 0;
  margin: 0;
  flex-direction: row;
}

.menu--usermenu--logedout {
  justify-content: flex-end;
}

.menu__link {
  display: inline-flex;
  align-items: end;
  gap: 10px;
  text-decoration: none;
  color: #ff79c6;
  transition: opacity 0.2s;
}

.menu__link:hover {
  text-decoration: none;
}

.menu__link span:first-child {
  font-size: 1.2rem;
}

.menu__link--small span:first-child {
  font-size: 16px;
}

.menu__link:hover span:first-child {
  text-shadow: 0px 0px 3px #ff79c6;
}

.menu__link span:last-child {
  font-size: 12px;
  font-weight: bold;
}

.menu__link--small span:last-child {
  font-size: 10px;
  font-weight: bold;
}

@media (min-width: 600px) {
  .menu__link span:first-child {
    font-size: 1.5rem;
  }

  .menu__link--small span:first-child {
    font-size: 20px;
  }

  .menu__link span:last-child {
    font-size: 18px;
  }

  .menu__link--small span:last-child {
    font-size: 14px;
  }
}

.menu__link:hover span:last-child {
  /*text-shadow: 0px 0px 2px #ff79c6;*/
  color: #8a2be2;
}



/* PAGE */

.pageHeader {
  border-bottom: 2px solid #8a2be2;
  padding-bottom: 15px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 600px) {
  .pageHeader {
    flex-direction: row;
    align-items: flex-end;
    gap: initial;
  }
}

.pageHeader__title {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.pageHeader__title :first-child {
  font-size: 24px;
  text-shadow: 0px 0px 5px #ff79c6;
}

.pageHeader__title--profile {
  justify-content: center;
}

.profileEmoji {
  position: relative;
  display: inline-block;
}

.profileEmoji__edit {
  position: absolute;
  top: -8px;
  left: -8px;
  font-size: 0.6rem;
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  cursor: pointer;
}

.profileEmoji:hover .profileEmoji__edit {
  opacity: 1;
}

.pageHeader__title--profile :first-child {
  padding-bottom: 6px;
}

.pageHeader__title :last-child {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #ff79c6;
  text-shadow: 0px 2px 10px #8a2be2;
}

@media (min-width: 600px) {
  .pageHeader__title {
    gap: 15px;
  }

  .pageHeader__title :first-child {
    font-size: 60px;
  }

  .pageHeader__title :last-child {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .container {
    margin: 40px auto;
    padding: 0 20px;
  }
}



/* LEDGER */

.ledgerRow {
  background-color: #1b1725;
  border: 1px solid #333;
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  box-shadow: 0 0 10px #ff79c6;
  gap: 10px;
}

@media (min-width: 600px) {
  .ledgerRow {
    padding: 15px 20px;
    gap: 0;
  }
}

.ledgerRow--outOfBudget {
  opacity: 0.5;
  background: #16131d;
  border-color: #222;
}

.ledgerRow--stackable {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ledgerRow--stackable .ledgerRow__mainCol {
  border-left: none;
  padding-left: 0;
  border-top: 1px solid #333;
  padding-top: 10px;
  margin-top: 10px;
}

.ledgerRow--stackable .ledgerRow__statsCol {
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .ledgerRow--stackable {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .ledgerRow--stackable .ledgerRow__mainCol {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    border-left: 1px solid #333;
    padding-left: 20px;
  }

  .ledgerRow--stackable .ledgerRow__statsCol {
    align-items: flex-end;
    text-align: right;
  }
}

/*.ledgerRow:hover {
  background-color: #231d2e;
}*/

.ledgerRow__embedder {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 20px;
}

.ledgerRow--embedded {
  flex-grow: 1;
}

.ledgerRow__rankCol {
  font-size: 1.2rem;
  width: 40px;
  font-family: monospace;
}

.ledgerRow__rankCol--prop {
  width: 30px;
  display: flex;
  justify-content: center;
  margin-right: 0;
}

.ledgerRow__mainCol {
  flex: 1;
  border-left: 1px solid #333;
  padding-left: 10px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ledgerRow__statsCol {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .ledgerRow__rankCol {
    font-size: 1.5rem;
    width: 50px;
  }

  .ledgerRow__rankCol--prop {
    width: 60px;
    margin-right: 20px;
  }

  .ledgerRow__mainCol {
    border-left: 1px solid #333;
    padding-left: 20px;
  }

  .ledgerRow__statsCol {
    min-width: 140px;
  }
}

.ledgerRow__statsCol--gap {
  gap: 8px;
}



/* PROPOSAL MISC */

.budgetInfo {
  text-align: right;
}

.statusIndicator { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; }
.statusIndicator--active { background: #50fa7b; box-shadow: 0 0 10px #50fa7b; }
.statusIndicator--partial { background: #ffb86c; box-shadow: 0 0 10px #ffb86c; }
.statusIndicator--inactive { background: #ff5555; }

.propRow { 
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.propRow:not(:last-child) {
  margin-bottom: 6px;
}



/* CARD */

.card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 1rem;
  flex-grow: 1;
  min-width: 0;
  border: 2px solid #8a2be2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 600px) {
  .card {
    padding: 1.5rem;
    min-width: 280px;
  }
}

.card--pink {
  border: 2px solid #ff00de; /* Neon Pink */
  box-shadow: 0 0 15px rgba(255, 0, 222, 0.5);
}

.card--red {
  border: 2px solid #ff4f1f; /* Hive Red */
  box-shadow: 0 0 15px rgba(255, 79, 31, 0.5);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cardContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 600px) {
  .cardContainer {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}


.card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card__icon {
  font-size: 1.5rem;
  font-weight: bold;
  display: inline-flex;
}

.card__icon img {
  width: 1.5rem;
  height: 1.5rem;
}

.card__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #eee;
  padding-top: 3.1px;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card__row {
  display: flex;
  padding: 0.5rem 0;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.card__row--centered {
  justify-content: center;
}

.outlierRow {
  position: relative;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.outlierRow__wrapper {
  margin-left: auto;
}

.outlierRow__container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .outlierRow {
    flex-wrap: nowrap;
  }

  .outlierRow__wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(calc(100% + 2.5rem), -54%);
    margin-left: 0;
  }
}



/* FORM */

.form input[type="text"],
.form input[type="date"],
.form input[type="number"] {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #8a2be2;
  color: #f8f8f2;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 0.5rem 0;
  width: 50%; /* Adjust as needed */
  text-align: right;
}

.form input:focus {
  outline: none;
  border-bottom-color: #ff79c6;
}



/* POPUP */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 12, 29, 0.8); /* Dark, transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup__content {
  position: relative;
  max-width: 500px;
  width: 90%;
}

.popup__closeButton {
  position: absolute;
  top: -10px;
  right: -10px;
  background: black;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}



/* HUD */

.hud {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 600px) {
  .hud {
    max-width: 500px;
  }
}

.hud__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;

}

.bar__container {
  flex-grow: 1;
  height: 18px; /* Smaller height */
  background-color: #222;
  border-radius: 4px;
  overflow: hidden;
  position: relative; /* For positioning the text */
}

.bar {
  height: 100%;
  transition: width 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}

.bar--red {
  background-color: #ff4f1f
 /* #ff79c6; /* Neon Pink */
}

.bar--blue {
  background-color: lightblue
  /*#bd93f9; /* Purple */
}

.bar__label {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  color: #0d0c1d;
  font-weight: bold;
  text-shadow: 0 0 2px #fff;  

}

.bar__label--right {
  left: unset;
  right: 8px;
}



/* BUTTONS */

.button { 
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  background: #282a36; 
  font-size: 1.5em;

  border: 2px outset #b37d00;
  border-radius: 10px;
  box-shadow: 0 0 10px #8a2be2;
  text-shadow: 0 0 3px #8a2be2;
  transition: all 0.2s ease-in-out;
}

.button:hover {
  box-shadow: 0 0 20px #8a2be2;
  text-shadow: 0 0 5px #8a2be2;
}

.button:active {
  box-shadow: 0 0 25px #ff79c6;
  text-shadow: 0 0 9px #ff79c6;
}


.button--big {
  font-size: 2.5rem;
  width: 84px;
  height: 84px;
}

.button--big:active {
  border: 1px outset #b37d00;
}


.textButton {
  font-size: 0.9em;
  transition: all 0.2s ease-in-out;
  text-shadow: 0 0 5px #8a2be2;
}

@media (min-width: 600px) {
  .textButton {
    font-size: 1.2em;
  }
}

.textButton:hover {
  text-shadow: 0 0 20px #8a2be2;
}

.textButton:active {
  text-shadow: 0 0 25px #ff79c6;
}



/* MISC */

.separator { margin-bottom: 30px; border-color: #444; }

.separator--simple { margin-bottom: 0; border-color: #444; width: 100%; }

.errorContainer {
  padding: 20px;
  text-align: center;
  flex: 1;
  align-content: center;
}

.statItem { display: flex; gap: 3px; font-family: monospace; align-items: center; }
.statItem--big { gap: 0.5rem; font-family: unset; }
.statItem__value { font-size: 0.8rem; }

.statItem__symbol { font-size: 0.8rem; width: 20px; }
.statItem__symbol--wide { width: 65px; }

@media (min-width: 600px) {
  .statItem { gap: 5px; }
  .statItem--big { gap: 1rem; }
  .statItem__value { font-size: 1rem; }
  .statItem__symbol { font-size: 1rem; width: 24px; }
  .statItem__symbol--wide { width: 65px; }
}

.statItem__symbol img {
  width: 1.5rem;
  height: 1.5rem;
}

.statItem--power .statItem__value { color: #ff79c6; font-weight: bold; }
.statItem--liquid .statItem__value { color: #f8f8f2; font-size: 0.8rem; }
.statItem--liquid .statItem__symbol { font-size: 0.8rem; }



/* TYPO */

.username {
  font-size: 0.7rem;
  color: #bd93f9;
  text-transform: lowercase;
  font-weight: 500;
}

.dates {
  font-size: 0.6rem;
  color: #999;
}

.propRow__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8f8f2;
}

.propRow__link {
  display: inline-flex
}

@media (min-width: 600px) {
  .username {
    font-size: 0.8rem;
  }

  .dates {
    font-size: 0.8rem;
  }

  .propRow__title {
    font-size: 0.9rem;
  }
}

@media (min-width: 960px) {
  .username {
    font-size: 1rem;
  }

  .propRow__title {
    font-size: 1.1rem;
  }
}


.balanceLabel {
  font-size: 0.9rem;
  color: #aaa;
}

.label { font-size: 9px; color: #6272a4; text-transform: uppercase; display: block; }
.value { font-size: 14px; color: #f1fa8c; font-weight: bold; font-family: monospace; }

@media (min-width: 600px) {
  .label { font-size: 11px; }
  .value { font-size: 18px; }
}

.partialLabel { font-size: 10px; color: #ffb86c; font-weight: bold; text-transform: uppercase; margin-top: 2px; }
.unfundedLabel { font-size: 10px; color: #ff5555; font-weight: bold; text-transform: uppercase; margin-top: 2px; }


/* LOGO LINK */

.logoLink {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logoLink:hover .logo {
  transform: scale(1.1);
  transition: transform 0.2s;
}

.logoLink:hover .logotype {
  text-shadow: 0 0 8px #ff79c6;
}


/* LANDING PAGE / MANUAL */

.landing {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.manual {
  background: linear-gradient(135deg, #1b1725 0%, #0d0c1d 100%);
  border: 2px solid #8a2be2;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.manual__title {
  background: linear-gradient(90deg, #8a2be2 0%, #ff79c6 100%);
  color: #0d0c1d;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.manual__icon {
  font-size: 1.2rem;
}

.manual__content {
  padding: 1rem;
}

.manual__content p {
  font-size: 0.65rem;
  line-height: 1.8;
  margin: 0 0 1rem 0;
}

.manual__content p:last-child {
  margin-bottom: 0;
}

.manual__item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #44475a;
}

.manual__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.manual__item h3 {
  font-size: 0.75rem;
  color: #ff79c6;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.manual__item h3 span {
  font-size: 1rem;
}

.manual__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.manual__list li {
  font-size: 0.6rem;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f8f8f2;
}

.manual__list li span {
  font-size: 0.9rem;
}

.manual__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.6rem;
}

.manual__table td {
  padding: 0.5rem;
  border-bottom: 1px solid #44475a;
}

.manual__table td:first-child {
  color: #6272a4;
}

.manual__table td:last-child {
  text-align: right;
  color: #f1fa8c;
}

.manual__warning {
  background: rgba(255, 85, 85, 0.15);
  border: 1px solid #ff5555;
  border-radius: 4px;
  padding: 0.8rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.manual__warning span {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.manual__warning p {
  margin: 0;
  font-size: 0.55rem;
  color: #ff5555;
}

.manual__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.manual__links li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #44475a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.manual__links li:last-child {
  border-bottom: none;
}

.manual__links a {
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.manual__links a span {
  font-size: 1rem;
}

.manual__linkdesc {
  font-size: 0.55rem;
  color: #6272a4;
}

@media (min-width: 600px) {
  .landing {
    padding: 2rem;
  }

  .manual__title {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }

  .manual__content {
    padding: 1.5rem;
  }

  .manual__content p {
    font-size: 0.7rem;
  }

  .manual__item h3 {
    font-size: 0.85rem;
  }

  .manual__list li {
    font-size: 0.65rem;
  }

  .manual__table {
    font-size: 0.65rem;
  }

  .manual__warning p {
    font-size: 0.6rem;
  }

  .manual__links a {
    font-size: 0.75rem;
  }

  .manual__linkdesc {
    font-size: 0.6rem;
  }
}