* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  /* 🔥 Multi color gradient background */
  background: linear-gradient(135deg, #1e3a8a, #9333ea, #ec4899);
  background-size: 300% 300%;
  animation: gradientMove 8s ease infinite;

  color: white;
}

/* Animation for background */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Container */
.container {
  width: 460px;
  padding: 30px;
  border-radius: 20px;

  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);

  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  text-align: center;

  animation: fadeIn 0.6s ease-in-out;
}

/* Headings */
h1 {
  font-weight: 700;
  letter-spacing: 1px;
}

p {
  margin-bottom: 10px;
  opacity: 0.8;
}

/* Buttons */
button {
  padding: 10px 18px;
  margin: 10px;
  border: none;
  border-radius: 12px;

  /* 🔥 gradient buttons */
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;

  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 100, 100, 0.7);
}

button:active {
  transform: scale(0.95);
}

/* Different button styles */
button:nth-child(2) {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
}

button:nth-child(3) {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* Textarea */
textarea {
  width: 100%;
  height: 100px;
  margin-top: 15px;
  padding: 12px;
  border-radius: 12px;
  border: none;

  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 14px;

  outline: none;
}

/* Bottom */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#timer {
  font-size: 18px;
  font-weight: bold;
  color: #facc15;
}

/* Result box */
#resultBox {
  margin-top: 20px;
}

/* History */
#history {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.9;
}

/* Chart */
canvas {
  margin-top: 10px;
}

/* Hide */
.hidden {
  display: none;
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}