﻿body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    font-size: 16px;
    letter-spacing: normal;
}

/* Accessibility Tools Button Styling */
#accessibility-toggle-btn {
    position: fixed;
    bottom: 35px;
    right: 50px;
    background-color: white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999;
    transition: background-color 0.3s ease;
    width: 80px; /* Set the button width */
    height: 80px; /* Set the button height */
    border-radius: 50%; /* Make the button a circle */
    padding: 0; /* No padding to keep it perfectly circular */
    font-size: 12px; /* Adjust icon text size smaller */
    font-weight: bold;
    text-align: center; /* Align text and icon properly */
    display: flex; /* Use flex to center the content */
    justify-content: center; /* Center icon */
    align-items: center; /* Center icon */
    min-width: 50px; /* Minimum width */
    min-height: 50px; /* Minimum height */
    overflow: hidden; /* Ensure text doesn't overflow outside the circle */
}

    /* Hover Effect for Button */
    #accessibility-toggle-btn:hover {
        background-color: #0056b3;
    }

    /* Image inside the button */
    #accessibility-toggle-btn img.show-con {
        width: 50px; /* Set the width of the image to fit inside the circle */
        height: 50px; /* Set the height of the image to fit inside the circle */
        object-fit: contain; /* Ensure the image maintains aspect ratio and fits */
        transition: filter 0.3s ease; /* Smooth transition for filter effect */
    }
    #accessibility-toggle-btn:hover img.show-con {
        filter: brightness(0) invert(1); /* Make the image white */
    }

    /* Accessibility Text inside Button (if needed) */
    #accessibility-toggle-btn span {
        font-size: 10px; /* Smaller text for the accessibility label */
        color: white; /* Text color */
        text-align: center; /* Align the text properly */
        display: block; /* Ensure the text is displayed on a new line inside the circle */
        margin-top: 2px; /* Optional: space between icon and text */
        word-wrap: break-word; /* Wrap text if it overflows */
        white-space: normal; /* Allow the text to break and wrap */
    }

/* Tooltip styling for the accessibility tool panel */
#accessibility-tools {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    width: 220px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9998;
}

    #accessibility-tools h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

/* Flex container for accessibility tools */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

/* Flex item for each control */
.flex-item {
    flex: 1 1 30%;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .flex-item:hover {
        background-color: #f0f0f0;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
    }

    .flex-item em {
        font-size: 18px;
        margin-right: 10px;
        color: #007bff;
    }

    .flex-item div {
        font-size: 12px;
        color: #333;
    }

/* Responsive design adjustments */
@media (max-width: 768px) {
    .flex-item {
        flex: 1 1 45%; /* 45% width on smaller screens */
    }
}

@media (max-width: 480px) {
    .flex-item {
        flex: 1 1 100%; /* Full width on very small screens */
    }
}


/* Base contrast style */
.contrast {
    background-color: black !important;
    color: white !important;
}

    /* Ensure contrast mode also affects borders and text inside divs, sections, etc. */
    .contrast div, .contrast section, .contrast article, .contrast p, .contrast h1, .contrast h2, .contrast h3, .contrast h4, .contrast h5, .contrast h6, .contrast a, .contrast table, .contrast th, .contrast td ,.contrast button {
        background-color: black !important; /* Change the background of divs */
        color: white !important; /* Change the text color */
        border: 1px solid white !important; /* Optionally add border contrast */
    }

    /* Additional styles for links in contrast mode */
    .contrast a {
        text-decoration: underline;
        color: yellow !important; /* You can choose any color that works with the contrast */
    }

    /* For background of buttons */
    .contrast button {
        background-color: #333 !important;
        color: white !important;
    }


/* Highlight Links Style */
.highlight-links a {
    background-color: #FFCC00; /* Gold color */
    color: white; /* Text color */
    padding: 2px 5px;
    border-radius: 3px;
}

