html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000;
    background-image: url('startbg.jpg');
    background-size: cover; /* Passt das Bild proportional an, sodass es den gesamten Bereich abdeckt */
    background-repeat: no-repeat; /* Verhindert das Wiederholen des Bildes */
    background-position: center; /* Zentriert das Bild im Anzeigebereich */
    font-family: system-ui, sans-serif;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never; 
}

.bungee-spice-regular {
    font-family: "Bungee Spice", sans-serif;
    font-weight: 400;
    color: #fff;
    font-style: normal;
    text-shadow: 1px 1px 3px black, 0 0 1em grey;
}

.head-container {
    display: flex;
    text-align: center;
    padding: 18px;
    margin: 8px;
    border-radius: 5px;
    position: fixed;
    top: 12px;
    left: 40%;
    background-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

#pano {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover; /* Bild auf die gesamte Größe des Elements skalieren */
    background-repeat: no-repeat; /* Bild nicht wiederholen */
    background-position: center; /* Bild in der Mitte positionieren */
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    transition: transform 0.3s ease; /* Add transition for transform */
}

#karte {
    position: absolute;
    bottom: 55px;
    z-index: 6;
    background-color: #333;
    left: 10px;
    width: 300px;
    height: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 10px;
}

#karte:hover {
    width: 85%;
    height: 85%;
}

#karte.expanded {
    width: 85% !important;
    height: 85% !important;
}

.toggleButton {
    position: absolute;
    bottom: 10px;
    left: 220px;
    z-index: 99999999;
    padding: 10px 20px;
    background-color: #444;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

header {
    width: 100px;
    height: 50px;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.0);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0; /* Positioniere den Header am linken Fensterrand */
    z-index: 500;
    transition: transform 0.3s ease; /* Add transition for transform */
}

ul {
    list-style: none;
    margin-left: 20px; /* 10px nach rechts */
    margin-top: 20px;  /* 30px nach unten */
}

ul li {
    display: inline-block;
    font-size: 1.1rem;
    line-height: 3rem;
    font-weight: 400;
}

a {
    color: white;
    text-decoration: none;
}

.zeit {
    min-width: 75px; /* Hier die gewünschte Mindestbreite einstellen */
    display: inline-block; /* Damit die Breite berücksichtigt wird und das Element nicht über die ganze Breite geht */
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    padding: 0 0 0 5px; /* Optional: Innenabstand hinzufügen */
}

.content {
    margin-top: 0px;
    background-color: #aaa;
    position: relative;
    z-index: 1;
}

#nav-footer {
    position: absolute;
    bottom: 40px;
    right: 0;
    left: 0;
    padding: 0 10px;
    width: 100%;
}

.pano-container {
    width: 100%;
    height: calc(100vh - 50px);
    z-index: 1010;
}

.pano {
    width: 100%;
    height: 100%;
    background-color: #c1c1c1;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
}

.hover-div-button {
    position: absolute;
    bottom: 10px;
    width: 300px;
    left: 160px;
    color: #fff;
    transform: translateX(-50%);
    padding: 10px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    z-index: 9950;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
}

.hover-div-button.hoverred {
    width: 85%;
    left: 10px;
    transform: unset;
    transition: transform 0.3s ease; /* Add transition for transform */
}

#hoverDiv .expanded .hover-div-button.hoverred {
    width: 85%;
    left: 10px;
    transform: unset;
    transition: transform 0.3s ease; /* Add transition for transform */
}

.hover-div-button:active,
.hover-div-button:focus {
    border: none;
    outline: none;
}

/* Off-canvas menu styles */
button {

border-width: 0px;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
}

.off-canvas {
    position: fixed;
    top: 0;
    left: -95%;
    width: 90%;
    height: 100%;
    overflow: hidden;
   background-color: #2E3192;  /* #2E3192 → #1BFFFF    - #071014 0%, #0db8de 100%);*/
  background-image: -webkit-linear-gradient(160deg, #2E3192 20%, #1BFFFF 100%);
  background-image: -moz-linear-gradient(160deg, #2E3192 20%, #1BFFFF 100%);
  background-image: -o-linear-gradient(160deg, #2E3192 20%, #1BFFFF 100%);
  background-image: linear-gradient(160deg, #2E3192 20%, #1BFFFF 100%);  
backdrop-filter: blur(10px);

    transition: left 0.3s ease;
    z-index: 9998;
    padding: 10px;
    list-style: none;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.off-canvas.open {
    left: 0;
}

/* Push content to the right */
.push-right {
    transform: translateX(270px);
}

div#overlay.show {
    display: block;
    z-index: 1000;
    transition: transform 3.8s ease; /* Add transition for transform */
}

.shadow-box {
    width: 200px;
    height: 200px;
    background-color: #fff;
    border: 1px solid #000;
    position: relative;
    margin: 50px auto;
    box-shadow: inset 0 0 0 0 red;
    animation: none;
    display: none;
}

/* Keyframes für die Animation */
@keyframes red-shadow {
    0% {
        box-shadow: inset 0 0 0 0 red;
    }
    50% {
        box-shadow: inset 0 0 20px 10px red;
    }
    100% {
        box-shadow: inset 0 0 0 0 red;
    }
}

/* Stil für den Timer */
.timer-container {
    text-align: center;
    font-size: 1em;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #000;
    border-radius: 5px;
}

#userinfo {
    position: absolute;
    top: 1px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
}

#modusscoreDIV {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    top: 0;
    right: 0;
    width: 300px;
    height: auto; /* Beispielhöhe, kann angepasst werden */
    background-color: rgba(0, 0, 0, 0.0);
    padding: 10px;
    margin: 8px;
    border-radius: 5px;
}

#modusscoreDIV2 {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    top: -5px;
    right: 0;
    width: 90px;
    height: auto; /* Beispielhöhe, kann angepasst werden */
    background-color: rgba(0, 0, 0, 0);
    padding: 10px;
    margin: 8px;
    border-radius: 5px;
}

@media (max-width: 1023px) {
    #modusscoreDIV {
        width: 90px;
    }
}

@media (max-width: 823px) {
    #modusscoreDIV {
        width: 90px;
    }
}

.modus1 {
    flex: 1 1 80px; /* Flex-Wachstumsfaktor, Schrumpffaktor und Basisbreite */
    min-width: 50px;
    height: 20px;
    align-items: center;
    color: white;
    border: none;
    padding: 0 10px;
    margin: 8px;
    cursor: pointer;
    border-radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.off-canvas .container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 60%;
    max-width: 100%;
    min-height: 480px;
    margin: 30px auto;
}

.container p {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 20px 0;
}

.container span {
    font-size: 0.8rem;
}

.container a {
    color: #333;
    font-size: 0.8rem;
    text-decoration: none;
    margin: 15px 0 10px;
}

.container button {
    background-color: #303996; /* #018749; #512da8; */
    color: #fff;
    font-size: 0.8rem;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
}

.container button.hidden {
    background-color: transparent;
    border-color: #fff;
}

.container form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container input {
    background-color: #eee;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.active .sign-in {
    transform: translateX(100%);
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 15px 0 0 15px;
    z-index: 1000;
}

.container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 15px 15px 0;
}

.toggle {
    background-color: #512da8;
    height: 100%;
    background: url('#') no-repeat center center, linear-gradient(to right, #48689b, #384893);
    background-size: cover; /* Damit das SVG-Bild den gesamten Bereich abdeckt */
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}

.container.active .toggle-right {
    transform: translateX(200%);
}

.container {
    width: 90%;
    max-width: 1200px;
}

.top-row {
    display: flex;
    justify-content: space-between;
}

.new-div {
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    margin: 10px;
    text-align: center;
    height: 300px; /* Set a specific height */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.button {
    background-color: #00ffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px auto;
    cursor: pointer;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#language-select {
    margin-left: -30px !important;
}

.bottom-div {
    position: absolute; /* oder 'fixed', je nach Bedarf */
    top: 200px;
    left: 0;
    right: 0;
    padding: 20px;
    margin: 0; /* Entfernt Standardabstände */
    text-align: center;
    height: 10px; /* Setzt eine bestimmte Höhe */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Nimmt die volle Fensterbreite ein */
    box-sizing: border-box; /* Bezieht Polsterung und Rahmen in die Breite ein */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .head-container {
        left: 20%;
        top: 10px;
        width: 60%;
    }
    #karte {
        width: 250px;
        height: 20%;
    }
    .toggleButton {
        left: 160px;
    }
}

@media (max-width: 768px) {
    .head-container {
        left: 10%;
        top: 5px;
        width: 80%;
        font-size: 0.9rem;
    }
    #karte {
        width: 200px;
        height: 15%;
    }
    .toggleButton {
        left: 100px;
    }
    .top-row {
        flex-direction: column;
    }
    .button {
        width: 100%;
    }
    .new-div {
        height: auto;
        margin: 5px 0;
    }
    .pano-container {
        height: calc(100vh - 40px);
    }
    .hover-div-button {
        width: 250px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .head-container {
        left: 5%;
        width: 90%;
        font-size: 0.8rem;
    }
    #karte {
        width: 150px;
        height: 15%;
    }
    .toggleButton {
        left: 60px;
    }
    .new-div {
        height: auto;
        margin: 5px 0;
        padding: 10px;
    }
    .hover-div-button {
        width: 200px;
        left: 50%;
        transform: translateX(-50%);
    }
    .button {
        padding: 15px;
        max-width: 150px;
    }
}
