* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #232323;
    background: url("pictures/futuristischer-mondhintergrund_23-2150930768.avif") 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: 1200px;
    margin: 0 auto;
    padding: 20px;
}

main {
    flex: 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);
}

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;
}

button,
#reset-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: #3271ea;
    color: white;
    cursor: pointer;
}

.top-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 20% 20%, #7ec6ff 0%, #3271ea 45%, #0f4db4 100%);
    border: none;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-button::before {
    content: "";
    width: 26px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M32 12L10 32h6v18h12V40h12v10h12V32h6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.top-button:hover {
    transform: scale(1.12);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
    background: radial-gradient(circle at 20% 20%, #9ad2ff 0%, #3e80ea 45%, #113d9d 100%);
}

@media (max-width: 980px) {
    .page {
        flex-direction: column;
    }
    .side-nav {
        position: relative;
        top: auto;
        width: 100%;
    }
}
.markup {
    color: red;
    font-weight: bold;
}
a {
    font-size: 20px;
}

h2 {
    border-bottom:  solid  #04c094 4px;
    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;
}

.shooting-star {
    position: fixed;
    top: -60px;
    left: -120px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    #background: radial-gradient(circle, #ffffff 0%, rgba(255,255,255,0.95) 40%, rgba(255,255,255,0) 100%);
    #box-shadow: 0 0 24px rgba(255,255,255,0.9), 0 0 70px rgba(255,170,255,0.4), 0 0 110px rgba(200,120,255,0.15);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

.shooting-star::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 14px;
    width: 160px;
    height: 8px;
    background: linear-gradient(90deg, rgba(180, 45, 153, 0.9) 0%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0) 100%);
    transform: rotate(-18deg);
    filter: blur(1px);
}

.shooting-star.shoot {
    animation: shooting-star 3s ease-out forwards;
}

@keyframes shooting-star {
    0% {
        transform: translate(0, 0) rotate(-18deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate(120vw, 120vh) rotate(-180deg);
        opacity: 0;
    }
}

.ball{
    position:fixed;

    left:20px;
    bottom:20px;

    width:120px;

    animation: schweben 4s ease-in-out infinite;
}

@keyframes schweben{

    0%{
        transform: translateY(0px);
    }
    10%{
        transform: translateY(-200px);
    }
    20%{
        transform: translateY(0px);
    }
    30%{
        transform: translateY(-150px);
    }
    40%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-100px);
    }
    60%{
        transform: translateY(0px);
    }
    70%{
        transform: translateY(-50px);
    }
    80%{
        transform: translateY(0px);
    }
    90%{
        transform: translateY(-25px);
    }
    100%{
        transform: translateY(0px);
    }

}

.site-footer {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    text-align: center;
    font-size: 20px;
    color: blue;
}

.footer-links a,
.footer-links span {
    color: blue;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}