body{
    color: #e5dcca;
    overflow-x: hidden;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section, footer {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative; /* needed for ::after positioning */
    background: url(../public/hero.webp) center center / cover no-repeat;
    padding: 12rem 2rem;
    text-align: center;
    color: #fdf5ed;
    margin-bottom: 80px;
    z-index: 1000;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #FFB444FF, #FF6818FF);
    filter: blur(14px);
    z-index: -1;
    opacity: .7;
    transform: scaleX(1.2);   /* expands glow without overflow */
    transform-origin: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, #FFB444FF, #FF6818FF);
    pointer-events: none;
    opacity: .7;
}


.hero-parchment {
    position: relative;
    background: transparent;
    color: #3b2f1e!important;
}

.hero-parchment::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffdc7d url(../img/paper-fibers.png);
    color: #3b2f1e!important;
    border: 2px solid #c1a54e;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    border-radius: 0;
    padding: 1rem;
    opacity: 0.7;
    z-index: 0;
}

.hero-parchment > * {
    position: relative;
    z-index: 1;  /* content above faded bg */
}

.text-gradient {
    background: linear-gradient(to right, #FFB444FF, #FF6818FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* for non-WebKit browsers */
    color: transparent;
}

.parchment{
    background: #cdb268 url(../img/paper-fibers.png);
    color: #3b2f1e!important;
    border: 2px solid #c1a54e;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.gold-text {
    background: linear-gradient(90deg, #FFB444FF, #FF6818FF, #FFB444FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 0 0 1px #FFB444FF, 0 0 5px #FF6818FF;
}

.gold-shadow{
    text-shadow: 0 0 1px #FFB444FF, 0 0 5px #FF6818FF;
}

.navbar{
    z-index: 55555;
}


@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        display: inline-block;
        float: none;
        vertical-align: top;
    }

    .navbar .navbar-collapse {
        text-align: center;
    }
}

nav {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.05));
    padding: 1rem 2rem;
    font-size: 1.6rem;
}

.nav-link {
    color: #fdf5ed;
    margin-right: 1rem;
    transition: color ease-in-out 200ms, transform ease-in-out 100ms;
}

.nav-link:hover{
    transform: rotate(2deg);
}

.btn-discord{
    background-color: #5b76d5;
    color: #efeded;
    transition: background-color ease-in-out 250ms;
}

.btn-discord:hover{
    background-color: #6c82ce;
    color: #e5dcca;
}
.btn-gradient{
    background: linear-gradient(90deg, #FFB444FF, #FF6818FF, #FFB444FF);
    color: #111111;
    transition: background-color ease-in-out 250ms;
}

.btn-gradient:hover{
    background: linear-gradient(90deg, #d9993a, #d05818, #e3a13e);
    color: #000000;
}

.hero-tagline {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .hero-tagline {
        padding-left: 7rem;
        padding-right: 7rem;
    }
}

/* Section */
.section{
    margin-bottom: 50px;
}
.section-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--sr-header-color);
}

.btn-shiny {
    background: linear-gradient(
            120deg,
            #FFB444 0%,
            #FF6818 40%,
            #FFB444 80%
    );
    background-size: 200% 100%;
    color: #111111;
    transition: color ease-in-out 250ms;
    animation: shine 3s linear infinite;
}

.btn-shiny:hover {
    color: #000000;
}

@keyframes shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.section-images img {
    width: 100%;
    border-radius: 2px;
    margin-bottom: 50px;
}

.discord-embed {
    border-radius: 10px;
    overflow: hidden;
    width: 90%;
    height: 350px;
}

/* Loading Spinner */
#overlaySpinner {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;               /* keep flex for centering */
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease;
}

#overlaySpinner.active {
    opacity: 1;
    visibility: visible;
}

.helm-spinner {
    width: 160px;
    height: 160px;
    animation: spinHelm 2s linear infinite;
}

@keyframes spinHelm {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}