body {
  font-family: "Fredoka", sans-serif;
  background: hsl(262, 100%, 96%);
  margin: 0;
  padding: 0;
}
.site-header {
  background: linear-gradient(1deg, #9b8bc1, #7d6ba4);
  padding: 30px 0;
  text-align: center;
  font-size: 23px;
  color: #fff;
  margin-bottom: 50px;
}
.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 15px;
}
.card {
  background: rgba(255, 255, 255, 0.85);
  padding: 15px 20px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(138, 92, 255, 0.25);
}
.card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.text {
  font-size: 15px;
  margin: 8px 0;
  line-height: 1.5;
  padding: 6px 10px;
  border-left: 3px solid #796b9d;
  background: rgba(250, 250, 250, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0;
  word-spacing: 0;
  text-decoration: none;
  color: black;
}
/* Стилі */
.text.letter-spacing {
  letter-spacing: 4px;
}
.text.word-spacing {
  word-spacing: 15px;
}
.text.text-decoration {
  text-decoration: underline;
}
.text.text-decoration-line-through {
  text-decoration: line-through;
}
.text.text-decoration-overline {
  text-decoration: overline;
}
.text.decoration-style {
  text-decoration: underline;
  text-decoration-style: wavy;
}
.text.first-letter::first-letter {
  font-size: 30px;
  font-weight: 600;
  color: #7665a0;
}
.text.first-line::first-line {
  color: #5b5484;
  font-weight: 600;
}
.explication {
  font-size: 13px;
  margin-top: 6px;
  color: #555;
  background: rgba(240, 240, 240, 0.6);
  padding: 6px 10px;
  border-radius: 8px;
  text-align: left;
}
.code-block {
  background: rgba(245, 245, 245, 0.9);
  padding: 6px 10px;
  border-radius: 6px;
  overflow-x: auto;
  cursor: pointer;
  margin-top: 5px;
}
.toggle-style {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #9374df;
  background: white;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}
.toggle-style.active {
  background: #967fcf;
  color: white;
}
/* Адаптивність */
@media (max-width: 800px) {
  .container {
    grid-template-columns: repeat(1, 1fr);
  }
}
