body {
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    perspective: 1000px;
    overflow-y: hidden; /* Hide vertical scrollbar */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}
.logo {
    content: url(Bilder/Logo_KryptoRentner.svg);
    width: 200px;
    height: 52px;
    position: fixed;
    top: 30px;
    left: -20px;
    z-index: 2;
}

.inhalt {
    z-index: 1;}

span.a {
    display: inline; /* the default for span */
    font-family:'Courier New', Courier, monospace;
    font-size: 100%;
    line-height: 2.5;
    width: 100px;
    height: 100px;
    padding: 10px;
    border: 0px;
    background: rgba(5, 255, 5); /* Green background with 30% opacity */
    color: rgb(0, 0, 0);
  }

  span.a:hover {
    display: inline; /* the default for span */
    font-family:'Courier New', Courier, monospace;
    font-size: 100%;
    line-height: 2.5;
    width: 100px;
    height: 100px;
    padding: 10px;
    border: 0px;
    background: rgb(255, 5, 226); /* Green background with 30% opacity */
    color: rgb(255, 255, 255);
  }

.a {color: white;}

.footer {
    font-family: Arial, Helvetica, sans-serif;
    position: fixed;
    bottom: 5px;
    width: 100%;
    text-align: center;
    font-size: 9px;
    padding: 10px;
    z-index: 2;

}
.container {
    position: relative;
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    animation: spin 15s infinite linear;
}
.front, .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    font-size: 14px;
    color: white;
    white-space: pre;
}
.front {
    transform: rotateY(0deg);
}
.back {
    transform: rotateY(180deg);
}
@keyframes spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}
.buttons {
    margin: 10px 10px;
    position: absolute;
    top: 80px;
    left: 20px;
    text-align: center;
    z-index: 2;
}
#slidingDivLeft {
    font-family: 'Courier New', Courier, monospace;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s ease-in-out, left 0.5s ease-in-out, right 0.5s ease-in-out;
    z-index: 1;
    
}
#slidingDivRight {
    font-family: 'Courier New', Courier, monospace;
    position: fixed;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85); /* Green background with 30% opacity */
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: right;
    align-items: center;
    transition: transform 1s ease-in-out, left 0.5s ease-in-out, right 0.5s ease-in-out;
    z-index: 1;
}

#slidingDivLeft {
    left: 100vw; /* Startposition außerhalb des Bildschirms von links */
}

#slidingDivLeft.active {
    left: calc(50% - 100px); /* Mathematische Mitte des Bildschirms, linke Kante des Divs */
}
#slidingDivRight {
    right: 100vw; /* Startposition außerhalb des Bildschirms von rechts */
}
#slidingDivRight.active {
    right: calc(50% + 100px); /* Mathematische Mitte des Bildschirms, rechte Kante des Divs */
}

@media (max-width: 400px) {
    #slidingDivLeft,
    #slidingDivRight {
        width: 300px;
    }

    #slidingDivLeft.active {
        left: 10%; /* Mitte des Bildschirms */
    }

    #slidingDivRight.active {
        right: 10%; /* Mitte des Bildschirms */
    }
}
