body{
    margin: 0;
    background:#37353E;
    background-size: 100% 100%;
    background-attachment: fixed;
}

a{
  text-decoration: none;
}

h1{
    display: flex;
    justify-content: center;
    color: #D3DAD9;
    background-color: #465C88;
    margin-top: 20px;
    font-family: "Rubik Glitch", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 60px;

}

#image{
    height:400px;
    width: 700px;
    margin-left: 20px; 
    display: block;
    margin-bottom: 10px;
    display: flex;
}
a{
    text-decoration: none;
}

button{
   background: none;
  border: 2px solid;
  font: inherit;
  line-height: 1;
  margin: auto;
  padding: 1em 2em;
  --color: #19bc8b;
  --hover: #1973bc;
  color: var(--color);
  transition: 0.25s;
  display: flex;
}
button {
  box-shadow: 0.3em 0.3em 0 0 var(--color), inset 0.3em 0.3em 0 0 var(--color);
}
button:hover, button:focus {
  box-shadow: 0 0 0 0 var(--hover), inset 6em 3.5em 0 0 var(--hover);
}
button:hover, button:focus {
  border-color: var(--hover);
  color: #fff;
}

@media (max-width: 700px) {
    #image{
        height: 300px;
        width: 450px;
    }
    h1{
        font-size: 46px;
    }
}
@media(max-width: 470px) {
    #image{
        height: 250px;
        width: 280px;
    }
    h1{
        font-size: 30px;
    }
}
/* 🌈 Global Styles */
body {
  margin: 0;
  font-family: "Creepster", system-ui;
}

/* 🌟 Top Navigation */
.top {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #6E8CFB;
  font-size: 32px;
  gap: 30px;
  height: 65px;
  font-weight: 400;
  font-style: normal;
  transition: all 0.3s ease;
}

/* 🏠 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;
  }
}
.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;
    font-family: normal;
}
.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;
}




