body, html {
  background-image: url("Images/PotatoClicker_Background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  user-select: none;
}

.PotatoClicker_Backgrounds { 
  background-image: 
    url("Images/PotatoClicker_Background%203.png"), 
    url("Images/PotatoClicker_Background%202.png");
  background-position: right, left;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  user-select: none;
}


header {
  border-radius: 5px;
  border-bottom: 3px solid black;
  position: fixed;
  background-color: rgb(47, 47, 47);
  color: white;
  top: 0;
  left: 0;
  right: 0;
  z-index: 42069;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 50px;
}

header .left, header .center, header .right {
  font-family: cursive;
  display: flex;
  align-items: center;
  gap: 20px;
  user-select: none;
}

.link {
  text-decoration: none;
  color: rgb(0, 157, 255);
}

.link:hover {
  text-decoration: underline;
  color: rgb(60, 180, 255);
}





/*POTATO-----------------------------------------*/

.Potato_btn {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  border-radius: 50%;
  position: fixed;
  top: 300px;
  left: 152px;
  outline: none;
  width: 230px;
  height: auto;
  z-index: 5;
}

.Potato_btn:focus-visible {
  outline: none;
}


.Potato_img {
  image-rendering: pixelated;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
  width: 100%;
  z-index: 4;
}


.Potato_img:hover {
  transition: transform 0.1s ease-in;
  transform: scale(1.03);
}

.Potato_img:active {
  transform: scale(0.98);
}



/*POTATO-----------------------------------------*/

.moneyDisplay {
  font-family: cursive;
  position: fixed;
  top: 120px;
  left: 275px;
  transform: translateX(-50%);
  color: white;
  font-size: 40px;
  user-select: none;
  pointer-events: none;
  z-index: 5;
}

.PPSDisplay {
  font-family: cursive;
  position: fixed;
  top: 200px;
  left: 275px;
  transform: translateX(-50%);
  color: white;
  font-size: 20px;
  user-select: none;
  pointer-events: none;
  z-index: 5;
}

.upgradeText {
  position: absolute;
  top: 100px;
  right: 100px;
  font-family: cursive;
  color: white;
  font-weight: bold;
  font-size: 22px;
}

.OneTimeUpgradeText {
  position: absolute;
  top: 100px;
  right: 325px;
  font-family: cursive;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.layout {
  display: grid;
  grid-template-columns: 33.33% 33.33% 1fr 100px;
  height: 100vh;
}

.float-up {
  font-family: cursive;
  position: absolute;
  pointer-events: none;
  font-size: 1.8rem;
  color: white;
  animation: floatUpFade 2.6s ease-out forwards;
  z-index: 10;
}


@keyframes floatUpFade {
  from {
    transform: translateY(0);
    transform: translateX(-50%);
    opacity: 1;
  }
  to {
    transform: translateY(-130px);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 25px;
  animation: ParticleFade 1s ease-out forwards;
  animation-timing-function: ease-out;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 10;
}

@keyframes ParticleFade {
  from {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }
  to {
    transform: translateY(-20px) translateX(var(--randomX));
  }
  to {
    transform: translateY(50px) translateX(var(--randomX));
    opacity: 0;
  }
}


.glow1 {
  image-rendering: crisp-edges;
  width: 380px;
  animation: spin1 16s linear infinite;
  position: fixed;
  top: 230px;
  left: 80px;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

@keyframes spin1 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.glow2 {
  image-rendering: crisp-edges;
  width: 380px;
  animation: spin2 16s linear infinite;
  position: fixed;
  top: 230px;
  left: 80px;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

@keyframes spin2 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}


/*Upgrades----------------------------------------------------------------------------------*/


.upgradeContainer {
  background-color: none;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  overflow-y: auto;
  flex-direction: column;
}

.upgradeContainer .upgrade:last-child {
  margin-bottom: 250px;
}

.upgradeContainer::-webkit-scrollbar {
  background-color: black;
  width: 8px;
}

.upgradeContainer::-webkit-scrollbar-thumb {
  background-color: #c3c3c3;
  border-radius: 4px;
}

.upgradeContainer::-webkit-scrollbar-thumb:hover {
  background-color: #868686;
}


.upgrade {
  background-color: #888;
  box-shadow:
    inset 0 0 5px #000,
    inset 2px 2px 10px rgba(255,255,255,0.2),
    0 2px 5px rgba(0,0,0,0.5);
  position: relative;
  width: 100%;
  height: 80px;
  top: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  border-width: 5px;
  border-right-width: 2px;
  border-color: rgb(66, 66, 66);
  border-style: solid;
  font-family: cursive;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.upgrade_text {
  color: white;
  pointer-events: none;
  font-size: 25px;
  text-align: left;
  flex-grow: 1;
  padding-bottom: 30px;
}

.upgrade_img {
  image-rendering: pixelated;
  height: 60px;
  pointer-events: none;
}

.upgrade_price {
  position: absolute;
  color: white;
  font-weight: bold;
  padding-top: 25px;
  font-size: 15px;
  padding-left: 63px;
  
  margin-left: auto;
  text-align: right;
}

.upgrade_amount {
  font-weight: bold;
  color: rgb(73, 73, 73);
  font-size: 25px;
  text-align: right;
}

.upgrade:hover {
  background-color: #7d7d7d;
  box-shadow:
    inset 0 0 5px #000,
    inset 2px 2px 10px rgba(186, 186, 186, 0.2),
    0 2px 5px rgba(0,0,0,0.5);
}

.upgrade:active {
  border-color: rgb(51, 51, 51);
  background-color: #8c8c8c;
  box-shadow:
    inset 0 0 5px #000,
    inset 2px 2px 10px rgba(167, 167, 167, 0.2),
    0 2px 5px rgba(0,0,0,0.5);
}

.smallPotato {
  height: 12px;
}





.OneTimeUpgrade_container {
  background-color: none;
  position: fixed;
  right: 313px;
  top: 0;
  bottom: 0;
  width: 208px;
  flex-direction: column;
}

.OneTimeUpgrade_text {
  position: absolute;
  color: white;
  pointer-events: none;
  font-family: cursive;
  font-size: 15px;
  text-align: left;
  flex-grow: 1;
  padding-bottom: 20px;
  padding-left: 25px;
}

.OneTimeUpgrade {
  background-color: #888;
  box-shadow:
    inset 0 0 5px #000,
    inset 2px 2px 10px rgba(255,255,255,0.2),
    0 2px 5px rgba(0,0,0,0.5);
  position: relative;
  width: 208px;
  height: 50px;
  top: 180px;
  display: none;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  border-width: 5px;
  border-right-width: 2px;
  border-color: rgb(66, 66, 66);
  border-style: solid;
  font-family: cursive;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.OneTimeUpgrade_img {
  image-rendering: pixelated;
  height: 25px;
  pointer-events: none;
}

.OneTimeUpgrade_price {
  position: absolute;
  color: white;
  font-weight: bold;
  padding-top: 17px;
  font-size: 12px;
  padding-left: 25px;
  
  margin-left: auto;
  text-align: right;
}

.OneTimeUpgrade:hover {
  background-color: #7d7d7d;
  box-shadow:
    inset 0 0 5px #000,
    inset 2px 2px 10px rgba(186, 186, 186, 0.2),
    0 2px 5px rgba(0,0,0,0.5);
}

.OneTimeUpgrade:active {
  border-color: rgb(51, 51, 51);
  background-color: #8c8c8c;
  box-shadow:
    inset 0 0 5px #000,
    inset 2px 2px 10px rgba(167, 167, 167, 0.2),
    0 2px 5px rgba(0,0,0,0.5);
}



.PatchNotesButton {
  position: fixed;
  left: 548px;
  top: 90px;
  z-index: 10;
  width: 120px;
  background-color: rgb(164, 164, 164);
  color: black;
  font-family: cursive;
  font-weight: bold;
  border-style: solid;
  border-left-width: 0px;
  border-top-width: 3px;
  border-bottom-width: 3px;
  border-right-width: 3px; 
  border-color: rgb(255, 255, 255);
  user-select: none;
}

.PatchNotesContainer {
  background-color: rgb(59, 59, 59);
  box-shadow:
    inset 0 0 5px #000,
    inset 2px 2px 10px rgba(167, 167, 167, 0.2),
    0 2px 5px rgba(0,0,0,0.5);
  position: fixed;
  top: 0;
  bottom: 0;
  right: 534px;
  left: 548px;
  z-index: 1;
  display: none;

}

.PatchNotesText {
  position: absolute;
  top: 100px;
  bottom: 5%;
  left: 0;
  width: 97%;
  overflow-y: auto;
  padding: 10px;
  font-family: cursive;
  color: white;
  z-index: 2;
  user-select:text;
}

.PatchNotesButton:hover {
  background-color: rgb(186, 186, 186);
  border-color: rgb(255, 255, 255);
}


.settingsButton {
  position: fixed;
  left: 548px;
  top: 60px;
  z-index: 10;
  width: 120px;
  background-color: rgb(164, 164, 164);
  color: black;
  font-family: cursive;
  font-weight: bold;
  border-style: solid;
  border-left-width: 0px;
  border-top-width: 3px;
  border-bottom-width: 3px;
  border-right-width: 3px; 
  border-color: rgb(255, 255, 255);
  user-select: none;
}

.settingsButton:hover {
  background-color: rgb(186, 186, 186);
  border-color: rgb(255, 255, 255);
}

.settingsContainer {
  background-color: rgb(59, 59, 59);
  box-shadow:
    inset 0 0 5px #000,
    inset 2px 2px 10px rgba(167, 167, 167, 0.2),
    0 2px 5px rgba(0,0,0,0.5);
  position: fixed;
  top: 0;
  bottom: 0;
  right: 534px;
  left: 548px;
  display: none;
}

.musicSwitch {
  position: absolute;
  top: 195px;
  left: 10px;
  width: 50px;
  height: 20px;
  height: auto;
  font-family: cursive;
  font-size: 10px;
  text-align: center;
  border: solid rgb(255, 255, 255) 2px;
  background-color: #b6b6b6;
  user-select: none;
  
  z-index: 101;

}

.musicSwitch:hover {
  background-color: #cfcfcf;
}

.musicText {
  position: absolute;
  top: 200px;
  left: 13px;
  width: 35px;
  height: 20px;
  font-family: cursive;
  color: white;
  pointer-events: none;
  user-select: none;

  z-index: 101;

}

.SFXSwitch {
  position: absolute;
  top: 195px;
  left: 70px;
  width: 50px;
  height: 20px;
  height: auto;
  font-family: cursive;
  font-size: 10px;
  text-align: center;
  border: solid rgb(255, 255, 255) 2px;
  background-color: #b6b6b6;
  user-select: none;

  z-index: 101;

}

.SFXSwitch:hover {
  background-color: #cfcfcf;
}

.SFXText {
  position: absolute;
  top: 200px;
  left: 78px;
  width: 35px;
  height: 20px;
  font-family: cursive;
  color: white;
  pointer-events: none;
  user-select: none;

  z-index: 101;

}


.save {
  position: absolute;
  top: 300px;
  left: 10px;
  width: 80px;
  height: 20px;
  height: auto;
  font-family: cursive;
  font-size: 10px;
  text-align: center;
  border: solid rgb(255, 255, 255) 2px;
  background-color: #b6b6b6;
  user-select: none;

  z-index: 101;
}

.save:hover {
  background-color: #cfcfcf;
}

.wipeSave {
  position: absolute;
  top: 330px;
  left: 100px;
  width: 80px;
  height: 20px;
  height: auto;
  font-family: cursive;
  font-size: 10px;
  text-align: center;
  color: black;
  border: solid red 2px;
  background-color: #7a7a7a;
  user-select: none;

  z-index: 101;
}

.wipeSave:hover {
  background-color: #cfcfcf;
}


.wipeSaveContainer {
  background-color: #2c2c2c;
  position: fixed;
  display: none;
  width: 200px;
  height: 200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  border-style: solid;
  border-color: rgb(255, 143, 143);
  border-radius: 5px;
  z-index: 10000;
}

.wipeSaveText {
  color: rgb(255, 41, 41);
  position: absolute;
  display: flex;
  font-family: cursive;
  top: 10px;
  left: 20px;
  width: 90%;

}

.wipeSaveText2 {
  color: rgb(255, 41, 41);
  position: absolute;
  font-family: cursive;
  top: 80px;
  left: 17px;
  width: 100%;
}

.wipeSaveYes {
  background-color: #707070;
  border-color: rgb(255, 143, 143);;
  color: rgb(255, 255, 255);
  font-family: cursive;
  position: absolute;
  bottom: 30px;
  left: 30px;

  cursor: pointer;
}

.wipeSaveNo {
  background-color: #707070;
  border-color: rgb(255, 143, 143);;
  color: rgb(255, 255, 255);
  font-family: cursive;
  position: absolute;
  bottom: 30px;
  right: 30px;

  cursor: pointer;
}

.wipeSaveYes:hover, .wipeSaveNo:hover {
  background-color: #474747;
}


.exportSave {
  position: absolute;
  top: 330px;
  left: 10px;
  width: 80px;
  height: 20px;
  height: auto;
  font-family: cursive;
  font-size: 10px;
  text-align: center;
  border: solid rgb(255, 255, 255) 2px;
  background-color: #b6b6b6;
  user-select: none;

  z-index: 101;
}

.exportSave:hover {
  background-color: #cfcfcf;
}

.load {
  position: absolute;
  top: 300px;
  left: 100px;
  width: 80px;
  height: 20px;
  height: auto;
  font-family: cursive;
  font-size: 10px;
  text-align: center;
  border: solid rgb(255, 255, 255) 2px;
  background-color: #b6b6b6;
  user-select: none;

  z-index: 101;
}

.load:hover {
  background-color: #cfcfcf;
}


.loadExportContainer {
  background-color: #2c2c2c;
  position: fixed;
  display: none;
  width: 200px;
  height: 200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  border-style: solid;
  border-color: rgb(255, 255, 255);
  border-radius: 5px;
  z-index: 10000;
}

.closeMenu {
  filter: brightness(0.9);
  height: 12px;
  position: absolute;
  right: 5px;
  top: 5px;

  cursor: pointer;
}
.closeMenu:hover {
  filter: brightness(0.8);
}

.loadText {
  color: white;
  position: absolute;
  display: flex;
  font-family: cursive;
  top: 5px;
  left: 7px;
  width: 100%;
}

.loadInput {
  background-color: #4a4a4a;
  color: white;
  font-family: cursive;
  position: fixed;
  display: flex;
  width: 195px;
  height: 150px;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0);
  outline: none;
  border: none;
  resize: none;
  

  z-index: 10001;
}

.exportText {
  color: white;
  position: absolute;
  display: flex;
  font-family: cursive;
  top: 5px;
  left: 60px;
  width: 100%;
}

.exportCode {
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px;
  box-sizing: border-box;
  
  background: #222;
  color: white;
  font-family: cursive;
  font-size: 12px;
  
  overflow-y: auto;
  overflow-x: hidden;
  
  white-space: pre-wrap;
  word-wrap: break-word;

  user-select: text;
}

.exportCode::-webkit-scrollbar {
  width: 8px;
}

.exportCode::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.exportCode::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}


.exportCode::-webkit-scrollbar {
  width: 8px;
}

.loadInput::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.loadInput::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.notificationContainer {
  background-color: transparent;
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 300px;
  height: 300px;

  transform: translate(-50%, 0);
  z-index: 100;
}

.notification {
  background-color: rgb(33, 33, 33);
  position: absolute;
  display: none;
  bottom: 0;
  width: 100%;
  height: 70px;

  border-style: solid;
  border-radius: 5px;
  border-color: rgb(143, 255, 147);

  z-index: 100;
}

.notificationTitle {
  color: white;
  font-family: cursive;
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;

  transform: translate(-50%, 0);
}

.notificationText {
  color: rgb(173, 173, 173);
  font-family: cursive;
  position: absolute;
  bottom: 10px;
  width: 100%;
  margin: 0;
  margin-left: 10px;

}