.skip-anims {
    * {
        transition: none !important;
    }
}

body {
    opacity: 1;
    margin: 0px;
    background: #e0f3ef;
    font-family: "Source Sans 3", sans-serif;
    transition: all 1.3s cubic-bezier(0.37, 0, 0.63, 1);
    /* https://easings.net/#easeInQuart */

    @starting-style {
        opacity: 0;
    }

    &.content {
        footer {
            display: none;
        }
    }
}

header {
    position: relative;
    z-index: 100;

    @media screen and (max-height: 1000px) {
        margin-top: -50px;
    }
}

footer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 600px;
    pointer-events: none;
    z-index: 50;

    canvas {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
    }
}

.page {
    position: relative;
    z-index: 200;
    display: none;
    margin: -80px 15% 0px 15%;
    opacity: 0;
    transition: opacity 1s ease;
    padding-bottom: 100px;

    &.home {
        padding-bottom: 0px;
    }

    &:not(.home) nav {
        display: flex;
        gap: 70px;

        h2,
        a {
            font-weight: 500;
            font-size: 42px;
            color: #518d85;
            margin-top: 0px;
        }

        h2 {
            border-bottom: 1px solid #518d85;
        }

        a {
            opacity: 0.5;
            text-decoration: none;
            transition: all 0.3s ease;

            &:hover {
                opacity: 1;
            }
        }
    }

    &.classes {
        h3 {
            text-transform: uppercase;
            color: #365d58;
            margin: 40px 0px 0px;
        }

        p {
            position: relative;
            margin: 14px 0px;

            a {
                text-decoration: none;
                color: inherit;

                &:hover {
                    color: #518d85;
                    text-decoration: underline;
                }
            }

            .more {
                position: absolute;
                left: 400px;
                color: #919191;

                img {
                    position: relative;
                    top: 6px;
                }
            }

            &:hover .more {
                opacity: 1;
            }
        }
    }

    &.projects {
        nav {
            margin-bottom: 35px;
        }

        .cards {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;

            .card {
                width: 300px;
                height: 375px;
                background-color: rgb(255, 255, 255);
                border-radius: 15px;
                text-decoration: none;
                color: inherit;
                overflow: hidden;
            }

            img:hover {
                opacity: 0.8;
            }

            p {
                font-size: 20px;
                padding: 0px 15px;
                height: 4.2em;

                a {
                    color: inherit;
                }
            }

            .tags {
                padding: 0px 15px;

                span {
                    background-color: #e0f3ef;
                    padding: 3px 10px;
                    border-radius: 4px;
                }
            }
        }
    }

    &.active {
        display: block;
        opacity: 1;
    }

    .back {
        position: absolute;
        top: 16px;
        left: -70px;
        color: #518d85;
        text-decoration: none;
    }
}

h1 {
    font-weight: 500;
    font-size: 75px;
    position: absolute;
    top: 209px;
    left: 15%;
    color: #fff;
    margin: 0px;
    text-shadow: 0px 0px 5px rgb(54 93 88 / 36%);
    white-space: nowrap;
}

h2 {
    font-weight: 500;
    font-size: 48px;
    color: #518d85;
    margin-top: 0px;
}

p.teacher {
    position: absolute;
    top: 294px;
    left: calc(15% + 214px);
    color: #e0f2ef;
    margin: 0px;
    font-size: 44px;
    text-shadow: 0px 0px 20px #365d58;
}

.home {
    position: relative;
    top: min(50px, calc((100vh - 930px) / 2));

    .bt {
        display: inline-block;
        font-size: 32px;
        color: #518d85;
        text-decoration: none;
        margin: 0px 80px 25px 0px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s;
        border-bottom: 1px solid transparent;

        .arrow {
            font-family: consolas;
            position: relative;
            top: -1px;
            left: 0px;
            transition: all 0.3s;
        }

        &:hover {
            border-bottom: 1px solid #518d85;

            .arrow {
                left: 3px;
            }
        }
    }

    .contact {
        margin: 70px 0px;
        font-size: 32px;

        p {
            margin: 10px 0px;
        }

        a:hover {
            opacity: 0.7;
        }

        .email {
            transition: all 1s;
            transition-delay: 0.3s;
            opacity: 1;

            @starting-style {
                opacity: 0;
            }

            a {
                color: #365d58;
                text-decoration: none;
            }
        }
    }
}

.canvas-container {
    position: relative;
    line-height: 0px;
    overflow-x: hidden;
    background: linear-gradient(#d5efee, #fbf9c9);
}

#sun {
    position: absolute;
    translate: -50% -50%;
    /* bottom: #JS#;
    left: #JS#; */
    width: 200px;
    height: 200px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 1) 0%, rgba(255, 253, 220, 1) 20%, rgba(255, 253, 180, 0.5) 29%, rgba(255, 248, 0, 0) 100%);
}

canvas#landscape {
    position: relative;
}

canvas#reflection {
    position: relative;
    background: #e0f3ef;
}