@charset "utf-8";

/* CSS Variables for consistency */
:root {
    --font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
    --heading-font-family: 'Roboto Slab', serif;
    --main-color: #000000;
    --hover-color: #F01a1a8;
    --font-size-banner-large: 52px;
    --font-size-banner-small: 32px;
    --animation-duration: 2s;
    --opacity-fadeOut: 0.3;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-family);
}

html {
    overflow-y: scroll;
    box-sizing: border-box;
}

.hover-image img {
    display: none;
    position: fixed;
    pointer-events: none;
    z-index: 100;
}

.spline-viewer {
    width: 100%;
    height: 100%;
    top: 0;
    position: fixed;
    display: none;
}

.spline-viewer img {
    height: 100%;
    width: auto;
}

.wrapper {
    height: 100vh;
    position: relative;
    width: 100%;
}

.main {
    position: absolute;
    left: 100px;
    width: 700px;
    height: auto;
    top: 20vh;
    z-index: 100;
}

.spline {
    width: 100%;
    height: 100%;
    top: 0;
    position: fixed;
    animation: fadeIn var(--animation-duration) ease forwards;
}

.banner {
    font-size: var(--font-size-banner-large);
    max-width: 800px;
    font-weight: bold;
    text-align: left;
    font-family: var(--heading-font-family);
    margin: 30px 0 40px;
    width: 100%;
}

.banner a {
    color: var(--main-color);
}

.banner a:hover {
    opacity: 0.8;
    color: var(--hover-color);
}

p {
    font-size: 14px;
    line-height: 22px;
}

.footer {
    position: fixed;
    bottom: 0;
    padding-bottom: 10px;
    font-size: 10pt;
    width: 100%;
    text-align: center;
    height: auto;
    opacity: 0.5;
}

/* Keyframe Animations */
@keyframes swing {
    15% {
        transform: translateX(5px);
    }
    30% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(3px);
    }
    65% {
        transform: translateX(-3px);
    }
    80% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 0;
    }
    to {
        opacity: var(--opacity-fadeOut);
    }
}

.header-logo {
    width: 100px;
    height: 100px;
}

.rotate {
    transition-duration: 0.8s;
}

.header-logo img:hover {
    transform: rotate(360deg);
}

.name:hover {
    animation: swing 1s ease 1;
}

/* Media Queries */
@media screen and (max-width: 2000px) {
    .banner {
        font-size: 48px;
        max-width: 600px;
    }

    .main {
        top: 10vh;
        left: 80px;
    }
}

@media screen and (max-width: 1800px) {
    .spline {
        animation: fadeOut var(--animation-duration) ease forwards;
        opacity: var(--opacity-fadeOut);
    }
}

@media screen and (max-width: 900px) {
    .main {
        width: 90%;
        left: 0;
        padding: 0 5%;
        top: 5vh;
    }
}

@media screen and (max-width: 500px) {
    .banner {
        font-size: var(--font-size-banner-small);
    }
}

@media screen and (max-height: 500px) {
    .banner {
        font-size: var(--font-size-banner-small);
        width: 90%;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .wrapper {
        height: auto;
    }

    .spline {
        position: absolute;
    }

    .spline img {
        width: 100%;
        height: auto;
    }
}
