body {
  margin: 0; /* This was the reason the topnav bar wouldn't reach the entire width of the page. */
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(DeepSkyBlue, lightblue);
  background-size: cover;
  min-height: 100vh;
}

/* Topnav bar CSS */
.topnav {
  overflow: hidden;
  background: linear-gradient(#f5f5f5, #ccc);
  top: 0;
  bottom: 15px;
  height: 50px;
  position: sticky;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.3);
}

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

.topnav a.active {
  color: black;
}

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

#btn-id {
 color: #FF0000; 
}

/* 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;
  border-radius: 5px;
}

.buttontype1 {
  /* This section styles the buttons without anything hovering or clicking on it.*/
  background: linear-gradient(#f5f5f5, #ccc);
  font-size: 14px;
  padding: 7px 10px;
  border-radius: 3px;
  border: 1px solid #555555;
  box-shadow:0 0.4px 0.4px 0 rgba(0,0,0,0.3);
  font-family: "Arial Narrow", sans-serif;
  font-weight: bold;
}

.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);
}

#image-button {
 display: flex;         /* Enables flexbox layout */
  align-items: center;   /* Vertically centers image and text */
  gap: 10px;             /* Adds space between the image and text */
  padding: 10px 20px;
  cursor: pointer;
  height: 75%;
  width: 10%;
  margin-right: auto;
  position: absolute;
  right: 5px;
}

#icon-image {
 width: 50px;           /* Adjust size as needed */
  height: auto;
}
/* end Top Navbar CSS */

/* Search function CSS */

#myInput {
  background-image: url('/css/searchicon.png');
  background-position: 5px 5px;
  background-repeat: no-repeat;
  width: 10%; /*Not working, trying to find out why. */
  font-size: 14px;
  padding: 5px 20px 5px 20px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

#myTable {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ddd;
  font-size: 18px;
}

#myTable th, #myTable td {
  text-align: left;
  padding: 12px;
}

#myTable tr {
  border-bottom: 1px solid #ddd;
}

#myTable tr.header, #myTable tr:hover {
  background-color: #f1f1f1;
}

/* end search function CSS */