/* Base styles */
        body {
            font-size: 16px;
            margin: 0;
            padding: 0;
            background-color: #F5F5F5;
        }

        /* Flexbox example */
        .container {
            display: flex;
            flex-wrap: wrap;
        }

        .first {
            flex: 1 1 100%; /* Full width on small screens */
            padding: 20px;
            background: #f4f4f4;
            border-radius: 25px;
            margin: auto;
            box-sizing: border-box;
            height: 300px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative; 
            
        }
        .first img{
            height: 250px;
            width: 250px;
            border-radius: 25px;
            margin: 20px;
        }

        /* Small screens */
        @media (max-width: 600px) {
            body {
                font-size: 14px;
            }

            .container {
                width: 100%;
                padding: 10px;
            }
        }

        /* Medium screens */
        @media (min-width: 601px) and (max-width: 1024px) {
            body {
                font-size: 16px;
            }

            .container {
                width: 80%;
                margin: 0 auto;
            }

            .first {
                flex: 1 1 48%; /* Two items per row on medium screens */
            }
        }

        /* Large screens */
        @media (min-width: 1025px) {
            body {
                font-size: 18px;
            }

            .container {
                width: 70%;
                margin: 0 auto;
            }

            .first {
                flex: 1 1 48%; /* Two items per row on large screens */
            }
        }

        /* Responsive images */
        img {
            max-width: 90%;
            height: auto;
            margin: 5%;
            background-color: #69247C;
            padding: 5px;
            border: 5px solid black;
        }

        .box {
            background-color: #f4f2f7;
            color: #0e1211;
            padding: 20px;
            border-radius: 20px;
            text-align: center;
            height: 10%;
            margin: 10px;
            transition: 0.4s ease-in-out;
            animation: glow 20s infinite alternate;
        }
        @keyframes glow {
        0% {
        box-shadow: 0 0 10px #50577A;
        }
        100% {
        box-shadow: 0 0 30px #2c025d, 0 0 50px #50577A;
    }
}

        /* For small screens: Up to 600px */
        @media (max-width: 600px) {
    .box {
        padding: 5px;
        width: 100%;
        height: auto; /* Adjust height to fit content */
        margin: 15px;
        text-align: center;
        top: auto; /* No unnecessary positioning */
    }
}


/* For medium screens: 601px to 1024px */
@media (min-width: 601px) and (max-width: 1024px) {
    .box {
        padding: 10px;
        width: auto;
        height: 10%;
        margin: 15px 0;
        text-align: center;
        position: relative;
        top: auto; /* Maintain normal positioning */
    }
}

/* For large screens: 1025px and above */
@media (min-width: 1025px) {
    .box {
        background-color: #9B7EBD;
        padding: 20px;
        border: 5px solid #50577A;
        width: auto;
        height: 10%;
        margin: 15px;
        text-align: center;
        position: relative;
        top: 50%; /* Adjust top alignment for larger screens */
    }
}


        .second {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px; /* Add space between images */
            position: relative;
        }
        
        .second .image-container {
            position: relative;
            width: 30%; /* Adjust width of each image */
            margin: 2%;
            padding: 30px;
            border: 5px solid black;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .second .image-container:hover {
            transform: scale(1.05); /* Slightly enlarge on hover */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
        }

        .second img {
            width: 100%; /* Adjust width of each image */
            height: auto;
        }

        .text-overlay {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            color: black;
            font-size: 20px;
            font-weight: bold;
        }
        .text {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            color: black;
            font-size: 20px;
            font-weight: bold;
            display: block;
        }