/* General Styles */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #1e1e1e;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo h1 {
  font-size: 2.4em;
  color: #ff6f61;
  margin: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
}

nav ul li a:hover {
  color: #ff6f61;
}

main {
  flex-grow: 1;
}

.hero {
  background: #121212;
  padding: 60px 20px;
  text-align: center;
  color: white;
}


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

.hero h2 {
  font-size: 2.5em;
}

.hero p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
}

.gradient-tool {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  background: #1e1e1e;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 600px;
  margin: 20px;
  text-align: center;
}

.container h2 {
  margin-top: 0;
}

label {
  font-size: 1.2em;
  color: #f1f1f1;
}

.color-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* Responsive grid */
  gap: 10px;
  margin-bottom: 20px;
}

.color-selectors input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 0;
}

#gradient-box {
  width: 100%;
  height: 150px;
  border: 1px solid #444;
  margin: 20px 0;
  background: #222;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

input[type="range"]#angle {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #555;
  border-radius: 5px;
  outline: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

input[type="range"]#angle:hover {
  opacity: 1;
}

input[type="range"]#angle::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}

input[type="range"]#angle::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}

button {
  background-color: #3a3a3a;
  color: #e0e0e0;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 10px;
}

button:hover {
  background-color: #505050;
  transform: translateY(-0.1rem);
}

.presets button {
  margin: 5px;
}

.about,
.contact {
  padding: 40px;
  text-align: center;
}

.about h2,
.contact h2 {
  font-size: 2.2em;
}

footer {
  background-color: #1e1e1e;
  text-align: center;
  padding: 20px;
  color: #e0e0e0;
  font-size: 1em;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
}
