body {
  font-family: "Arial", sans-serif;
  background-color: #121212;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  text-align: center;
  max-width: 400px;
  width: 90%;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  border-radius: 10px;
  background-color: #1e1e1e;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2.5em;
  animation: slideIn 0.5s ease-out;
  color: #ff4081;
}

button {
  background-color: #6200ea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px;
  transition: background-color 0.3s, transform 0.2s;
  width: 100%;
}

button:hover {
  background-color: #3700b3;
  transform: scale(1.05);
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  text-align: left;
  width: 90%;
  max-width: 400px;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.hidden {
  display: none;
}

input[type="number"] {
  margin: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: calc(100% - 24px);
  transition: border 0.3s;
}

input[type="number"]:focus {
  outline: none;
  border: 2px solid #6200ea;
}

.info-container {
  margin: 20px 0;
}

.info-text {
  font-size: 1.2em;
  margin: 5px 0;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.result-text {
  font-size: 1.1em;
  color: #ff4081;
  animation: bounce 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2em;
  }

  button {
    padding: 10px;
  }

  .info-text {
    font-size: 1em;
  }

  .result-text {
    font-size: 1em;
  }
}
