
:root {
    --size: 75px;
    --path: 200px;
    --box-radius: 10%;
    --main-color: rgba(255, 128, 0, 0.8);
    --main-border: 2px solid rgba(128, 128, 128, 0.4);
    --main-gradient: linear-gradient(to bottom right, red, orange, yellow, green, blue, indigo, violet);
}

body {
    perspective: 800px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #777777; 
    color: white; /* Dies stellt die Textfarbe auf Weiß ein */
   

}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%;
    height: 70vh;
}

.text-area {
    width: 40%;
    max-width: 500px;
    color: white;
    padding: 20px;
    text-align: justify;
    margin: 0 auto;
}

.cube-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.cube {
    width: var(--path);
    height: var(--path);
    transform-style: preserve-3d;
    animation: rotateCube 5s infinite linear;
}

.face {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background-color: var(--main-color);
    background-image: var(--main-gradient);
    border: var(--main-border);
    border-radius: var(--box-radius);
}

.front { transform: translateZ(calc(var(--size)/2)); }
.back { transform: rotateY(180deg) translateZ(calc(var(--size)/2)); }
.left { transform: rotateY(-90deg) translateZ(calc(var(--size)/2)); }
.right { transform: rotateY(90deg) translateZ(calc(var(--size)/2)); }
.top { transform: rotateX(90deg) translateZ(calc(var(--size)/2)); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--size)/2)); }

@keyframes rotateCube {
    from { transform: rotateY(0deg) rotateX(0deg); }
    to { transform: rotateY(360deg) rotateX(360deg); }
}
.text-area {
    width: 40%; /* oder eine andere Prozentangabe, je nach Bedarf */
    max-width: 600px; /* moderat breiter für bessere Lesbarkeit */
    padding: 20px;
    text-align: justify;
    line-height: 1.6; /* Erhöht den Zeilenabstand für bessere Lesbarkeit */
    font-size: 1.1em; /* Etwas größere Schriftgröße */
    margin: 20px auto; /* Zentriert den Textblock innerhalb seines Containers */
    background: rgba(0, 0, 0, 0.6); /* Leicht transparenter Hintergrund */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtiler Schatten für Tiefe */
    color: #ffffff; /* Weiße Schrift für guten Kontrast auf dunklem Hintergrund */
}
.container {
    display: flex;
    flex-direction: row; /* Horizontalanordnung, standardmäßig */
    justify-content: space-around; /* Gibt Raum zwischen den Elementen */
    align-items: center; /* Vertikale Ausrichtung */
    width: 80%; /* Passt die Breite des gesamten Containers an */
    height: auto; /* Passt die Höhe an den Inhalt an */
    margin: 40px auto; /* Zentriert den Container auf der Seite */
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Elemente übereinander statt nebeneinander */
    }
    .text-area {
        width: 90%; /* Passt die Breite an kleinere Bildschirme an */
    }
}
h1 {
    color: #ff14f0; /* Helles Neonpink */
    text-align: center;
    text-shadow: 0 0 8px #ff14f0;
}
@media (max-width: 1024px) {
    .container {
        flex-direction: column; /* Stackt Elemente vertikal */
        padding: 20px; /* Fügt etwas Platz hinzu, damit der Inhalt nicht zu den Rändern klebt */
    }
    .text-area, .cube-container {
        width: 100%; /* Nimmt die volle Breite ein, für bessere Sichtbarkeit */
        max-width: none; /* Hebt die maximale Breite auf */
        margin: 10px 0; /* Fügt vertikalen Abstand zwischen den Elementen hinzu */
    }
    .cube {
        width: 150px; /* Verkleinert die Würfel etwas */
        height: 150px;
    }
}

@media (max-width: 768px) {
    .text-area {
        font-size: 0.9em; /* Verkleinert die Schriftgröße für bessere Lesbarkeit */
        padding: 15px; /* Reduziert den Padding für mehr Platz */
    }
    .cube {
        width: 120px; /* Weiter verkleinert die Würfel */
        height: 120px;
    }
}

@media (max-width: 480px) {
    .text-area {
        font-size: 0.8em; /* Noch kleinere Schriftgröße für sehr kleine Geräte */
    }
    .cube {
        width: 100px; /* Passt die Größe der Würfel an sehr kleine Bildschirme an */
        height: 100px;
    }
}
.cool-button {
    display: inline-block;
    padding: 10px 25px;
    margin: 20px;
    background-color: #4CAF50; /* Grundfarbe */
    color: white;
    text-decoration: none;
    border-radius: 25px; /* Abgerundete Ecken */
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform: scale(1);
}

.cool-button:hover, .cool-button:focus {
    transform: scale(1.05); /* Vergrößert den Button beim Darüberfahren */
    background-color: #367C2B; /* Ein dunklerer Grünton für den Hover */
    cursor: pointer;
}

