  body {
            margin: 0;
            background: #000;
            color: #fff;
            font-family: 'Arial', sans-serif;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            overflow: auto;
            box-sizing: border-box;
        }
        canvas {
            width: 100vw;
            height: calc(100vh - 100px);
            display: block;
        }
        .controls {
            background: rgba(0, 0, 0, 0);
            padding: 10px;
            border-bottom: 0px solid #1a1a1a;
            text-align: center;
            width: 100%;
            box-sizing: border-box;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 10;
        }
        input, button, select {
            padding: 8px;
            margin: 5px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            outline: none;
            box-sizing: border-box;
        }
        .input-container {
            position: relative;
            display: inline-block;
        }
        .unit {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: #ccc;
            pointer-events: none;
        }
        input, select {
            background: #333;
            color: #fff;
            width: 100%;
            max-width: 160px;
            padding-right: 30px;
        }


        button {
            background: #ff4500;
            color: #fff;
            cursor: pointer;
            transition: background 0.3s;
            width: 100%;
            max-width: 220px;
        }
        button:hover {
            background: #ff6347;
        }
        .result {
            font-size: 16px;
            font-family: 'Courier New', monospace;
            color: white;
            text-shadow: 0 0 10px #ff4500, 0 0 20px #ffa500;
            text-align: center;
            max-width: 90%;
            margin: 10px auto;
            padding-bottom: 5px;
height: 20px;
        }
        @media (max-width: 600px) {
            canvas {
                height: calc(100vh - 160px);
            }
            .controls {
                padding: 8px;
            }
            input, button, select, unit, {
                font-size: 14px;
                padding: 6px;
                margin: 3px;
               
            }
            .result {
                font-size: 14px;
            }
        }

#material
{
display: none;
}

#distance

{
display: none;
}




 #footer {
            background: linear-gradient(90deg, rgba(50, 106, 157, 0.5), rgba(255, 211, 204, 1), rgba(50, 106, 157, 0.5));
            color: rgba(50, 106, 157, 1);
            padding: 0px;
            text-align: center;
            width: 100%;

            box-sizing: border-box;
            border-top: 0px solid #66e0ff;
            margin-top: auto;

        }

        .footer-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            max-width: 1200px;
            margin: 0 auto;
        }

        #shareButtons {
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        .share-btn {
            padding: 6px 12px;
            text-decoration: none;
            color: #fff;
            border-radius: 5px;
            font-size: 0.9em;
            transition: background-color 0.3s ease;
        }
        .share-btn.twitter { background-color: #1DA1F2; }
        .share-btn.twitter:hover { background-color: #0d8ddb; }
        .share-btn.facebook { background-color: #3B5998; }
        .share-btn.facebook:hover { background-color: #2d4373; }
        .share-btn.linkedin { background-color: #0077B5; }
        .share-btn.linkedin:hover { background-color: #005983; }
        .footer-links {
            display: flex;
            gap: 10px;
            align-items: center;
            font-size: 0.9em;
            justify-content: center;
        }

        #footer a {
           
            text-decoration: none;
            transition: color 0.3s;
        }

        #footer a:hover {
            color: lime;
        }






@media (max-width: 850px) { 

 .result {
            font-size: 12px;
} 

.footer-container {
                flex-direction: column;
                gap: 10px;

            }

            .share-btn {
                padding: 5px 10px;
                font-size: 0.8em;
            }

            .footer-links {

                flex-direction: row;
                gap: 5px;
                font-size: 0.8em;
            }

  
}


@media (min-height: 600px) {

 .result {
            font-size: 15px;
} 
  
}

