:root {
    --palworld-primary: #2e7d32; /* Зеленый лес */
    --palworld-secondary: #0288d1; /* Голубой океан */
    --palworld-accent: #ffca28; /* Желтый для акцентов */
    --palworld-bg: #e0f2e9; /* Светлый фон */
    --palworld-dark: #1b5e20; /* Темно-зеленый */
    --palworld-text: #ffffff; /* Белый текст */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--palworld-bg);
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--palworld-primary), var(--palworld-secondary));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand, .nav-link {
    color: var(--palworld-text) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--palworld-accent) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 56px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.overlay-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1; /* Контент поверх видео */
}

.hero-section h1 {
    font-size: 4rem;
    color: var(--palworld-text);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.5rem;
    color: var(--palworld-accent);
}

/* Flex Container */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Card Styles */
.card-shadow {
    background: var(--palworld-text);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 300px;
    max-width: 350px;
}

.card-shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-body h3 {
    color: var(--palworld-primary);
    font-size: 1.4rem;
}

.card-body p {
    color: #666;
}

/* Buttons */
.btn-join, .btn-community {
    background-color: var(--palworld-secondary);
    color: var(--palworld-text);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2; /* Кнопка поверх видео */
}

.btn-join:hover, .btn-community:hover {
    background-color: var(--palworld-accent);
    color: #333;
    transform: scale(1.05);
}

.btn-copy {
    width: 100%;
    max-width: 350px;
    font-size: 1.2rem;
}

/* Copy Message */
#copy-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    background-color: var(--palworld-accent);
    color: #333;
    border-radius: 10px;
    display: none;
    z-index: 1000;
}

/* Countdown */
.countdown h3 {
    color: var(--palworld-primary);
}

#wipe-timer {
    color: var(--palworld-secondary);
    font-weight: bold;
}

/* Community Section */
.bg-community {
    background: linear-gradient(135deg, var(--palworld-primary), var(--palworld-dark));
    color: var(--palworld-text);
}

/* Footer */
footer {
    background-color: var(--palworld-dark);
    color: var(--palworld-text);
    padding: 20px 0;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .card-shadow {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .btn-join, .btn-community {
        font-size: 1rem;
        padding: 10px 20px;
    }
}