* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

header p {
  font-size: 16px;
  opacity: 0.85;
}

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section,
.result-section {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: bold;
  font-size: 1.1em;
}

input[type="text"],
input[type="number"] {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1.1em;
  transition: border 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: #3498db;
  outline: none;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

button {
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

.handle-btn {
  background-color: #4fc087;
}

.handle-btn:hover {
  background-color: #449a6f;
}

.result-display,
.process-display {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  min-height: 240px;
  background-color: #f9f9f9;
  font-size: 1.2em;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 400px;
  word-wrap: break-word;
  word-break: break-all;
}

.process-display {
  font-size: 1em;
  min-height: 470px;
  max-height: 800px;
}

.footer {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  line-height: 1.5;
}

.footer h3{
  font-size: 20px;
  margin-bottom: 15px;
}

.footer .powered-by {
  margin-top: 20px;
  font-size: 15px;
  text-align: center;
  color: #95a5a6;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  z-index: 1000;
  display: none;
  max-width: 80%;
  text-align: center;
}

.examples {
  padding: 15px;
  padding-bottom: 5px;
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 5px;
}

.examples h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.example-item {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 5px 10px;
  background-color: #e1f0fa;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9em;
}

.example-item:hover {
  background-color: #d0e3f4;
}
