/* Reset some default styles for better consistency */
h1, h2, h3, p, ul, li, form, input {
  margin: 0;
  padding: 0;
}

/* Set a dark background color */
body {
  background-color: #333;
  color: #fff; /* Text color */
  //font-family: Arial, sans-serif; /* Choose your preferred font */
  font-family: "Lato", sans-serif;
}

/* Add some basic styles for readability */
h1, h2, h3, p {
  margin-bottom: 20px;
}

/* Style generic links */
a {
  color: #f6821f; /* Link color */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Style navigation menus (ul / li) */
ul {
  list-style: none;
}

li {
  margin-bottom: 10px;
}

/* Style input elements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  //width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #666;
  background-color: #444; /* Input background color */
  color: #fff;
}

/* Style buttons */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #00f;
  color: #fff;
  text-align: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background-color: #555;
}

.game_author,.game_genre,.game_platform,.game_thumb {
  display: none;
  visibility : hidden;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidebar a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #f1f1f1;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 25px;
  font-size: 36px;
  //margin-left: 50px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: white;
  padding: 10px 15px;
  border: none;
  position: fixed;
  z-index: 9999;
}

.openbtn:hover {
  background-color: #444;
}

#main {
  //transition: margin-left .5s;
  //padding: 16px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidebar {padding-top: 15px;}
  .sidebar a {font-size: 18px;}
}

.closebtn{
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  font-size: 48px;
  margin-left: 175px;
}

.play-button {
  width: 0;
  height: 0;
  border-left: 15px solid transparent; /* Adjust the size as needed */
  border-right: 15px solid transparent; /* Adjust the size as needed */
  border-top: 28px solid #f6821f; /* Adjust the color as needed */
  cursor: pointer; /* Add a pointer cursor to indicate interactivity */
  transform: rotate(-90deg);
}

/* Container for the table */
@media screen and (min-width: 769px) {
  /* Style for the table */
  .table-container {
    //overflow-x: auto; /* Enable horizontal scrolling */
    width: 100%; /* Make the container responsive */
    max-width: 600px;
    margin: auto;
  }
  .scrollable-table {
    width: 100%; /* Allow the table to expand as needed */
    white-space: nowrap; /* Prevent text from wrapping */
    border-collapse: collapse; /* Remove cell spacing */
  }

  /* Style for the first column */
  .scrollable-table th:first-child,
  .scrollable-table td:first-child {
    left: 0; /* Stick to the left edge of the container */
    max-width: 500px;
    overflow-x: auto;
  }
  .pagination {
    justify-content: center;
  }
}


/* Optional: Style for other table headers and cells */
.scrollable-table th,
.scrollable-table td {
  padding: 8px 12px; /* Adjust padding as needed */
  border: 1px solid #ddd; /* Add borders for cells */
  text-align: left; /* Align text as desired */
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px; /* Adjust the font size as needed */
    overflow-x : hidden;
  }
  
  /* Add responsive styles here */
  .table-container,.scrollable-table {
    width: calc(100vw - 16px);
    margin: 0px;
    max-width: calc(100vw - 16px);
  }
  .scrollable-table {
    white-space: nowrap; /* Prevent text from wrapping */
    border-collapse: collapse; /* Remove cell spacing */
  }
  td:nth-child(2),th:nth-child(2) {
    width : 100px;
  }
  th:first-child,td:first-child {
    width: calc(100vw - 100px);
    max-width: calc(100vw - 100px);
    overflow-x: auto;
  }    
  .sharethis-inline-share-buttons {
    max-width: 90vw;
    position: relative;
    left: 30px;
  }  
  .pagination {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  @media (orientation: landscape) {
    /* Your CSS styles for landscape orientation go here */
    #gmfrm{
      height: 80vh; width: calc((60/45) * 80vh);
    }    
  }

  @media (orientation: portrait) {
    /* Your CSS styles for portrait orientation go here */
    #gmfrm{
      width: 80vw; height: calc((45/60) * 80vw);
    }
  }
}

/* Pagination container styles */
.pagination {
    display: flex;
    list-style: none;
    overflow-x: auto;
    font-size : 18px;
    text-align: left;
    padding : 8px;
}

/* Pagination item styles */
.pagination li {
    margin: 0 5px;
}

.pagination a {
    text-decoration: none;
    padding: 5px 10px;
    background-color: #f6821f;
    color: #fff;
    border-radius: 5px;
}