/* Homepage specific styles extracted from index.php */

.hero {
    text-align: center;
    padding: 40px 20px;
    background: #ffcc00;
    border-bottom: 5px solid #ff4500;
    margin-bottom: 30px;
}

.hero h1 {
    font-family: 'Lobster', cursive;
    font-size: 3.5rem;
    color: #ff4500;
    margin: 0;
    text-shadow: 2px 2px #fff;
}

.hero p {
    font-size: 1.2rem;
    color: #333;
    max-width: 600px;
    margin: 10px auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
    /* justify-items: center; Removed to allow cards to fill the grid cell */
}

/* Override or extend game-card for homepage */
.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
    /* Reset style.css width if needed, or let grid handle it */
    width: 100%; /* Fill the grid cell */
    height: 100%; /* Fill the grid cell height */
    padding: 0; /* Reset inherited padding */
    box-sizing: border-box; /* Include padding/border in width */
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: #ff4500;
}

.card-header {
    background: #ff6347;
    padding: 20px;
    text-align: center;
}

.card-header h2 {
    font-family: 'Lobster', cursive;
    color: white;
    margin: 0;
    font-size: 1.8rem; /* Slightly smaller to fit */
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-icon {
    font-size: 4rem; /* Adjusted for tighter layout */
    margin-bottom: 15px;
}

.card-desc {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.play-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: background 0.2s;
    box-shadow: 0 4px 0 #2E7D32;
}

.play-btn:hover {
    background: #45a049;
}

.settings-link {
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.settings-link:hover {
    background: #eee;
    color: #333;
}

.footer-info {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #777;
    font-size: 0.9rem;
}
