body {
  margin: 0;
  padding: 0;
  /*background: linear-gradient(135deg, #c4a1d3, #3498db);*/
  background: linear-gradient(to top left, #b744ef, #3e97f7);
  background-size: 500% 100%;
  animation: gradient 15s ease infinite;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
h1 {
  color: #333;
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

label {
  display: block;
  margin-bottom: 5px;
}

select, input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
}

button {
  background-color: #5cb85c;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #4cae4c;
}

#output {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
}

#penyelesaian {
  margin-top: 10px;
  color: #555;
}

/* Responsiveness */
@media (max-width: 500px) {
  .container {
    padding: 20px;
  }

  select, input[type="text"] {
    padding: 8px;
  }
}
