/* Apple-inspired color palette */
:root {
    --primary: #007aff; /* Apple blue */
    --secondary: #34c759; /* Apple green */
    --dark: #1d1d1f; /* Apple dark gray */
    --light: #f5f5f7; /* Apple light gray */
    --white: #ffffff;
    --accent: #ff2d55; /* Apple pink */
    --table-header: #e6e6eb; /* Light gray for table headers */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(29, 29, 31, 0.9), rgba(29, 29, 31, 0.7)), url('header-bg.jpg');
    background-size: cover;
    background-position: center;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: #a1a1a6;
    max-width: 700px;
    margin: 0 auto;
}

/* Game Section */
.game-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.game-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.about-section {
    padding: 3rem 0;
    background-color: var(--light);
    text-align: center;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #424245;
}

/* Controls Table Section */
.controls-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.controls-table {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e6e6eb;
}

th {
    background-color: var(--table-header);
    font-weight: 600;
    color: var(--dark);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f8f8fa;
}

/* How to Play Section */
.how-to-play {
    padding: 3rem 0;
    background-color: var(--white);
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.control-item {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.control-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Features Section */
.features {
    padding: 3rem 0;
    background-color: var(--light);
}

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

.feature {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

/* Team Section */
.team-section {
    padding: 3rem 0;
    background-color: var(--white);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: var(--light);
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    color: var(--accent);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: #a1a1a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .controls, .feature-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        padding-top: 75%; /* Adjusting for mobile */
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .controls-table {
        margin: 1rem 0;
    }
    
    th, td {
        padding: 0.6rem;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0063d1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

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

.feature, .control-item, .team-member {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.feature:nth-child(1), .control-item:nth-child(1), .team-member:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2), .control-item:nth-child(2), .team-member:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3), .control-item:nth-child(3), .team-member:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; } 
