:root {
    --apple-blue: #007AFF;
    --apple-green: #34C759;
    --apple-indigo: #5856D6;
    --apple-gray: #8E8E93;
    --background-color: #F2F2F7;
    --card-background: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #8E8E93;
    --border-radius: 12px;
    --spacing: 20px;
    --yellow-accent: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.5;
}

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

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--apple-blue);
}

header p {
    font-size: 1.25rem;
    text-align: center;
    margin-top: 1rem;
    color: var(--apple-gray);
}

/* Game Container */
.game-container {
    width: 100%;
    max-width: 64rem;
    margin: 2rem auto;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.game-frame {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Play Other Games Section */
.other-games-section {
    margin: 4rem auto;
    max-width: 64rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    color: #5856D6;
    margin-bottom: 2rem;
}

.game-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.game-icon {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
}

.game-icon:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.icon-container {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-icon .name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.game-icon .description {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.25;
}


/* Game Info Section */
.section {
    max-width: 64rem;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--apple-indigo);
    margin-bottom: 1rem;
}

.section p {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* How to Play Section */
.how-to-play {
    background-color: white;
}

.how-to-play h2 {
    color: var(--apple-indigo);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.how-to-play p {
    color: #4b5563;
    line-height: 1.8;
}

/* FAQ Section */
.faq {
    background-color: white;
}

.faq-header h2 {
    color: var(--apple-indigo);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: var(--apple-green);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #4b5563;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer p {
    text-align: center;
    color: var(--apple-gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .game-icons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 1rem;
    }
}

/* Homepage Styles */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.game-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.game-card .title {
    padding: 15px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.header {
    text-align: center;
    margin: 40px 0;
}

.header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 15px;
}

.header p {
    color: #666;
    font-size: 18px;
} 