
/* style.css (Modified and Optimized for Mobile) */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6; /* Improved readability */
}

/* Basic Responsive Container */
.container {
    width: 95%; /* Take up most of the screen width on small devices */
    max-width: 960px; /* But don't get too wide on large screens */
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Include padding in width calculation */
}

header, footer {
    background-color: #ff8c00; /* Orange */
    color: white;
    text-align: center;
    padding: 1em 0;
}

/* Make header logo responsive */
header .logo {
    max-width: 100px;  /* Adjust as needed */
    height: auto;
    display: block;
    margin: 0 auto 10px; /* Center the logo */
}


nav {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: center; /* Center navigation links */
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block; /* Make links block-level for better spacing */
    margin: 5px; /* Add spacing between links */
}

nav a:hover {
    background-color: #ddd;
}

/* Product Images - Stack on smaller screens */
.product-images {
    display: flex;
    flex-direction: column; /* Stack images vertically */
    align-items: center;
    margin-bottom: 20px;
}

.product-images img {
    max-width: 100%;  /* Responsive images */
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 10px; /* Spacing between images */
}

/* Video Container - Responsive */
.video-container {
    justify-self: center;
    position: relative;
    padding-bottom: 56.25%;
    height: 0px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 20px;
    width: 75%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.key-features {
    list-style: disc;
    padding-left: 20px;
}

.key-features li {
    margin-bottom: 5px;
}

a {
    color: #0b001e;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

.download-link {
    background-color: #ff8c00;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.download-link:hover {
    background-color: #e67300;
}

.buy-button {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
}

.buy-button:hover {
    background-color: #3e8e41;
}

.concerto-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.col-md-4 {
    margin: 0px 2px;
    border-radius: 5px;
    background: #9f9f9f11;
}

/* Popup styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%; /* Popup width on smaller screens */
}

.close-button {
    background-color: #ccc;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.toolbar {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: right;
}

.toolbar button {
    background-color: #555;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.toolbar button:hover {
    background-color: #777;
}
.news-widget {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
}

.news-widget h3 {
    margin-top: 0;
}

.latest-news-container {}

.latest-news-desktop {
    display: none; /* Mobile first: hide desktop layout */
}

.latest-news-desktop .news-item {
    display: inline-block;
    width: 30%;
    margin-right: 10px;
    vertical-align: top;
}

.latest-news-mobile {
    list-style: none;
    padding: 0;
    display: block; /* Mobile first: show mobile layout */
}

.latest-news-mobile li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.latest-news-mobile li:last-child {
    border-bottom: none;
}

/* Tablets and up (>= 768px) */
@media (min-width: 768px) {
    .container {
        width: 80%;
    }

    .product-images {
        flex-direction: row;
        justify-content: space-around;
    }

    .product-images img {
        max-width: 45%;
    }

    /* Desktop layout for news */
    .latest-news-desktop {
        display: block; /* show desktop layout */
    }

    .latest-news-mobile {
        display: none; /* hide mobile layout */
    }
}

/* Large desktops (>= 992px) */
@media (min-width: 992px) {
    .product-images img {
        max-width: 30%;
    }
}
/* Floating WhatsApp button styles */
.whatsapp-button-container {
    position: fixed;
    z-index: 999; /* Ensure it's on top of other elements */
}

.whatsapp-button-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.whatsapp-button-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.whatsapp-button-container.top-right {
    top: 20px;
    right: 20px;
}

.whatsapp-button-container.top-left {
    top: 20px;
    left: 20px;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366; /* WhatsApp green */
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Darker green on hover */
}

.whatsapp-button i {
    margin-right: 5px;
}

.news-widget h2 {
    background: #FFC06C;
    padding: 5px;
    border-radius: 5px
}
.games-widget {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
}

.game-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.game-item:last-child {
  border-bottom: none;
}

.game-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.game-thumb-placeholder {
  width: 80px;
  height: 80px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 6px;
  color: #aaa;
}

img.game-thumb.mr-3 {
    border-radius: 8px;
}

h1.mb-4 {
    display: flex;
}

/* Responsive Game Grid for Mobile */
.top-games-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 10px;
}

.game-card {
    flex: 1 1 150px; /* Responsive width */
    max-width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
    text-align: center;
}

/* For phones and small screens */
@media (max-width: 600px) {
    .top-games-grid {
        flex-direction: column;
        align-items: center;
    }

    .game-card {
        width: 90%; /* Make each card take almost full width */
        max-width: none;
        margin-bottom: 10px;
    }
}

/* Fade-in animation for news cards */
.news-detail .card, .latest-news-container .card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: stagger cards in a list/grid */
.latest-news-container .card:nth-child(1) { animation-delay: 0.1s; }
.latest-news-container .card:nth-child(2) { animation-delay: 0.2s; }
.latest-news-container .card:nth-child(3) { animation-delay: 0.3s; }
.latest-news-container .card:nth-child(4) { animation-delay: 0.4s; }
.latest-news-container .card:nth-child(5) { animation-delay: 0.5s; }
