/* General Styles */
html, body {
  font-family: 'Courier New', monospace;
  margin: 0;
  padding: 0;
  background-color: #121212; /* Dark mode background */
  color: #f1f1f1; /* Light text */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

/* Light Mode Styles */
body.light-mode {
  background-color: #ffffff; /* Light background */
  color: #000000; /* Dark text */
}

/* Header */
.header {
  width: 100%;
  background-color: #1e1e1e; /* Dark header background */
  color: #f1f1f1; /* Light text */
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s, color 0.3s;
}

.header.light-mode {
  background-color: #f1f1f1; /* Light header background */
  color: #000000; /* Dark text */
}

.header h1 {
  margin: 0;
}

.theme-toggle {
  position: absolute;
  right: 20px;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.theme-toggle:hover {
  background-color: #555;
}

/* Container */
.container {
  max-width: 500px; /* Reduced from 600px to make the container smaller */
  width: 100%;
  background-color: #1e1e1e;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 10px; /* Reduced padding for a smaller appearance */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  margin: 80px 0; /* Adjusted margin for spacing */
  flex-grow: 1;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1rem;
}

.container.light-mode {
  background-color: #f9f9f9; /* Light container background */
  border-color: #ccc; /* Light border */
}

/* Dropdown */
.dropdown {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 1.1rem;
  background-color: #333;
  color: #fff;
  border: none;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown:hover {
  background-color: #555;
}

/* Button Container */
.button-container {
  display: flex; /* Use flexbox for horizontal alignment */
  flex-wrap: wrap; /* Allow wrapping if buttons exceed the container width */
  justify-content: center; /* Center the buttons horizontally */
  gap: 15px; /* Increased spacing between buttons */
}

/* Buttons */
button {
  flex: 1 1 auto; /* Allow buttons to grow and shrink */
  margin: 10px 0 0; /* Add top margin to create space from text fields */
  padding: 15px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-size: 1.1rem;
}

button:hover {
  background-color: #555;
}

/* Inputs */
input, textarea {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  font-size: 1.1rem;
  border: 2px solid #444;
  border-radius: 5px;
  background-color: #1e1e1e;
  color: #f1f1f1;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #f1f1f1;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Results */
.result {
  margin-top: 10px;
  font-weight: bold;
  color: #f1f1f1;
}

/* Footer */
.footer {
  width: 100%;
  background-color: #1e1e1e;
  color: #f1f1f1;
  padding: 10px 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  transition: background-color 0.3s, color 0.3s;
}

.footer.light-mode {
  background-color: #f1f1f1; /* Light footer background */
  color: #000000; /* Dark text */
}

.footer a {
  color: #f1f1f1;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer a:hover {
  text-decoration: underline;
}

/* Footer Social Links */
.footer .social-links {
  margin-top: 10px;
  font-size: 0.9rem; /* Match the footer font size */
}

.footer .social-links a {
  color: inherit; /* Use the same color as the footer text */
  text-decoration: none; /* Remove underline */
  margin: 0 5px; /* Add spacing between links */
  transition: color 0.3s;
}

.footer .social-links a:hover {
  color: #888; /* Slightly lighter color on hover */
}
