body {
  font-family: 'Arial', sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

[dir='rtl'] body {
  font-family: 'Amiri', 'Scheherazade', serif;
}

.container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  text-align: center;
}

h1 {
  color: #2c3e50;
  margin-bottom: 30px;
}

h2 {
  color: #34495e;
  margin-bottom: 20px;
}

h3 {
  color: #7f8c8d;
  margin-bottom: 15px;
}

.quote {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 500;
}

.src {
  font-size: 1.2em;
  color: #7f8c8d;
  font-style: italic;
}

.category-selector {
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 30px;
  margin-top: 20px;
}

.category-group {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #e9ecef;
}

.btn {
  display: inline-block;
  background: #3498db;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  margin: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

button {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  margin: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.controls {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.controls button {
  background: #3498db;
}

.controls button:nth-child(2) {
  background: #2ecc71;
}

.controls button:nth-child(3) {
  background: #f39c12;
}

.controls button:hover {
  background: #2980b9;
}

.controls button:nth-child(2):hover {
  background: #27ae60;
}

.controls button:nth-child(3):hover {
  background: #e67e22;
}

.info {
  margin-top: 30px;
  padding: 20px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 10px;
  font-size: 14px;
  color: #34495e;
}

code {
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: #e74c3c;
}

.error {
  color: #e74c3c;
  font-size: 1.2em;
  margin: 20px 0;
}
