* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #151515;
    --secondary-background: #1d1d1d;
    --primary-color: #00FE00;
    --secondary-color: #017d01;
    --text-color: #e9f8ec;
}

#menuToggle {
    display: block;
    position: fixed;
    top: 50px;
    right: 50px;
    z-index: 3;
}

#menuToggle a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

#menuToggle a:hover {
    color: var(--primary-color);
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    right: -5px;
    opacity: 0;
    z-index: 4;

    -webkit-touch-callout: none;
}

#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: var(--primary-color);
    z-index: 3;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#menuToggle input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: var(--primary-color);
}

#menuToggle input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked~span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

#menu {
    position: absolute;
    max-width: 400px;
    width: 100vw;
    height: 110vh;
    margin: -100px 0 0 -200px;
    padding: 50px;
    padding-top: 125px;
    box-sizing: border-box;
    overflow-y: auto;
    background: var(--secondary-background);
    list-style-type: none;
    -webkit-font-smoothing: antialiased;

    transform-origin: 0% 0%;
    transform: translate(100%, 0);

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

#menu li {
    padding: 10px 0;
    font-size: 22px;
}

#menu li label {
    cursor: pointer;
}

#menuToggle input:checked~ul {
    transform: none;
}

body{
    background-color: var(--background);
    color: var(--text-color);
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
}

html{
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

main{
    width: calc(100% - 240px);
    margin: 100px auto;
}

h1{
    font-weight: 700;
    font-style: italic;
}

main > section{
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100%;
}

p{
    padding-top: 20px;
}

main a{
    color: var(--primary-color);
}

main a:hover {
    color: var(--secondary-color);
}

.hover-red{
    color: var(--red);
}

.hover-red:hover {
    color: var(--orange);
}

.gradient {
    animation: background-pan 5s linear infinite;
    background: linear-gradient(to right,
            var(--primary-color),
            var(--secondary-color),
            var(--primary-color),
            var(--text-color),
            var(--primary-color));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root {
    --red: #B43212;
    --orange: #DC8F0A;
    --yellow: #facd38;
}

.gradient-red {
    animation: background-pan 5s linear infinite;
    background: linear-gradient(to right,
            var(--red),
            var(--orange),
            var(--yellow),
            var(--red));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes background-pan {
    from {
        background-position: 0% center;
    }

    to {
        background-position: -200% center;
    }
}

header{
max-width: 100px;
    width: 100vw;
    height: auto;
    left: 40px;
    top: 40px;
    position: fixed;
    z-index: 2;
}

#title{
    height: 100vh;
}

#titlescreen{
    width: 100vw;
    max-height: 100vh;
    height: 100%;
    margin: -100px 0 0 -120px;
    position: absolute;
}

#about, #contact, #members{
    height: 100vh;
    padding: 50px 0;
    display: grid;
    place-items: center;
}

h2{
    font-size: 4rem;
}

h3 {
    font-size: 2rem;
}

#members article{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    height: auto;
    align-items: center;
}

.sectionpin {
    height: 500vh;
    overflow: visible;

    view-timeline-name: --section-pin-tl;
    view-timeline-axis: block;
}

iframe {
    height: 100vh;
    width: 100vw;
    margin-left: -120px;
    position: sticky;
    top: 0;
    overflow-x: hidden;
    z-index: 1;
    background-color: #000000;
    object-fit: cover;
}

@media (min-aspect-ratio: 16/9) {
    #works iframe {
        /* height = 100 * (9 / 16) = 56.25 */
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    #works iframe {
        /* width = 100 / (9 / 16) = 177.777777 */
        width: 177.78vh;
    }
}

main > section > article {
    z-index: 2;
    position: relative;
    height: 100vh;
    width: 100%;
    will-change: transform;
    animation: linear moving forwards;

    /* Link animation to view-timeline */
    animation-timeline: --section-pin-tl;
    animation-range: contain 0% contain 100%;
}

main article p{
    width: 100%;
    text-align: left;
    font-size: 2rem;
}

@keyframes moving {
    to {
        transform: translateY(calc(-100% + 100vh));
    }
}


.card{
    background-color: var(--secondary-background);
    padding: 20px;
    margin: 10px 0;
    border: 2px var(--secondary-color) dashed;
}

form{
    display: grid;
    grid-template-columns: 1fr;
}

label{
    padding: 10px 0 5px 0;
}

button{
    margin: 10px;
    place-self: center;
    width: 20vw;
    height: 2rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 2px var(--background) solid;
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-size: 1rem;
}

input{
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 2px var(--background) solid;
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-size: 1rem;
    padding: 5px;
}

#floating-tri {
    z-index: -1;
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 46vh;
}

#floating-try > svg{
    position: absolute;
    transform-origin: 50% 70%;
    overflow: hidden;
}

#floating-tri svg:nth-child(1) {
    scale: 5.5;
    animation: rotate 20s infinite normal linear;
}

#floating-tri svg:nth-child(2) {
    scale: 3.5;
    animation: rotate 30s infinite reverse linear;
}

@keyframes rotate {
    0% {
        transform: rotate(-180deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

footer{
    position: fixed;
    background-color: #1d1d1d;
    height: 7vh;
    width: 100vw;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 200px;
    place-items: center;
}

footer svg{
    width: 30px;
    height: 30px;
}

article > article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: end;
    gap: 1rem;

    iframe{
        width: 100%;
        height: 100%;
    }

    img{
        width: 100%;
        height: 100%;
    }
}


@media only screen and (max-width: 768px) {
    h2{
        font-size: 1.4rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    body{
        font-size: 1rem;
    }
    main article p {
        width: 100%;
        text-align: left;
        font-size: 1rem;
    }
    main {
        width: calc(100% - 120px);
        margin: 30px auto;
    }

    iframe {
        height: 100vh;
        width: 100vw;
        margin-left: -80px;
        position: sticky;
        top: 0;
        overflow-x: hidden;
        z-index: 1;
        background-color: #000000;
        object-fit: cover;
    }
        @media (min-aspect-ratio: 16/9) {
            #works iframe {
                /* height = 100 * (9 / 16) = 56.25 */
                height: 56.25vw;
            }
        }
    
        @media (max-aspect-ratio: 16/9) {
            #works iframe {
                /* width = 100 / (9 / 16) = 177.777777 */
                width: 177.78vh;
            }
        }
}

@media only screen and (max-width: 1600px) {
    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    body {
        font-size: 1.2rem;
    }

    main article p {
        font-size: 1.2rem;
    }

        article>article {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .6rem;
    
            iframe {
                width: 100%;
                height: 70vh;
                place-self: end;
            }
    
            img {
                width: auto;
                height: 70vh;
                object-fit: cover;
                place-self: center;
            }
        }
}