/* Pages with the Zayn / Games banner and the yellow nav buttons
   (index, about, achievements, feedback, feedbackthread) */

@keyframes zayn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(150px);
    }
}

@keyframes games {
    from {
        transform: translateX(100vw) rotate(-1.5deg);
    }
    to {
        transform: translateX(650px) rotate(-1.5deg);
    }
}

.pic {
    position: absolute;
    background: none; /* Removes default grey background */
    border: none;     /* Removes default button border */
    padding: 0;       /* Removes internal spacing */
}
    .pic img {
        display: block;   /* Removes unwanted whitespace beneath the image */
    }

    .zaynPic {
        width: 560px;
        height: 350px;
        position: relative;
        margin-top: -100px;
        animation: zayn 0s ease-in-out forwards; /* index.html slides it in over 2s */
    }

    .gamesPic {
        width: 660px;
        height: 350px;
        position: relative;
        margin-top: -80px;
        animation: games 0s ease-in-out both;
    }

.mainButton {
    border-radius: 6px;
    border: none;
    color: black;
    text-decoration: none;
    font-family: Arial;
    font-weight: bold;
    width: 150px;
    height: 40px;
    display: flex;
    line-height: 2.5rem;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(0deg, #e3e098 0%, #fafa70 100%);
    box-shadow: 0 -0.25rem 1.5rem rgba(219, 193, 8, 1) inset, 0 0.75rem 0.5rem rgba(255,255,255, 0.4) inset, 0 0.25rem 0.5rem 0 rgba(247,247,17, 1) inset;
}

.mainNav {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 80px;
    z-index: 1; /* stays clickable above positioned page content (e.g. the achievements list) */
}

/* License at the bottom of every nav page (templates/zhgames/license.html).
   The spacer above it grows so the license starts just below the first screen on short pages,
   and is at least 340px on long pages to clear content pushed down with position: relative
   (up to top: 300px), which doesn't move the footer. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.licenseSpacer {
    flex-grow: 1;
    min-height: 340px;
}

/* Zero height so the 100vh above only counts the content and spacer; the text hangs below the fold */
.licenseFooter {
    height: 0;
    min-height: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1300px;
    border-top: 2px solid black;
    font-family: Arial;
    font-size: 14px;
    color: #333;
}

    .licenseFooter b {
        display: block;
        margin-top: 12px;
    }

    .licenseFooter p {
        margin: 6px 0;
    }

    /* Room under the license when scrolled to the very bottom */
    .licenseFooter::after {
        content: "";
        display: block;
        height: 30px;
    }
