/*
Theme Name: Custom WordPress Game Theme
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom WordPress theme for games with 'Play Now' buttons.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, games, responsive
Text Domain: custom-game-theme
*/
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
body {
background-color: #f9f9f9; /* ہلکا اور پروفیشنل گرے */
color: #333; /* ڈارک گرے ٹیکسٹ */
}


header { 
background-color: #ffffff; /* صاف اور پروفیشنل سفید */
border-bottom: 2px solid #f1f1f1; /* ہلکی بارڈر لائن */
color: #333; /* ڈارک گرے ٹیکسٹ */
padding: 15px 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2px solid #009688;
flex-wrap: wrap;

/* Fixed position */
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000; /* Taake header sab elements ke upar rahe */
}

.logo {
display: flex;
align-items: center;
justify-content: center;
width: 70px; /* لوگو کا سائز */
height:70px;
border-radius: 45%; /* گول بنانے کے لیے */
background: linear-gradient(135deg, #4facfe, #00f2fe); /* خوبصورت گرادیئنٹ بیک گراؤنڈ */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* ہلکا سایہ */
overflow: hidden; /* اضافی حصہ کٹ جائے */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* ہور ایفیکٹ کے لیے */
}

.logo:hover {
transform: scale(1.1); /* ہور پر بڑا ہوگا */
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.logo img {
width: 100%; /* تصویر مکمل فٹ ہوگی */
height: 100%;
border-radius: 50%;
object-fit: cover; /* تصویر اچھے سے ایڈجسٹ ہوگی */
transition: opacity 0.3s ease;
}

.logo:hover img {
opacity: 0.9; /* ہلکا ایفیکٹ */
}

.menu {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  margin: auto;  /* سینٹر میں لانے کے لیے */

}
.menu a {
    text-decoration: none;
    color: hwb(0 7% 93%);
    font-size: 16px;
    font-weight: bold;
  transition: 0.1s ease-in-out;
    padding: 10px;
    border-radius: 5px;
   cursor: pointer;
}
  
.menu a:hover {
   color: white;
    background-color: #FF512F;
}
/* Dropdown container */
.dropdown {
display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  margin: auto;  /* سینٹر میں لانے کے لیے */
 position: relative;
  display: inline-block;

}

/* More Categories Button */
.dropbtn {
cursor: pointer;
padding: 10px;
color: black;
text-decoration: none;
}

/* Dropdown content (By default hidden) */
.dropdown-content {
display: none;
position: absolute;
background: white;
min-width: 160px;
box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
border-radius: 5px;
z-index: 1;
}

/* Dropdown links */
.dropdown-content a {
display: block;
padding: 10px;
color: black;
text-decoration: none;
}

/* Hover effect */
.dropdown-content a:hover {
color: white;
    background-color: #FF512F;
}

/* Show dropdown when hovering over More Categories */
.dropdown:hover .dropdown-content {
display: block;
}


.search-box {
padding: 10px 15px;
margin-right: 40px; /* کم کیا گیا */
border: 2px solid #009688;
border-radius: 25px;
outline: none;
font-size: 16px;
transition: 0.3s;
width: 100%;
max-width: 200px; /* تھوڑا بڑا کیا گیا */
animation: borderAnimation 3s infinite linear;
}

.search-box:focus {
    border-color: #FF512F;
    box-shadow: 0 0 8px rgba(255, 81, 47, 0.5);
}
/* Border Animation */
@keyframes borderAnimation {
0% { border-color: #ff0000; }  /* Red */
25% { border-color: #00ff00; } /* Green */
50% { border-color: #0000ff; } /* Blue */
75% { border-color: #ff00ff; } /* Purple */
100% { border-color: #ff9900; } /* Orange */
}

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}
.ad-banner {
    width: 728px;
    height: 90px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
@media (max-width: 768px) {
    .ad-banner {
        width: 100%;
        max-width: 300px;
        height: 250px;
        font-size: 14px;
    }
}


.game-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: bottom;
}
.game-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align:bottom ;

    transition: transform 0.3s;
    width: 100%;
    max-width: 180px;
    height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding-bottom: 10px;
}

.game-card:hover {
    transform: scale(1.05);
}
.game-card img {
width: 100%;
height: 100px; /* یہاں تصویر کی اونچائی محدود کریں */
max-height: 120px; /* زیادہ سے زیادہ سائز سیٹ کریں */
border-radius: 12px 12px 0 0;
object-fit: cover; /* تصویر کو کارڈ میں فٹ کرنے کے لیے */
display: block;
}

.play-button {
font-size: 18px;
font-weight: bold;
padding: 5px 5px;
color: white;
background: linear-gradient(45deg, #ff0000, #ff4500);
border: none;
border-radius: 30px;
text-transform: uppercase;
cursor: pointer;
position: relative;
transition: 0.3s ease-in-out;
overflow: hidden;
z-index: 1;
}

/* یہ حصہ اب بیک گراؤنڈ کو بھی چینج کرے گا */
.play-button::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: inherit;
border-radius: 50px;
z-index: -1;
transition: 0.2s ease-in-out;
}

/* ماؤس ہوور پر اینیمیشن */
.play-button:hover {
animation: none; /* بٹن کے لیے کلر چینج اب `::after` سے ہوگا */
transform: scale(1.1);

}

/* بیک گراؤنڈ کلر چینجنگ */
.play-button:hover::after {
animation: color-change 4s infinite alternate;
}

/* بیک گراؤنڈ کے رنگ آٹو چینج کرنے کی اینیمیشن */
@keyframes color-change {
0% { background: linear-gradient(45deg, #ff0000, #ff4500); }
12.5% { background: linear-gradient(45deg, #ff4500, #ffcc00); }
25% { background: linear-gradient(45deg, #ffcc00, #00ff00); }
37.5% { background: linear-gradient(45deg, #00ff00, #00ffff); }
50% { background: linear-gradient(45deg, #00ffff, #ff00ff); }
62.5% { background: linear-gradient(45deg, #ff00ff, #ff1493); }
75% { background: linear-gradient(45deg, #ff1493, #8a2be2); }
87.5% { background: linear-gradient(45deg, #8a2be2, #ff4500); }
100% { background: linear-gradient(45deg, #ff4500, #ff0000); }
}


   footer {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 2px solid #009688;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}
.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    text-decoration: none;
    color: rgb(241, 13, 13);
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
    padding: 5px;
  transition: color 0.3s;
    padding: 10px;
    border-radius: 5px;
}
.footer-links a:hover {
   color: white;
    background-color: #FF512F;
}
/* بیک گراؤنڈ اور ماڈل کا اسٹائل */
.popup-overlay {
flex-direction: column;
overflow-y: scroll;
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(5px);
animation: fadeIn 0.3s ease-in-out;

}

/* ماڈل کا مین کنٹینر */
.popup-content {
background: linear-gradient(135deg, #ffffff, #f8f8f8);
margin: 10% auto;
padding: 20px;
width: 90%;
max-width: 700px;
border-radius: 0px;
border: 10px solid;
border-image-slice: 1;
animation: moving-border 3s infinite linear;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
text-align: center;
position: relative;

}


.banner {
width: 100%;
max-width: 600px;
height: 300px;
background: url('your-banner-image.jpg') center/cover no-repeat;
border: 10px solid;
border-image-slice: 1;
animation: moving-border 3s infinite linear;
}

/* ماڈل کلوز بٹن */
.popup-close  {
position: absolute;
top: 10px;
right: 15px;
font-size: 30px;
font-weight: bold;
background: linear-gradient(135deg, #ff416c, #ff4b2b);
transition: transform 0.2s, box-shadow 0.3s;
color: white;
cursor: pointer;
}

..popup-close :hover {
transform: scale(1.1);
}

/* گیم کے لیے آئی فریم */
.popup-content iframe{
width: 100%;
height: 400px;
border-radius: 0px;
border: 3px solid #ddd;
}

/* بٹن اسٹائل */
.popup-overlay  {
margin-top: 15px;
}

.popup-buttons button {
background: linear-gradient(135deg, #ff416c, #ff4b2b);
color: white;
font-size: 16px;
border: none;
padding: 12px 20px;
margin: 5px;
cursor: pointer;
border-radius: 25px;
transition: transform 0.2s, box-shadow 0.3s;
}

.popup-buttons button:hover {
transform: scale(1.1);

}
.mob-handler-style {
font-family: Arial, sans-serif;
background: #f0f8ff;
padding: 20px;
border-radius: 10px;
border: 5px solid #007bff;
color: #333;
}

/* ✅ صرف .mob-handler-style کے اندر موجود <p> کے لیے */
.mob-handler-style  p{
font-size: 20px; /* فونٹ سائز */
line-height: 1.6; /* لائن اسپیسنگ */
color: #007bff; /* رنگ */
margin-bottom: 10px; /* پیراگراف کے نیچے اسپیس */
}



.game-description:hover {
box-shadow: 0px 0px 15px rgba(255, 115, 0, 0.7);
}
/* اینیمیشن */
@keyframes moving-border {
0% { border-image-source: linear-gradient(45deg, #ff0000, #ff7300); }
25% { border-image-source: linear-gradient(45deg, #ff7300, #ffff00); }
50% { border-image-source: linear-gradient(45deg, #ffff00, #00ff00); }
75% { border-image-source: linear-gradient(45deg, #00ff00, #ff0000); }
100% { border-image-source: linear-gradient(45deg, #ff0000, #ff7300); }
}
@game-description moving-border {
0% { border-image-source: linear-gradient(45deg, #ff0000, #ff7300); }
25% { border-image-source: linear-gradient(45deg, #ff7300, #ffff00); }
50% { border-image-source: linear-gradient(45deg, #ffff00, #00ff00); }
75% { border-image-source: linear-gradient(45deg, #00ff00, #ff0000); }
100% { border-image-source: linear-gradient(45deg, #ff0000, #ff7300); }
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes slideUp {
from { transform: translateY(30px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}

/* ریسپانسیو اسٹائل */
@media (max-width: 600px) {
.popup-content {
width: 90vw; /* اسکرین کے 90% کے برابر */
max-width: 100%; /* اضافی جگہ لینے سے روکے */
left: 50%;
transform: translateX(-50%); /* سینٹر کرے *
}

iframe {
height: 300px;
}

.popup-buttons button {
font-size: 14px;
padding: 10px 15px;
}

.game-description {
font-size: 14px;
}
}
