* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 600px;
  width: 100%;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2.5em;
}

.quote-display {
  background: #f8f9fa;
  border-left: 4px solid #4c63d2;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-text {
  font-size: 1.2em;
  font-style: italic;
  color: #2c2c2c;
  margin-bottom: 10px;
  line-height: 1.6;
}

.quote-author {
  text-align: right;
  font-weight: bold;
  color: #4a4a4a;
  font-size: 1em;
}

.quote-author::before {
  content: "— ";
}

.loading {
  text-align: center;
  color: #6a6a6a;
  font-style: italic;
}

.error {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.button-group {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

button {
  background: #4c63d2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

button:hover {
  background: #3d4fb8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 99, 210, 0.3);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.form-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #2c2c2c;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #4c63d2;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
  display: none;
}

.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
  display: none;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2em;
  }

  .button-group {
    flex-direction: column;
  }

  button {
    min-width: auto;
  }
}
