/* Import Google font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

/* Background Color */
body {
  background: #E3F2FD;
  position: relative;
  min-height: 100vh;
}

/* Top Title Styling
.top-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 20px;
  color: #333;
} */

/* Centered Title Styling */
.center-title{
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 20px;
    color: rgb(0, 0, 0);
    text-align: center;
    width: 100%;
}

/* Color Palette Container */
.container {
  margin: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Individual Color Boxes */
.container .color {
  margin: 12px;
  padding: 7px;
  list-style: none;
  cursor: pointer;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(52,87,220,0.08);
  transition: all 0.3s ease;
}

.container .color:active {
  transform: scale(0.95);
}

.color .rect-box {
  width: 185px;
  height: 188px;
  border-radius: 4px;
}

.color:hover .rect-box {
  filter: brightness(107%);
}

.color .hex-value {
  display: block;
  color: #444;
  user-select: none;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 12px 0 8px;
  text-transform: uppercase;
}

/* Refresh Button */
.refresh-btn {
  position: fixed;
  left: 50%;
  bottom: 40px;
  color: #fff;
  cursor: pointer;
  outline: none;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 5px;
  background: #8A6CFF;
  padding: 13px 20px;
  border: 2px solid #fff;
  transform: translateX(-50%);
  box-shadow: 0 15px 30px rgba(52,87,220,0.2);
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: #704dff;
}

/* Responsive Design */
@media screen and (max-width: 500px) {
  .container {
    margin: 10px;
  }
  .container .color {
    margin: 8px;
    padding: 5px;
    width: calc(100% / 2 - 20px);
  }
  .color .rect-box {
    width: 100%;
    height: 148px;
  }
  .color .hex-value {
    font-size: 1.05rem;
  }
  .refresh-btn {
    font-size: 1rem;
  }
}
