/* static/style.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(to right, #fdf1f1, #ffe6f7);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  direction: rtl;
  padding: 20px;
}

.container {
  background: white;
  padding: 40px 30px;
  border-radius: 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease;
  margin-bottom: 30px;
}

h1 {
  font-size: 26px;
  margin-bottom: 25px;
  color: #d63384;
  text-align: center;
  letter-spacing: 1px;
}

label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
  color: #555;
}

input[type="number"] {
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}

input[type="number"]:focus {
  border-color: #d63384;
  box-shadow: 0 0 5px rgba(214, 51, 132, 0.3);
}

button {
  width: 100%;
  margin-top: 25px;
  padding: 12px;
  background-color: #d63384;
  color: white;
  font-size: 17px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

button:hover {
  background-color: #c2176c;
}

#result {
  margin-top: 25px;
  padding: 15px;
  background-color: #f8f9fa;
  border: 2px dashed #d63384;
  border-radius: 12px;
  font-size: 18px;
  color: #444;
  word-break: break-word;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 25px 20px;
  }

  h1 {
    font-size: 22px;
  }
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #888;
  padding-top: 20px;
}

footer p {
  margin: 0;
}
