﻿body, html {
            margin: 0;
            padding: 0;
            overflow: hidden;
            height: 100vh;
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
			position: relative;
        }

        #menuBar {
            position: relative;
            top: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background-color: #333;
            color: white;
            display: flex;
            align-items: center;
            padding: 0 20px;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
            z-index: 300;
            gap: 0.35rem;
        }

        #menuBar .back-home {
            flex: 0 0 auto;
            font-size: 0.78rem;
            font-weight: 600;
            color: #b8c4d0;
            text-decoration: none;
            white-space: nowrap;
            padding-right: 0.55rem;
            margin-right: 0.35rem;
            border-right: 1px solid rgba(255, 255, 255, 0.2);
        }

        #menuBar .back-home:hover {
            color: #fff;
            text-decoration: underline;
        }

        #menuBar div {
            margin-right: 20px;
            cursor: pointer;
            position: relative;
        }

        #menuBar div:hover {
            background-color: #444;
            padding: 5px 10px;
            border-radius: 5px;
        }

        #menuBar div ul {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: white;
            color: black;
            list-style: none;
            padding: 10px;
            margin: 0;
            border-radius: 5px;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
            z-index: 300;
            width: 200px;
        }

        #menuBar div:hover ul {
            display: block;
        }

        #menuBar div ul li {
            padding: 5px;
            cursor: pointer;
        }

        #menuBar div ul li:hover {
            background-color: #eee;
        }

        #controls {
            position: absolute;
            top: 250px;
            left: 10px;
            background-color: rgba(255, 255, 255, 0.9);
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
            z-index: 50;
        }

        #polygonList {
            margin-top: 10px;
        }

        #trash {
            display: block;
            position: absolute;
            bottom: 40px;
            left: 10px;
            cursor: pointer;
            font-size: 24px;
            color: red;
            z-index: 100;
        }

       
        #canvasContainer {
            position: absolute;
            top: 40px;
            bottom: 30px;
            left: 0;
            width: 100%;
            overflow: hidden;
        }

        canvas {
            display: block;
            width: 100%;
            height: 100%;
        }
		

#toolbar {
    display: flex;
    gap: 10px;
    position: absolute; 
    z-index: 100; /* Set a high z-index to bring it to the front */
}

#toolbar button {
    background-color: rgba(255, 255, 255, 0.2); /* Transparent white background */
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s, color 0.3s;
    z-index: 101; /* Ensure buttons are in front of any other elements */
}

#toolbar button:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Slightly more opaque on hover */
    color: #555; /* Darker color for the icon */
}

#toolbar button img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s, filter 0.3s;
}

#toolbar button:hover img {
    filter: brightness(0.7); /* Darken the icon on hover */
    transform: scale(1.1); /* Slightly increase the icon size on hover */
}

#toolbar button:focus {
    outline: none;
}

#toolbar button.selected {
    background-color: rgba(0, 123, 255, 0.7); /* A distinctive background color */
    color: white; /* Change the icon color */
}

#toolbar button.selected img {
    filter: brightness(1); /* Ensure the icon is fully bright */
    transform: scale(1.1); /* Slightly larger icon */
}

#statusBar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.3);
    z-index: 300;
}

#statusText {
    margin-left: 10px;
}

pre {
    white-space: pre-wrap; /* This ensures the text wraps */
    word-wrap: break-word; /* This ensures long words break to fit the container */
    background-color: #f5f5f5;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 100%; /* Ensures the pre element doesn't extend beyond its container */
    overflow: auto; /* Adds scrollbars if necessary */
}
