@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

#nahodit-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 1.5rem 4rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 50%, #ff6b35 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 0.5rem;
  color: #0a0a0a;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(255, 107, 53, 0.3),
    0 0 30px rgba(255, 107, 53, 0.1);
}

#nahodit-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(255, 107, 53, 0.4),
    0 0 50px rgba(255, 107, 53, 0.2);
}

#nahodit-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

#nahodit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.animation {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
}

.animation::before,
.animation::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
}

.animation::before {
  border-top-color: #ff6b35;
  animation: spin 0.6s linear infinite;
}

.animation::after {
  border-right-color: #f7c59f;
  animation: spin 0.8s linear infinite reverse;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.casting {
  opacity: 1;
  visibility: visible;
  animation: shake 0.3s ease-in-out infinite;
}

.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #f7c59f;
  text-align: center;
  min-height: 3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.result .main {
  font-size: 1.75rem;
  font-weight: 800;
}

.result .subtext {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.7;
}

.result.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-5px) rotate(-5deg);
  }
  75% {
    transform: translateX(5px) rotate(5deg);
  }
}
