/* === Base Layout === */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(-45deg, #ff6ec7, #845ec2, #00c9ff, #f9f871);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Container (Light & Dark) === */
.container {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 340px;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.container.dark {
  background: rgba(20, 20, 20, 0.95);
  color: #f5f5f5;
}

/* === Inputs === */
input[type="number"] {
  width: 90%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.container.dark input[type="number"] {
  background: #2a2a2a;
  color: #f5f5f5;
  border: 1px solid #555;
}

.container.dark input[type="number"]::placeholder {
  color: #aaa;
}

/* === Buttons === */
button {
  margin-top: 8px;
  padding: 10px;
  width: 95%;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

button.accordion {
  background: #007bff;
  color: white;
  font-weight: bold;
}

button.calculate_color {
  background-color: #007bff;
  color: white;
}

button.clear {
  background: #e74c3c;
  color: white;
}

#themeToggle {
  margin-bottom: 15px;
  background: #444;
  color: white;
}

.container.dark #themeToggle {
  background: #ddd;
  color: black;
}

/* === Results & Messages === */
.result {
  margin-top: 10px;
  font-size: 20px;
}

.result .highlight {
  font-weight: bold;
  color: #007bff;
}

.result .big {
  font-size: px;
}

.error {
  color: red;
}

/* Footer styles */
footer {
    background-color: #000000; /* light gray background */
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #ffffff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Link styles inside the footer */
footer a {
    color: #007BFF; /* blue color for the link */
    text-decoration: none;
    margin-left: 5px;
}

footer a:hover {
    text-decoration: underline; /* underline on hover */
}
