/* ========== OBECNÉ NASTAVENÍ STRÁNKY ========== */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* ========== POZADÍ A SCÉNA ========== */
#mlyn {
  z-index: 0;
  position: absolute;
  width: 100vw;
  height: 100vh;
}

#scene {
  perspective: 2000px;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#kolo, #kolo1, #kolo2, #kolo3 {
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  position: absolute;
  width: 500px;
  margin-top: 500px;
}

#kolo { z-index: 1; margin-left: 770px; filter: brightness(40%) blur(1px) hue-rotate(340deg) saturate(180%); }
#kolo1 { z-index: 2; margin-left: 800px; filter: brightness(60%) blur(0.8px) hue-rotate(340deg) saturate(180%); }
#kolo2 { z-index: 2; margin-left: 830px; filter: brightness(80%) blur(0.6px) hue-rotate(340deg) saturate(180%); }
#kolo3 { z-index: 2; margin-left: 860px; filter: hue-rotate(340deg) saturate(180%); }

@keyframes otacka {
  0%   { transform: rotateY(50deg) rotateZ(0deg); }
  50%  { transform: rotateY(50deg) rotateZ(180deg); }
  100% { transform: rotateY(50deg) rotateZ(360deg); }
}
/* ========== HUD Weather ========== */
#hudWeather {
  bottom: 300px; /* výše než ostatní, uprav podle potřeby */
  left: 20px;
  width: 300px;
  height: 200px;
  position: absolute;
  z-index: 20;
}

#hud-content-weather {
  position: absolute;
  z-index: 2;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-family: 'MedievalSharp', cursive;
  margin-top: 90px;
  margin-left: 30px;
  gap: 10px;
  align-items: center;
  text-align: center;
}


.weather-row-text {
  font-size: 18px;
  line-height: 1.2;
  max-width: 200px;
}

/* ========== HUD PANELY ========== */
.hud-panel {
  position: absolute;
  z-index: 20;
}

#hudCoins {
  bottom: 20px;
  left: 20px;
  width: 300px; 
  height: 200px;
}

#hudStats {
  bottom: 130px;
  left: 20px;
  width: 300px; 
  height: 200px;
}

.hud-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#hud-content-coins, #hud-content-stats {
  position: absolute;
  z-index: 2;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  font-size: 20px;
}

#hud-content-coins {
  margin-top: 95px;
  margin-left: 40px;
}

#hud-content-stats {
  margin-top: 45px;
  margin-left: 30px;
  z-index: 1;
  align-items: center;
}
.coin-row{
  display: flex;
  align-items: center;
  gap: 8px;
}

.grain-row-img {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.grain-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  font-size: 18px;
  font-family: 'MedievalSharp', cursive;
  min-width: 200px;
  margin-left: -10px;
}

.coin-icon {
  width: 30px;
  height: 30px;
}

#coin-icon2, #coin-icon3 {
  width: auto;
  height: 50px;
}

.coin-icon-small {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* ========== SHOP ========== */
#ShopBoard {
  width: 900px;
  height: 900px;
  z-index: 10;
  position: absolute;
  top: 150px;
  left: 1300px;
  filter: saturate(170%) hue-rotate(345deg);
}

/* ========== SHOP STYLY ========== */

#shop {
  position: absolute;
  top: 220px;
  left: 1450px;
  width: 600px;
  background: none;
  z-index: 22;
}

#shopTitle {
  font-family: 'MedievalSharp', cursive;
  color: #ffffff;
  font-size: 50px;
  text-align: center;
  margin-bottom: 0px;
  margin-left: -20px;
  text-shadow: 2px 2px 4px #00000080;
}

#shopMask {
  position: relative;
  width: 600px;
  height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 21;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

#shopMask::-webkit-scrollbar {
  width: 15px;
}

#shopMask::-webkit-scrollbar-track {
  background: transparent;
}

#shopMask::-webkit-scrollbar-thumb {
  background-color: #562a0da9;
  border-radius: 10px;
  border: 5px solid #1c1102;
}

#shopMask::-webkit-scrollbar-thumb:hover {
  background-color: #582c0d40;
}

.bucket-card {
  position: relative;
  width: auto;
  max-width: 100%;
  margin-bottom: 100px;
  font-family: 'MedievalSharp', cursive;
  color: #2e1b00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bucket-card:last-child {
  margin-bottom: 0;
}

.card-bg {
  margin-top: 30px;
  width: 450px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 0;
}

.bucket-img {
  width: auto;
  height: 250px;
  z-index: 1;
  margin-top: -490px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.bucket-info {
  z-index: 1;
  text-align: center;
  margin-top: -25px;
  font-size: 20px;
}

.bucket-info h3 {
  margin: 0;
  font-size: 25px;
}

.bucket-info .price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 0px;
  font-size: 20px;
}

.buy-button-wrapper {
  position: relative;
  width: auto;
  height: 60px;
  margin-top: 0px;
  cursor: pointer;
  z-index: 1;
}

.buy-btn-img {
  width: 100%;
  height: 100%;
}

.buy-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  pointer-events: none;
}

#shopTabs {
  position: absolute;
  top: 125px;
  left: 1550px;
  z-index: 11;
  display: flex;
  gap: 5px;
}

.shop-tab {
  width: 120px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.shop-tab:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}


/* ========== OVLÁDACÍ PRVKY ========== */
#pumpButton {
  z-index: 50;
  position: absolute;
  width: 350px;
  height: auto;
  bottom: 15px;
  left: 350px;
  filter: brightness(70%);
  cursor: pointer;
}

#pumpButton:hover {
  filter: brightness(80%);
}

#pumpButtonText {
  z-index: 51;
  position: absolute;
  bottom: 75px;
  left: 430px;
  font-size: 35px;
  font-family: 'MedievalSharp', cursive;
  color: #fff;
  pointer-events: none;        
  user-select: none;           
  text-shadow: 2px 2px 4px #000; 
}









/*SPECIAL*/
.bucket-img[src*="Obili"],
.bucket-img[src*="Mouka"] {
  border-radius: 25px;
  overflow: hidden;
}