.previewSection {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}
.previewSection h1{
    text-align: center;
}
.palette-container {
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.color-block {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start with a slight downward position */
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.color-block.show {
    opacity: 1;
    transform: translateY(0); /* Move to the original position */
}
.color-block:first-child { height: 75px; }
.color-block:nth-child(2) { height: 70px; }
.color-block:nth-child(3) { height: 65px; }
.color-block:nth-child(4) { height: 55px; }
.color-block:nth-child(5) { height: 45px; }
.button-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.button-container button {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid white;
    border-radius: 30px;
    transition: border 0.3s ease, background-color 0.3s ease;
    position: relative;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.button-container button:hover {
    border: 1px solid grey;
    background-color: #f0f0f0;
}
.button-container .icon {
    width: 20px;
    height: 20px;
}
.tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}
.show-tooltip {
    opacity: 1;
}
.color-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 50%;
}
.color-circles, .color-codes {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 10px 0;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    gap: 5px;
}
.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.color-circle {
    opacity: 0;
    transform: scale(0.8); /* Start slightly smaller */
    transition: opacity 0.6s ease, transform 0.6s ease;
    border: 1px solid #00000017;   
}

.color-circle.show {
    opacity: 1;
    transform: scale(1); /* Scale to full size */
}
.hex-code, .rgb-code {
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: relative;
}
.hex-code:hover, .rgb-code:hover {
    background-color: #ddd;
}
.copy-popup {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}
.copy-popup.show {
    visibility: visible;
    opacity: 1;
}
.description-container {
    font-size: 14px;
    color: #333;
    margin-top: 20px;
    text-align: center;
    max-width: 900px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #00000036;
}
@media (max-width: 768px) {
.color-info-container {
display: flex;
flex-direction: column;
margin-top: 20px;
width: 88%;
align-items: center;
}
.description-container {
    max-width: 300px;
}
.hex-code{
    font-size: 10px;
    }
}
