:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --box-bg: #eceeee;
  --img-bg: url('img/2.jpg');


  --main-font: "Inter", sans-serif;
}

.tema-oscuro {
  --bg-color: #ffffff;
  --text-color: #f9f9f9e8;
  --box-bg: #464343;
  --img-bg: url('img/1.jpg');
}



body {
  font-family: "Inter", sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  background-color: #121212;
  background-image: var(--img-bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}



.container {
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--box-bg);
  border-radius: 15px;
  margin: 5rem 0;
  animation: fadeInUp 0.3s ease-out forwards;

}

.title {
  text-align: center;
}

.input-group {
  margin-bottom: 1rem;
}

input[type="color"] {
  border: none;
  background: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.container__colors {
  display: flex;
  gap: 4rem;
  justify-content: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 5px;
}

.copy-btn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.2rem 0.rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background-color: #0056b3;
}

.preview {
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid #ccc;
  text-align: center;
  border-radius: 1px;
}

.resultado {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}

.container {
  min-height: 550px;
  position: relative;
}

.info {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0.85;
}

.niveles {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: var(--text-color);
  opacity: 0.7;
  text-align: center;
  line-height: 1.4;
}

.preview-ejemplo {
  margin-top: 1rem;
  text-align: center;
}

.preview-ejemplo p {
  background: #f5f5f5;
  color: #111;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
  font-size: 0.9rem;
}


.tema-toggle-bottom {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
  cursor: pointer;
  user-select: none;
}

.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--bg-color);
  opacity: 0.7;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}