html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    scroll-behavior: smooth; /* Optional: Smooth scrolling */
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    width:100%;
    overflow-x:none;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}
 .logo{
    width:100px;
    height:100px;
}
     /* Add this CSS for the hamburger icon */
        .icon {
            display: none;
        }

    nav {
      background-color: #333;
      color: #fff;
      padding: 10px;
      text-align: center;
          position: relative;
    }

    ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
              display:none;

      justify-content: center;
    }

    li {
      margin: 0 15px;
    }

    a {
      text-decoration: none;
      color: #fff;
      font-weight: bold;
      font-size: 16px;
    }
      a:hover {
      background-color: #555;
    }


     @media screen and (max-width: 600px) {
            ul {
                position:relative ;
                right: 0;
                top: 8vh;
                background-color: #333;
                display: none;
                flex-direction: column;
                align-items: center;
            }

            .icon {
                display: block;
                position: absolute;
                right: 0;
                top: 0;
            }
        }

/**search form **/
       .searchForm {
            display: flex;
            justify-content: space-between;
            width: 100%;
            max-width: 400px;
            padding: 20px;
            margin-top:10px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
        }
 
        .searchInput {
            flex-grow: 1;
            padding: 10px;
            margin-right: 10px;
            border-radius: 5px;
            border: 1px solid #ddd;
        }
        .searchSubmit{
            padding: 10px;
            border-radius: 5px;
            border: none;
            color: #fff;
            background-color: #007BFF;
            cursor: pointer;
        }
        .searchSubmit:hover {
            background-color: #0056b3;
        }
        @media (max-width: 600px) {
            .searchForm {
                width: 90%;
                gap: 10px;
            }
            .searchInput {
                margin-right: 0;
                margin-bottom: 10px;
            }
        }
       /** end search form **/
 
        
main {
    flex: 1;
    max-width: 75%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.game-card {
    flex: 1 0 200px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card img {
    max-width: fit-content;
    height:150px;
}
.playnowBtn {
    display: inline-block;
    font-size: 16px;
    padding: 10px 20px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.playnowBtn:hover {
    background-color: #0056b3;
}


footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
    margin-top: auto;
    position: sticky;
    bottom: 0;
}
