/* Pacman Index Page Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #f7d51d 0%, #e0c31c 100%);
    --dark-bg: #0f0f23;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    background-image: url('/images/ballman-bg.svg');
    background-size: 200px 200px;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
}

.ballman-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.game-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) translateX(-5px);
}

.game-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Content */
.game-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: rgba(247, 213, 29, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(247, 213, 29, 0.2);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #f7d51d;
}

.game-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.primary-button {
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: var(--primary-gradient);
    color: #000;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 213, 29, 0.4);
}

/* Game Rules */
.game-rules {
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.game-rules h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.game-rules ul {
    list-style: none;
    padding: 0;
}

.game-rules li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.game-rules li::before {
    content: '👻';
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

/* Mode Selection */
.mode-selection {
    margin-bottom: 20px;
}

.mode-selection h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.mode-cards {
    display: flex;
    justify-content: center;
    /* Center since it is single player only */
    gap: 30px;
    margin-bottom: 20px;
}

.mode-card {
    margin: 0;
    max-width: 500px;
    width: 100%;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .ballman-container {
        padding: 15px;
    }

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

    .back-button {
        position: static;
        transform: none;
        margin-bottom: 20px;
        width: 100%;
        justify-content: center;

    }

    .game-card {
        padding: 25px;
    }

    .card-icon {
        font-size: 3rem;
    }
}