/* Selection Color */
::selection {
    background: #ff6b6b;
    color: white;
}

::-moz-selection {
    background: #ff6b6b;
    color: white;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B0000, #B22222, #DC143C);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 3px solid var(--accent-color);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-warning {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Roboto Mono', monospace;
}

.modal-text {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
    font-family: 'Roboto Mono', monospace;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.modal-btn.primary {
    background: var(--accent-color);
    color: white;
}

.modal-btn.secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-btn.primary:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.modal-btn.secondary:hover {
    background: var(--accent-color);
    color: white;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 6px;
    border: 2px solid var(--secondary-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--secondary-color);
}

:root {
    --primary-color: #f8f9fa;
    --secondary-color: #e9ecef;
    --accent-color: #8B0000;
    --text-color: #333333;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #2d3748;
    --secondary-color: #4a5568;
    --accent-color: #B22222;
    --text-color: #e2e8f0;
    --bg-color: #1a202c;
    --card-bg: #2d3748;
}

[data-theme="red"] {
    --primary-color: #702021;
    --secondary-color: #8B2A2B;
    --accent-color: #C41E3A;
    --text-color: #f7fafc;
    --bg-color: #4a1a1a;
    --card-bg: #702021;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 0.5s ease 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--accent-color);
    font-family: 'Roboto Mono', monospace;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Roboto Mono', monospace;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-link.map-link {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.nav-link.telegram-link {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
}

.nav-link.support-link {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
}

.nav-link.donate-link {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.nav-link.map-link:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    border: 2px solid #4CAF50;
}

.nav-link.telegram-link:hover {
    background: linear-gradient(135deg, #006699, #0088cc);
    border: 2px solid #0088cc;
}

.nav-link.support-link:hover {
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    border: 2px solid #FFA500;
}

.nav-link.donate-link:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    border: 2px solid #FFD700;
}

.theme-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    border: 2px solid transparent;
}

.theme-btn:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 2px solid var(--accent-color);
}

.start-server-btn {
    background: linear-gradient(135deg, #8B0000, #B22222);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    border: 2px solid transparent;
}

.start-server-btn:hover {
    background: linear-gradient(135deg, #B22222, #DC143C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 2px solid var(--accent-color);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        #8B0000 0%,
        #B22222 25%,
        #DC143C 50%,
        #FF6B6B 75%,
        #8B0000 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    color: white;
    position: relative;
    overflow: hidden;
    font-family: 'Roboto Mono', monospace;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 0, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 20, 60, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(178, 34, 34, 0.2) 0%, transparent 50%);
    animation: float 16s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ffffff, #ffe6e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 20px;
    opacity: 0.95;
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
}

/* Typing Animation */
.typing-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.typing-text {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid white;
    animation: blink 0.7s infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes blink {
    0%, 100% { border-color: white; }
    50% { border-color: transparent; }
}

/* Join Section */
.join-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-color);
    font-family: 'Roboto Mono', monospace;
}

.subtitle {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent-color);
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
}

.ip-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Roboto Mono', monospace;
    border: 2px solid transparent;
    margin-bottom: 15px;
}

.ip-btn:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 2px solid var(--accent-color);
}

.ip-btn:active {
    transform: translateY(-1px);
}

.ip-btn.copied {
    background: #4CAF50;
    color: white;
}

.version-info {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1rem;
    font-family: 'Roboto Mono', monospace;
    margin-top: 10px;
}

/* Content Section */
.content {
    padding: 80px 0;
    font-family: 'Roboto Mono', monospace;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 900px;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
    font-family: 'Roboto Mono', monospace;
    border: 2px solid #8B8B8B;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}

.card h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
}

.card p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background: var(--bg-color);
    text-align: center;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: 'Roboto Mono', monospace;
    text-align: center;
}

.map-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 4px solid #8B0000;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.map-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.map-description {
    color: var(--text-color);
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
    font-family: 'Roboto Mono', monospace;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid var(--accent-color);
    font-family: 'Roboto Mono', monospace;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-controls {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.copyright {
    opacity: 0.8;
    margin-top: 20px;
    font-size: 0.9rem;
    font-family: 'Roboto Mono', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-controls {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .typing-text {
        font-size: 1.5rem;
        white-space: normal;
        border-right: none;
    }

    .typing-container {
        min-height: 80px;
    }

    .subtitle {
        font-size: 2rem;
    }

    .ip-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .card {
        padding: 30px 20px;
        margin: 20px;
    }

    .map-title {
        font-size: 2rem;
    }

    .map-image {
        border-width: 3px;
    }

    .footer-controls {
        flex-direction: column;
        gap: 20px;
    }

    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}

a {
    color: #FD7B7C;
}
