@import url(https://fonts.googleapis.com/css?family=Roboto:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
* {
    margin : 0;
    padding : 0;
    box-sizing: border-box;
    font-family: "Roboto";
}   
body {
    background : linear-gradient(135deg , #83a8df , #c3cfe2);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}             
 .container{
    background : #fff;
    border-radius : 1rem;
    padding: 2rem;
    width : 100%;
    max-width : 800px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
 }

 h1{
    text-align : center;
    margin-bottom: 1.5rem ; 
    color : #333;
    position :relative ;
    padding-bottom : 0.5rem; 
 }
 h1::after {
    content: ""; 
    position: absolute;
    width : 40%;
    height: 3px;
    bottom : 0;
    left: 50%;
    transform : translateX( -50%);
    background: #667eea;
    border-radius : 2px ; 
 }

#generate-btn {
    background : linear-gradient(45deg , #667eea , #764ba2);
    color : white ; 
    border : none ; 
    border-radius : 30px;
    cursor : pointer ; 
    margin-bottom: 2rem ; 
    font-size: 1rem ;
    font-weight : 500 ;
    padding : 0.8rem  1.5rem ;
}
#generate-btn:hover {
    transform : scale(1.02);
    box-shadow: 0 6px 10px rgba(102,126,234,0.3);
}
#generate-btn:active{
    transform : scale(1);
}

.palette-container{
    display : grid ; 
    gap : 1rem ; 
    grid-template-columns: repeat(auto-fit , minmax(130px , 1fr));
}
.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 : scale(1.03);
}
.color-box:active {
    transform : scale(1);
}
.color {
    height : 120px;
    cursor: pointer;
}
.color-info{
    display: flex ; 
    justify-content: space-between;
    padding : 0.7rem ;
    align-items : center ; 
    background-color : #fff;
    font-size: 1rem;
}
.hex-value {
    font-weight: 500;
    letter-spacing: 0.5px;
}
.copy-btn {
    cursor : pointer ;
    color : #64748b;
    transition : color 0.2s;
}
.copy-btn:hover {
    color : #667eea
}
@media (max-width: 798px){
    .pallet-container{
        grid-template-columns: repeat(minmax(100px , 1fr));
    }
}