@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* font-family: "Montserrat", sans-serif; */
:root{
--header-height: 3.5rem;
--first-color:rgb(0, 101, 0);
--first-color-alt:rgb(29, 138, 29);
--first-color-light:lightgreen;
--title-color:white;
--text-color: hsl(228, 8%, 70%);
--container-color:hsl(228, 6%, 12%);
--shadow-img:0 0 48px hsl(93, 54%, 54% .4);
--gradient-card : linear-gradient(180deg, 
                                  hsla(93, 8%, 8%)
                                  hsla(93, 40%, 30%) );


--body-font: "montserrat", sans-serif;
--biggest-font-size: 2.25rem;
--h1-font-size : 1.5rem;
--h2-font-size : 1.25rem;
--h3-font-size : 1rem;
--normal-font-size: .938rem;
--small-font-size : .813rem;

--font-regular : 400;
--font-semi-bold: 600;
--font-bold: 700;

--z-tooltip: 10;
--z-fixed : 100;
                           
}

@media screen and (min-width: 1150px){
    :root{
        --biggest-font-size : 4.25rem;
        --h1-font-size: 2.25rem;
        --h2-font-size : 1.5rem;
        --h3-font-size : 1.25rem;
        --normal-font-size : 1rem;
        --small-font-size: .875rem;

    }
 
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
html{
    scroll-behavior: smooth;
}
body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-image: linear-gradient(135deg, rgb(0, 0, 0), rgb(52, 90, 52), rgb(74, 147, 104)),
                      linear-gradient(45deg, rgb(255, 255, 0), rgb(159, 233, 210), rgb(255, 196, 0)),
                      linear-gradient(90deg, rgb(0, 255, 255), rgb(255, 0, 255), rgb(255, 255, 0));
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
}
h1, h2, h3, h4{
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}
ul{
    list-style: none;
}
a{
    text-decoration: none;

}
img{
    display: block;
    max-width: 100%;
    height: auto;
}
.container{
    max-width: 1120px;
    margin-inline:1.5rem ;

}
.grid{
    display: grid;
    gap: 1.5rem;
}
.section{
    padding-block: 5rem 1rem;
}
.section__title{
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    text-align: center;
    margin-bottom: 1rem;
}
.main{
    overflow: hidden;
}
.new__card {
    position: relative;
    width: 1200px;
    background: linear-gradient(20deg, rgba(156, 235, 39, 0.453) 0%, rgba(1, 117, 20, 0.53) 0%, rgb(0, 0, 0) 75%, rgba(182, 235, 104, 0.404) 100%);
    padding: 9rem .75rem 1.5rem .75rem;
    border: 2px solid var(--first-color);
    border-radius: 1.5rem;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.new__card:hover {
    transform: translateY(-5px); /* Add a hover effect */
}

.new__img {
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    width: 180px;
    margin: 0 auto;
    transition: transform 0.4s ease; /* Apply transition to the image */
}

.new__card:hover .new__img {
    transform: translateY(-10px); /* Add a hover effect */
}

.product__overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 50px;
    width: 700px;
    border-radius: 1rem; /* Add border radius for color blocking effect */
    background-color: rgba(255, 255, 255, 0.1); /* Add semi-transparent background color */
    transition: transform 0.4s ease; /* Apply transition to the product overview */
}

.product__overview:hover {
    transform: scale(1.05); /* Add a hover effect */
}
.product__overview:nth-child(odd) {
    justify-self: flex-end;
    flex-direction: row-reverse;

}
.product__intro {
    text-align: center;
}
.product__overview p {
    /* or use any other value like '700' for bolder */
    color: white;
}
.product__overview:nth-child(odd) .new__img {
    order: 2; /* Places the image after the text */
}

.product__overview:nth-child(odd) p {
    order: 1; /* Places the text before the image */
}

/* Small screens (Mobile) */
/* Small screens (Mobile) */
@media screen and (max-width: 767px) {
   .product__overview {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        padding: 50px;
        width: 300px;
        border-radius: 1rem;
        background-color: rgba(255, 255, 255, 0.1);
        transition: transform 0.4s ease 0s;
    }

    .new__card {
        position: relative;
        width: 200px;
        background: linear-gradient(20deg, rgba(156, 235, 39, 0.453) 0%, rgba(1, 117, 20, 0.53) 0%, rgb(0, 0, 0) 75%, rgba(182, 235, 104, 0.404) 100%);
        padding: 9rem .75rem 1.5rem .75rem;
        border: 2px solid var(--first-color);
        border-radius: 1.5rem;
        margin-bottom: 20px;
        transition: transform 0.4s ease;
    }
    .product__overview:nth-child(odd) {
        justify-self: center;
        flex-direction: column;
    
    }
    .product__overview:nth-child(even) {
        justify-self: center;
        flex-direction: column;
    
    }
}

/* Medium screens */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .product__overview {
        flex-direction: row; /* Display items side by side */
        text-align: left; /* Align text to the left */
    }
    .product__overview .new__img {
        order: 0; /* Reset image order */
    }
}
