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

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 40px 30px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h4 {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  font-weight: 400;
}

button {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 10px 20px rgba(102, 126, 234, .3);
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transition: left .6s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(102, 126, 234, .4);
}

button:hover::before {
  left: 100%;
}

button:active {
  transform: translateY(-1px);
}

#activity-container {
  margin-top: 20px;
  padding: 20px;
  background: rgba(102, 126, 234, .1);
  border-radius: 20px;
  border: 2px dashed rgba(102, 126, 234, .3);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

#activity-name {
  font-size: 1.2rem;
  color: #444;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.loading {
  color: #667eea;
  font-style: italic;
}

/* Dynamic styling */
.activity-appear {
  animation: slideInFade .6s ease-out;
}

.button-clicked {
  transform: scale(.95);
  transition: transform .1s ease;
}

.container-shake {
  animation: shake .5s ease-in-out;
}

.activity-glow {
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
}

/* Keyframe animations */
@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Dynamic activity type styling */
.type-social {
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(255, 99, 132, 0.2));
  border-color: rgba(255, 107, 107, 0.6);
}

.type-recreational {
  background: linear-gradient(45deg, rgba(54, 215, 183, 0.2), rgba(32, 201, 151, 0.2));
  border-color: rgba(54, 215, 183, 0.6);
}

.type-education {
  background: linear-gradient(45deg, rgba(255, 206, 84, 0.2), rgba(255, 193, 7, 0.2));
  border-color: rgba(255, 206, 84, 0.6);
}

.type-diy {
  background: linear-gradient(45deg, rgba(255, 159, 67, 0.2), rgba(255, 140, 0, 0.2));
  border-color: rgba(255, 159, 67, 0.6);
}

.type-charity {
  background: linear-gradient(45deg, rgba(214, 48, 49, 0.2), rgba(192, 57, 43, 0.2));
  border-color: rgba(214, 48, 49, 0.6);
}

.type-cooking {
  background: linear-gradient(45deg, rgba(162, 155, 254, 0.2), rgba(116, 185, 255, 0.2));
  border-color: rgba(162, 155, 254, 0.6);
}

.type-relaxation {
  background: linear-gradient(45deg, rgba(199, 146, 234, 0.2), rgba(148, 187, 233, 0.2));
  border-color: rgba(199, 146, 234, 0.6);
}

.type-music {
  background: linear-gradient(45deg, rgba(255, 118, 117, 0.2), rgba(253, 121, 168, 0.2));
  border-color: rgba(255, 118, 117, 0.6);
}

.type-busywork {
  background: linear-gradient(45deg, rgba(156, 136, 255, 0.2), rgba(164, 176, 190, 0.2));
  border-color: rgba(156, 136, 255, 0.6);
}

/* Floating animation for some fun */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.container {
  animation: float 6s ease-in-out infinite;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 30px 20px;
    margin: 10px;
  }

  button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}