html{
    scroll-behavior: smooth;
}

body {
    background-image: url('https://i.pinimg.com/736x/e2/f9/31/e2f931b19ed72d82e04f6d0aaf9d98e4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* smooth scrolling effect */
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
}

#gta{
    height: 60%;
    width: 100%;
    overflow-y: scroll;
    margin-left: auto;
    margin-right: auto;
    margin-top:50px;
    scroll-behavior: smooth;
}

#gta::-webkit-scrollbar{
    width: 10px;
}

#gta::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, #ff5733, #ffcc00);
    border-radius: 10px;
}

.etc{                       /* used to give background and create a div to put files */
    background-color: #F8F4E1;
    height: 55%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    overflow-y: scroll;
    border-radius: 15px;
}

.etc::-webkit-scrollbar{
    width: 10px;

}

.etc::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom,#FDB7EA, #B7B1F2);
    border-radius: 10px;
}

#rav1{
    display: flex;
}

/*#eye{
    background-color: #E7E8D1;
    height: 40%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-y: scroll;
    margin-top: 40px;
}
#eye::-webkit-scrollbar{
    width: 10px;

}
#eye::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, #D91656, #640D5F);
    border-radius: 10px;
}
#eye1{
    display: flex;
}*/

h1{
    display: flex;
    justify-content: center;
    color: #261FB3 ;
    background-color: #FE4F2D;
    font-family: "Jaini", system-ui;
    font-weight: 800;
    font-style: normal;
    font-size: 45px;
}

h2{
    margin-left: auto;
    margin-right: auto;
    background-color: #FFA725;
    color: white;
    font-size: 35px;
    font-family: "Emblema One", system-ui;
    font-weight: 400;
    font-style: normal;
    width: fit-content;
}

.flex{       /* used to align the content in it in a line */
    display:flex;
}

.sys{
    background-color: #AFDDFF;
    height: fit-content;
    width: 1000px;
    color: black;
    margin-left: auto;
    margin-right: auto;
}
.img{
    margin-right: 20px;
}
.img1{
    margin-left: 10px;
    height: 350px;
    min-width: 270px;
    max-width: 270px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("Mafia/andlogo.png");
    margin-right: 10px;
}

.h3{
    display: flex;
    justify-content: center;
    font-size: 35px;
    font-family: "Rowdies", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: underline;

}
ul{
    font-size: 17px;
    font-family: "Caveat", cursive;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}

.btn{
    display: flex;
    justify-content: center;
    margin: 15px;
}

button {
    width: 200px;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    border: 4px solid transparent; /* Pehle koi border nahi */
    border-bottom: 4px solid #004080; /* Sirf neeche ka dark blue border */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
}

button:hover {
    width: 220px; /* Button thoda bada hoga */
    height: 55px;
    background-color: #0056b3; /* Thoda dark blue shade */
    border-bottom: 4px solid #002a80; /* Border color instantly change hoga */
}

@media (max-width:650px){
    .sys{
        display: none;
    }
    .img1{
        background-image: url("Mafia/pclogo.avif");
        height: 200px;
        width: 500px;
    }
    #ravimg{
        height: 150px;
        width: 280px;
    }
    #eyeimg{
        height: 160px;
    }
    h1{
        font-size: 38px;
    }
    h2{
        font-size: 30px;
    }
    .etc{
        height: fit-content;
    }
}

@media (max-height:400px){
    .etc{
        height: 200px;
    }
    #gta{
        height: 200px;
    }
    #eyeimg{
        width: 200px;
    }
}



.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px 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;
}
.popup p {
    color: #ddd;
    font-size: 16px;
    margin-bottom: 20px;
}
.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;
}

.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;
  }
}


/* Search Bar*/
.search-container {
    position: relative;
    width: 90%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

#searchBox {
    width: 100%;
    padding: 10px;
    border: 1px solid #727272;
    border-radius: 5px;
    background-color:#D97D55;
    color: white;
}

.dropdown {
    position: absolute;
    width: 100%;
    background: #ED3F27;
    border: 1px solid #313131;
    border-top: none;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 4px 6px rgba(112, 112, 112, 0.1);
    z-index: 1000;
    color: #A7E399;
}

.dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #134686;
    border-bottom: 1px solid #7e7e7e;
}

.dropdown a:hover {
    background: #48B3AF;
}




/*Tutorial */
#view {
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

iframe {
    height: 400px;
    width: 100%;
    border: none;
}

.view-more {
    margin-top: 9px;
    padding: 8px 15px;
    background: linear-gradient(to bottom, rgb(97, 97, 97), gray); /* Gradient Button */
    border-radius: 5px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.view-more:hover {
    background: linear-gradient(to bottom, lightgray, darkgray);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.5);
}

p{
    font-size: 18px;
    font-weight: 600;
}

/*search box */
#pcsearch{
    width: 400px;
    margin-right: 0;
    margin-top: auto;
    margin-bottom: auto;
    background-color: gray;

}
@media (min-width:860px){
    #andsearch{
        display: none;
    }

}
@media (max-width:859px){
    #pcsearch{
        display: none;
    }
}







