/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --header-bg: #fff;
    --card-bg: #fff;
    --shadow-color: rgba(0,0,0,0.1);
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --border-color: rgba(255,255,255,0.1);
    --heading-color: #2c3e50;
    --card-text: #333;
    --footer-bg: #2c3e50;
    --footer-text: #fff;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f5f5f5;
    --header-bg: #2c2c2c;
    --card-bg: #2c2c2c;
    --shadow-color: rgba(0,0,0,0.3);
    --primary-color: #f5f5f5;
    --accent-color: #3498db;
    --border-color: rgba(255,255,255,0.1);
    --heading-color: #f5f5f5;
    --card-text: #f5f5f5;
    --footer-bg: #2c2c2c;
    --footer-text: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    color: var(--text-color);
    background-color: #f5f5f5;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header and Navigation */
header {
    background-color: #fff;
    background-color: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    -webkit-text-decoration: none;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    -webkit-text-decoration: none;
    text-decoration: none;
    color: inherit;
}

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

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    -webkit-text-decoration: none;
    text-decoration: none;
    color: #2c3e50;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #3498db;
    color: var(--accent-color);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #6c5ce7;
    padding: 1rem 2rem;
    border-radius: 5px;
    -webkit-text-decoration: none;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    color: var(--heading-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 2rem;
    gap: 2rem;
}

.feature-card {
    background: #fff;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    color: var(--card-text);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #6c5ce7;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2c3e50;
    color: var(--heading-color);
    margin: 1rem 0;
}

/* Creatures Section */
.creatures {
    padding: 4rem 0;
}

.creatures h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    color: var(--heading-color);
}

.creature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
    gap: 2rem;
}

.creature-card {
    background: #fff;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    color: var(--card-text);
}

.creature-card img {
    width: 150px;
    height: 150px;
    -o-object-fit: contain;
       object-fit: contain;
    margin-bottom: 1rem;
}

.creature-card h3 {
    color: #2c3e50;
    color: var(--heading-color);
    margin: 1rem 0;
}

/* How to Play Section */
.how-to-play {
    padding: 4rem 0;
}

.how-to-play h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    color: var(--heading-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
    gap: 2rem;
}

.step {
    background: #fff;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease;
    color: #333;
    color: var(--card-text);
}

.step-number {
    background: #6c5ce7;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    color: #2c3e50;
    color: var(--heading-color);
    margin: 1rem 0;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 80px auto 0 auto;
    padding: 2rem;
    background: #fff;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    color: var(--card-text);
}

.legal-content h1 {
    color: #2c3e50;
    color: var(--heading-color);
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.legal-content h2 {
    color: #2c3e50;
    color: var(--heading-color);
    margin: 2rem 0 1rem;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.legal-content a {
    color: #3498db;
    color: var(--accent-color);
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #2c3e50;
    background: var(--footer-bg);
    color: #fff;
    color: var(--footer-text);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 2rem;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: #fff;
    color: var(--footer-text);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #fff;
    color: var(--footer-text);
    -webkit-text-decoration: none;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    color: var(--footer-text);
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 2001;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        background: var(--header-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease, background-color 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        box-shadow: -2px 0 5px var(--shadow-color);
        z-index: 2000;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li a {
        color: #2c3e50;
        color: var(--primary-color);
    }

    main {
        margin-top: 60px;
    }

    .legal-content {
        padding: 1rem;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }

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

    .feature-grid,
    .creature-grid,
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.creature-card,
.step {
    animation: fadeIn 0.5s ease-out forwards;
} 