body{
    margin: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    width: 80%;
    max-width: 400px;
    display: none;
    text-align: center;
}
.popup h2 {
    color: #00ffcc;
    font-size: 24px;
    margin-bottom: 10px;
    background-color: #FFA725;
    border-radius: 50px;
    width: 270px;
    margin-left: auto;
    margin-right: auto;
}
.popup p {
    color: #ddd;
    font-size: 17px;
    margin-bottom: 20px;
    border-radius: 50px;
}
.popup button {
    background: #00ffcc;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    color: black;
    cursor: pointer;
    border-radius: 5px;
}
.popup button:hover {
    background: #00997a;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}
a{
  text-decoration: none;
}
h1{
    background-color: rgb(71, 71, 71);
    color: whitesmoke;
    text-align: center;
    height: fit-content;
    font-size: 50px;
    font-family: "Trade Winds", system-ui;
    font-weight: 400;
    font-style: normal;
    text-shadow: 2px 2px 8px #000;
    
}
p{
    font-size: 25px;
    font-weight: 700;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background-color: darkorange;
    color: white;
}
.games{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    
}
img{
    margin-top: 10px;
    border:7px solid;
    border-style:inset;
    border-top-color: rgb(187, 185, 185);
    border-right-color: rgb(65, 63, 63);
    border-bottom-color: black;
    height: 330px;
    padding: 3px;
    border-radius: 20px;
    animation: appear 0.8s ease-in-out;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}
img{
    width: 330px;
}

/* 🌈 Global Styles *

/* 🌟 Top Navigation */
.top {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color:  #1055C9;
  font-size: 32px;
  gap: 30px;
  height: 65px;
  font-weight: 400;
  font-style: normal;
  transition: all 0.3s ease;
  font-family: "Creepster", system-ui;
}

/* 🏠 Common icon styling */
.top div::after {
  display: inline-block;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 40px 40px;
  padding-left: 45px;
  line-height: 60px;
  transition: all 0.3s ease;
}

/* 🎮 Individual menu items */
#top1::after {
  content: " Home";
  background-image: url("https://prigames.netlify.app/stuff/home.gif");
}
#top2::after {
  content: " Game Files";
  background-image: url("https://prigames.netlify.app/stuff/files.gif");
}
#top3::after {
  content: " Web Games";
  background-image: url("https://prigames.netlify.app/stuff/games.gif");
}
#top4::after {
  content: " Others";
  background-image: url("https://prigames.netlify.app/stuff/html.gif");
}

/* ✨ Hover Effects */
.top div:hover::after {
  filter: brightness(1.2);
  transform: scale(1.05);
  cursor: pointer;
}

/* 📱 Tablet View */
@media (max-width: 628px) {
  .top {
    font-size: 26px;
    gap: 15px;
    height: 60px;
  }
  .top div::after {
    background-size: 30px 30px;
    padding-left: 35px;
  }
}

/* 📲 Small Phones */
@media (max-width: 504px) {
  .top {
    font-size: 20px;
    gap: 10px;
    height: 55px;
  }
  .top div::after {
    background-size: 25px 25px;
    padding-left: 30px;
  }
}

/* 📱 Extra Small (Icon-only mode) */
@media (max-width: 420px) {
  .top {
    justify-content: space-around;
    font-size: 0; /* hide text spacing */
    height: 60px;
  }

  .top div::after {
    content: "";
    background-size: 50px 50px;
    padding-left: 50px;
    width: 50px;
    height: 50px;
  }

  /* Optional: Slight bounce animation */
  .top div:hover::after {
    transform: scale(1.1);
  }
}
@media (max-width: 386px) {
  .top {
    gap: 8px;
    height: 55px;
  }
  .top div::after {
    background-size: 40px 40px;
    padding-left: 40px;
    width: 40px;
    height: 40px;
  }
}

/* 📟 Mini Screens (Up to 220px width) */
@media (max-width: 292px) {
  .top {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    gap: 20px;
    padding: 5px 0;
  }
  .top div::after {
    content: "";
    display: block;
    background-size: 35px 35px;
    padding-left: 0;
    width: 35px;
    height: 35px;
    margin: 2px auto;
  }
}





