/* Importing Google Fonts */
@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);


/* Reset Basic Styling */

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

/* body Styling */
body{
    background: linear-gradient(135deg, #83a8df, #c3cfe2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container Styling */
.container{
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Container heading styling */
h1{
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

h1::after{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: #667eea;
    border-radius: 7px;
    content: "";
}

/*  Generate Button styling */
#generate-btn{
    background: linear-gradient(45deg, #667eea,#764ba2);
    border: none;
    border-radius: 15px;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 1rem;
}

#generate-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 10px  rgba(0,0,0,0.3);
}

#generate-btn:active{
    transform: translateY(0px);
}

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

/* Color Box Div Styling */
.color-box{
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

/* Styling the color inside the color box */
.color{
    height: 120px;
    cursor: pointer;
}

/* Styling the hexa code  box */
.color-info{
    background-color: white;
    padding: 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Styling the hexa code */
.hex-value{
    font-weight: 500;
    letter-spacing: 0.5px;
}


/* Styling the copy btn */
.copy-btn{
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s ease;
}

.copy-btn:hover{
    color:#667eea;
}

/* Media Queries for responsive design */
@media screen and (max-width:768px) {
    .palotte-container{
        grid-template-columns: repeat(auto-fit, minmax(100px,1fr));
    }
}