body {
  margin: 0; /* This was the reason the topnav bar wouldn't reach the entire width of the page in the channel page. */
  font-family: Arial, Helvetica, sans-serif;
  background: #666666;
}

.topnav {
  overflow: hidden;
  background: linear-gradient(#f5f5f5, #ccc);
  top: 0;
  position: sticky;
}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 17px;
}

/* disabled
.topnav a:hover {
  background-color: #ddd;
  color: black;
}
*/
/* Note: ".topnav a:hover" was disabled because the links were turned into buttons.*/

.topnav a.active {
  color: black;
}

/* Create a right-aligned (split) link inside the navigation bar */
.topnav a.split {
  float: right;
  /* background-color: #ddd;*/
  /* disabled background color*/
  color: white;
}

/* Style the search box inside the navigation bar */
.topnav input[type=text] {
  float: none;
  padding: 6px;
  border: none;
  margin-top: 8px;
  margin-right: 16px;
  font-size: 17px;
}

.buttontype1 {
  /* This section styles the buttons without anything hovering or clicking on it.*/
  background: linear-gradient(#f5f5f5, #ccc);
  font-size: 16px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #555555;
  box-shadow:0 0.4px 0.4px 0 rgba(0,0,0,0.3)
}

.buttontype1:hover {
  /* How the buttons appear on hover*/
  background: linear-gradient(#bfbfbf, #8c8c8c);
  color: white;
  }
  
.buttontype1:active {
  /* the variable is "active," not "click."*/
  background: linear-gradient(#404040, #8c8c8c);
}

/*grid element spam!*/

.container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background-color: dodgerblue;
  padding: 5px;
  margin: 0px 400px 0px 400px;
}

.container div {
  background-color: #f1f1f1; /* I checked, this is the background color for all the table cells. Remove it when you're ready. */
  text-align: center;
  padding: 10px;
  font-size: 15px;
  font-family: verdana, sans-serif;
  font-weight: bold;
}

.item1 {
  grid-row-start: 1;
  grid-row-end: 5;
}

.allgamesflexbutton {
  display: flex;          /* Enables Flexbox layout */
  align-items: center;    /* Vertically centers image and text */
  justify-content: flex-start; /* Horizontally centers content */ /*I edited it to put everything starting on the left; 
  I tried "left," but thankfully, the editor told me a handful of options it wanted, with "flex-start" being one of them.
  At least it worked. */
  gap: 10px;              /* Adds specific space between image and text */
  padding: 10px 5px;
  width: 100%;
}

.allgamesbuttonicon {
  width: 100px;            /* Set desired image size */
  height: 50px; 
  /* Find out how to move the image inside the button later.*/
}

img {
  max-width: 100%;
  height: auto;
}

/* button next to game boxarts*/
.search-container {
  display: flex;
  width: 80%; /* Parent takes full width of its container */ /* Note: I made it 80% on purpose to make it fit better.*/
}

.search-container input {
  flex-grow: 1; /* Input expands to fill remaining space */
  padding: 6px;
}