:root {
  --main-bg: #ecedf3;
  --container-bg: #fff;
  --main-color: #6D46CB;
  --secondary-color: #603EB3;
  --accent-color: #6495ED;
  --text-dark: #343a40;
  --text-light: #fff;
  --focus-outline: #4A90E2;
}

body {
  background: var(--main-bg);
  color: var(--text-dark);
  font-family: 'Segoe UI', Arial, sans-serif;
}

.main-header {
  background: var(--main-color);
  color: var(--text-light);
  padding: 2.5rem 0 1.5rem 0;
  text-align: center;
}

.main-header h1 {
  font-family: 'Segoe UI', 'Arial Black', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.main-header .subtitle {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

main.container {
  max-width: 850px;
  margin: 1rem auto 2rem auto;
  background: var(--container-bg);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(60, 38, 117, 0.09);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
}

textarea.form-control {
  font-size: 1.2rem;
  min-height: 60px;
  margin-bottom: 1rem;
}

.output-item input {
  font-family: inherit;
  background: var(--main-bg);
  border: 1px solid #dfe6e9;
  border-radius: 5px;
  font-size: 1.1rem;
  padding: 8px;
  min-width: 200px;
  transition: background 0.2s;
}

.output-item input:focus {
  outline: 2px solid var(--focus-outline);
  background: #e4f0ff;
}

.output-item .copy-btn:focus {
  outline: 2px solid var(--focus-outline);
}

.output-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.output-item .font-label {
  min-width: 120px;
  font-weight: 600;
  margin-right: 10px;
}

.output-item .copy-btn {
  margin-left: 10px;
  padding: 5px 10px;
  background: var(--accent-color);
  border: none;
  border-radius: 0.25rem;
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.output-item .copy-btn:hover,
.output-item .copy-btn:focus {
  background: #5649c0;
  color: var(--text-light);
}

.navbar-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: unset;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

li.nav-item {
    margin: 5px;
    padding: 5px;
}

@media (max-width: 650px) {
  main.container {
    padding: 1rem 0.5rem;
  }
  .main-header h1 {
    font-size: 2rem;
  }
  .output-item .font-label {
    font-size: 0.98rem;
  }
}

button:focus,
input:focus,
.btn:focus {
  outline: 2px solid var(--focus-outline) !important;
}

.social-sharing {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.social-btn {
  border: none;
  background: #eee;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  margin: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.social-btn:hover,
.social-btn:focus {
  background: var(--main-color);
  color: #fff;
}

.footer {
  color: #444;
  background: var(--container-bg);
  text-align: center;
  padding: 0.8rem 0 0.4rem 0;
  font-size: 0.97rem;
  max-width: 850px;
  margin: 0 auto;
}

.seo-section {
  margin-top: 2rem;
}

.Text-container {
  max-width: 850px;
  margin: 0 auto;
  background: var(--container-bg);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgb(60 38 117 / 9%);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
}
