@import url(./colors.css);
@import url(./fonts.css);
@import url(./algemenestyling.css);


body {
    background: #152331;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to top, var(--gradient-black-bg) 40%, var(--gradient-darkblueish-bg) 10%, var(--gradient-black-bg) 40%);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, var(--gradient-black-bg) 40%, var(--gradient-darkblueish-bg) 10%, var(--gradient-black-bg) 40%);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    @media(prefers-reduced-motion: reduce) {
        background-image: url(../images/starwarsthemebg.jpeg);
        height: 100%;
        width: auto;
    }

    @media (max-width:500px) {
        display: grid;
        place-items: center;
        padding: 1rem 1.5rem 1rem 1.5rem;
        width: 100%;
    }

    @media (max-width:1000px) {
        display: grid;
        place-items: center;
        padding: 1rem 1.5rem 1rem 1.5rem;
        width: 100%;
    }

}

video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;

    @media(prefers-reduced-motion: reduce) {
        display: none;
        animation-play-state: paused;
    }

    @media (max-width:500px) {
        object-fit: cover;
        gap: 2rem;
    }

    @media (max-width:1000px) {
        object-fit: cover;
        gap: 2rem;
    }
}

section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    perspective: 80rem;
}

.intro {
    display: grid;
    place-items: center;
    place-content: center;
}

#crawl {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 3rem;
    width: 55%;
    max-width: 90rem;

    transform: translateY(0) rotateX(0deg);
        opacity: 1;
    animation: scrollUp 15s ease-out forwards;

    @media (max-width:500px) {
        width: 90%;
        height: 100%;
        text-align: left;
        align-items: flex-start;
    }

    @media (max-width:1000px) {
        width: 90%;
        height: 100%;
        text-align: left;
        align-items: flex-start;
    }

    @media(prefers-reduce-motion: reduce) {
        animation: none !important;
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }

    animation: scrollUp 15s ease-out forwards;

}

#crawl p {
    font-family: 'Montserrat';
    color: var(--starwars-yellow);
    font-size: var(--p);
    text-align: left;

    @media(prefers-reduced-motion:  no-preference) {}

    @media (max-width:500px) {
        font-size: var(--p);
    }

    @media (max-width:1000px) {
        font-size: var(--p);
    }
}

a,
a::before,
a::after {
    animation: none !important;
    font-size:var(--p);
    color: var(--text-color);
}

h1 {
    font-family: "Cinzel";
    color: var(--starwars-yellow);
    font-size: var(--h2);
    width: 100%;
    text-align: left;

    @media(prefers-reduced-motion:no-preference) {
        font-family: "Cinzel";
        color: var(--starwars-yellow);
        font-size: var(--h2);
        width: 100%;
        text-align: left;
    }

    
    @media (max-width:500px) {
        font-size: var(--h2);
    }

    @media (max-width:1000px) {
        font-size: var(--h2);
    }
   
}

p {
    font-family: 'Montserrat';
    color: var(--starwars-yellow);
    font-size: var(--p);
}

a {
    background-color: var(--black-color);
    color: var(--starwars-yellow);
    width: 20rem;
    height: 5rem;

    position: relative;

    display: grid;
    place-items: center;
    border-radius: 2.5rem;

    font-family: 'Montserrat';
    font-weight: 600;
    font-size: var(--p);
    text-align: center;

    text-decoration: none;
    text-transform: uppercase;

    animation: rotate 15s linear infinite;

    @media(max-width:500px) {
        width: 19rem;
        height: 5rem;
        display: grid;
        place-items: center;
        border-radius: 2.5rem;
        text-align: center;
    }

    @media (max-width:1000px) {
        width: 19rem;
        height: 5rem;
        display: grid;
        place-items: center;
        border-radius: 2.5rem;
        text-align: center;
    }
}

a:hover::before,
a:hover::after,
a:active::before,
a:active::after,
a:focus::before,
a:focus::after {
    content: '';
    position: absolute;
    width: 21rem;
    height: 6rem;
    background: linear-gradient(to right,
            var(--lightsaber-red)25%,
            var(--lightsaber-light-blue),
            var(--lightsaber-blue),
            var(--lightsaber-red));
    background-size: 400%;
    border-radius: inherit;
    z-index: -2;
    filter: blur(5px);

    animation: rotate 15s linear infinite;

    @media(max-width:500px) {
        content: '';
        position: absolute;
        width: 20rem;
        height: 6rem;

        animation: rotate 15s linear infinite;
    }

    @media (max-width:1000px) {
        content: '';
        position: absolute;
        width: 20rem;
        height: 6rem;

        animation: rotate 15s linear infinite;
    }
}

@keyframes rotate {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}


@keyframes scrollUp {
    0% {
        transform: translateY(100vh) rotateX(20deg);
    }

    100% {
        transform: translateY(-0) rotateX(0deg);
        opacity: 1;
    }
}