:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #00000060;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent: #00ff88;
  --accent-dark: #00cc6a;
  --border: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(0, 255, 136, 0.1) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 255, 136, 0.1) 0%,
      transparent 20%
    );
  display: flex;
  flex-direction: column;
  margin: 0;
}

.container {
  max-width: 1200px;
  min-height: 75vh;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  width: 100%;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #0a0a0ab4;
  text-align: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
b,
h2,
h3,
h4,
h5,
h6 {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

section:hover {
  /* transform: translateY(-5px); */
  border-color: var(--accent);
}

footer {
  width: 100%;
  background: #0a0a0ab4;
  text-align: center;
  padding: 30px 0;
  color: var(--text-secondary);
  font-size: 0.9em;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1em;
  transition: border-color 0.3s ease;
}
/*Карточки*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.card {
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 350px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  color: var(--text-primary);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  cursor: default; /* Для карточек с эффектом */
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.card p {
  font-size: 0.95em;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.card:hover {
  /* transform: translateY(-6px); */
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.15);
  color: var(--text-primary);
}

/*CS2*/
.container code {
  position: relative;
  background-color: #1e1e1e;
  color: #00ff88;
  padding: 4px 8px;
  margin: 0 2px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.95em;
  border: 1px solid #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.container pre {
  position: relative;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px;
  margin: 15px 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Courier New", monospace;
  font-size: 0.95em;
  color: #00ff88;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.container code:hover {
  background-color: #2a2a2a;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.container pre:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

.copied-tip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.8em;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  pointer-events: none;
}

.container ul {
  line-height: 1.8;
  margin-bottom: 16px;
}

.container ul ul {
  line-height: 1.6;
  margin-top: 8px;
}

.container li {
  margin-bottom: 6px;
}

.container h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--accent);
}

.nav-links {
  margin: 20px 0;
}

.nav-links a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

/* формы кнопки */
.tagline {
  color: var(--text-secondary);
  font-size: 1.1em;
}

.form-group {
  margin-bottom: 25px;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1em;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Courier New", monospace;
  resize: vertical;
  transition: border-color 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
}

.buttons-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}

button {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

button:disabled {
  background: var(--border);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.clear-btn {
  background: #ff4757;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.clear-btn:hover {
  background: #ff3742;
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.result {
  margin-top: 25px;
  padding: 20px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: "Courier New", monospace;
  word-break: break-all;
}

.result strong {
  color: var(--accent);
}

.encryption-type {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.encryption-type button {
  flex: 1;
  min-width: 120px;
}

.active {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.copyright {
  color: var(--accent);
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
}

@media (max-width: 600px) {
  .container {
    margin: 20px;
    padding: 20px;
  }

  .buttons-row {
    flex-direction: column;
  }

  .encryption-type button {
    min-width: auto;
  }

  button {
    width: 100%;
  }
}
