@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Luckiest+Guy&family=Open+Sans:ital@0;1&display=swap');

body {
  font-family: "Luckiest Guy", cursive;
  background-color: #fdf2f8;
  color: #ff1493;
  text-align: center;
  padding: 10px 20px;
}

#Trojobal {
  max-width: 405px;
  margin: 0 auto;
  padding: 10px 20px;
  border: 2px solid #f472b6;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

h1 {
  font-size: 56px;
  line-height: 0px;
  font-family: "Luckiest Guy", cursive;
}

#chechtaky {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  padding-top: 15px;
}

#ovladani {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

label {
  font-size: 18px;
}

input[type="number"],
select {
  padding: 5px;
  margin-left: 10px;
  font-size: 1rem;
}

input[type="number"] {
  width: 40px;
}

button {
  background-color: #ff1493;
  font-family: "Luckiest Guy", cursive;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 15px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-left: 10px;
}

button:hover {
  background-color: #ec4899;
}

#Slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
  font-size: 24px;
  align-items: center;
  transform: translateX(12px);
}

.radek {
  display: flex;
  justify-content: center;
  font-size: 2em;
}

.symbol {
  border-right: 1px solid #ccc;
  margin: 10px;
  padding: 10px 25px 10px 0px;
}

.symbol:last-child {
  border-right: none;
}

.radek span {
  margin: 0px 15px;
}

.reel {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  border: 2px solid #f472b6;
  border-radius: 10px;
  background-color: #ffe4e6;
}

#vysledek {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
}

/*Animace*/
@keyframes falling {
  from {
    transform: translateY(-150%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.falling {
  animation: falling 0.8s ease-out;
}

.jackpot-animation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 4rem;
  font-weight: bold;
  color: #ff1493;
  text-shadow: 0 0 10px #ff1493, 0 0 20px #ff69b4, 0 0 30px #f472b6;
  background: linear-gradient(45deg, #ff69b4, #ff1493, #ff85c0, #f472b6);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jackpot-entry 1s ease-in-out, jackpot-glow 1.5s infinite alternate;
  z-index: 1000;
}

@keyframes jackpot-entry {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes jackpot-glow {
  0% {
    text-shadow: 0 0 10px #ff1493, 0 0 20px #ff69b4, 0 0 30px #f472b6;
  }
  100% {
    text-shadow: 0 0 20px #ff1493, 0 0 30px #ff69b4, 0 0 40px #f472b6;
  }
}

.fade-out {
  animation: fade-out 1s forwards;
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  h1 {
    line-height: 45px;
  }

  #ovladani {
    display: block;
  }

  #AutoSpiny {
    margin-top: 10px;
  }
}