body {
    display: grid;
    grid-template-columns: 12% 50% 32%; /* 20% für die Leisten und der Rest für das SVG */
    /*grid-template-rows: auto;*/

    line-height: 1.5;
    font-family: 'Arial', sans-serif;
    background-color: rgb(58, 58, 58);
    background-image: url('resources/background.jpg'); /* Hintergrundbild-URL hier einfügen */
    
/*	background-size: cover;
    background-position: right;*/
    color: rgb(255, 255, 255);
    text-align: center;
    
}
.textbox {
    color: white; 
    grid-row: 1/3;
    grid-column: 2;
    padding: 10px;
    background-color: rgba(80, 80, 80, 0.7);
    box-shadow: 0 0 10px rgba(80,80,80, 0.5);
    overflow: auto; 
    line-height: 1.5;
}
nav {
    grid-row: 1;    
    grid-column: 1;
    font-size: 1.2em;
    padding-top: 20px;
    background-color: rgba(80,80,80, 0.5);
}
        
 
polygon.selected {
/* outline: 2px solid orange;*/
    stroke: orange;
    stroke-width: 2px;
}
.controls {
    grid-row: 2;
    grid-column: 1;
}

.touchControls{
    display: block; 
    position: fixed; 
    bottom:10px;
}

.mainSVG{
    border: 1px solid black;
    background-color: darkblue;
    width: 100%;
    height:90%;
    margin-left: 10px;
    
}

svg {
/*    grid-column: 2;
grid-row: 1 / 3;
*/
position:fixed; /*this should override the Gridlayout-Attribute */
left:12%;
}

@media screen and (max-width: 764px) {
    body {
        grid-template-columns: auto;
        grid-template-rows: auto 1fr auto; /* Navigationsleiste, SVG, Kontrollleiste */
    }

    nav {
        grid-column: 1;
        grid-row: 1;
    }

    .controls {
        grid-column: 1;
        grid-row: 3;
    }

    svg {
        grid-column: 1;
        grid-row: 2;
    }

    #mobileControls {
        display: block;
    }
}
        
.transformValue {
    border: 3px solid black;
    margin-bottom: 5px;
    padding: 5px;
    background-color:rgba(80, 80, 80, 0.7);
    color: white;
}   

.elem3{
    grid-row: 2/3;
    grid-column: 1/3;
    background-color: rgba(80, 80, 80, 0.7);
}
.elem4{
    grid-row:4;
    grid-column: 1/3;
    background-color: rgba(80, 80, 80, 0.7);
}

a {
    display: block;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #00bcd4; /* Farbe für Hover-Effekt hier anpassen */
}

footer {
    position: fixed;
    bottom: 0;
    right: 0;
}

#logo {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: 480px;
    border: 2px solid black;
}

#logo:hover {
    border-color: #00bcd4; /* Farbe für Hover-Effekt hier anpassen */
}

p{text-align: left
    
}

/* Stil für den Motion Path */
#motionPath {
    fill: none;
    stroke: grey; /* Farbe der Linie */
    stroke-width: 2; /* Breite der Linie */
}