* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #1e1e2f;
  transition: background-color 0.3s ease;
}

.card {
  text-align: center;
  padding: 2.5rem 3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

h1 {
  color: #fff;
  margin: 0;
}

#hexCode {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 1rem 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-family: "Courier New", monospace;
}

button {
  font-size: 1.1rem;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 10px;
  background-color: #ffffff;
  color: #1e1e2f;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

button:active {
  transform: translateY(0);
}