@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito Sans", sans-serif;
}
.main {
    width: 100%;
    height: auto;
    justify-content: center;
    display: flex;
}
.palette {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: px 0;
}
.palette-container {
    width: 90%;
    height: auto;
    margin-top: 50px;
}
.palette-container h1 {
    font-size: 30px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    text-align: center;
}
.subtext {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 40px;
    color: rgb(255, 255, 255);
    text-align: center;
    font-weight: 400;
}
.color-box {
    width: 600px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 20px;
    border-radius: 20px;
    font-size: 17px;
    color: white;
}
.gen-btn {
    width: 100%;
    justify-content: center;
    display: flex;
}
span {
    color: #ffa500;
}
button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 16px;
    margin: 20px;
    margin-top: 30px;
    border: none;
    background-color: #ffa500;
    color: white;
    cursor: pointer;
    border-radius: 40px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
button:hover {
    background: linear-gradient(45deg, #ff0000, #ffa500, #ffff00, #008000, #0000ff, #4b0082, #ee82ee);
    background-size: 400% 400%;
    animation: gradientAnimation 3s ease infinite;
    color: white;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/* Responsive Styles */

@media (max-width: 1600px) {
    .color-blog {
        width: 80%;
        height: auto;
        padding: 10px;
        padding-bottom: 100px;
    }
}
@media (max-width: 1280px) {
    button {
        margin-top: 20px;
        padding: 10px 30px;
        font-size: 16px;
        margin: 20px;
        margin-top: 30px;
        border: none;
        cursor: pointer;
        border-radius: 40px;
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    }
    .color-box {
        width: 600px;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-top: px;
        font-size: 13px;
    }
}
@media (max-width: 1024px) {
    .palette-container h1 {
        font-size: 23px;
        font-weight: 700;
        text-align: center;
    }
    .subtext {
        font-size: 14px;
        padding-left: 0px;
        margin-top: 5px;
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
        font-weight: 400;
    }
    .color-blog {
        width: 80%;
    }
    .color-blog h2 {
        font-size: 30px;
        padding-top: 0px;
        padding-left: 20px;
        font-weight: 800;
    }
    .color-blog p {
        text-align: left;
        font-size: 14px;
        padding-top: 10px;
        padding-right: 50px;
        padding-left: 20px;
        line-height: 22px;
        font-weight: 300;
    }
    .color-blog h3 {
        text-align: left;
        font-size: 20px;
        padding-top: 20px;
        padding-left: 20px;
        font-weight: 700;
    }
    .preview img {
        width: 90%;
        height: auto;
        margin-top: 30px;
        margin-bottom: 20px;
        margin-left: 20px;
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
        
    }
    .color-blog {
        padding-bottom: 50px;
    }
}
@media (max-width: 768px) {
    button {
        margin-top: 20px;
        padding: 15px 30px;
        font-size: 12px;
        margin: 20px;
        margin-top: 30px;
        border: none;
        cursor: pointer;
        border-radius: 40px;
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    }
    .color-box {
        width: 600px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-top: px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .color-blog {
        width: 100%;
        height: auto;
        padding: 10px;
        padding-bottom: 50px;
    }
    .color-box {
        width: 600px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-top: 10px;
        font-size: 11px;
    }
    .palette {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: px 0;
    }
}