﻿<style>
        /* Existing styles */
        #mapContainer {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 120px;
            height: 120px;
            z-index: 1;
        }
        #map {
            width: 100%;
            height: 100%;
        }
        select {
            width: 100px;
            height: 30px;
            outline: none;
            border: 2px solid rgba(128, 128, 128, 0.223);
            border-radius: 3px;
        }
        .VIpgJd-ZVi9od-l4eHX-hSRGPd {
            display: none;
        }

        /* New styles for floating button and menu */
        #floatingButtonContainer {
            position: fixed; /* Use fixed for viewport positioning */
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            /* Make the container itself the draggable area */
            cursor: grab;
            display: flex; /* Use flex to align button and menu */
            flex-direction: column; /* Stack them vertically */
            align-items: flex-end; /* Align to the right for the menu to open outwards */
        }

        #floatingButton {
            background-color: #007bff; /* Primary blue */
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 13px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: background-color 0.3s ease;
            flex-shrink: 0; /* Prevent button from shrinking */
        }

        #floatingButton:hover {
            background-color: #0056b3; /* Darker blue on hover */
        }

        #featureMenu {
            display: none; /* Hidden by default */
            position: absolute; /* Position relative to the container */
            bottom: 70px; /* Position above the button */
            right: 0; /* Align to the right of the container */
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            padding: 10px;
            min-width: 180px; /* Increased width for controls */
            flex-direction: column;
            gap: 8px;
            pointer-events: auto;
        }

        #featureMenu.show {
            display: flex; /* Show when 'show' class is added */
        }

        #featureMenu button {
            background-color: #f0f0f0;
            color: #333;
            border: 1px solid #ddd;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            text-align: left;
            transition: background-color 0.2s ease, color 0.2s ease;
            width: 25%; /* Make buttons fill the menu width */
        }

        #featureMenu button:hover {
            background-color: #e2e2e2;
            color: #000;
        }

        .menu-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px 0;
            border-bottom: 1px solid #eee;
        }

        .menu-section:last-child {
            border-bottom: none;
        }

        .menu-section label {
            font-size: 15px;
            color: #555;
            flex-grow: 1;
        }

        .menu-section button {
            width: 30px;
            height: 30px;
            padding: 0;
            margin: 0 3px;
            font-size: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        html.high-contrast {
            filter: contrast(1.5) grayscale(100%); /* Increased contrast and grayscale for high contrast */
        }
        html.low-contrast {
            filter: contrast(0.7); /* Decreased contrast */
        }

        /* Specific color overrides for high contrast to ensure readability */
        body.high-contrast,
        html.high-contrast body,
        body.high-contrast .container,
        body.high-contrast .main-container,
        body.high-contrast header,
        body.high-contrast section,
        body.high-contrast footer,
        body.high-contrast .main,
        body.high-contrast .sub-main,
        body.high-contrast .question-box,
        body.high-contrast .options,
        body.high-contrast .side-preview,
        body.high-contrast nav,
        body.high-contrast .con-details,
        body.high-contrast .timer-box,
        body.high-contrast #featureMenu {
            background-color: black !important;
            color: white !important;
            border-color: white !important;
        }

        body.high-contrast button,
        body.high-contrast input[type="radio"],
        body.high-contrast select {
            background-color: #333 !important;
            color: white !important;
            border-color: #666 !important;
        }

        body.high-contrast a,
        body.high-contrast label {
            color: white !important;
        }
    </style>