
:root {
    --background: gray;
    --background2tr: rgba(128, 128, 128, 0.548);
}





html, body {
    height: 100%; 
    margin: 0; 
}
body {
    background: var(--background);
    display: flex; 
    justify-content: center;
    align-items: center; 
    color: white; 
    font-family: Arial, sans-serif; 
    position: relative;
    overflow: hidden; 
    background-size: cover; /* Scale the background image to cover the entire body */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the image */
}
.image-pile img {
    width: 100px;
    position: absolute;
    transition: transform 0.5s ease;
}
.image-pile {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
video {
    position: relative;
    top: 0;
    width: 100%; 
    height: 100%; 
    mix-blend-mode: screen; 
    z-index: 1; 
    left: -10px;
}
@keyframes fall {
    from {
        transform: translateY(-1000px); 
        opacity: 0;
    }
    to {
        transform: translateY(0); 
        opacity: 1;
    }
}
@keyframes die {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}
@keyframes flyAway {
    to {
        transform: translate(var(--x), var(--y)) rotate(360deg);
        opacity: 0;
    }
}
body, html {
    height: 100%;
    margin: 0;
}

.version-container {
    position: fixed; /* Fixed positioning relative to the viewport */
    bottom: -20px; /* Align to the bottom */
    right: 0; /* Align to the right */
    margin: 10px; /* Add some margin */
}
.falling-image {
    user-select: none;
    position: relative;
    top: -500;
    left: calc(50% - 50px);
    transform: translateX(-50px) translateY(-500px); /* Move to the left and lower */
    animation: fall 2.95s forwards;
}
.dying-image {
    user-select: none;
    animation: die 2s forwards;
}
.flying-image {
    user-select: none;
    animation: flyAway 2s forwards;
}
.coin-counter {
    user-select: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: gold;
    font-family: 'Arial Black', sans-serif;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border: 2px solid gold;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}
.upgrade-buttons {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
        .current {
    position: absolute;
    top: 7%;
    margin: 10px;
}
.upgrade-button {
    font-size: 16px;
    color: white;
    font-family: 'Arial Black', sans-serif;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border: 2px solid; /* Default border */
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 500px;
    user-select: none;
}
.tnt-speed, .explosion-chance, .spawn-rate, .material-amount, .material-quality, .respawn-rate {
    position: relative; 
    border: none;
}

.tnt-speed::after, .explosion-chance::after, .spawn-rate::after, .material-amount::after, .material-quality::after, .respawn-rate::after,
.tnt-speed::before, .explosion-chance::before, .spawn-rate::before, .material-amount::before, .material-quality::before, .respawn-rate::before {
    position: absolute; 
    left: 0%;
    width: 100%;
    height: 104%;
    border-radius: 1vh;
    background-color: none;
    z-index: -1;
    transform: scale(1.01);
    content: '';
}

.tnt-speed::after { background-image: linear-gradient(to bottom right, rgb(168, 196, 255), rgb(80, 80, 80)); }
.explosion-chance::after { background-image: linear-gradient(to bottom right, rgb(255, 0, 149), rgb(39, 39, 39)); }
.spawn-rate::after { background-image: linear-gradient(to bottom right, rgb(247, 78, 0), rgb(0, 128, 17)); }
.material-amount::after { background-image: linear-gradient(to bottom right, rgb(0, 174, 255), green); }
.material-quality::after { background-image: linear-gradient(to bottom right, rgb(255, 208, 0), rgb(68, 43, 22)); }
.respawn-rate::after { background-image: linear-gradient(to bottom right, rgb(4, 224, 4), rgb(22, 68, 37)); }

.tnt-speed::before { content: '⬆️'; color: red; }
.explosion-chance::before { content: '💥'; color: red; }
.spawn-rate::before { content: '⚡'; color: red; }
.material-amount::before { content: '📦'; color: red; }
.material-quality::before { content: '⭐'; color: red; }
.respawn-rate::before { content: '🔄'; color: red; }

.upgrade-description {
    user-select: none;
    display: flex;
    flex-direction: row; /* Arrange description content in a row */
    align-items: center; /* Center align items */
    justify-content: space-between; /* Space between the name and stats */
    width: 100%;
    padding-left: 20px; /* Add space between button icon and description */
}
.upgrade-name {
    flex: 1; /* Take up as much space as possible */
    padding-right: 20px; /* Add space between name and stats */
}
.upgrade-stats {
    text-align: right; /* Align stats to the right */
}
.hamburger-menu {
    user-select: none;
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 100;
}

.shop-content {
    user-select: none;
    display: none; /* Hide by default */
}

.shop-content.show {
    display: block; /* Show when .show class is added */
}

.shop-icon {
    scale: 0.036;
    position: fixed;
    top: -254px;
    left: 82%;
    cursor: pointer;
    z-index: 100;
}

.menu-content {
    display: none;
    position: fixed;
    top: 50px;
    right: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    padding: 20px;
    z-index: 99;
    width: 400px;
    height: 800px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    background: var(--background2tr);
}

.shop-content {
    display: none; /* Enable Flexbox */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    position: fixed;
    top: 50px;
    right: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    padding: 20px;
    z-index: 99;
    width: 400px;
    height: 800px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    background: var(--background2tr);
    text-align: center;
}

.delete-data-btn {
position: absolute;
bottom: 20px;
left: 20px; /* Adjust based on your layout */
padding: 7px 16px;
background: rgb(192, 38, 0);
border: 1px solid rgb(255, 0, 0);
cursor: pointer;
border-radius: 10px;
color: white;
}

.delete-data-btn:hover {
background: rgb(193, 0, 0);
border-color: rgb(219, 0, 0);
}

.menu-content.show {
    display: block;
}  

.upgrade-description-text {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center; /* Center the content horizontally */
width: 100%;
padding-left: 20px;
text-align: center; /* Center the text within each flex item */
}

.themeButton {
  height: 100px;
  width: 150px;
  margin: 15px;
  position: relative;
  border: none;
    border-radius: 5px;
    user-select: none;
}
.button1 {
  background: rgb(154, 154, 154) !important;
  border: 1px solid rgb(0, 0, 0); 
  border-radius: 10px;
}
.theme2 {
  background: linear-gradient(to top right, rgb(52, 33, 223), rgb(0, 155, 0));
  border: 1px solid rgb(0, 0, 0); 
  border-radius: 10px; 
box-shadow: 0px 0px 2px 1px rgb(0, 0, 0);
  backdrop-filter: blur(6px);
}
   
.theme3 {
    background: url(https://cdn.discordapp.com/attachments/727420540666773524/1259912803205255208/image.png?ex=668d68bc&is=668c173c&hm=cdebe85bee51f9d5fa860f8c1a621e77f195b642e0f825e4f0e6aefc081b7d7e&);
    border: 1px solid rgb(0, 0, 0); 
    border-radius: 10px; 
  box-shadow: 0px 0px 2px 1px rgb(0, 0, 0);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center; 
    color: white; 
    font-family: Arial, sans-serif; 
    position: relative;
    overflow: hidden; 
    background-size: cover; /* Scale the background image to cover the entire body */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the image */
  }
   