:root {
    --primary-color: white;
    --text-color: #333;
    --background-color: #f9f9f9;
    --card-background: #fff;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 20px;
}

/* ---------- LOGO ---------- */
.logo-container {
    text-align: center;
    margin: 20px 0;
}

.logo-image {
    height: 180px;
    width: auto;
}

/* ---------- PHONE NUMBER + CONTACT OWNER ---------- */
.phone-wrapper {
    text-align: center;
    margin: 20px 0 10px;
}

.big-phone {
    font-size: 3rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    display: inline-block;
}

/* Tablet */
@media (max-width: 768px) {
    .big-phone {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .big-phone {
        font-size: 1.8rem;
    }
}

.big-phone:hover {
    opacity: 0.9;
}

.contact-owner {
    display: block;
    font-size: 1.1rem;
    color: #555;
    margin-top: 5px;
    animation: gentlePulse 2s infinite ease-in-out;
}

@keyframes gentlePulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* ---------- FACEBOOK LINKS (MAIN & BACKUP) – UNIFIED BUTTON ---------- */
.facebook-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.facebook-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 10px 25px;
    border-radius: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    justify-content: center;
}

.fb-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.fb-chat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1877f2;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: softPulse 2s infinite ease-in-out;
    white-space: nowrap;
}

.fb-chat-link i {
    font-size: 1.2rem;
}

.fb-chat-link:hover {
    background: #0e5fd7;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    animation: none;
}

@keyframes softPulse {
    0% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.5); }
    50% { box-shadow: 0 0 15px 5px rgba(24, 119, 242, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0); }
}

/* Mobile adjustments for Facebook */
@media (max-width: 600px) {
    .facebook-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .fb-chat-link {
        white-space: normal;
        justify-content: center;
    }
}

/* ---------- CASHOUT RULE IMAGE ---------- */
.cashout-rule {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.cashout-image {
    width: auto;
    max-width: 80%;          /* keeps it a bit smaller on desktop */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* On mobile, make it full width */
@media (max-width: 600px) {
    .cashout-image {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .cashout-image {
        max-width: 95%;
    }
}

/* ---------- GAME DOWNLOAD HEADER ---------- */
header {
    text-align: center;
    margin: 30px 0 20px;
}

h1 {
    color: var(--primary-color);
}

/* ---------- SEARCH BAR ---------- */
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#gameSearch {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    border: 3px solid #007BFF;
    border-radius: 10px;
    font-size: 20px;
    color: var(--text-color);
    display: block;
    margin: 0 auto;
}

/* ---------- GAME GRID ---------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 30px;
    list-style: none;
}

.game-card {
    background: #e8f5e9;
    box-shadow: 0 4px 8px var(--card-shadow);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    transform: translateZ(0);
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.05) translateZ(50px);
    background: #c8e6c9;
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

.game-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0 5px;
    color: #333;
}

.game-rating {
    color: #ffc107;
    font-size: 1rem;
}

.game-rating span {
    color: #666;
    margin-left: 5px;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
    display: none;
}

/* ---------- HIT COUNTER ---------- */
.counter {
    text-align: center;
    margin: 30px 0 20px;
}

/* ---------- FOOTER SOCIAL LINKS ---------- */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
    border-top: 2px solid #ccc;
    margin-top: 30px;
}

.footer-social a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #007BFF;
}

.footer-social i {
    font-size: 1.5rem;
}