@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-container h1 {
    font-size: 30px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    text-align: center;
}
.palette-container p {
    font-size: 18px;
    text-align: center;
    margin-top: 15px;
    color: rgb(255, 255, 255);
    font-weight: 400;
}
.palette-container {
    width: 90%;
    height: auto;
    margin-top: 40px;
}
.palette {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
.color-box {
    width: 350px;
    height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgb(0, 0, 0);
    font-weight: bold;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    &:first-child {
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
    }
    &:last-child {
        border-top-right-radius: 30px;
        border-bottom-right-radius: 30px;
    }
}
.color-box p {
    color: rgb(255, 255, 255);
    font-weight: 500;
    margin: 20px;
}
.gen-btn {
    width: 100%;
    justify-content: center;
    display: flex;
}
button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 16px;
    margin: 20px;
    margin-top: 50px;
    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%;
    }
}
.previous {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.previous:hover {
    background-color: #000000;
    color: white;
}
span {
    color: #ffa500;
}



/* Responsive Styles */

@media (max-width: 1600px) {
    .color-blog {
        width: 80%;
        height: auto;
        padding: 10px;
        padding-bottom: 100px;
    }
}
@media (max-width: 1280px) {
    .color-box {
        width: 180px;
        height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    }
    button {
        margin-top: 20px;
        padding: 10px 30px;
        font-size: 14px;
        margin: 10px;
        margin-top: 30px;
        border: none;
        cursor: pointer;
        border-radius: 40px;
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    }
}
@media (max-width: 1024px) {
    .palette-container h1 {
        font-size: 23px;
        padding-left: 35px;
        font-weight: 700;
        text-align: center;
    }
    .palette-container p {
        font-size: 14px;
        padding-left: 35px;
        margin-top: 5px;
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
        font-weight: 400;
    }
    .color-box {
        width: 150px;
        height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    }
    .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;
    }
    .color-box p {
        font-weight: 500;
        margin: 20px;
    }
}
@media (max-width: 768px) {
    .palette-container {
        width: 100%;
        height: auto;
        margin-top: 40px;
    }
    .color-box {
        width: 90px;
        height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    }
    button {
        padding: 15px 20px;
        font-size: 12px;
        margin: 5px;
        margin-top: 5px;
        border: none;
        cursor: pointer;
        border-radius: 40px;
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    }
    .palette-container p {
        padding-left: 0px;
        margin-top: 15px;
        text-align: center;
        font-weight: 400;
    }
    .color-box p {
        color: rgb(255, 255, 255);
        font-weight: 500;
        margin: 20px;
    }
}
@media (max-width: 480px) {
    .color-blog {
        width: 100%;
        height: auto;
        padding: 10px;
        padding-bottom: 50px;
    }
    .color-box p {
        font-weight: 500;
        margin: 20px;
        font-size: 12px;
    }
    .color-box {
        width: 100%;
        height: 70px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
        &:first-child {
            border-top-left-radius: 30px;
            border-top-right-radius: 30px;
            border-bottom-left-radius: 0px;
        }
        &:last-child {
            border-bottom-left-radius: 30px;
            border-bottom-right-radius: 30px;
            border-top-right-radius: 0px;
        }
    }
    .palette {
        display: block;
        justify-content: center;
        margin-top: 10px;
        flex-wrap: wrap;
        padding: 20px;
    }
}