@import url(https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;900&display=swap);

:root {
    --primary: hsl(13.21, 73.04%, 54.9%);
    --primary-hover: hsl(13.2, 73%, 62%);
    --shadow: hsla(13, 73%, 55%, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    align-items: center;
    background: #1e394e;
    display: flex;
    flex-direction: column;
    font-family: Rubik, sans-serif;
    justify-content: flex-start;
    padding-top: 8vh;
    margin: 0;
    min-height: 100vh;
    position: relative;
}

.background {
    background: linear-gradient(180deg, #1e394e, #1e394ef2),
        url(/assets/images/texture.png);
    opacity: 0.9;
    pointer-events: none;
    z-index: -3;
}

.background,
.background_banner {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.background_banner {
    background: url(/assets/images/background-banner.png) no-repeat center -110px,
        linear-gradient(180deg, #1e394ee6, #1e394ee6);
    z-index: -4;
}

.anime-container {
    animation: float 6s ease-in-out infinite;
}

.anime-container img {
    width: 750px;
    max-width: 90vw;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--shadow));
}

.steps-container {
    margin-top: 3rem;
    color: #fff;
    width: 100%;
    max-width: 750px;
    padding: 0 1rem;
}

.steps-container ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps-counter;
    text-align: left;
}

.steps-container li {
    font-size: 1.3rem;
    font-weight: 500;
    counter-increment: steps-counter;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.steps-container li::before {
    content: counter(steps-counter) '.';
    font-weight: 900;
    color: var(--primary);
    margin-right: 0.8rem;
    min-width: 25px;
}

.steps-container a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.steps-container a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.underline {
    position: relative;
    display: inline-block;
}

.underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary) 20%,
        var(--primary-hover) 50%,
        var(--primary) 80%,
        transparent 100%
    );
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.underline::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 136, 85, 0.3) 30%,
        rgba(255, 136, 85, 0.5) 50%,
        rgba(255, 136, 85, 0.3) 70%,
        transparent 100%
    );
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s;
}

.underline:hover::after {
    transform: scaleX(1);
}

.underline:hover::before {
    transform: scaleX(1);
}

/* Auto-show underline animation on page load */
@keyframes reveal-underline {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.underline::after {
    animation: reveal-underline 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards;
}

.underline::before {
    animation: reveal-underline 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.7s forwards;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

.gradient {
    background: radial-gradient(
        100% 100% at 100% 100%,
        #ff4500 0,
        rgba(255, 69, 0, 0) 100%
    );
    bottom: 0;
    height: 71.11vh;
    opacity: 0.34;
    pointer-events: none;
    position: absolute;
    right: 0;
    width: 48.44vw;
    z-index: -1;
}

@media screen and (max-width: 900px) {
    .gradient {
        display: none;
    }
}

.particles {
    filter: blur(1px);
    height: 100%;
    left: 0;
    mix-blend-mode: color-dodge;
    opacity: 0.6;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -2;
}

@media screen and (max-width: 900px) {
    .particles {
        bottom: 0;
        overflow: hidden;
        position: absolute;
        top: unset;
    }
}

.particles .particles-js {
    bottom: 0;
    height: 100%;
    mix-blend-mode: color-dodge;
    position: absolute;
    right: 0;
    transform: rotate(-45deg) translateY(75%);
    width: 100%;
}

@media screen and (max-width: 900px) {
    .particles .particles-js {
        transform: rotate(-45deg) translateY(35%);
    }
}
