@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Rajdhani:wght@500;700&display=swap');
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
    display: block;
    overflow-y: auto;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 40%, #ffd70033 0%, transparent 60%),
                radial-gradient(circle at 80% 60%, #5865F233 0%, transparent 60%),
                radial-gradient(circle at 50% 80%, #ff3c3c22 0%, transparent 70%);
    z-index: 0;
    animation: bgmove 12s linear infinite alternate;
}
@keyframes bgmove {
    0% {background-position: 0% 0%, 100% 100%, 50% 100%;}
    100% {background-position: 100% 100%, 0% 0%, 50% 0%;}
}
header {
    background: transparent;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    background: rgba(0,0,0,0.5);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    position: relative;
    min-height: 64px;
}
.header-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.header-logo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s, transform 0.2s;
}
.header-logo:hover img {
    box-shadow: 0 4px 16px #ffd700, 0 2px 8px rgba(0,0,0,0.3);
    transform: scale(1.08) rotate(-8deg);
}
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
nav ul li {
    margin: 0 12px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Rajdhani', 'Orbitron', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 2px;
    padding: 10px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    position: relative;
}
nav ul li a:hover {
    background: #ffd700;
    color: #222;
    transform: scale(1.08);
}
nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: 0;
}
nav ul li a:hover::after {
    width: 100%;
}
header h1 {
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    color: #ffd700;
    text-shadow: 2px 2px 12px #222;
    font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo {
    width: 220px;
    height: 220px;
    background: none;
    margin: 32px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 400px;
    padding-bottom: 80px; /* Prevent content from being hidden behind the fixed footer */
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px #000;
    font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
p {
    font-size: 1.08rem;
    max-width: 600px;
    text-align: center;
    text-shadow: 1px 1px 6px #000;
    font-family: 'Rajdhani', 'Orbitron', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
}
.info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    background: rgba(30,30,30,0.7);
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.5);
    padding: 32px 24px;
    margin: 24px auto;
    max-width: 700px;
    width: 90%;
    color: #fff;
    font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
    backdrop-filter: blur(6px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.08);
}
.info:hover {
    box-shadow: 0 4px 32px #ffd700, 0 2px 24px rgba(0,0,0,0.5);
    transform: scale(1.02);
    transition: box-shadow 0.2s, transform 0.2s;
}
.info h2, .info p {
    color: #ffd700;
    text-shadow: 2px 2px 12px #222;
}
.links {
    background: rgba(0,0,0,0.6);
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    text-align: center;
    margin-bottom: 32px;
}
.links h2 {
    margin-bottom: 16px;
}
.links a {
    display: inline-block;
    margin: 8px 16px;
    padding: 10px 24px;
    border-radius: 8px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.links a.facebook {
    background: #1877F3;
}
.links a:hover {
    background: #444;
}
footer {
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    text-align: center; /* Center the text */
    padding: 16px 0; /* Adjust padding for better spacing */
    position: fixed;
    bottom: 0;
    left: 0;
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    font-size: 1.2rem; /* Increase font size for better visibility */
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
    border-radius: 18px 18px 0 0;
    z-index: 20;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-social a {
    display: inline-block;
    transition: transform 0.2s;
}
.footer-social a:hover {
    transform: scale(1.2) rotate(-8deg);
}
.info-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    z-index: 100;
    padding: 40px 20px;
    padding-bottom: 80px; /* Prevent content from being hidden behind the fixed footer */
    overflow-y: auto;
    animation: fadeIn 0.5s;
    opacity: 0;
    transition: opacity 0.4s;
    position: relative;
}
.info-screen main {
    background: rgba(30,30,30,0.7);
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.5);
    padding: 32px 24px;
    margin: 24px auto;
    max-width: 700px;
    width: 90%;
    color: #ffd700;
    font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
    backdrop-filter: blur(6px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.08);
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Enhanced Scrollbar Styling for Rules Page */
#rules-screen main::-webkit-scrollbar {
    width: 12px;
}

#rules-screen main::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.1), rgba(88, 101, 242, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

#rules-screen main::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffd700, #ff6b35, #5865F2);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

#rules-screen main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffea00, #ff8c42, #7289da);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

#rules-screen main::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #fff700, #ff9f59, #8ea1e1);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.5);
}

/* Firefox scrollbar styling */
#rules-screen main {
    scrollbar-width: thin;
    scrollbar-color: #ffd700 rgba(255, 215, 0, 0.1);
}

.skip-link {
    display: none; /* Hides the skip link */
}
#rules-screen main::-webkit-scrollbar-track:hover {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.15), rgba(88, 101, 242, 0.15));
    box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.2);
}

/* Custom scrollbar corner styling */
#rules-screen main::-webkit-scrollbar-corner {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 0 0 16px 0;
}

/* Animated scrollbar progress indicator */
#rules-screen main {
    position: relative;
}

.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #5865F2, #ff6b35);
    border-radius: 0 0 16px 0;
    transition: width 0.1s ease;
    z-index: 10;
    width: 0%;
}

/* Enhanced rules content container for better scrolling experience */
#rules-screen .rules-content {
    padding-right: 8px;
    scroll-behavior: smooth;
}

/* Additional scrollbar enhancements */
#rules-screen main:hover::-webkit-scrollbar-thumb {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6), 0 0 20px rgba(88, 101, 242, 0.3);
    }
}
.info-screen main:hover {
    box-shadow: 0 4px 32px #ffd700, 0 2px 24px rgba(0,0,0,0.5);
    transform: scale(1.02);
    transition: box-shadow 0.2s, transform 0.2s;
}

.rules-content {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    text-align: left; /* Align text to the left */
    padding: 20px; /* Add padding for better spacing */
    line-height: 1.5; /* Improve readability */
}

.rules-content h1,
.rules-content h2,
.rules-content h3 {
    color: #ffd700;
    text-shadow: 2px 2px 12px #222;
    overflow-wrap: break-word;
}

.rules-content ul {
    padding-left: 20px;
    margin: 0;
}

.rules-content li {
    margin-bottom: 8px;
    overflow-wrap: break-word;
}

.rules-content p {
    margin-bottom: 16px;
    overflow-wrap: break-word;
}

.rules-content hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}
.info-screen main h2, .info-screen main p {
    color: #ffd700;
    text-shadow: 2px 2px 12px #222;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.info-screen h2 {
    margin-bottom: 18px;
    color: #ffd700;
    text-shadow: 2px 2px 12px #222;
    font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.info-screen p {
    max-width: 600px;
    text-align: center;
    font-family: 'Rajdhani', 'Orbitron', 'Segoe UI', Arial, sans-serif;
    font-size: 1.08rem;
    letter-spacing: 1px;
}
.info-screen .gta-character {
    position: absolute;
    bottom: 24px;
    right: 32px;
    width: 120px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    opacity: 0.92;
    filter: drop-shadow(0 4px 16px #000a);
}
.mtrp-title {
    text-align: center;
    margin: 32px 0 0 0;
    font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', Arial, sans-serif;
}
.mtrp-main {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    background: linear-gradient(270deg, #ffd700, #ff3c3c, #5865F2, #00ffea, #ffd700);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: mtrp-gradient 3s ease-in-out infinite;
    text-shadow: 0 2px 24px #222, 0 0px 32px #ffd700;
}
.mtrp-sub {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-top: 10px;
    color: #fff;
    text-shadow: 0 2px 12px #222, 0 0px 24px #5865F2;
    opacity: 0.85;
    font-family: 'Rajdhani', 'Orbitron', 'Segoe UI', Arial, sans-serif;
}
@keyframes mtrp-gradient {
    0% {background-position:0% 50%}
    50% {background-position:100% 50%}
    100% {background-position:0% 50%}
}
.roleplay-sub {
    display: block;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-top: 8px;
    background: linear-gradient(90deg, #ffd700, #5865F2, #00ffea, #ff3c3c, #ffd700);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: mtrp-gradient-sub 2.5s linear infinite;
    text-shadow: 0 2px 12px #222, 0 0px 24px #5865F2;
}
@keyframes mtrp-gradient-sub {
    0% {background-position:0% 50%}
    50% {background-position:100% 50%}
    100% {background-position:0% 50%}
}
.menu-toggle {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    z-index: 30;
}
.menu-icon {
    width: 32px;
    height: 4px;
    background: #ffd700;
    border-radius: 2px;
    position: relative;
    display: block;
}
.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 32px;
    height: 4px;
    background: #ffd700;
    border-radius: 2px;
    transition: 0.3s;
}
.menu-icon::before {
    top: -10px;
}
.menu-icon::after {
    top: 10px;
}
.main-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 24px;
    background: rgba(0,0,0,0.95);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
    padding: 18px 0;
    min-width: 180px;
    z-index: 25;
}
.main-nav.open {
    display: block;
    animation: fadeIn 0.3s;
}
.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0 18px;
    list-style: none;
}
.main-nav ul li {
    margin: 10px 0;
}
.main-nav ul li a {
    color: #ffd700;
    font-family: 'Rajdhani', 'Orbitron', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-decoration: none;
    padding: 8px 0;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: block;
}
.main-nav ul li a:hover {
    background: #444;
    color: #fff;
    transform: scale(1.08);
}
@media (min-width: 700px) {
    .menu-toggle {
        display: none;
    }
    .main-nav {
        display: block !important;
        position: static;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: unset;
        animation: none;
    }
    .main-nav ul {
        flex-direction: row;
        align-items: center;
        padding: 0;
    }
    .main-nav ul li {
        margin: 0 12px;
    }
    .main-nav ul li a {
        color: #fff;
        background: none;
        font-size: 1.1rem;
        padding: 10px 8px;
    }
}
.fab-discord {
    position: fixed;
    bottom: 80px;
    right: 32px;
    background: #5865F2;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 100;
    transition: background 0.2s, transform 0.2s;
}
.fab-discord:hover {
    background: #ffd700;
    color: #222;
    transform: scale(1.1);
}
.fab-discord svg {
    width: 32px;
    height: 32px;
}
.mtrp-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.mtrp-title-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #fff;
    text-shadow: 0 0 24px #00f2ff, 0 2px 8px #000;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #00f2ff, #00c896, #3a8dff, #ffea00, #00f2ff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease-in-out infinite;
}
.mtrp-title-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 12px #00f2ff, 0 1px 4px #000;
    opacity: 0.85;
    font-family: 'Rajdhani', 'Orbitron', 'Segoe UI', Arial, sans-serif;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#howtojoin-screen main,
#howtojoin-screen main h2,
#howtojoin-screen main h3,
#howtojoin-screen main p,
#howtojoin-screen main ul,
#howtojoin-screen main li {
    color: #ffd700;
}
