.infobox{
  width: max-content;
  margin: auto;
  padding: 9px;
  border-width: 1px;
  border-style: solid;
  border-color: #aba89c;
  background: #d7d4c6;
  border-radius: 15px;
}
#gameInfoMenu{
  margin: auto;
  height: 60vh;
  width: 60vw;
  visibility: hidden;
  position: absolute;
  left: 20vw;
  top: 20vh;
  background: rgba(0, 0, 0, 0.2);
}
.upgrade2{
  font-family: quicksand;
  border-radius: 5px;
  width: 100%;
  height: 4vh;
  border-style: solid;
  z-index: 50;
  margin: 1px;
  display: block;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px black;
  font-size: 1vw;
}
#upgradecount{
  display: block;
  width: 100%;
}
#upgradecountwrapper{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  bottom: 1vh;
  z-index: 100;
  width: 15vw;
}
#lb{
  position: absolute;
  top: 5px;
  left: 5px;
  background-filter: blur(10px);
  width: 24vw;
  border-radius: 5px;
  height: min-content;
}
#lbheader{
  text-align: center;
  font-family: quicksand;
  width: 100%;
  font-weight: 700;
  padding: 0;
  margin: 0;
  background-color: var(--primaryDark);
  color: var(--secondary);
  font-size: 1em;
}
#lblist{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.sbu{
  width: 19%;
  font-family: quicksand;
  background: var(--secondary);
  border-radius: 9px;
  font-size: 2vh;
  height: 15%;
  border-style: solid;
  border-color: var(--primary);
}
.sbu:hover{
  background: #e0ddd0;
}
.sbu input{

}
#autoUpgradeMenu{
  z-index: 70851329758133;
  width: min(720px, calc(100vw - 30px));
  height: 70vh;
  left: 50%;
  top: 15vh;
  transform: translateX(-50%);
  font-family: quicksand;
}
.auto-upgrade-content{
  min-height: 0;
  padding: 12px;
  background: var(--secondary);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}
.auto-upgrade-enabled{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
}
#autoUpgradeLevels{
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-content: start;
  gap: 7px;
}
.auto-upgrade-level{
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}
.auto-upgrade-level select,
.auto-upgrade-import-export input,
.auto-upgrade-import-export button{
  min-width: 0;
  padding: 5px;
  border: 2px solid var(--primary);
  border-radius: 5px;
  font-family: quicksand;
}
.auto-upgrade-import-export{
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 7px;
}
#statusbox{
  position: absolute;
  z-index: 2109;
  background: var(--secondary);
  height: min-content;
  padding: 10px;
  border-radius: 10px;
  width: min-content;
  top: 50%;
  min-width: 15vw;
  left: 50%;
  visibility: hidden;
  box-shadow: 0px 0px 5px black;
  transform: translate(-50%, -50%);
  font-family: quicksand;
  display: flex;
  flex-direction: column;
}
.arrow{
  height: 25px;
  background: gray;
  width: 25px;
}

#play{
  width: 100%;
  height: 52px;
  border: 3px solid #b9f0a9;
  background: #3eb34b;
  font-family: quicksand;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 0 #1d6d2a, 0 6px 12px rgba(0, 0, 0, 0.45);
  font-size: 25px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
#play:hover{
  color: white;
  background: #50c75b;
  border-color: #e0ffd8;
  filter: saturate(1.12) brightness(1.05);
  box-shadow: 0 6px 0 #1d6d2a, 0 9px 18px rgba(0, 0, 0, 0.42);
  transform: translateY(-3px) scale(1.025);
}
#play:active{
  box-shadow: 0 2px 0 #1d6d2a, 0 4px 8px rgba(0, 0, 0, 0.4);
  transform: translateY(2px) scale(0.99);
}

@keyframes play-size-pulse {
  0%, 100% {
    scale: 1;
  }
  50% {
    scale: 1.045;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #play {
    animation: play-size-pulse 1.6s ease-in-out infinite;
  }
}

.upgrade{
  position: relative;
  width: 150px;
  height: 28px;
  color: white;
  pointer-events: auto;
  font-weight: bold;
  text-shadow: 1px 1px rgba(0, 0, 0, 1);
  font-family: quicksand;
  border-radius: 5px;
  font-size: 14px;
  border-style: solid;
  z-index: 50;
  margin: 5px;
}
.upgrade::after {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;

  border-radius: inherit;
  box-shadow:
    0 0 14px 4px rgba(255, 255, 255, 0.9),
    inset 0 0 18px rgba(255, 255, 255, 0.55);

  opacity: 0;
  will-change: opacity;
}

@keyframes upgrade-attention-pulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .upgrade::after {
    animation: upgrade-attention-pulse 1.6s ease-in-out infinite;
  }
}
.upgrade .tooltip{
  visibility: hidden;
  text-align: center;
  position: fixed;
  width: min(700px, calc(100vw - 20px));
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  bottom: calc(10vh + 70px);
  pointer-events: none;
}
.upgrade:hover .tooltip{
  visibility: visible;
}
#upgradebar{
  text-align: center;
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 20px);
  padding: 0px;
  pointer-events: none;
  z-index: 140244;
  left: 0;
  right: 0;
  margin-inline: auto;
  bottom: 10vh;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
}
@keyframes upgradebar-fly-in {
  from {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes upgradebar-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
#upgradebar.upgradebar-enter {
  animation: upgradebar-fly-in 220ms ease-out both;
  will-change: transform, opacity;
}
#upgradebar.upgradebar-leave {
  animation: upgradebar-fade-out 180ms ease-out both;
  pointer-events: none;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  #upgradebar.upgradebar-enter,
  #upgradebar.upgradebar-leave,
  .upgrade::after {
    animation: none;
  }
}
.upgradebar-title{
  flex: 0 0 100%;
  color: white;
  font-family: quicksand;
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;
  text-shadow: 1px 1px rgba(0, 0, 0, 1);
}
.lbthing{
  width: 100%;
  font-family: quicksand;
  height: 1.4em;
  border-style: solid;
  font-weight: 700;
  font-size: 0.9em;
  border-radius: 5px;
  border-color: rgba(0, 0, 0, 0.2);
  border-width: 2px;
  color: white;
  text-indent: 10px;
  display: inline-grid;
  grid-template-columns: 1fr max-content;
  background: rgba(0, 0, 0, 0.3); 
}
.lbthing sub{
  vertical-align: baseline;
}

#advertisement {
  width: 80vw;
  height: 60vh;
  z-index: 102938471039847120398712;
  background: var(--secondary);
  border-radius: 10px; 
  position: absolute;
  left: 10vw;
  padding: 10px;
  border-style: solid;
  border-color: #C6C4B8;
  overflow-y: scroll;
  border-width: 3px;
  top: 20vh;
}

.mainButton{
  font-family: quicksand;
  color: var(--primary);
  border: solid 1px var(--primary);
  text-align: center;
  padding: 5px;
}
.mainButton2{
  font-family: quicksand;
  border: solid 1px var(--primary);
  text-align: center;
  background: var(--secondary);
  width: 100%;
  padding: 5px;
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  transition: background 2s;
}
.mainButton2:hover{
  background: #c5d3c5;
}
#socials{
  width: 100%;
  display: flex;
  gap: 5px;
  height: 20%;
  justify-content: center;
}
#socials div{
  aspect-ratio: 1/1;
  border: solid 1px var(--tertiary);
  border-radius: 5px;
  margin: 5px;
  padding: 5px;
  font-size: 1.2em;
  background: var(--primary);
  color: var(--secondary);
  transition: background 0.3s;
}
#socials div:hover{
  background: var(--tertiary);
}
