/* =========================================
   🎮 AUTO CLICKER GAME: DESIGN & STYLE (CSS) 🎮
   ========================================= */

/* --- MAIN PAGE SETUP --- */
head{
  background-color: #F20519;
}
body {
  /* 📝 TODO: Pick your background and text colors! */
  background-color: #F20519/* Add a dark hex code here, e.g., #222 */;
  color: #262626/* Add a light text color here, e.g., #fff */;
  font-family: Dancing Script/* Pick a font, e.g., "Verdana", sans-serif */;

  text-align: center;
  /* 🧠 HOW IT WORKS: The next 3 lines create a side-by-side (2-column) layout! */
  margin: 0;
  display: flex; /* "flex" puts the game zone and shop zone next to each other */
  height: 100vh; /* "100vh" means it takes up 100% of the screen height */

 
}




/* --- LEFT SIDE: The Game Zone --- */
.game-zone {
  /* 🧠 HOW IT WORKS: flex: 1 makes this take up exactly half (50%) of the screen.
     The other flex settings perfectly center whatever is inside this zone. */
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 5px solid #F20519;
}

/* --- RIGHT SIDE: The Shop --- */
.shop-zone {
  /* 🧠 HOW IT WORKS: flex: 1 makes the shop take up the other 50% of the screen.
     overflow-y allows you to scroll down if you add lots of items to the shop. */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  flex-wrap: wrap;
  /* 📝 TODO: Give your shop a background color and some padding (inside spacing) */
  background-color: #F5DC4D;
  padding: 20px;
}

/* --- TEXT & HEADINGS --- */
h1 {
  /* 📝 TODO: Make the main score huge and colorful! */
  margin: 0;
  font-size:  90px;
  color: #D9A78B;
}

h2 {
  /* 📝 TODO: Style your secondary headings (like "Upgrades") */
  color: #D9A78B;
  margin-bottom: 100 px;
}

/* --- THE MAIN CLICKER BUTTON --- */
#click-btn {
  /* 🧠 HOW IT WORKS: cursor: pointer changes the mouse to a pointing hand 
     so players know they can click it! */
  cursor: pointer;
  background-color: #ffd900;
  /* 📝 TODO: Add your custom image and give it a width and height! */
  background-image: url(Assets/New\ Piskel\(2\).gif); /* Change this to your image file! */
  background-position: center;
  background-size: cover;
  /* Experiment with different button sizes and radiuses */
  width: 250px;
  height: 250px;
  border-radius: 80px;
}

/* 🧠 HOW IT WORKS: :active tells the button what to do EXACTLY when being clicked.
   transform: scale(0.9) shrinks it to 90% size, making it look squished! */
#click-btn:active {
  transform: scale(0.9);
}

.buy-btn {
  display: flex;
  justify-content: space-between; /* Pushes count to left, item to center, cost to right */
  align-items: center;           /* Centers everything vertically */
  width: 100%;
  flex-wrap: wrap;       
  background-color: #A63429;
  color: rgb(255, 255, 255);
  padding: 10px 20px;            /* Increased top/bottom padding for space */
  margin-bottom: 1px;           /* Added space between buttons */
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Dancing Script', cursive;
  transition: all 0.2s;
  
 /* min-height: 50px;   */
      /* Use min-height instead so it fits the image */
}

/* This targets the span that holds your image and the "RBC" text */
.buy-btn span {
  display: flex;
  align-items: center;           /* Centers the image and text relative to each other */
  gap: 8px;                      /* Puts a nice gap between the image and the text */
}
/* 📝 TODO: What should the shop button look like when the mouse hovers over it? */
.buy-btn:hover {
  background-color: #fffb00;
  color: #000000;
}
.buy-btn:active {
transform: scale(0.9);
}

/* 📝 TODO: Style the cost text so it stands out from the rest of the button */
.cost-text{
  color: black;;
  font-weight: bold;
}
.Htwo {
  font-size: 60px;
}
.HHtwo {
  font-size: 30px;
  color: red;
}
p{
  font-size: 25px;
}

.img {
  width: 30px;                   /* Made it slightly larger to be readable */
  height: 22px;                  /* Keeps the icon from stretching */
  display: block;
}
.money {
  position: fixed;
  pointer-events: none;
  opacity: 0.9;
  z-index: -1; /* behind everything */
  animation: drift 8s ease-in-out forwards;
}

/* Wide drifting motion so bills are visible everywhere */
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0.9; }
  25%  { transform: translate(40px, -60px) rotate(10deg); }
  50%  { transform: translate(-60px, -120px) rotate(-12deg); }
  75%  { transform: translate(80px, -180px) rotate(6deg); }
  100% { transform: translate(-40px, -240px) rotate(0deg); opacity: 0; }
}




