* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100vh;
  width: 100vw;
  font-family: "Arial", sans-serif;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.center-button {
  padding: 20px 50px;
  font-size: 1.2rem;
  font-weight: bold;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  color: white;
  border: none;
  border-radius: 50px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 2s forwards ease;
}

.center-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.6s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.center-button:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.center-button:hover {
  background: linear-gradient(135deg, #8f94fb, #4e54c8);
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.center-button:active {
  transform: scale(0.98);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}

.color-box {
  width: 14rem;
  padding: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s forwards ease;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .center-button {
    padding: 15px 40px;
    font-size: 1.5rem;
  }

  .color-box {
    width: 13rem;
    font-size: 1.2rem;
  }

  @media (max-width: 480px) {
    .center-button {
      padding: 12px 30px;
      font-size: 16px;
    }

    .color-box {
      width: 160px;
      font-size: 14px;
    }
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateX(-5rem);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}
