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

body {
  background: #f4f4f4;
  background-image: url("splitBill.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Overlay для затемнення фону */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.container {
  max-width: 400px;
  width: 90%;
  padding: 20px;
  text-align: center;
}

/* Назва */
header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1c3b4f;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 8px 16px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 20px;
}

/* Основний блок */
.card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.card input,
.card select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

/* Прибираємо стрілочки у number */
input[type=number]::-webkit-outer-spin-button, 
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Кнопка */
button {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: #1c3b4f;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

button:hover {
  background: #3399cc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Блок результату */
.result {
  text-align: center;
  margin-top: 20px;
}

/* Результат */
.result h2 {
  font-size: 2.2rem;
  margin-top: 10px;
  background: rgba(28, 59, 79, 0.85);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.8s ease-in-out;
}

/* Адаптивність */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }
  .result h2 {
    font-size: 1.8rem;
  }
}

/* Анімація появи */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
