/* GAME-SPECIFIC STYLES: flappy-bird.css */

.game-wrapper {
    width: 100%;
    /* Increased max-width to allow space for sidebar */
    max-width: 900px; 
    margin: 0 auto;
    padding: 15px;
    text-align: center;
}

.game-wrapper h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.game-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* === NEW LAYOUT: FLEXBOX === */
.content-row {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligns top */
    gap: 40px;
    flex-wrap: wrap; /* Wraps on mobile */
}

/* GAME COLUMN */
#game-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto; /* Center it if wrapped */
    cursor: pointer;
    flex: 0 0 auto; /* Don't shrink or grow unexpectedly */
}

#gameCanvas {
    background-color: #70c5ce;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    width: 100%;
    height: auto;
    display: block;
}

#score-display {
    font-size: 24px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    display: inline-block;
}

/* === PROMO CARD (RIGHT COLUMN) === */
.app-promo-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px; /* Sidebar width */
    text-align: left;
    margin: 0 auto; /* Centers it on mobile */
}

.promo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-promo-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 0;
}

.app-promo-card p {
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.feature-list li {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--success-color);
}

.play-store-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #34a853; /* Google Play Green */
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    text-align: center;
}

.play-store-btn:hover {
    background-color: #2c8c45;
    transform: translateY(-2px);
}

/* === MODAL STYLES === */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    z-index: 100;
    text-align: center;
    color: white;
}

.modal-content {
    background: white;
    color: var(--text-color);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    width: 90%;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-content p {
    margin-bottom: 25px;
    font-size: 18px;
}

.restart-btn {
    display: block;
    margin: 0 auto;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.restart-btn:hover {
    background-color: #217a6f;
    transform: translateY(-2px);
}

/* MOBILE ADJUSTMENT */
@media (max-width: 850px) {
    .content-row {
        flex-direction: column;
        align-items: center;
    }
    
    .app-promo-card {
        max-width: 400px;
        margin-top: 20px;
    }
}