﻿/*body {
    background: #f6f6f6;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
*/
.divContainer {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}
/* Box styling */
.box {
    background: #f33a3a;
    color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    text-decoration: none; /* remove link underline */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Flexible width: grows but stays reasonable */
    flex: 1 1 250px; /* min 250px, flex up to fill row */
    max-width: 350px; /* cap width for large screens */
}

    .box:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

.title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 0.6rem;
}

/* Alternate text container */
.alt-text {
    position: relative;
    height: 40px;
    overflow: hidden;
}

    /* Two overlapping spans that fade/slide in turn */
    .alt-text span {
        left: 0px;
        position: absolute;
        width: 100%;
        font-size: 1.5rem;
        font-weight: 600;
        color: #0077cc;
        opacity: 0;
        animation: fadeSlide 4s infinite;
    }

    .alt-text .txt1 {
        animation-delay: 0s;
        color: #ffffff;
    }


    .alt-text .txt2 {
        animation-delay: 2s;
        color: #ffffff;
    }

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(20%);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0;
        transform: translateY(-20%);
    }

    100% {
        opacity: 0;
        transform: translateY(-20%);
    }
}
