body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #232323;
    background: url("pictures/naturwasserfall.jpg") center center / cover no-repeat fixed;
    min-height: 100vh;
    line-height: 1.6;
    scroll-behavior: smooth;
}

p {
    font-size: 22px;
    line-height: 1.3;
}
li {
    font-size: 24px;
    line-height: 1.3;
}

.page {
    display: flex;
    gap: 24px;
    max-width: 100%;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    padding-right: 40px;
}

main {
    flex: 1;
}

.video-container {
    width: 70%;
    max-width: 800px;
    margin: 20px 0;
}

.video-container video {
    width: 70%;
    height: auto;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 60px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
    width: 90%;
}

section h1,
section h2 {
    margin-top: 0;
    color: #193b80;
}

section p {
    margin: 16px 0 0;
}

.side-nav {
    width: 240px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    background: white;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.nav-title {
    margin: 0 0 18px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #444;
}

.side-nav a {
    display: block;
    margin-bottom: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: #2a3f7d;
    #border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    border-right: 3px solid purple;
    border-left: 3px solid rgb(251, 146, 163);
    text-align: center;
}

.side-nav a:hover {
    background: #e8f0ff;
    color: #13326f;
    border-radius: 12px;
    text-align: center;
    border : 3px,solid,rgb(255, 121, 121) ;
    margin-bottom: 12px;
    padding: 12px 14px;
}

#game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

#game-container canvas {
    border: 2px solid #333;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

#info {
    min-width: 220px;
    text-align: left;
}

#info p {
    margin: 10px 0;
}


h2 {
    border-bottom: 4px solid #04c094;
    font-size: 28px;
}

h3 {
    font-size: 24px;
    margin-top: 12px;
    margin-bottom: 8px;
    /* Farbverlauf von Rot/Orange zu Lila */
    /* kompakterer Verlauf: Stopps dichter zusammen und kleinere Hintergrundgröße */
    background: linear-gradient(90deg, #ff4e50 0%, #ff9966 35%, #9b59b6 75%);
    background-size: 60% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-align: left;
}

.back-button-fixed{
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #2a3f7d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    position: fixed;
    top: 500px;
    left: 1200px;
}

#intro {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999; /*Stellt sicher, dass der Intro-Bereich über allen anderen Inhalten liegt.*/
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-left: -100;

    animation: slideright 6s ease forwards;
}

#intro img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

@keyframes slideright {
    0% {
        transform: translateX(0);
    }

    33% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}