* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #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 {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}
.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.left-panel {
  flex: 3;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.right-panel {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.right-panel .controls{
  margin-bottom: 20px;
}

.right-panel p{
  margin-top: 10px;
}

.panel-title {
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f2f3;
  color: #2c3e50;
}

.text-display {
  min-height: 300px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.5;
  background: #fafafa;
  overflow-y: auto;
  max-height: 300px;
}

.current-char {
  background-color: #3498db;
  color: white;
  padding: 0 2px;
  border-radius: 3px;
}

.correct {
  color: #27ae60;
}

.incorrect {
  color: #e74c3c;
  text-decoration: underline;
}

.input-area {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  line-height: 1.5;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  resize: none;
}

.input-area:focus {
  outline: none;
  border-color: #3498db;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.stat-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
}

.stat-label {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.container select,
.container button,
.container textarea {
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.container button {
  padding: 12px 36px;
  background: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #2980b9;
}

button.secondary {
  background: #7f8c8d;
}

button.secondary:hover {
  background: #636e70;
}

.custom-text {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  display: none;
  margin-top: 20px;
}

footer {
  text-align: center;
  font-size: 14px;
  color: #636e70;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.feature {
  background: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
}

.feature-icon {
  line-height: 1;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature h3{
  font-size: 18px;
  margin-bottom: 15px;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background: #2c3e50;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

.language-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.lang-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: #ecf0f1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn.active {
  background: #3498db;
  color: white;
}
