@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #111827, #6b21a8);
}

/* Global Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(80, 42, 187, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 42, 187, 0.8);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 42, 187, 0.6) rgba(255, 255, 255, 0.1);
}

/* Loader Animation */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #9333EA;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.customloader {
    border-radius: 50%;
    width: 1em;
    height: 1em;
    animation: customLoaderspin 1s linear infinite;
    position: fixed;
    top: 40%;
    left: 48%;
    text-indent: -9999em;
    transform: translateZ(0);
    z-index: 999;
    display: none;
}

@keyframes customLoaderspin {
0%,
100% {
    box-shadow: 0em -2.6em 0em 0em #ffffff,
    1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
    2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
    1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
    0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
    -2.6em 0em 0 0em rgba(255, 255, 255, 0.5),
    -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
}
12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7),
    1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
    1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
    0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
    -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
}
25% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5),
    1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff,
    1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
    0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
    -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
}
37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
    1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5),
    2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em #ffffff,
    0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
    -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
}
50% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
    1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
    2.5em 0em 0 0em rgba(255, 255, 255, 0.5),
    1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff,
    -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
    -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
}
62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
    1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
    2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
    1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5),
    0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff,
    -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
}
75% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
    1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
    2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
    1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
    0em 2.5em 0 0em rgba(255, 255, 255, 0.5),
    -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff,
    -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
}
87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
    1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
    2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
    1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
    0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
    -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5),
    -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
}
}
  
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.788);
z-index: 998;
display: none;
}

/* Logo Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-logo img {
    animation: float 3s ease-in-out infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-enter {
    animation: slideIn 0.3s ease forwards;
}

.toast-exit {
    animation: slideOut 0.3s ease forwards;
}

/* Prompt Dialog Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.prompt-overlay {
    animation: fadeIn 0.2s ease forwards;
}

.prompt-dialog {
    animation: scaleIn 0.2s ease forwards;
}

/* Server Status Animation */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.server-status-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom hover effects */
.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Rules Page Specific Styles */
.rules-container {
    display: flex;
    min-height: 100vh;
    color: rgb(216, 216, 216);
}

.rules-sidebar {
    width: 400px;
    border-right: 1px solid rgba(147, 51, 234, 0.2);
    padding: 2rem;
    position: fixed;
    height: 81vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.sub-menu {
    margin-left: 15px;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.sub-menu li {
    margin-top: 5px;
}

.sub-menu a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.sub-menu a:hover {
    color: #a78bfa;
}

.rules-content {
    flex: 1;
    margin-left: 400px;
    padding: 2rem;
    max-width: 1200px;
}

.rules-notice {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.rules-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(147, 51, 234, 0.1), transparent);
    pointer-events: none;
}

.rules-section {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rules-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.2);
}

.rules-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rules-section h2 svg {
    width: 32px;
    height: 32px;
    color: #9333EA;
}

.sub-menu-grid {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
}

.sub-menu-grid li {
    width: 30%;
    margin: 5px;
}

/* .rules-section h3 {
    color: #502abb;
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 1rem;
    padding-left: 12px;
    border-left: 4px solid #502abb;
} */

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(147, 51, 234, 0.2);
    font-weight: 300;
    line-height: 1.6;
    transition: background-color 0.3s ease;
    padding-left: 1rem;
}

.rules-list li:hover {
    background-color: rgba(147, 51, 234, 0.1);
    border-radius: 4px;
}

.rules-list li:last-child {
    border-bottom: none;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-nav a:hover {
    background: rgba(147, 51, 234, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-link.active {
    background: rgba(147, 51, 234, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Applications */
.applicaitons-container {
    padding-top: 20vh;
}

/* Character Dashboard */
.dashboard-container {
    padding-top: 7rem;
    padding-bottom: 2rem;
}
.character-slot {
    background: rgba(64, 68, 75, 0.3);
    border-radius: 8px;
    transition: transform 0.2s;
}

.character-slot:hover {
    transform: translateY(-2px);
}

.character-header {
    background: rgba(64, 68, 75, 0.5);
    border-radius: 8px 8px 0 0;
}

/* Table of Contents */
.toc-link {
    color: #E9D5FF;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-link:hover {
    color: #A855F7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid {
        gap: 1rem;
    }

    .text-4xl {
        font-size: 1.875rem;
    }

    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .mobile-menu {
        width: 80%;
        max-width: 300px;
    }

    .rules-container {
        flex-direction: column;
    }

    .rules-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(147, 51, 234, 0.2);
        padding: 1rem;
    }

    .rules-content {
        margin-left: 0;
        padding: 1rem;
    }

    .rules-section {
        padding: 1rem;
    }

    .rules-notice {
        padding: 1rem;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar-nav a {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}


/* Footer General Styling */
#footer {
    background: #151515;
    color: #fff;
    font-size: 14px;
    padding: 40px 0;
}

#footer .footer-top {
    padding-bottom: 30px;
}

#footer .footer-top .footer-contact h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

#footer .footer-top .footer-contact p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
    color: #ddd;
}

#footer .footer-top .footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

#footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-top .footer-links ul li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

#footer .footer-top .footer-links ul li i {
    font-size: 18px;
    margin-right: 5px;
    color: #502abb;
}

#footer .footer-top .footer-links ul li a {
    color: #ddd;
    transition: 0.3s;
    text-decoration: none;
}

#footer .footer-top .footer-links ul li a:hover {
    color: #502abb;
}

/* Social Media Links */
#footer .social-links {
    display: flex;
    gap: 10px;
}

#footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
    font-size: 18px;
}

#footer .social-links a:hover {
    background: #502abb;
}

#footer .copyright {
    text-align: center;
    font-size: 14px;
    padding-top: 10px;
    color: #aaa;
}
.loader-container {
    animation: loaderFadeOut 0.25s ease 1s forwards;
}

@keyframes loaderFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
