/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1b1b1b; /* Dark background to suit coding environment */
  color: #f0f0f0; /* Light gray text for readability */
  font-family: 'Courier New', Courier, monospace; /* Monospace font for code-like appearance */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  text-align: center;
  position: relative;
}

.container {
  padding: 30px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); /* Subtle glow effect for depth */
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.neon-text {
  color: #00ff00; /* Neon green for the header */
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.converter {
  background-color: #2a2a2a; /* Dark background for the form area */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.input-group {
  margin: 20px 0;
}

.label-glow {
  color: #00ff00; /* Neon green text for labels */
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00; /* Glow effect */
}

.input-field {
  background-color: #333333; /* Dark input fields */
  color: #f0f0f0;
  border: 1px solid #888888; /* Subtle border */
  padding: 12px;
  width: 100%;
  font-size: 1.2rem;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 1px;
  box-sizing: border-box;
}

.input-field:focus {
  outline: none;
  border-color: #00ff00; /* Green border on focus */
  box-shadow: 0 0 5px #00ff00; /* Subtle glow on focus */
}

.input-field::placeholder {
  color: #888888; /* Subtle placeholder color */
  opacity: 0.7;
}

/* Matrix Background Effect */
@keyframes matrix-fall {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.matrix-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  letter-spacing: 1px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.matrix-background span {
  position: absolute;
  top: -100%;
  animation: matrix-fall 3s linear infinite;
}

.matrix-background span:nth-child(odd) {
  animation-duration: 4s;
}

.matrix-background span:nth-child(even) {
  animation-duration: 6s;
}

/* Matrix Rain: Generate multiple columns of random binary */
.matrix-background span {
  content: '0';
  display: block;
  animation: matrix-fall 5s linear infinite;
}
