@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic);
@import url(https://fonts.googleapis.com/css?family=Poppins:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);
/* basic reset  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}


img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ------------------------------------------ */

body {
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100vh;
}

.container {
  color: white;
  background-color: rgb(40, 40, 40);
  width: 800px;
  padding: 2rem;

  position: relative;
  border-radius: 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  width: 60%;
  height: 3px;
  background-color: aliceblue;
  border-radius: 2px;
}

#generate-btn {
  padding: 0.4rem 0.7rem;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: 0.3s ease;
}

#generate-btn:hover {
  translate: 0 -8%;
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.3);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.container::after,
.container::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), transparent 70%, white);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 2px;
  border-radius: 1rem;
  animation: 4s spin linear infinite;
}

.container::before {
  filter: blur(1.3rem);
  opacity: 0.6;
}

.palette-container {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.color-box {
  
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s;
}

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

.color{
    height: 120px;
    cursor: pointer;
     position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center;

}

.color-info{
    background-color: rgb(37, 37, 37);
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hex-value{
    font-weight: 500;
    letter-spacing: 0.5px;
}

.copy-btn{
    cursor: pointer;
    color: rgb(143, 143, 143);
    transition: color 0.2s;
}

.copy-btn:hover{
    color: #f7f9fb;
}

/* .lock-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;


}

.lock-btn i {
  color: #555;
}

.locked i {
  color: #ff9800; 
}

 */





@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}
