* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #4facfe;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* 🔧 Replaced height: 100vh with min-height */
  padding: 1rem; /* 🔧 Ensures spacing on small screens */
}

.chuck-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  /* 🔧 Fixed gradient border */
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, #2eeae4, #25adab);
  background-origin: border-box;
  background-clip: content-box, border-box;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 24px rgba(229, 46, 113, 0.15);
  background-color: #fff;
}

.description {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 1rem;
  font-family: 'Baloo 2', cursive;
}

.container {
  width: 90%; /* 🔧 Scales to screen */
  max-width: 400px; /* 🔧 Keeps layout neat on desktop */
  text-align: center;
  background: #1e1e2f;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.color-box {
  width: 100%; /* 🔧 Full width inside container */
  max-width: 200px; /* 🔧 Prevent overflow on wide screens */
  height: 200px;
  margin: 1rem auto;
  border-radius: 15px;
  transition: 0.3s ease;
  background: #4facfe;
  box-shadow: 0 0 10px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
}

.color-box:hover {
  transform: scale(1.05);
}

.color-code {
  font-size: 1.2rem;
  margin: 1rem 0;
}

button {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #13c8d1;
}

.info {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* 🔧 RESPONSIVENESS FOR MOBILE SCREENS */
@media (max-width: 480px) {
  .container {
    padding: 1.2rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .color-box {
    height: 150px;
    font-size: 1rem;
  }

  .color-code {
    font-size: 1rem;
  }

  button {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
  }

  .description {
    font-size: 1rem;
  }
}
