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


body {
    background: linear-gradient(135deg, #83e8df, #c3cfe2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

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

h1::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 3px;
    background: linear-gradient(90deg, #83e8df, #c3cfe2);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 2px;
}

#generate-btn {
    background: linear-gradient(135deg, #83e8df, #c3cfe2);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;



    display: flex;
    justify-content: flex-start;
    /* Aligns button to the left */
    margin-bottom: 20px;
    /* Adds space between button and colors */
    padding-left: 20px;
    /* Adjust to match your side padding */
}

#generate-btn:hover {
    background: linear-gradient(135deg, #c3cfe2, #83e8df);
}

#generate-btn:active {
    transform: scale(0.95);
}

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


}

.color-box {
   border-radius: 10px;
   overflow: hidden;
   box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.color-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.color {
    height: 120px;
    cursor: pointer;

}

.color-info {
    background-color: #fff;
    padding: 0.7rem;
    font-size: 0.9rem;
}

.hex-value {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.3rem;
    
    display: flex;
    justify-content: space-between;
}

.copyBtn {
    cursor: pointer;
}

@media (max-width:768px) {
        .pallet-container{
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        }    
}

