/* Define a custom font */
        body {
            font-family: 'Roboto Flex', sans-serif;
            background-color: #CCCCCC; /* A light gray background color */  
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 1rem;
            box-sizing: border-box;
        }

        /* Container for the main content card */
        .container {
            max-width: 1024px;
            width: 100%;
            margin: auto;
            padding: 0.5rem;
        }
        .works-container{
           text-align: center;
        }
        .works-container img{
            width: 100%;
        }
        .menu{
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;              /* makes items horizontal */
            width: 100%;
            height: 50px;
            align-items: center;        /* vertical center inside li */
            justify-content: center;    /* optional: center whole menu */        
        }
        .menu li {
            display: flex;
            align-items: center;
            height: 100%;
        }
        .menu li:not(:last-child) {
            border-right: 2px dotted #888;   /* vertical line after each li except last */
        }
        .menu li a {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            padding: 0 30px;
            text-decoration: none;
            font-size: 1em;
            font-weight: bold;
            color: #333;
            transition: transform 0.2s ease;
        }
        .menu li a:hover {
            transform: scale(1.2);    /* make text bigger when clicked */
            color:#FFF;
        }
        .menu li a:active {
             transform: scale(1.2);    /* make text bigger when clicked */
             color:#FFF;
        }

        /* Main content card styling */
        .mainbox {            
            border-radius: 0.75rem; /* rounded-xl */            
            padding: 1rem;
            text-align: center;
        }
        .instruction{
            font-size: 1.2em;
            padding: 1rem;
            text-align: center;
        }
        .desc{
            text-align: center;
            margin-bottom: 1rem;
        }
        
        @media (min-width: 768px) {
            .mainbox {
                padding: 1rem;
            }
        }

        /* Heading styling */
        .mainbox h1 {
            font-size: 2.25rem; /* text-3xl */
            line-height: 2.5rem;
            font-weight: 800; /* font-bold */
            color: #FFFFFF; /* text-gray-800 */
            margin-bottom: 1.5rem; /* mb-6 */
            letter-spacing: 0.4em;
            text-shadow: 1px 1px 2px #333;
        }
         .mainbox h3 {
            font-size: 1.6rem; /* text-3xl */
            line-height: 2.5rem;
            font-weight: 600; /* font-bold */
            color: #EEE; /* text-gray-800 */
            margin-bottom: 1.5rem; /* mb-6 */
        }
        .mainbox .txt-wisewords{            
            position: relative;
            display:flex;
            max-width: 400px;
            padding: 20px 30px;
            font-size: 1rem;
            color: #333;
            line-height: 1.6;
            font-style: italic;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 6px 15px rgba(0,0,0,0.15);
            animation: fadeIn 2s ease forwards;
            opacity: 0;
            margin-left: auto;
            margin-right: auto;
        }
        .mainbox .txt-wisewords::before {
            content: "“";
            font-size: 2rem;
            position: absolute;
            left: 10px;
            top: -10px;
            color: #aaa;
        }

        .mainbox .txt-wisewords::after {
            content: "”";
            font-size: 2rem;
            position: absolute;
            right: 15px;
            bottom: -20px;
            color: #aaa;
        }        
        @keyframes fadeIn {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .mainbox .txt-wisewords .author {
            display: block;
            text-align: right;
            margin-top: 10px;
            font-weight: bold;
            font-size: 1rem;
            color: #666;
        }
        @media (min-width: 768px) {
            .mainbox h1 {
                font-size: 2.25rem; /* md:text-5xl */
                line-height: 1;
                letter-spacing: 0.4em;
                text-shadow: 1px 1px 2px #333;
            }
             .mainbox h3 {
                font-size: 1.6rem;
                line-height: 1;
                letter-spacing: 0.2em;
                color: #EEE;
                font-weight: 600; /* font-bold */
            }
        }
        /* Animation */
        #flip {
            height:50px;
            overflow:hidden;
            width:100%;
            margin-top:30px;
            margin-bottom:30px;
            font-size:2.5em;
            font-weight: bold;
            text-transform: uppercase;
        }

        #flip > div > div {
            color: #fff;
            height:45px;
            margin-bottom:45px;
            display:inline-block;            
            width: 350px;           
        }

        #flip div:first-child {
            animation: show 5s linear infinite;
        }

        #flip div div {
         background:#42c58a;
        }
        #flip div:first-child div {
         background:#4ec7f3;
        }
        #flip div:last-child div {
         background:#DC143C;
        }

        @keyframes show {
            0% {margin-top:-270px;}
            5% {margin-top:-180px;}
            33% {margin-top:-180px;}
            38% {margin-top:-90px;}
            66% {margin-top:-90px;}
            71% {margin-top:0px;}
            99.99% {margin-top:0px;}
            100% {margin-top:-270px;}
        }
        /* Paragraph styling */
        .detail {
            color: #333333; /* text-gray-300 */
            margin-bottom: 2rem; /* mb-8 */
            max-width: 42rem;
            margin-left: auto;
            margin-right: auto;
            word-wrap: break-word; /* Ensures text wraps within the box */
            overflow-wrap: break-word; /* Alternative for better cross-browser compatibility */
            margin-bottom: 1rem;
            text-align: left;
            line-height: 1.8em;
        }
        .txt-details{
            line-height: 2em;
        }

        /* Image container */
        .image-container {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Image styling and hover effect */
        .imgsean {
            max-width: 100%;
            height: auto;
            border-radius: 0.5rem; /* rounded-lg */
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
            transition-property: transform;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 500ms;
        }

        .imgsean:hover {
            transform: scale(1.05);
        }
        /* Instruction element styling */
        .instruction {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem; /* Space between items */
            font-size: 1rem;
            color: #ffffff;
            margin-bottom: 1rem;
        }

        .instruction img {
            height: 24px; /* Adjust as needed */
            width: 24px;  /* Adjust as needed */
        }
        .rabbit {
            width: 100px; 
            height: 100px;
            background-image: url('imgs/rabbitjump.png'); /* IMPORTANT: Change this if your file name is different */
            background-repeat: no-repeat;
            
            /* Start the rabbit off-screen to the left */
            position: absolute; 
            left: -100px;
            bottom: 50px; /* Position it a bit above the bottom of the screen */

            /* CSS Variables for easier adjustment */
            --sprite-sheet-width: 400px; /* 4 frames * 100px/frame */
            --frame-count: 4; 
            --jump-duration: 5s; /* Total time for one jump cycle */
        }

        /* 1. Animate the sprite frames (horizontal movement of the background image)
        2. Animate the rabbit's position (horizontal and vertical movement across the screen)
        */
        .rabbit-jumping {
            /* Animation for cycling through the frames (The Jump Animation) */
            animation: 
                sprite-jump-cycle var(--jump-duration) steps(var(--frame-count)) infinite, 
                full-screen-jump var(--jump-duration) linear infinite;
        }

        /* Keyframes for the sprite sheet animation (making it look like it's moving) */
        @keyframes sprite-jump-cycle {
            /* Moves the background image from 0px (start of the sheet) 
               to the negative width of the entire sheet.
               This cycles through all 4 frames.
            */
            to {
                background-position-x: calc(-1 * var(--sprite-sheet-width));
            }
        }

        /* Keyframes for the rabbit's movement across the screen (The parabolic jump) */
        @keyframes full-screen-jump {
            0% {
                left: -100px; /* Start off-screen left */
                bottom: 50px;
                transform: rotate(0deg);
            }
            50% {
                left: 50%; /* Reaches the center of the screen */
                bottom: 250px; /* Peak of the jump */
                transform: rotate(10deg); /* Tilt slightly in air */
            }
            100% {
                left: 100vw; /* End off-screen right */
                bottom: 50px;
                transform: rotate(0deg);
            }
        }