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

/* 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;
}


/* End top navbar css */

/* Grid container CSS */
.container {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 5px;
  background-color: rgb(255 255 255 / 80%);
  box-shadow: 0 3px 3px 3px rgba(0, 0, 0, 0.3);
  padding: 5px;
  margin: 80px 300px 0px 300px; /* Makes the grid slimmer on it's sides */
}

.container div {
  text-align: center;
  padding: 10px;
  font-size: 30px;
}

.item1 {
  grid-column: 1 / span 2;
}

.item3 {
  grid-column: 1/ span 2;
}

/* Tab CSS*/
/* Style the tab */
.tab {
  overflow: hidden;
  background-color: #f1f1f1;
  width: 50%;
  
}
.tablinks {
  font-family: "Segoe UI", sans-serif;
}

/* Style the buttons inside the tab */
.tab button {
  float: left;
  border: 1px solid #ccc;
  outline: none;
  cursor: pointer;
  padding: 5px 8px;
  transition: 0.3s;
  font-size: 15px;
  font-weight: bold;
  margin: 0;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.pstyle {
 font-size: 20px; 
}

.channel-info-title {
 font-size: 15px; 
 text-align: left;
 font-weight: bold;
 margin-bottom: 0;
}

.vline {
 font-weight: lighter; 
}

.channel-info-p {
  grid-column: 1 / span 2;
 text-align: left;
 font-size: 15px;
 margin-top: 0px;
 color: gray;
}

.channel-info-p2 {
  font-size: 13px;
  text-align: left;
  margin-top: 0;
}

.info-container {
  display: grid;
 border: 1px solid #ccc;
 border-radius: 3px;
}

.above-stream-title {
 font-size: 30px;
 text-align: left;
 margin: 0;
 font-weight: bold;
 font-family: "Arial Narrow", sans-serif;
}

.Follow-button {
  background: linear-gradient(#483d8b, #241f47);
  border-radius: 3px;
  color:white;
  padding: 5px 8px;
  font-weight: bold;
  font-family: "Arial narrow", sans-serif;
}

.activity {
 font-weight: lighter;
 font-size: 12px;
 font-family: Arial, sans-serif;
}

.darkmodechat {
 background-color:darkgray;
}

.sharebutton {
position: absolute;
right: 0;
top: 0;
}

#channel-banner {
 width: 60%;
 height: auto;
}
/* Inner grid CSS */
.subcontainer {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 5px;
  padding: 5px;
}

.subcontainer div {
  text-align: center;
  padding: 0;
  font-size: 30px;
}

.subitem1 {
  grid-column-start: 1;
  grid-column-end: 3;
}

.subitem2 {
 margin: 0; 
}

.subitem3 {
  grid-column-start: 1;
  grid-column-end: 3;
}

.channel-info {
  font-size: 15px;
  color: gray;
  text-align: left;
  margin: 0;
}
/* End inner grid CSS. */

.tab-info {
  grid-column: 1 / span 2;
}

.suggested-channels {
 font-family: "Arial Narrow", Helvetica, sans-serif;
 font-weight: bold;
 font-size: 30px;
}

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