body {
  background: linear-gradient(-45deg, #a8edea, #fed6e3, #ff9a9e, #fbc2eb);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

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

body {
  
  text-align: center;
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  margin: 0;
  padding: 50px;
  min-height: 100vh;
 
}
.navbar h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  text-align: center;
}
.navbar {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  padding: 15px 0;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}



button {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  border: none;
  padding: 14px 30px;
  margin-top: 3rem;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #2575fc, #6a11cb);
}

.box {
  width: 320px;
  height: 180px;
  margin: 40px auto;

  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 18px;
  color: #333;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: background-color 0.5s, transform 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
}

/* Add small fade animation when color changes */
@keyframes fadeIn {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

.box {
  animation: fadeIn 0.4s ease-in;
}
.color-info {
  width: 300px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-weight: 600;
  font-size: 18px;
}


footer {
  margin-top: 50px;
  padding: 15px;
  background-color: #333;
  color: white;
  text-align: center;
  border-radius: 15px 15px 0 0;
}

@media screen and (max-width: 500px) {
  .box, .color-info {
    width: 90%;
  }

  button {
    width: 80%;
    font-size: 16px;
  }
}


/* Mobile friendly */
@media screen and (max-width: 500px) {
  .navbar h2 {
    font-size: 1rem;
    padding: 0 10px;
   
  }
  .navbar{
     width: 100vw;
     margin-left: 0px;
  }
}

/* Mobile */
@media screen and (max-width: 500px) {
  button {
    width: 80%;
    padding: 12px;
    font-size: 16px;
  }
}

/* Mobile */
@media screen and (max-width: 500px) {
  footer {
    font-size: 10px;
    padding: 12px;
    width: 100vw;
  }
}