:root {
    --dividerleft: 80vw;
}

body {
    background-color: #393939;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    /* overflow-x: hidden; */
    color: white;
    margin: 0px;
    height: 100%;
    width: 100%;
}

#divider {
    left: var(--dividerleft);
    height: 100vh;
    width: 0.1vw;
    background-color: rgb(255, 255, 255);
    position: fixed;
    z-index: 1;
}

.button {
    position: fixed;
    height: 15vw;
    width: 15vw;
    background-color: rgb(100, 100, 100);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    z-index:1;
}

#up {
    top: 15vh;
    left: 82.5vw;
}

#down {
    bottom: 15vh;
    left: 82.5vw;
}

.gallery {
    position: absolute;
    top: 50vh;
    width: auto;
    height: 200vh;
    display: table;
    table-layout: fixed;
    width: 35vw;
    z-index: 1;
}

.gallery-image {
    width: 15vw;
    max-width: 400px;
    height: auto;
    transform: translate(0%, -50%);
    position: relative;
    z-index: 1;
    border-radius: 10%;
}

#strasse {
    background-image: url(images/Road.png);
    position: absolute;
    height: 800vh;
    left: 30vw;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

#car {
    width: 75px;
    top: 50vh;
    position: fixed;
}

#background {
    height: 800vh;
    width: 100vw;
    background-image: url(images/Grass.png);
    z-index: 0;
    position: absolute;
    background-repeat: repeat !important;
}

#right {
    left: calc(var(--dividerleft) - 20vw);
}

#left {
    padding-left: 20px;
}
.section {
    min-height: 105vh;
}

#crash .gallery {
    top: -260vh;
}

#crash .gallery .text{
    width: 500px;
}

#tatjana .gallery {
    top: -170vh;
}

#character .gallery { /*niva*/
    top: 40vh;
}

#muellhalde .gallery { /*character*/
    top: 140vh; /* Adjust top position */
}

#start .gallery{ /*character*/
    top: 210vh; /* Adjust top position */
}

#start .gallery #left {
    width: 400px;
    left: 20vw;
    transform: rotate(0deg);
    border-radius: 0%;
}

#niva .gallery {
    top: -60vh;
    display: table;
    table-layout: fixed;
    width: 35vw;
}

#muellhalde .gallery #right {
    left: calc(var(--dividerleft) - 32vw) 
}


#tatjana .gallery #right {
    left: calc(var(--dividerleft) - 32vw) 
}

#niva .gallery #right { /*müllhalde*/
    left: calc(var(--dividerleft) - 32vw)
}

#crash .gallery #right { /*müllhalde*/
    left: calc(var(--dividerleft) - 32vw)
}

#niva #tri { 
    top: -75vh; 
}

.text {
    font-size: 1.5em;
    background-color: rgba(0, 0, 0, 0.05);
    width: 12vw;
    border-radius: 0%;
}

@keyframes shake {
    0% { transform: translateX(0) translateY(-1px) rotate(0); }
    10% { transform: translateX(-1px) translateY(0) rotate(-1deg); }
    20% { transform: translateX(1px) translateY(1px) rotate(0deg); }
    30% { transform: translateX(-1px) translateY(-1px) rotate(1deg); }
    40% { transform: translateX(1px) translateY(1px) rotate(-1deg); }
    50% { transform: translateX(0) translateY(0) rotate(0); }
    100% { transform: translateX(0) translateY(0) rotate(0); }
}

@keyframes shakedown {
    0% { transform: translateX(0) translateY(-1px) rotate(180); }
    10% { transform: translateX(-1px) translateY(0) rotate(179deg); }
    20% { transform: translateX(1px) translateY(1px) rotate(180deg); }
    30% { transform: translateX(-1px) translateY(-1px) rotate(181deg); }
    40% { transform: translateX(1px) translateY(1px) rotate(179deg); }
    50% { transform: translateX(0) translateY(0) rotate(180); }
    100% { transform: translateX(0) translateY(0) rotate(180); }
}

#car.shaking {
    animation: shake 6s ease-in-out infinite;
}

#car.shakingdown {
    animation: shakedown 6s ease-in-out infinite;
}
