@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Orbitron', monospace;
  color: #b0f084;
}

body {
  background: #0a0a0a;
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
  min-height: 100vh;
}

/* Headings */
h2 {
  text-align: center;
  font-size: 1.2rem;  /* smaller size */
  margin-bottom: 30px; /* less space below */
  font-weight: 600;    /* a bit lighter */
  color: #a4ff60;
  text-shadow: 0 0 3px #78d73f, 0 0 6px #4caf50;
  line-height: 1.3;    /* tighter line spacing */
  max-width: 700px;    /* limit width for better readability */
  margin-left: auto;
  margin-right: auto;
}


h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-left: 6px solid #4caf50;
  padding-left: 15px;
  font-weight: 700;
  color: #8aff7e;
  text-shadow: 0 0 3px #4caf50;
}

/* Containers */
.encrypt,
.decrypt {
  background: #121212;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 6px 12px rgba(72, 187, 120, 0.4);
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.encrypt:hover,
.decrypt:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(72, 187, 120, 0.6);
}

/* Horizontal layout on wider screens */
@media (min-width: 768px) {
  .encrypt,
  .decrypt {
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
  }

  .encrypt textarea,
  .encrypt input,
  .decrypt textarea,
  .decrypt input {
    flex: 1;
  }

  .encrypt button,
  .decrypt button {
    flex: none;
    max-width: 140px;
    align-self: center;
    cursor: pointer;
  }
}

/* Inputs and textareas */
textarea,
input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid #4caf50;
  border-radius: 12px;
  background: #1c1c1c;
  color: #b0f084;
  box-shadow: inset 0 0 5px #78d73f;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  font-weight: 600;
  font-family: 'Orbitron', monospace;
}

textarea:focus,
input:focus {
  outline: none;
  border-color: #a4ff60;
  box-shadow: 0 0 8px #4caf50, inset 0 0 8px #78d73f;
}

/* Buttons */
button {
  background: linear-gradient(135deg, #78d73f, #4caf50);
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: #0a0a0a;
  box-shadow: 0 4px 10px rgba(72, 187, 120, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Orbitron', monospace;
}

button:hover {
  background: linear-gradient(135deg, #4caf50, #78d73f);
  box-shadow: 0 6px 18px rgba(120, 215, 63, 0.7);
  transform: scale(1.05);
}

/* Responsive text sizes */
@media (max-width: 600px) {
  h2 {
    font-size: 1rem;
  }
  h3 {
    font-size: 0.8rem;
  }
  button {
    font-size: 0.7rem;
  }
  textarea {
    height: 90px;
  }
}
textarea {
  min-height: 150px;
}

input[type="text"] {
  height: 55px;
}

