/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #333;
}

/* Header styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

/* Main content styles */
main {
    padding: 100px 2rem 2rem;
    background: #f8f9fa;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: none;
    background: transparent;
    text-decoration: none;
    display: block;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.game-preview {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.game-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove overlay styles since we don't need them anymore */
.game-overlay,
.download-section,
.download-btn {
    display: none;
}

/* Footer styles */
footer {
    background-color: #020202;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #666;
}

.pagcor-logo {
    height: 60px;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0 1rem;
        font-size: 0.9rem;
    }

    main {
        padding: 120px 1rem 1rem;
    }

    .games-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .game-card {
        display: block;
    }

    .play-btn {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }

    .popup-content {
        max-width: 95%;
        margin: 10px;
    }

    .download-section {
        gap: 6px;
        padding: 10px 0 8px 0;
    }

    .download-btn {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.game-link:hover .game-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-link .play-btn {
    cursor: pointer;
    pointer-events: none;
}

/* Popup styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 250px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.popup-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.popup-content h3 {
    margin-top: 15px;
    color: #333;
}

.close-popup {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.close-popup:hover {
    color: #007bff;
}

.download-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 0 10px 0;
    background: #fff;
}

.download-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
    border: none;
}

.download-btn.ios {
    background: #007aff;
}
.download-btn.ios:hover {
    background: #005bb5;
}
.download-btn.android {
    background: #34a853;
}
.download-btn.android:hover {
    background: #257a3a;
}

.download-btn.desktop {
    background: #ff9800;
}
.download-btn.desktop:hover {
    background: #c66900;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 30px 0 10px 0;
}

.popup-buttons .download-btn {
    min-width: 100px;
    font-size: 1.05rem;
    padding: 12px 0;
}

@media (max-width: 768px) {
    .popup-buttons {
        gap: 10px;
        margin: 18px 0 8px 0;
    }
    .popup-buttons .download-btn {
        min-width: 80px;
        font-size: 0.95rem;
        padding: 10px 0;
    }
}

.btn-icon {
    height: 26px;
    width: 26px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Popup icon-only download styles */
.popup-buttons a {
    display: inline-block;
    margin: 0 18px;
    /* border-radius: 50%; */
    /* box-shadow: 0 0 0 4px #222; */
    /* background: #fff; */
    /* width: 120px; */
    /* height: 120px; */
    /* overflow: hidden; */
}
.popup-buttons a:hover {
    transform: scale(1.08);
    box-shadow: none;
}
.popup-buttons .btn-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    /* border-radius: 50%; */
    background: transparent;
    display: block;
    padding: 0;
}
/* Hide label text if any */
.popup-buttons a span, .popup-buttons a label {
    display: none !important;
} 