/* Apple-inspired Color Palette */
:root {
    --primary-color: #0071e3; /* Apple Blue */
    --primary-dark: #0051a5;
    --secondary-color: #34c759; /* Apple Green */
    --text-color: #1d1d1f; /* Apple Dark Gray */
    --text-light: #86868b; /* Apple Light Gray */
    --background-color: #ffffff; /* White */
    --background-alt: #f5f5f7; /* Apple Light Background */
    --accent-color: #ff3b30; /* Apple Red */
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header Styles */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 20px;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    color: var(--primary-color);
}

/* Game Section */
.game-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
    text-align: center;
}

.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 0;
    padding-bottom: 56.25%; /* For 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.game-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* How to Play Section */
.how-to-play {
    padding: 5rem 0;
    background-color: var(--background-color);
    text-align: center;
}

.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.instruction-step {
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--background-alt);
    transition: transform 0.3s ease;
}

.instruction-step:hover {
    transform: translateY(-5px);
}

.instruction-step h3 {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.75rem;
}

footer a {
    color: var(--secondary-color);
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 0.75rem 2rem;
    }
    
    .game-section,
    .about-section,
    .features-section,
    .how-to-play {
        padding: 3rem 0;
    }
    
    .game-wrapper {
        padding-bottom: 75%; /* Taller for mobile */
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        padding: 1rem 20px;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .features-grid,
    .instructions {
        grid-template-columns: 1fr;
    }
} 