/* style.css */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f0f2f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;

  /* MUDANÇA PARA RESPONSIVIDADE */
  width: 90%; /* Ocupa 90% da tela do celular */
  max-width: 400px; /* Mas não passa de 400px no PC */
  box-sizing: border-box; /* Garante que o padding não estoure a largura */
}

/* Melhoria para botões em telas de toque (dedos gordinhos) */
button,
.remove-btn {
  touch-action: manipulation; /* Melhora a resposta do toque */
}

h1 {
  color: #333;
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  flex: 1;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

button:hover {
  background-color: #0056b3;
}

/* O Destaque do Resultado */
.result-box {
  margin: 20px 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed #cbd5e0;
  border-radius: 10px;
  background-color: #fafafa;
  overflow: hidden;
}

.display-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d3748;
}

/* Animação de Agitação */
.shaking {
  animation: shake 0.1s infinite;
  color: #e53e3e; /* Fica vermelho enquanto gira */
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.spin-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  background-color: #48bb78;
  margin-bottom: 20px;
}

.spin-btn:hover {
  background-color: #38a169;
}

.task-list-container {
  text-align: left;
}
ul {
  list-style: none;
  padding: 0;
}
li {
  background: #edf2f7;
  margin-bottom: 5px;
  padding: 8px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
}
.remove-btn {
  background: #fc8181;
  padding: 2px 8px;
  font-size: 0.8rem;
  margin-left: 10px;
}
