@import url('https://fonts.googleapis.com/css?family=Poppins:100,300,400,500,600,700,800,800i,900&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9d4;
}

    .flexed {
        display: grid;
        grid-template-columns: repeat(4 , 1fr);
        animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
        justify-content: center;
        align-items: center;
        margin: 0;
        flex-wrap: wrap; /* Enable flex wrapping */
    }

    @keyframes fade-in {
        0% {
          opacity: 0;
        }
        100% {
          opacity: 1;
        }
      }
      
  

    .containerx {
        position: relative;
        flex: 1;
        max-width: 100%;
        margin: 0 10px;
    }

    .containerx .card {
        position: relative;
        width: 100%;
        height: 427px;
        background: #232323;
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    .containerx .card:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #00776d;
        clip-path: circle(150px at 80% 20%);
        transition: 0.5s ease-in-out;
    }

    .containerx .card:hover:before {
        clip-path: circle(300px at 80% -20%);
    }

    .containerx .card:after {
        content: "";
        position: absolute;
        top: 30%;
        left: -5%;
        font-size: 8em;
        font-weight: 800;
        font-style: italic;
        color: rgba(255, 255, 255, 0.04);
        align-content: center;
    }

    .containerx .card .imgBx {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
        width: 100%;
        height: 100%;
        transition: .5s;
    }

    .containerx .card:hover .imgBx {
        top: 0%;
        transform: translateY(-25%);
    }

    .containerx .card .imgBx img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 270px;
    }

    .containerx .card .contentBx {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 100px;
        text-align: center;
        transition: 1s;
        z-index: 90;
    }

    .containerx .card:hover .contentBx {
        height: 210px;
    }

    .containerx .card .contentBx h2 {
        position: relative;
        font-weight: 600;
        color: #fff;
        font-size: 1.4rem;
    }

    .containerx .card .contentBx .size,
    .containerx .card .contentBx .color {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 20px;
        transition: .5s;
        opacity: 0;
        visibility: hidden;
    }

    .containerx .card:hover .contentBx .size {
        opacity: 1;
        visibility: visible;
        transition-delay: .5s;
    }

    .containerx .card:hover .contentBx .color {
        opacity: 1;
        visibility: visible;
        transition-delay: .6s;
    }

    .containerx .card .contentBx .size h3,
    .containerx .card .contentBx .color h3 {
        color: white;
        font-weight: 300;
        font-size: 18px;
        text-transform: uppercase;
        margin-right: 10px;
        font-family: cairo;
    }

    .containerx .card .contentBx .size span {
        width: 26px;
        height: 26px;
        text-align: center;
        line-height: 26px;
        font-size: 14px;
        display: inline-block;
        color: #111;
        background: #fff;
        margin: 0 5px;
        transition: .5s;
        color: #111;
        border-radius: 4px;
        cursor: pointer;
    }

    .containerx .card .contentBx .size span:hover {
        background: #B90000;
    }

    .containerx .card .contentBx .color span {
        width: 100%;
        height: 20px;
        color:#fff;
        border-radius: 50%;
        margin: 0 5px;
        cursor: pointer;
            font-size: 1.2rem;
    }

    .containerx .card .contentBx .color span:nth-child(2) {
        background: #1BBFE9;
    }

    .containerx .card .contentBx .color span:nth-child(3) {
        background: #1B2FE9;
    }

    .containerx .card .contentBx .color span:nth-child(4) {
        background: #080481;
    }

    .containerx .card .contentBx a {
        display: inline-block;
        padding: 10px 20px;
        background: #fff;
        border-radius: 4px;
        margin-top: 10px;
        text-decoration: none;
        font-weight: 600;
        color: #111;
        opacity: 0;
        transform: translateY(50px);
        transition: .5s;
    }

    .containerx .card:hover .contentBx a {
        opacity: 1;
        transform: translateY(0px);
        transition-delay: .7s;
    }

    /* Media Query for mobile responsiveness */
    @media only screen and (max-width: 600px) {

        
    .flexed {
        display: grid;
        justify-content: center;
        align-items: center;
        margin: 0;
        flex-wrap: wrap; /* Enable flex wrapping */
        grid-template-columns: repeat(1 , 1fr);
    }

        .containerx {
            max-width: 100%;
            margin: 0;
            display: grid;
            align-items: center;
            padding: 20px;
            margin-bottom: -31px;
            grid-template-columns: repeat(1 , 1fr);
        }

        .flexed {
            flex-wrap: nowrap; /* Prevent flex wrapping for mobile devices */
        }

        .containerx .card {
            width: 100%;
            margin-right: 0; /* No margin for full width */
            align-items: center;
        }
        .container.footer {
            bottom: -9rem;
        }
        .footer {
            bottom: -9rem;
        }
    }

    /* Add this style for desktop layout */
    @media only screen and (max-width: 650px) {
        .flexed {
            display: grid;
            max-width: 1200px;
            margin: 0 auto;
            grid-template-columns: repeat(1 , 1fr);
        }
        .controlmedia {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
        }

        .containerx {
            flex: 1;
            margin: 0 1%;
            min-width: 33%;
            justify-content: center;
        }
        .footerptext{
            text-align: center;
        }
        .container.footer {
            bottom: -9rem;
        }
        .footer {
            bottom: -9rem;
        }
    }



    @media only screen and (max-width: 950px) {
        .flexed {
            display: grid;
            max-width: 1200px;
            margin: 0 auto;
            grid-template-columns: repeat(2 , 1fr);
            min-width: 140%;
        }
        .controlmedia {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }

        .containerx {
            flex: 1;
            margin: 0 1%;
            min-width: 33%;
            justify-content: center;
        }

    }

    
    @media only screen and (max-width: 400px) {
        .flexed {
            display: grid;
            max-width: 1200px;
            margin: 0 auto;
            grid-template-columns: repeat(1 , 1fr);
            min-width: 140%;
        }
        .controlmedia {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }

        .containerx {
            flex: 1;
            margin: 0 1%;
            min-width: 33%;
            justify-content: center;
        }
        .footertext {
            text-align: center;
        }
        .footerptext{
            text-align: center;
        }
        .container.footer {
            bottom: -9rem;
        }
        .footer {
            bottom: -9rem;
        }
    }

    .controlmedia {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

   

    @media only screen and (max-width: 1300px) {
        .flexed {
            display: grid;
            margin: 0 auto;
            grid-template-columns: repeat(2 , 1fr);
            min-width: 50%;
        }
        .controlmedia {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
        }

        .containerx {
            flex: 1;
            margin: 0 1%;
            min-width: 33%;
            justify-content: center;
        }
        .footertext {
            text-align: center;
        }
        .footer {
            bottom: -9rem;
        }

    }

    @media only screen and (max-width: 500px) {
        .flexed {
            display: grid;
            margin: 0 auto;
            grid-template-columns: repeat(1 , 1fr);
            min-width: 50%;
        }
        .controlmedia {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
        }

        .containerx {
            flex: 1;
            margin: 0 1%;
            min-width: 33%;
            justify-content: center;
        }

        .footertext {
            text-align: center;
        }
        .footerptext{
            text-align: center;
        }
        .container.footer {
            bottom: -9rem;
            background-color: #00796f;
            max-width: 100%;
            padding: 2 2 2 0rem;
            color: white;
        
        }
        .footer {
            bottom: -9rem;
        }
    }

    .carousel-indicators {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2;
        display: flex;
        justify-content: center;
        padding: 0;
        margin-right: 15%;
        margin-bottom: 0rem;
        margin-left: 15%;
    }
    .anus {
        color: #00433d; /* Light text */
      }
 
        @media (prefers-color-scheme: dark) {
            .anus {
              color: #00433d; /* Light text */
            }
          }
    