@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2C3E50;
    --light: #F7F9FC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2 {
    text-align: center;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 250px 0 150px;
    position: relative;
    background: url(images/1.webp) center/cover;
    text-align: center;
    color: white;
    background-color: var(--dark);
    min-height: 100vh;
}

/* Adding dark overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Adjust opacity here */
    z-index: 1;
}

/* Ensure content stays above overlay */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.story-flex {
    display: flex;
}

/* Gameplay Section */
.gameplay {
    padding: 80px 0;
    background: var(--dark);
    color: white;
}

.gameplay-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Story Section */
.story {
    padding: 80px 0;
    background: var(--light);
}

/* Characters Section */
.characters {
    padding: 80px 0;
    background: white;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.character-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 3s ease-in-out infinite;
}

.character-card:hover .character-icon {
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
}

.footer-links a {
    
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

   /* Download Button Styles */
   .download-btn {
    background: var(--accent);
    color: var(--dark);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Feature Icon Animations */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: rotate 15s linear infinite; /* Увеличено с 8s до 20s */
}

/* При наведении иконка останавливается */
.feature-card:hover .feature-icon {
    animation-play-state: paused;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card {
    text-align: center;
}

/* Gameplay List Styles */
.gameplay-list {
    margin-top: 20px;
    padding-left: 20px;
}

.gameplay-list li {
    margin-bottom: 10px;
    color: var(--accent);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .gameplay-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 36px;
    }

    .story-flex {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 374px) {
    .nav-container .download-btn {
        display: none;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner p {
    margin: 0;
    padding-right: 20px;
}

.accept-cookies {
    background: var(--accent);
    color: var(--dark);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accept-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}