.hamburger-menu {
            position: fixed;
            top: 20px;
            right: 20px; /* Locked to top-right */           

            z-index: 10000; /* Increased z-index to avoid overlap issues */
        }
        .hamburger-icon {
            font-size: 2em;
            cursor: pointer;
            color: white;
            background: rgba(0, 0, 0, 0.5);
            padding: 5px;
            border-radius: 5px;
            animation: colorChange 3s forwards;
            display: block; /* Ensure consistent rendering */
        }
        @keyframes colorChange {
            0% {
                color: white;
                box-shadow: none;
            }
            15% {
                color: rgba(255, 255, 255, 1);
                box-shadow: none;
            }
            20% {
                color: rgba(255, 255, 255, 1);
                box-shadow: 0 0 5px yellow;
            }
            25% {
                color: rgba(255, 255, 255, 1);
                box-shadow: 0 0 10px yellow;
            }
            30% {
                color: yellow;
                box-shadow: none;
            }
            50% {
                color: rgba(255, 0, 255, 1);
                box-shadow: 0 0 5px purple;
            }
            70% {
                color: rgba(0, 255, 255, 1);
                box-shadow: 0 0 10px magenta;
            }
            100% {
                color: white;
                box-shadow: none;
            }
        }
        .nav-menu {
            display: none;
            position: fixed;
            top: 60px;
            right: 20px;
            background: rgba(230, 230, 250, 0.95);
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            flex-direction: column;
            width: 250px;
            z-index: 10001;
            overflow-y: auto;
            max-height: calc(100vh - 80px);
            -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        }
        .nav-menu.active {
            display: flex;
        }
        .nav-menu a {
            display: block;
            margin: 10px 0;
            color: navy;
            text-decoration: none;
            font-size: 1.2em;
            text-shadow: 0 0 0px rgba(0, 0, 0, 0.7);
        }
        .nav-menu a:hover {
            text-decoration: underline;
        }
        .nav-menu button {
            margin-bottom: 2px;
            font-size: 0.9em;
            width: 100%;
        }
        .nav-menu .timer {
            color: rgba(56, 137, 171, 1);
            font-size: 1em;
            margin-top: 10px;
            text-shadow: 0 0 0px rgba(0, 0, 0, 0.7);
        }
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            touch-action: none;
        }
        .overlay.active {
            display: block;
        }
        body.menu-open {
            overflow: hidden;
            /*height: 100vh;*/
            /*touch-action: none;*/
            /*position: fixed;  Lock body completely */
            /*width: 100vw;*/
        }
        html.menu-open {
            overflow: hidden;
            height: 100vh;
        }
        .toolbox {
            background: rgba(255, 245, 200, 1);
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
        }
        .toolbox a {
            font-size: 0.9em;
            display: flex;
            align-items: center;
            margin: 5px 0;
        }
        .toolbox a::before {
            content: attr(data-emoji);
            font-size: 1.5em;
            margin-right: 10px;
        }
        .extra {
            background: rgba(255, 100, 100, 1);
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
        }
        .extra a {
            color: white;
            font-size: 0.9em;
            display: flex;
            align-items: center;
            margin: 5px 0;
        }
        .extra a::before {
            content: attr(data-emoji);
            font-size: 1.5em;
            margin-right: 10px;
        }
        .extra a svg {
            margin-right: 13px;
            margin-left: -8px;
        }




        /* Mobile portrait fixes */
        @media (max-width: 600px) {
           

 .hamburger-menu {
                right: 10px; /* Tighter to edge on small screens */
                top: 10px;
            }

            .hamburger-icon {
                font-size: 1.5em;
            }
           
 .nav-menu {
                right: 0;
                left: 0;
                width: auto;
                top: 50px;
right: 0px;
                border-radius: 0 0 8px 8px;
            }

            .nav-menu a {
                font-size: 1em;
            }

        }
   



   @media (max-height: 600px) {
            .nav-menu {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: space-around;
                width: calc(100vw - 40px);
            }
            .nav-menu > div {
                margin: 5px;
                flex: 1 1 200px;
            }
        }


/* Media query for mobile portrait */
@media (max-width: 480px) {
    .hamburger-menu {
      
    }
}


.timer
{

display: none;
}