* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1640px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  line-height: 1.6;
}

.calculator-card {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.des-section{
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.group-box, .result-container{
  flex: 1;
}

.container h2 {
  font-size: 22px;
  line-height: 1;
  color: #2c3e50;
  margin-bottom: 15px;
}

.input-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

input[type="number"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input[type="number"]:focus,
select:focus {
  border-color: #3498db;
  outline: none;
}

.hint {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-top: 5px;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

button {
  padding: 12px 36px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.calculate-btn {
  background: #3498db;
  color: white;
}

.calculate-btn:hover {
  background: #2980b9;
}

.copy-btn {
  background: #2ecc71;
  color: white;
}

.copy-btn:hover {
  background: #27ae60;
}

.clear-btn {
  background: #e74c3c;
  color: white;
}

.clear-btn:hover {
  background: #c0392b;
}

.result-container {
  padding: 20px;
  background: #e8f4fc;
  border-radius: 8px;
}

.result-container h3{
  font-size: 22px;
}

.result-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin: 25px 0;
}

.result-info {
  text-align: center;
  color: #7f8c8d;
}

.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.formula-list {
  list-style: none;
}

.formula-list li {
  padding: 12px 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 4px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.faq-answer {
  color: #555;
}

footer {
  text-align: center;
  font-size: 15px;
  color: #7f8c8d;
}

#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background: #2c3e50;
  color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
}

#notice.show {
  display: block;
  animation: slideUp 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}
