body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  animation: changeBackground 10s ease-in-out infinite alternate;
}

@keyframes changeBackground {
  0% {
    background-color: #f0f0f0;
  }
  50% {
    background-color: #e6f7ff;
  }
  100% {
    background-color: #f0f0f0;
  }
}

.calculator {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input[type="number"],
select,
button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s ease-in-out;
  font-size: 16px;
}

input[type="number"]:focus,
select:focus,
button:focus {
  outline: none;
  border-color: #4CAF50;
}

button {
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
  border: none;
  width: 100%;
  max-width: 150px;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.7;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 10%, transparent 30%);
  transition: transform 1s ease-in-out, opacity 0.5s linear;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: shine 2s linear infinite;
}

button:hover::before {
  animation-play-state: paused;
}

@keyframes shine {
  0% {
    left: -50%;
    top: -50%;
    opacity: 0.7;
  }
  50% {
    left: 150%;
    top: 150%;
    opacity: 0;
  }
  100% {
    left: 150%;
    top: 150%;
    opacity: 0;
  }
}

#result {
  font-weight: bold;
  font-size: 18px;
  color: #333;
  text-align: center;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: black;
  overflow: hidden;
}

.coderain {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Ctext fill="green" font-family="sans-serif" font-size="32" dy="0.4em"%3E%26%233964;%3C/text%3E%3C/svg%3E');
  background-repeat: repeat;
  z-index: -1;
  pointer-events: none;
  animation: coderain 10s linear infinite;
}

@keyframes coderain {
  0% {
    background-position: 0 0, 50px 50px;
  }
  100% {
    background-position: 500px 500px, 500px 500px;
  }
}

.calculator {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Остальные стили вашего калькулятора */
