body {
  font-family: system-ui, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #f0f0f0;
}
.container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.animation-container {
  height: 400px;
  position: relative;
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  overflow: hidden;
}
.message-box {
  position: absolute;
  padding: 15px;
  border-radius: 4px;
  left: 20px;
  width: calc(100% - 70px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 1s ease;
  opacity: 0;
  word-wrap: break-word;
}
.original {
  top: 60px;
  background: #4caf50;
  color: white;
}
.encrypted {
  top: 180px;
  background: #2196f3;
  color: white;
}
.decrypted {
  top: 300px;
  background: #4caf50;
  color: white;
}
.show {
  opacity: 1;
}
.input-section {
  margin: 20px 0;
}
button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px;
}
button:hover {
  background: #45a049;
}
button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}
input {
  padding: 8px;
  margin: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;
}
.key-display {
  margin: 20px 0;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 4px;
  border-left: 4px solid #2196f3;
}
.status {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 20px;
  color: #666;
  font-size: 14px;
  font-weight: bold;
}
.step {
  margin: 20px 0;
  padding: 15px;
  border-left: 4px solid #2196f3;
  background: #f8f8f8;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.5s ease;
}
.step.show {
  opacity: 1;
  transform: translateX(0);
}
.math {
  font-family: monospace;
  background: #e8e8e8;
  padding: 2px 5px;
  border-radius: 3px;
}
