@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;
    align-content: center;
    justify-content: center;
    display: flex;
    padding-bottom: 50px;
}
.header-container {
    width: 100%;
    height: 620px;
    align-content: center;
    justify-content: center;
    display: block;
    background: linear-gradient(45deg, #ff7eb3, #ff758c, #6a11cb, #2575fc, #92d8d7);
    background-size: 400% 400%;
    animation: gradientAnimation 5s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.adspace {
    width: 100%;
    height: auto;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}
.header-container p {
  text-align: center;
  font-weight: 600;
  color: white;
  font-size: 20px;
}
.header-container h1 {
    text-align: center;
    font-size: 100px;
    line-height: 110px;
    color: white;
    font-weight: 800;
}
.header-container h3 {
    text-align: center;
    font-size: 21px;
    font-weight: 300;
    color: #ffffff;
    padding-top: 20px;
    line-height: 25px;
}
.span1 {
    color: #c3ff00;
}
.span2 {
    color: #00ddff;
    font-style: italic;
}
.color-items-container {
    width: 90%;
    height: auto;
}
.color-items-container .heading {
    width: 100%;
    height: auto;
    justify-content: center;
    display: flex;
    padding: 30px;
}
.color-items-container .heading h2 {
    text-align: center;
    font-size: 35px;
    color: #ffffff;
    padding-top: 30px;
    font-weight: 700;
}
.color-tools {
    width: 100%;
    height: auto;
    border-radius: 50px;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.tools {
    width: 250px;
    height: auto;
    background-color: #ffffff;
    background-color: #17181b;
    border-radius: 35px;
    padding: 15px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    margin: 20px;
}
.card-icon {
    width: 100%;
    height: 150px;
    border-radius: 25px;
}
.card-icon img {
    width: 100%;
    height: 100%;
    border-radius: 25px;
}
.tool-name {
    width: 100%;
    height: 50px;
    background-color: rgb(0, 0, 0);
    border-radius: 20px;
    margin-top: 15px;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: white;
}
.tools a {
    text-decoration: none;
    color: #ffffff;
}
.tool-name:hover {
    color: #ffa500;
}
.badge {
    width: 100%;
    margin-top: 50px;
    height: auto;
    justify-content: center;
    display: flex;
}
.trending-gradients-container {
    width: 100%;
    height: auto;
    justify-content: center;
    display: flex;
    padding: 10px;
    padding-bottom: 50px;
    flex-wrap: wrap;
}
.trending-gradients-container .heading {
    width: 90%;
    height: auto;
    justify-content: center;
    display: flex;
    padding: 10px;
    margin-bottom: 50px;
}
.trending-gradients-container .heading h2 {
    text-align: center;
    font-size: 35px;
    color: #ffffff;
    padding-top: 30px;
    font-weight: 700;
}
.box-container {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(2, 150px);
    gap: 20px;
    justify-content: center;
}

.box {
    width: 430px;
    height: 200px;
    border-radius: 40px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
    border-width: 8px;
    border-style: solid;
    border-color:#17181b ;
}

.box:hover {
    transform: scale(1.0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.box::before {
    content: attr(data-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.box:hover::before {
    opacity: 1;
}

.box:nth-child(1) {
    background: linear-gradient(45deg, #ff7eb3, #ff758c);
}

.box:nth-child(2) {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
}

.box:nth-child(3) {
    background: linear-gradient;
}
.box {
    position: relative;
}

.box .menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25px;
    height: 25px;
    background: rgb(0, 0, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s;
}

.box .menu:hover {
    opacity: 1;
}

.tooltip {
    position: absolute;
    top: 50px;
    left: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    border-radius: 10px;
    line-height: 25px;
    font-size: 14px;
    display: none;
    z-index: 2;
}


.trending-palette-container {
    width: 100%;
    height: auto;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
}
.trending-palette-container .heading {
    width: 90%;
    height: auto;
    justify-content: center;
    display: flex;
    padding: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}
.trending-palette-container .heading h2 {
    text-align: center;
    font-size: 35px;
    color: #ffffff;
    padding-top: 30px;
    font-weight: 700;
}
.color-palettes {
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px; /* Space between palettes */
}

.color-palette {
    width: 250px; /* Width of each palette */
    border-radius: 30px; /* Rounded corners */
    overflow: hidden; /* Hide overflow */
    background-color: rgb(0, 0, 0); /* Background color of the palette */
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
    border-width: 8px;
    border-style: solid;
    border-color:#17181b ;
}

.color-palette h3 {
    text-align: center; /* Center the title */
    margin: 0; /* Remove default margin */
    padding: 10px; /* Padding around the title */
    background-color: #f7f7f7; /* Background color for the title */
}

.color-box {
    height: 60px; /* Height of each color box */
    position: relative; /* Position relative for the hover effect */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

.color-box:hover {
    transform: scale(1.3); /* Slight zoom-in effect */
    transition: transform 0.3s ease; /* Smooth transition for zoom */
}

.color-box:hover::after {
    content: attr(data-color); /* Display the color code on hover */
    position: absolute; /* Position absolutely within the box */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust position to center */
    color: white; /* Text color */
    font-weight: 400; /* Bold text */
    font-size: 12px; /* Font size */
    background-color: rgba(0, 0, 0, 0.7); /* Dark background for contrast */
    padding: 5px; /* Padding around the text */
    border-radius: 4px; /* Rounded corners for the tooltip */
    white-space: nowrap; /* Prevent text wrapping */
}


/* Responsive Styles */

@media (max-width: 1600px) {
    .header-container h1 {
        font-size: 75px;
        line-height: 60px;
    }
    .color-blog {
        width: 80%;
        height: auto;
        padding: 10px;
        padding-bottom: 100px;
    }
}
@media (max-width: 1280px) {
    .color-items-container .heading h2 {
        font-size: 25px;
        padding-top: 30px;
    }
    .solid-color {
        width: 200px;
        height: 230px;
        margin: 10px;
    }
    .gradient-color {
        width: 200px;
        height: 230px;
        margin: 10px;
    }
    .color-pallets {
        width: 200px;
        height: 230px;
        margin: 10px;
    }
    .dark-theme {
        width: 200px;
        height: 230px;
        margin: 10px;
    }
    .solid-color button {
        font-size: 12px;
    }
    .solid-color h3, .gradient-color h3, .color-pallets h3, .dark-theme h3 {
        font-size: 14px;
        color: #ffffff;
    }
    .gradient-color button {
        font-size: 12px;
    }
    .color-pallets button {
        font-size: 12px;
    }
    span {
        color: #FFA500;
    }
    .dark-theme button {
        font-size: 12px;
    }
    .trending-gradients-container .heading h2 {
        font-size: 25px;
    }
    .trending-palette-container .heading h2 {
        font-size: 25px;
    }
    .color-palettes {
        width: 80%;
    }
    .color-blog {
        width: 80%;
    }
    .header-container h1 {
        font-size: 60px;
        line-height: 60px;
    }
}


@media (max-width: 1024px) {
    .header-container p {
        font-size: 15px;
      }
    .header-container h1 {
        text-align: center;
        font-size: 40px;
        line-height: 50px;
        color: white;
        font-weight: 800;
    }
    .header-container h3 {
        text-align: center;
        font-size: 15px;
        font-weight: 300;
        color: #ffffff;
        padding-top: 10px;
        line-height: 20px;
    }
    .color-items-container .heading h2 {
        font-size: 20px;
        padding-top: 30px;
    }
    .solid-color {
        width: 150px;
        height: 180px;
        margin: 10px;
        border-radius: 30px;
    }
    .gradient-color {
        width: 150px;
        height: 180px;
        margin: 10px;
        border-radius: 30px;
    }
    .color-pallets {
        width: 150px;
        height: 180px;
        margin: 10px;
    }
    .color-pallets img {
        border-radius: 30px;
    }
    .dark-theme img {
        border-radius: 30px;
    }
    .dark-theme {
        width: 150px;
        height: 180px;
        margin: 10px;
    }
    .solid-color button {
    padding: 10px;
    border-radius: 25px;
    border-width: 0px;
    position: absolute;
    bottom: 20px;
    right: 18px;
    font-weight: 800;
    font-size: 10px;
    }
    .solid-color h3, .gradient-color h3, .color-pallets h3, .dark-theme h3 {
        font-size: 14px;
        margin-left: 0px;
    }
    .gradient-color button {
        bottom: 20px;
    right: 18px;
    font-weight: 800;
    font-size: 10px;
    padding: 10px;
    }
    .color-pallets button {
        bottom: 20px;
    right: 18px;
    font-weight: 800;
    font-size: 10px;
    padding: 10px;
    }
    span {
        color: #FFA500;
    }
    .dark-theme button {
        bottom: 20px;
    right: 18px;
    font-weight: 800;
    font-size: 10px;
    padding: 10px;
    }
    .trending-gradients-container .heading h2 {
        font-size: 20px;
    }
    .trending-palette-container .heading h2 {
        font-size: 20px;
        padding-top: 0px;
    }
    .color-palettes {
        width: 80%;
    }
    .color-blog {
        width: 80%;
    }
    .color-items-container .heading {
        padding: 10px;
    }
    .main {
        padding-bottom: 0px;
    }
    .trending-gradients-container {
        padding-bottom: 10px;
    }
    .trending-gradients-container .heading {
        margin-bottom: 20px;
    }
    .box {
        width: 300px;
        height: 150px;
        border-radius: 30px;
    }
    .box-container {
        gap: 20px;

    }
    .tooltip {
        font-size: 12px;
    }
    .color-palettes {
        gap: 20px; /* Space between palettes */
    }
    .color-palette {
        width: 180px; /* Width of each palette */
    }
    .color-box {
        height: 40px; /* Height of each color box */
    }
    .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) {
    .box {
        width: 230px;
        height: 150px;
        border-radius: 30px;
    }
}
@media (max-width: 560px) {
    .box {
        width: 190px;
        height: 150px;
        border-radius: 30px;
    }
}
@media (max-width: 480px) {
    .header-container h1 {
        font-size: 50px;
        margin-left: 60px;
        margin-right: 60px;
        line-height: 55px;
    }
    .header-container h3 {
        text-align: center;
        font-size: 15px;
        font-weight: 300;
        padding-top: 20px;
        margin-left: 50px;
        margin-right: 50px;
        line-height: 20px;
    }
    .box {
        width: 150px;
        height: 170px;
        border-radius: 30px;
        border-width: 4px;
    border-style: solid;
    border-color:#17181b ;
    }
    .color-palettes {
        width: 100%;
    }
    .color-blog {
        width: 100%;
    }
    .trending-gradients-container {
        width: 100%;
        height: auto;
        justify-content: center;
        display: flex;
        padding: 0px;
        margin-bottom: 50px;
    }
    .solid-color {
        width: 150px;
        height: 180px;
        margin: 10px;
    }
    .gradient-color {
        width: 150px;
        height: 180px;
        margin: 10px;
    }
    .color-pallets {
        width: 150px;
        height: 180px;
        margin: 10px;
    }
    .dark-theme {
        width: 150px;
        height: 180px;
        margin: 10px;
    }
    .color-items-container {
        width: 100%;
        height: auto;
    }
    .color-palette {
        width: 150px; /* Width of each palette */
        border-width: 4px;
    border-style: solid;
    border-color:#17181b ;
    }
    .color-box {
        height: 40px; /* Height of each color box */
    }
    .color-box:hover::after {
        font-size: 10px; /* Font size */
    }
}
