/* Potato Clicker CSS */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Colours */
:root {
  --background-color: rgb(0, 6, 19);
  --white: #ffffff;
  --transparent-border: #ffffff27;
  --overlay-alpha: 0;
  --bg-image: url("assets/background.png");
}

/* General Styles */
html {
  background-color: var(--background-color);
  user-select: none;
  font-family: "Rubik", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

nav {
  background-image: url("assets/nav.png");
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  image-rendering: pixelated;
  will-change: transform;
  transform: translateZ(0);
  background-size: 500px 25px;
  color: var(--white);
  margin: 0 0 -20px 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  position: relative;
}

nav p {
  padding: 5px 7px 5px 7px;
  text-align: center;
}

a {
  color: var(--white);
}

p {
  margin: 0px;
}

main {
  display: flex;
  background-color: var(--background-color);
  margin-top: 10px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

section {
  flex-grow: 1;
}

/* General Styles - Mobile */
@media (max-width: 700px) {
  html,
  body {
    height: auto;
  }
}

@media (max-width: 1069px) {
  nav {
    margin: 0;
  }
}

.nav-box {
  border-style: solid;
  border-width: 2px;
  border-color: var(--transparent-border);
  height: 100%;
}

.nav-box-right {
  margin-left: auto;
}

@media (min-width: 701px) {
  .main-inner {
    display: flex;
    width: 100%;
  }
}
.pixelated-background {
  background-image: 
    linear-gradient(rgba(0, 0, 0, var(--overlay-alpha)), rgba(0, 0, 0, var(--overlay-alpha))),
    var(--bg-image);
  background-size: auto, 960px 960px;
  background-repeat: repeat, repeat;
  background-attachment: scroll, local;
  image-rendering: pixelated;
  background-position: center center;
}

@media (max-width: 700px) {
  .mobile-hidden {
    display: none;
    border: none;
  }
}

.clicking-section {
  width: 100px;
  margin: 5px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.game-section {
  width: 500px;
  margin: 5px;
  overflow-y: visible;
}

.upgrade-section {
  width: 569px;
  margin: 5px;
  overflow-x: hidden;
}

@media (min-width: 1040px) and (max-width: 1450px) {
  .upgrade-section {
    width: 500px;
  }
}

@media (max-width: 700px) {
  main {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    margin: 0;
  }

  .main-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  section {
    width: 100%;
    margin: 5px 0;
    height: auto;
    min-height: auto;
  }

  .clicking-section,
  .game-section,
  .upgrade-section {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
  }
}

.upgrades-container {
  margin: 0px;
  padding: 0px;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: 120px;
  align-items: center;
}

.upgrade-button {
  text-align: center;
  background-color: #1f2635;
  border: rgb(0, 6, 19) solid 2px;
  cursor: pointer;
  overflow: hidden;
}

.name-box {
  background-color: rgba(23, 31, 37, 0.641);
  padding: 10px;
  margin: 10px;
  border-style: solid;
  border-radius: 20px;
  color: white;
  text-align: center;
  font-size: 18px;
  padding: 0px 50px 0px 50px;
  width: 350px;
}

@media (max-width: 700px) {
  .name-box {
    width: 400px;
    padding: 0px;
  }
}

@media (max-width: 1069px) {
  .name-box {
    width: 350px;
  }
}

@media (min-width: 1070px) and (max-width: 1100px) {
  .name-box {
    width: 150px;
    padding: 0px;
  }
}

@media (min-width: 1101px) and (max-width: 1330px) {
  .name-box {
    width: 250px;
    padding: 0px 50px 0px 50px;
  }
}

.name-box-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  z-index: 20;
}

@media (max-width: 1100px) {
  .name-box-container {
    margin-top: 20px;
  }
}

.amount-box-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  background-color: rgba(23, 31, 37, 0.641);
  z-index: 20;
}

.potato-amount {
  font-size: 25px;
  padding: 0px;
  margin-top: -2px;
}

.potato-amount-persecond {
  font-size: 14px;
  padding: 0px;
  margin-bottom: -2px;
}

.clicker-button {
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  margin: 0 auto;
  background-color: transparent;
}

.clicker-image {
  width: 80%;
  height: 80%;
  rotate: -1deg;
  filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.5));
}

.clicker-image:hover {
  transform: scale(1.09);
  transition: transform 0.3s ease;
}

.clicker-image:active {
  transform: scale(1);
  transform: rotate(1deg);
  transition: transform 0.1s ease;
}

.clicker-container {
  margin-top: 60px;
  justify-content: center;
}

.version-text {
  color: rgba(255, 255, 255, 0.712);
  font-size: 10px;
  font-size: 25px;
  font-weight: bold;
  margin-bottom: -20px;
}

.version-box-container {
  margin-top: auto;
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
}

.shine-container {
  position: absolute;
  top: 18.3%;
  left: 2%;
}

.potato-wrapper {
  position: relative;
  display: inline-block;
}

.shine,
.shine2 {
  position: absolute;
  top: clamp(15px, calc(160px - 10vw), 150px);
  left: 10%;
  width: 80%;
  opacity: 0.5;
  animation: spin 8s linear infinite;
  transform-origin: center;
}

@media (min-width: 100px) and (max-width: 499px) {
  .shine,
  .shine2 {
    top: clamp(40px, calc(160px - 50vw), 150px);
    width: 80%;
    left: 10%;
  }
}

@media (min-width: 500px) and (max-width: 539px) {
  .shine,
  .shine2 {
    top: clamp(80px, calc(160px - 50vw), 150px);
    width: 60%;
    left: 20%;
  }
}

@media (min-width: 540px) and (max-width: 599px) {
  .shine,
  .shine2 {
    top: clamp(50px, calc(160px - 50vw), 150px);
    width: 60%;
    left: 20%;
  }
}

@media (min-width: 600px) and (max-width: 649px) {
  .shine,
  .shine2 {
    top: clamp(30px, calc(160px - 50vw), 150px);
    width: 60%;
    left: 20%;
  }
}

@media (min-width: 650px) and (max-width: 700px) {
  .shine,
  .shine2 {
    top: clamp(15px, calc(160px - 50vw), 150px);
    width: 60%;
    left: 20%;
  }
}

@media (min-width: 701px) and (max-width: 1040px) {
  .shine,
  .shine2 {
    top: clamp(15px, calc(160px - 14vw), 150px);
  }
}

@media (min-width: 1041px) and (max-width: 1299px) {
  .shine,
  .shine2 {
    top: clamp(15px, calc(160px - 9.5vw), 150px);
  }
}

@media (min-width: 1300px) and (max-width: 1499px) {
  .shine,
  .shine2 {
    top: clamp(15px, calc(160px - 8.5vw), 150px);
  }
}

@media (min-width: 1500px) and (max-width: 1749px) {
  .shine,
  .shine2 {
    top: clamp(15px, calc(160px - 7vw), 150px);
  }
}

@media (min-width: 1750px) {
  .shine,
  .shine2 {
    top: clamp(15px, calc(160px - 9vw), 150px);
  }
}

.shine2 {
  opacity: 0.2;
  animation: spin-counter 8s linear infinite;
}

#potato-button {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  padding: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-counter {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.middle-top {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  gap: 16px;

  background-image: url("assets/wood.png");
  background-size: 600px 150px;
  background-repeat: repeat;
  background-position: center;
  
  image-rendering: pixelated;
  padding-bottom: 10px;
}

.left-middle-buttons,
.right-middle-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.right-middle-buttons .middle-buttons {
  height: 90px;
}

.middle-buttons {
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.407);
  border-radius: 10px;
  border: 2px solid #cfcfcf00;
  color: #e3e3e3;
  padding: 7px 2px 7px 2px;
  cursor: pointer;
  margin: 10px 10px 0px 10px;
}

.middle-buttons-rebirth {
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.407);
  border-radius: 10px 10px 0px 0px;
  border: 2px solid #cfcfcf00;
  color: #e3e3e3;
  padding: 7px 2px 2px 2px;
  cursor: pointer;
  width: 100%;
}
.middle-buttons-rebirth:hover {
  background-color: #6c819615;
  color: rgb(255, 255, 255);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  border-color: rgb(255, 255, 255);
}

#rebirth_bar {
  --fill-percent: 0%;
  width: 100%;
  height:10px;
  border: 1px solid rgba(12, 11, 10, 0.598);
  background:
  linear-gradient(
    to bottom,
    rgba(255,255,255,0.3) 0%, 
    rgba(255,255,255,0) 50%, 
    rgba(255,255,255,0.3) 100%
  ) 0 0 / var(--fill-percent) 100% no-repeat,
  linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%, 
    rgba(0,0,0,0) 50%, 
    rgba(0,0,0,0.1) 100%
  ) 0 0 / var(--fill-percent) 100% no-repeat,
  linear-gradient(
    to right,
    #0787ff 0%,
    #0787ff var(--fill-percent),
    rgba(0,0,0,0.18) var(--fill-percent),
    rgba(0,0,0,0.18) 100%
  );
}

.rebirth-level {
  margin-top: -10px;
  margin-left: -1px;
  padding: 1px 3px;
  margin-right: -3px;
  border: 1px solid black;
  background-color: rgb(37, 20, 15);
  color:#c9e5ff;
  display: none;
}

.rebirth-cont {
  display: flex;
}

.rebirth-container {
  margin: 10px 10px 0px 10px;
}

.mobile-buttons {
  background-color: #00000073;
  font-size: 16px;
  border-radius: 10px;
  border: 2px solid #cfcfcf00;
  color: #6c8196;
  padding: 10px;
  cursor: pointer;
  margin: auto;
  width: 30%;
  display: none;
}

.mobile-buttons:hover {
  background-color: #6c819615;
  color: rgb(255, 255, 255);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  border-color: rgb(255, 255, 255);
}

@media (max-width: 1069px) {
  .mobile-buttons {
    display: block;
  }
  .game-section {
    display: none;
  }
}

.mobile-button-container {
  background-image: url("assets/wood.png");
  background-size: 600px 150px;
  background-repeat: repeat;
  background-position: center;
  image-rendering: pixelated;
  display: flex;
  padding: 8px 0 8px 0;
}

@media (min-width: 1000px) and (max-width: 1450px) {
  .middle-buttons,
  .middle-buttons-unused,
  .right-middle-buttons,
  .left-middle-buttons {
    width: 80%;
    height: 80%;
    margin: 10px auto 10px auto;
  }
  .right-middle-buttons .middle-buttons {
    height: 110px;
    margin-bottom: -20px;
  }
}

.middle-buttons-unused {
  font-size: 16px;
  background-color: transparent;
  border-radius: 10px;
  border: 2px solid #6c8196;
  color: #6c8196;
  padding: 7px 2px 7px 2px;
  cursor: pointer;
  margin: 10px 10px 0px 10px;
}

.middle-buttons:hover {
  background-color: #6c819615;
  color: rgb(255, 255, 255);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  border-color: rgb(255, 255, 255);
}

.comments {
  background: rgba(0, 0, 0, 0.444);
  color: white;
  padding: 16px;
  border-radius: 0px 0px 10px 10px;
}

.comments-mobile {
  text-shadow: 2px 1px 0 black;
  background-image: url("assets/wood.png");
  background-size: 600px 150px;
  background-position: center;
  image-rendering: pixelated;
  color: white;
  font-size: 12px;
  margin: 0px;
  display: none;
}

@media (max-width: 1069px) {
  .comments {
    display: none;
  }
  .comments-mobile {
    display: block;
  }
}

@media (min-width: 1070px) and (max-width: 1215px) {
  .comments {
    width: 200px;
    margin: auto;
  }
}

@media (min-width: 1216px) and (max-width: 1450px) {
  .comments {
    width: 300px;
    margin: auto;
  }
}

#comment {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
  margin-left: auto;
  margin-right: auto;
}

#comment-mobile {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
  margin-left: auto;
  margin-right: auto;
}

h3 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.divider {
  height: 7px;
  background-color: #121416;
}

.divider-bs {
  height: 7px;
  background-color: #121416;
  margin-bottom: 10px 0 0 0;
}

.store-title-button {
  display: block;
  margin: 0 auto -10px auto;
  font-size: 17px;
  background: none;
  border: none;
  padding: 0;
  font-family: "Rubik", sans-serif;
  font-weight: bold;
}

.store-title-button:hover {
  opacity: 0.9;
}

.upgrades-container {
  display: flex;
  flex-direction: row;
  gap: 1px;
  overflow-x:visible;
  z-index: auto;
}

.upgrades-container:hover {
  opacity: 0.8;
}

.buy-sell-selector {
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  gap: 16px;
  background-color: black;
  padding-bottom: 10px;
}

.buy-sell-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.buy-sell-button {
  font-size: 12px;
  background-color: transparent;
  border: none;
  color: #6c8196;
  padding: 7px 2px 7px 2px;
  cursor: pointer;
  width: 40px;
  margin: 0px 10px -5px 10px;
  text-align: center;
}

.selected,
.buy-sell-button:hover {
  color: rgb(255, 255, 255);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.multiplier-container {
  display: flex;
  justify-content: center;
  margin-top: 5px;
  gap: 2vw;
}

@media (min-width: 370px) and (max-width: 700px) {
  .multiplier-container {
    gap: 15vw;
  }
}

@media (max-width: 369px) {
  .multiplier-container {
    gap: 10vw;
  }
}


.multiplier {
  color: rgba(255, 255, 255, 0.747);
  font-weight: bold;
  background-color: transparent;
  border: none;
}

.multiplier:hover,
.selected {
  cursor: pointer;
  color: rgb(255, 255, 255);
  transition: color 0.3s ease;
}

* {
  box-sizing: border-box;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-rebirth {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal.open {
  display: flex !important;
}

.modal-inner {
  background-image: url("assets/darkNoise.jpg");
  background-repeat: repeat;
  border-radius: 10px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  width: 50%;
}

@media (max-width: 1024px) {
  .modal-inner {
    width: 60%;
  }
}

@media (max-width: 1210px) {
  .modal-inner {
    width: 90%;
    padding: 15px;
  }
}

.modal-inner h2 {
  margin: 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 2px solid rgb(58, 74, 88);
  padding-bottom: 15px;
}

.closeButton {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: rgb(143, 188, 255);
  font-weight: bold;
}

.closeButton-gold {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: rgb(210, 198, 142);
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: -10px;
}

.info-h2 {
  color: white;
  font-size: 30px;
}

.major-update {
  border-top: 3px solid rgb(109, 121, 7);
  border-bottom: 3px solid rgb(109, 121, 7);
  margin-bottom: 15px;
}

.major-h2 {
  color: rgb(229, 255, 0);
  text-align: left;
  font-size: 24px;
  padding-top: 5px;
}

.major-p {
  color: rgb(228, 241, 191);
  text-align: left;
  font-size: 16px;
}

.major-ul {
  color: white;
  text-align: left;
  font-size: 16px;
  margin-top: 10px;
}

.minor-update {
  border-top: 3px solid rgb(87, 87, 87);
  border-bottom: 3px solid rgb(87, 87, 87);
  margin-bottom: 15px;
}

.minor-h2 {
  color: rgb(119, 119, 119);
  text-align: left;
  font-size: 24px;
  padding-top: 5px;
}

.minor-p {
  color: rgb(184, 184, 184);
  text-align: left;
  font-size: 16px;
}

.minor-ul {
  color: rgb(212, 212, 212);
  text-align: left;
  font-size: 16px;
  margin-top: 10px;
}

.flashing {
  color: yellow;
  animation: blinker 0.5s linear infinite;
}

@keyframes blinker {
  70% {
    color: red;
  }
}

.red {
  color: red;
}

.general-stats {
  border-top: 3px solid rgba(255, 255, 255, 0.685);
  border-bottom: 3px solid rgba(255, 255, 255, 0.685);
  margin-bottom: 15px;
  text-align: center;
}

.general-stats-double {
  border-top: 3px solid rgba(255, 255, 255, 0.685);
  border-bottom: 3px solid rgba(255, 255, 255, 0.685);
  margin-bottom: 15px;
  text-align: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

@media (max-width: 650px) {
  .general-stats-double {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

@media (max-width: 1307px) {
  .general-section ul,
  .general-section div {
    gap: 2px;
    font-size: 11px;
  }
}

@media (min-width: 1307px) and (max-width: 1580px) {
  .general-section ul,
  .general-section div {
    gap: 5px;
    font-size: 12px;
  }
}

.line {
  border-right: 3px solid rgba(255, 255, 255, 0.685);
  padding-right: 20px;
}

@media (max-width: 650px) {
  .line {
    border-right: none;
    padding-right: 0px;
  }
}

.general-text {
  color: rgb(128, 255, 244);
  text-align: left;
  font-size: 24px;
  padding-top: 10px;
  align-items: center;
  justify-content: center;
  display: flex;
  margin-bottom: 10px !important;
}

@media (max-width: 700px) {
  .general-section ul {
    font-size: 15px;
  }
}

.stats-ul {
  color: white;
  text-align: left;
  font-size: 16px;
  margin-top: 10px;
}

.space {
  margin-bottom: 15px;
}

.trail {
  position: absolute;
  font-weight: bold;
  font-size: 24px;
  color: rgb(255, 255, 255);
  pointer-events: none;
  user-select: none;
  animation: floatUp 1s forwards;
}

.text {
  position: absolute;
  font-weight: bold;
  font-size: 24px;
  color: rgb(255, 255, 255);
  pointer-events: none;
  user-select: none;
  animation: floatUp 1s forwards;
  padding: 5px 10px;
  border: #121416 solid 3px;
  background-color: #1214168e;
}

.description {
  position: absolute;
  font-weight: bold;
  font-size: 24px;
  color: rgb(255, 255, 255);
  pointer-events: none;
  user-select: none;
  padding: 5px 10px;
  border: #121416 solid 3px;
  background-color: #1214168e;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(0, -50px);
  }
}

.jump-image {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  user-select: none;
}

.gold-potato {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: auto;
  z-index: 9999;
  filter: drop-shadow(0px 0px 10px rgb(238, 255, 0));
  animation: jiggle 10s infinite;
}

@keyframes jiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(30deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

.gold-potato:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.gold-potato.hidden {
  display: none;
}

.yellow-text {
  color: yellow;
  font-weight: bold;
}

.gold-text {
  color: gold;
  font-weight: bold;
  animation: glow 2s infinite;
}

@keyframes glow {
  0%,
  100% {
    text-shadow:
      0 0 1px gold,
      0 0 5ch gold,
      0 0 5px gold;
  }
  50% {
    text-shadow:
      0 0 10px gold,
      0 0 20px gold,
      0 0 30px gold;
  }
}

.purple-text {
  color: purple;
  font-weight: bold;
}

.building-container {
  display: flex;
  align-items: center;
  width: 100%;
  background-image: url("assets/wood.png");
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  image-rendering: pixelated;
  will-change: transform;
  transform: translateZ(0);
  background-size: 500px 125px;
  border: #000000e8 solid 2px;
  color: white;
  overflow-x: hidden;
  overflow-y: visible !important;
}

#buildings {
  display: flex;
  flex-direction: column;
}

.building-info {
  display: flex;
  align-items: center;
  width: 100%;
}

.building-amount {
  margin-left: auto;
}

.building-icon {
  margin-right: 10px;
  justify-content: center;
  display: flex;
  align-items: center;
}

.building-name-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.building-name {
  font-weight: bold;
  font-size: 22px;
  padding: 0px;
  margin: 0px;
}

.building-price {
  padding-top: 5px;
  color: rgb(209, 73, 73);
  font-weight: bold;
  font-size: 14px;
}

.amount-owned {
  font-size: 40px;
  padding-right: 10px;
}

.dropdown {
  position: relative;
  color: chocolate;
  font-weight: bold;
  padding: 10px;
  border: chocolate solid 2px;
  margin: 20px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: chocolate;
  min-width: 130px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dropdown-content a {
  color: #1f2635;
  padding: 12px 16px;
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.options-p {
  color: white;
  text-align: center;
  padding-top: 20px;
}

.dropdown-content a:hover {
  background-color: rgb(243, 125, 40);
}

.selected-version {
  background-color: rgb(255, 136, 0);
}

.spinning-globe-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.spinning-globe {
  margin: -1px 0px -4px 0px;
}

.potion {
  margin: -5px -8px -4px 3px;
}

.github-logo {
  margin: -5px -8px -4px 5px;
  filter: invert(1);
}

.bug-fixes {
  color: rgb(180, 184, 189);
  margin-left: -20px;
}

.darker-year {
  color: #b1b1b1;
}

.save-load-button,
.wipe-button {
  position: relative;
  color: chocolate;
  font-weight: bold;
  padding: 10px;
  border: chocolate solid 2px;
  margin: 20px;
  background-color: #1f2635;
  font-weight: bold;
}

.save-load-button {
  color: rgb(151, 151, 151);
  border: rgb(151, 151, 151) solid 2px;
}

.save-load-button:hover {
  background-color: #263452;
}

.wipe-button {
  color: rgb(197, 37, 37);
  border: rgb(197, 37, 37) solid 2px;
}

.wipe-button:hover {
  background-color: #522626;
}

.green {
  color: rgb(92, 199, 92);
}

.tooltip {
  position: fixed;               /* important – lets us set left/top */
  background-image: url("assets/darkNoise.jpg");
  background-repeat: repeat-x;
  border: 1px solid #000000;
  border-radius: 6px;
  padding: 8px 10px;
  color: #e6e6e6;
  font-size: 13px;
  pointer-events: none;         /* mouse events pass through */
  z-index: 9999999;
  max-width: 220px;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity .15s ease,
    transform .15s ease;
}
.tooltip.shown { opacity:1; transform:translateY(0); }
.tooltip.hidden { opacity:0; }
.tooltip .title   { font-weight:bold; margin-bottom:4px; }
.tooltip .price   { color:#ffd966; margin-top:4px; }
.tooltip .effect  { color:#9fdc9f; margin-top:2px; }

.tooltip {
  left: 12px;
  top: 12px;
}

.username,
.password {
  color: white;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px;
}

.auth-wrapper {
  margin: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-box {
  width: 300px;
  padding: 20px;
  border-radius: 10px;
  color: rgb(151, 151, 151);
  font-family: sans-serif;
}

/* Hide radios */
.auth-toggle {
  display: none;
}

/* Tabs */
.auth-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.auth-tab {
  cursor: pointer;
  opacity: 0.5;
  user-select: none;
  border: rgb(151, 151, 151) solid 2px;
  padding: 10px;
}

#auth-login:checked ~ .auth-tabs .auth-tab-login,
#auth-signup:checked ~ .auth-tabs .auth-tab-signup {
  opacity: 1;
  font-weight: bold;
  font-size: 14px;
}

/* Forms */
.auth-form {
  display: none;
  flex-direction: column;
}

#auth-login:checked ~ .auth-forms .auth-form-login {
  display: flex;
}

#auth-signup:checked ~ .auth-forms .auth-form-signup {
  display: flex;
}

/* Inputs & button */
.auth-input {
  margin-top: 10px;
  padding: 8px;
  border-radius: 5px;
  border: none;
}

.auth-button {
  margin-top: 12px;
  padding: 8px;
  border-radius: 5px;
  border: none;
  background: #2a3f52;
  color: white;
  cursor: pointer;
}

.auth-button:hover {
  opacity: 0.9;
}

.auth-title {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

.leaderboard {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: transparent !important;
}

/* Shared row styling */
.first,
.second,
.third,
.other {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0b1020, #000000);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  gap: 50px;
  margin-bottom: 10px;
}

.first:hover,
.second:hover,
.third:hover,
.other:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

/* 🥇🥈🥉 Special podium styles */
.first {
  border: 2px solid #f7c948;
  background: linear-gradient(145deg, rgb(227, 177, 41), rgb(190, 127, 0));
}
.second {
  border: 2px solid #cfd8dc;
  background: linear-gradient(145deg, #767676, #555555);
}
.third {
  border: 2px solid #cd7f32;
  background: linear-gradient(145deg, #6a3000, #64310f);
}

.other {
  color: white;
}

/* Rank */
.place {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

/* Username */
.username {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

/* Score */
.score {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  white-space: nowrap;
}

/* Normal rows */
.other {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll container */
.scrolling-part {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Mobile */
@media (max-width: 1800px) {
  .first,
  .second,
  .third,
  .other {
    grid-template-columns: 46px 1fr auto;
    padding: 10px 12px;
  }

  .place {
    font-size: 18px;
  }

  .username {
    font-size: 14px;
  }

  .score {
    font-size: 12px;
  }
}

.skin-button-container {
  display: flex;
  justify-content: right;
  margin-top: 10px;
  margin-right: 10px;
  margin-left: auto;
}

.skin-button {
  background-color: #0000007b;
  border-radius: 100px;
  border: #37495a00 solid 3px;
  padding: 5px 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

.skin-button:hover {
  background-color: #0000007e;
  border-radius: 100px;
  border: #ffffff2a solid 3px;
  padding: 5px 10px;
  color: white;
  cursor: pointer;
  margin-bottom: 10px;
}

.skin-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: #37495a solid 2px;
  cursor: pointer;
  max-width: 150px;
  margin-bottom: 10px;
  color: white;
  background-color: #5d5d5d31;
}

@media (max-width: 700px) {
  .skin-div {
    max-width: 100px;
  }
  .skin-div img {
    width: 95%;
  }
  .skins-container {
    grid-template-columns: repeat(auto-fit, minmax(96px, 5fr)) !important;
  }
}

.skin-div:hover {
  border: rgb(144, 123, 1) solid 3px;
}

.skin-options {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
}

.selected-skin {
  border: gold solid 3px;
}

.skins-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-items: center;
  align-items: center;
  margin: 20px;
}

.locked-skin {
  opacity: 0.4;
  pointer-events: auto; /* keep hover for tooltip */
}

#achievement-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.achievement-popup {
  min-width: 260px;
  background: #111;
  color: #fff;
  border-left: 5px solid gold;
  padding: 12px 14px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  animation:
    slideIn 0.4s ease,
    fadeOut 0.4s ease 3.2s forwards;
}

.achievement-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.achievement-desc {
  font-size: 12px;
  opacity: 0.85;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

.code-input {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: none;
  margin-top: 10px;
  background-color: #2a3f52;
  border: #37495a solid 2px;
  text-align: center;
  color: white;
}

.code-input::placeholder {
  color: #6c8196;
}

.redeem-code-button {
  margin-top: 12px;
  padding: 8px;
  border-radius: 5px;
  border: none;
  background: #441ba4;
  color: white;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 10px;
}

.redeem-code-button:hover {
  opacity: 0.9;
}

#accountBox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

#accountStatus {
  font-size: 12px;
  color: #bfc9d3;
  margin-top: 0;
}

.password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-wrapper .auth-input {
  width: 100%;
  padding-right: 2.5em; /* space for the eye */
  box-sizing: border-box;
  height: 2.5em; /* adjust for better vertical alignment */
  font-size: 1em;
}

.password-wrapper .toggle-eye {
  position: absolute;
  top: 50%;
  right: 0.5em; /* distance from input edge */
  transform: translateY(-50%); /* perfect vertical centering */
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.3em; /* tweak until centered visually */
  line-height: 1; /* ensures no extra spacing */
  padding: 0;
}

.auth-input {
  width: 100%;
  height: 2.5em; /* same as password input */
  font-size: 1em;
  padding: 0 0.75em; /* horizontal padding */
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* For password wrapper, keep the padding-right for the eye */
.password-wrapper .auth-input {
  padding-right: 2.5em; /* space for the eye button */
}

.auth-status {
  min-height: 1.5em; /* space even if empty */
  margin-bottom: 0.75em;
  font-size: 0.9em;
  text-align: center;
  font-weight: bold;
  transition: color 0.2s;
  margin: 10px 0 -1px 0;
  padding-top: 2px;
  padding-bottom: 3px;
  border: #111f solid 2px;
  border-radius: 10px;
  display: none;
}

.auth-status.error {
  color: rgb(0, 0, 0);
  background-color: #f19090;
  display: grid;
}

.auth-status.success {
  color: rgb(0, 0, 0);
  background-color: #90f198;
  display: grid;
}

.credits {
  margin-top: 2px;
  color: rgb(30, 247, 30);
}

.anouncement-image {
  width: 500px;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 540px) {
  .anouncement-image {
    width: 300px;
    height: auto;
    border-radius: 10px;
  }
}

.older-versions {
  display: flex;
}

@media (max-width: 600px) {
  .older-versions {
    display: none;
  }
}

.leaderboard-potato {
  height: 22px;          /* fits the 22‑24 px font size used for .place */
  width: auto;
  vertical-align: middle;
  margin-left: 4px;
}

.heart-container {
  margin-top: 10px;
  display: inline-block;  /* shrink to fit content */
  --fill: 15%;            /* variable for the dark portion */
  background: linear-gradient(
    to right,
    rgba(23, 31, 37, 0.641) var(--fill),
    transparent var(--fill)
  );
  z-index: 20;
}

@media (min-width: 1070px) and (max-width: 1530px) {
  .heart-container {
    background: rgba(23, 31, 37, 0.641);
  }
}

@media (max-width: 830px) {
  .heart-container {
    background: rgba(23, 31, 37, 0.641);
  }
}

.heart--price {
  display: flex;
  margin: -8px 0px;
  padding-left: 13px;
}

.heart-amount {
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.time-left {
  background: rgb(39, 55, 70);
  color: white;
  font-size: 12px;
  margin: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgb(0, 0, 0);
  font-weight: bold;
  font-size: 15px;
  margin: 10px;
}

.v_skins-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-price {
  display: flex;
  gap: 2px;
  font-weight: bold;
}

.event-instruction {
  color: white;
  margin: 20px
}

.heart-button {
  background-color: transparent;
  border: none;
  align-items: center;
  justify-content: center;
  display: flex;
}

.heart-size {
  width: 15px;
}

@media (max-width: 700px) {
  .heart-size {
    width: 15px !important;
    height: 15px !important;
  }
}

.red {
  color: rgb(255, 55, 55);
}

.red-other {
  color: rgb(255, 138, 138);
}

.code-hints {
  margin: 0px 0px -20px 0px;
  color: white;
}

.peeler-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.peeler {
  position: absolute;
  width: 32px;
  height: 32px;
  will-change: transform;
  user-select: none;
}

.peeler-orbit.hidden {
  display: none;               /* or visibility:hidden; opacity:0; */
}

/* ---------- Loading overlay ---------- */
#loadingOverlay {
  position: fixed;
  inset: 0;                     /* top/right/bottom/left = 0 */
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: sans-serif;
  font-size: 1.2rem;
  z-index: 99999999999;                /* above everything else */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

/* Fade‑out class – applied when loading is done */
#loadingOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Simple CSS spinner */
.spinner {
  border: 4px solid #444;
  border-top: 4px solid #ffcc00;   /* accent colour – matches the game UI */
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Optional “Loading…” text */
.loading-text {
  margin: 0;
}

@media (min-width: 983px) and (max-width: 1070px) {
  .store-sign {
    background-color: black;
  }
  
}

.store-sign {
  background-image: url("assets/store-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  will-change: transform;
  transform: translateZ(0);
  background-size: 600px 150px;
  margin-top: -80px;
  margin-right: -164px;
  margin-bottom: 12px
  
}

.store-title {
  font-weight: bold;  
  margin-top: 90px;
  padding-right: 150px;
  color: rgb(0, 0, 0); 
}

.blank-divider {
  margin-top: -14px;
}

.gradient {
  height: 100%;
  min-height: 40px;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0),      /* top: fully transparent */
    rgba(0, 0, 0, 0.5)     /* bottom: 50% opacity black */
  );
}

#goldenPotatoImage {
  position: fixed;
}

.building-container-middle {
  background-size: 600px 163px;
  background-repeat: repeat-x;
  background-position: center 0;

  image-rendering: pixelated;
  will-change: background-position;
  transform: translateZ(0);

  width: auto;
  height: 163px;
  margin: 10px;
  border: rgba(0, 0, 0, 0.315) 4px solid;
  border-radius: 20px;
  display: none;
}

.building-container-farmer {
  background-image: url("assets/farmer_background.png");
}

.building-container-tractor {
  background-image: url("assets/tractor_background.png");
}

.building-container-greenhouse {
  background-image: url("assets/greenhouse_background.png");
}

.building-container-chip {
  background-image: url("assets/chip_background.gif");
}

.sell {
  color: red;
}

.skin-div img,
.skin-div p {
  pointer-events: none; /* let the button itself handle hover */
}

#mindmapViewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;

  background-image: url("assets/rebirth_background.jpg");
  background-size: 512px 512px;
  background-position: center;
  background-repeat: repeat;
  image-rendering: pixelated;
}

#mindmapWorld {
  position: absolute;
  transform-origin: 0 0;
}

#mindmapLines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#mindmapOverlay {
  position: absolute;
  inset: 0;
  background-image: url("assets/rebirth_background.jpg");
  background-size: 512px 512px;
  background-position: center;
  background-repeat: repeat;
  image-rendering: pixelated;
  pointer-events: none;
  opacity: 0.5; /* adjust as needed */
}

.mindmap-node {
  position: absolute;
  width: 90px;
  height: 90px;
  background: #000000b3;
  border: 3px solid #d9ff001e;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: 0.2s ease, box-shadow 0.2s ease;
}

.mindmap-node:hover {
  transform: scale(1.1);
  box-shadow: 0 0px 20px rgba(255, 213, 79, 0.6);
  border-color: #fff;
  z-index: 10;
}

.mindmap-node img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
}

#mindmapViewport {
  width: 100%;
  height: 100%;
  margin-top: 60px
}

.modal-inner-mindmap {
  background: none;
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
}

.quote {
  margin-top: 5px;
  font-style: italic;
  color: rgba(232, 232, 232, 0.512);
}

.rebirth-stats {
  position: relative;
  z-index: 10;
  background-image: url("assets/ascendBox.png");
  background-size: 344px 163px;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  color:rgb(255, 255, 126);
  display: grid;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  margin-top: -4px
}

.stats-box {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 5px 50px;
  text-align: center;
  background-image: url("assets/darkNoise.jpg");
  background-size: 512px 512px;
  background-position: center;
  background-repeat: repeat;
  image-rendering: pixelated;
}

.stats-box:first-child {
  margin-top: 7px;
}

.stats-box h2 {
  margin: 0;
  font-size: 13px;
}

.stats-box h2:last-child {
  font-size: 15px;
  color: #ffd54f;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  gap: 2px;
}

.rebirth-confirm {
  background-color: rgb(255, 63, 63);
  color: rgb(219, 208, 138);
  font-weight: bold;
  font-size: 20px;
  margin: 0px 20px;
  border: 3px solid transparent;
  border-radius: 5px;
  margin-top: 1px;
  background:
    linear-gradient(#ff5353, #6a1010) padding-box,
    linear-gradient(135deg, #f5d060, #fff5a0, #a67c00, #f5d060, #fff5a0) border-box;
  background-size: 200% 200%;
  animation: shimmer 3s linear infinite;
  box-shadow:
    0 0 10px rgba(245, 208, 96, 0.4),
    0 0 30px rgba(166, 124, 0, 0.2);
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#modalrebirth {
  width: 100%;
  height: 100%;
}

.mindmap-node.node-purchased {
  border-color: #ffd54f;
  box-shadow: 0 0 16px rgba(255, 213, 79, 0.7);
  cursor: default;
}

.mindmap-node.node-purchased img {
  filter: none;
  opacity: 1;
}

/* Node that is reachable but not yet bought */
.mindmap-node.node-unlocked {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.mindmap-node.node-unlocked img {
  filter: none;
  opacity: 1;
}

.mindmap-node.node-unlocked:hover {
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 213, 79, 0.6);
}

/* Node that is locked / not yet reachable */
.mindmap-node.node-locked {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.mindmap-node.node-locked img {
  filter: brightness(0.25) saturate(0);
  opacity: 0.5;
}

.mindmap-node.node-locked:hover {
  transform: none;
  box-shadow: none;
}

.farmer-scene { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.farmer-field {
  background: transparent;
  padding: 8px 10px 4px;
  min-height: 64px;
  overflow: hidden;
}
.farmer-sprites { display: flex; flex-wrap: nowrap; gap: 4px; align-items: flex-end; overflow-x: auto; overflow-y: hidden; padding-bottom: 30px;}
.farmer-sprite { display: inline-flex; align-items: flex-end; }
.farmer-sprite-img { width: 72px; height: 72px; image-rendering: pixelated; object-fit: contain; }
.farmer-label { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; font-size: 12px; }

.tractor-scene { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.tractor-field {
  background: transparent;
  padding: 10px 10px 4px;
  min-height: 64px;
  overflow: hidden;
}
.tractor-sprites { display: flex; flex-wrap: nowrap; gap: 20px; align-items: flex-end; overflow-x: auto; overflow-y: hidden; padding-bottom: 30px;}
.tractor-sprite { display: inline-flex; align-items: flex-end; }
.tractor-sprite-img { width: 94px; height: 70px; image-rendering: pixelated; object-fit: contain; }
.tractor-label { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; font-size: 12px; }

.greenhouse-scene { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.greenhouse-field {
  background: transparent;
  padding: 0px 10px 4px;
  min-height: 64px;
  overflow: hidden;
  margin-top: -30px;
}
.greenhouse-sprites { display: flex; flex-wrap: nowrap; gap: 50px; align-items: flex-end; overflow-x: auto; overflow-y: hidden; padding-bottom: 30px;}
.greenhouse-sprite { display: inline-flex; align-items: flex-end; }
.greenhouse-sprite-img { width: 100px; height: 100px; image-rendering: pixelated; object-fit: contain; }
.greenhouse-label { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; font-size: 12px; }

.chip-scene { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.chip-field {
  background: transparent;
  padding: 17px 21.5px 4px;
  min-height: 64px;
  overflow: hidden;
}
.chip-sprites { display: flex; flex-wrap: nowrap; gap: 36.7px; align-items: flex-end; overflow-x: auto; overflow-y: hidden; padding-bottom: 20px;}
.chip-sprite { display: inline-flex; align-items: flex-end; }
.chip-sprite-img { width: 83.3px; height: 55px; image-rendering: pixelated; object-fit: contain; }
.chip-label { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; font-size: 12px; }