body {
  font-family: Arial, sans-serif;
  background: #eefdff;
  color: #333;
  margin: 40px;
}

/* Language switcher styles */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.lang-link {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.lang-link:hover {
  background-color: #f0f8ff;
  text-decoration: none;
}

.lang-link.active {
  background-color: #007acc;
  color: #fff;
}

.lang-separator {
  color: #ccc;
  margin: 0 4px;
  font-weight: normal;
}

h1 {
  color: #2c3e50;
  font-size: 36px;
  margin-bottom: 10px;
}

ul {
  font-size: 18px;
  line-height: 1.8;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.warning {
  margin: 14px 0 22px;
  background: #fffbe6;
  border-left: 4px solid #f0c36d;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 16px;
}

.warning strong {
  color: #b26b00;
}

.tips {
  margin-top: 28px;
  background: #fff;
  border-left: 4px solid #2c7be5;
  padding: 16px 18px;
  border-radius: 6px;
}

.tips h1 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: bold;
}

.tips ol {
  margin: 0;
  padding-left: 20px;
}

.tips li {
  margin: 10px 0;
}

pre {
  background: #000;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  overflow: auto;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  border: none;
}

.code-block {
  background: #000;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  overflow: hidden;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  margin: 16px 0;
}

.code-block pre {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
}

/* Copy button styles */
.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #333;
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background-color 0.2s;
  font-family: Arial, sans-serif;
  z-index: 10;
}

.copy-button:hover {
  opacity: 1;
  background: #444;
}

.copy-button.copied {
  background: #28a745;
  border-color: #28a745;
}

.copy-button.copied::after {
  content: " ✓";
}

code {
  background: #f5f7fa; /* light background for inline code */
  color: #333;
  border: 1px solid #e1e6eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

/* Override code styles inside code blocks */
.code-block code {
  background: transparent !important;
  color: inherit !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: inherit !important;
}

/* Стиль для параграфа внизу страницы */
.attribution {
  margin-top: 24px;
  font-size: 14px;
  color: #666;
  font-family: Arial, sans-serif;
}

/* Tooltip styles */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted #2c7be5;
  color: #2c7be5;
}

.tooltip .tooltiptext {
  visibility: hidden;
  max-width: 90vw;
  width: 500px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 12px 16px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  word-wrap: break-word;
  white-space: pre-line;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Home page layout */
.home {
  max-width: 960px;
  margin: 80px auto 40px;
  background: #fff;
  border-left: 4px solid #2c7be5;
  border-radius: 8px;
  padding: 18px 20px;
}

.menu {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.menu a {
  background: #2c7be5;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.menu a:hover {
  background: #1f62bd;
}

.desc {
  margin-top: 10px;
  color: #555;
}

/* Home language picker */
.lang-picker {
  margin: 0 0 10px 0;
}
.lang-btn {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 10px;
  border: 1px solid #2c7be5;
  border-radius: 6px;
  color: #2c7be5;
  background: #fff;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}
.lang-btn.active,
.lang-btn:hover {
  color: #fff;
  background: #2c7be5;
}

/* Selenoid hub page */
.card {
  max-width: 960px;
  margin: 80px auto 40px;
  background: #fff;
  border-left: 4px solid #2c7be5;
  border-radius: 8px;
  padding: 18px 20px;
}

.sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.section {
  background: #f5f7fa;
  border: 1px solid #e1e6eb;
  border-radius: 6px;
  padding: 12px 14px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.section a {
  display: block;
  margin: 6px 0;
}

.back {
  margin-top: 10px;
}
