@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#playerCount {
  color: white;
  text-align: center;
}

body {
  background: linear-gradient(
      rgba(36, 37, 42, 0.9),
      rgba(36, 37, 42, 0.9)
    ),
    url('../image/splash6.jpg'); /* Add your background image */
  background-size: cover; /* Ensures the image covers the entire background */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-attachment: fixed; /* Keeps the background image fixed when scrolling */
  background-position: center; /* Centers the background image */
  color: #edf0f1; /* Optional: default text color for better readability */
}

li,
a,
button {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #edf0f1;
  text-decoration: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  position: relative; /* Add position relative to the header */
}

.logo {
  cursor: pointer;
}

.nav__links {
  list-style: none;
}

.nav__links li {
  display: inline-block;
  padding: 0px 50px;
}

.nav__links li a {
  transition: all 0.3s ease 0s;
  color: #edf0f1;
  display: flex;
  align-items: center; /* Ensures the text and icon are vertically aligned */
  gap: 8px; /* Adds space between the icon and the text */
}

.nav__links li a:hover {
  color: #0088a9;
}

/* Global Icon Styling */
.nav-icon {
  width: 36px; /* Adjust the width to resize the icon */
  height: 36px; /* Ensure the height is consistent */
  vertical-align: middle; /* Aligns the icon with the middle of the text */
}

button {
  padding: 9px 25px;
  background-color: rgba(0, 136, 169, 1);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
}

button:hover {
  background-color: rgba(0, 136, 169, 0.8);
}

/* Media Queries */
@media only screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }

  nav {
    margin-top: 10px;
  }

  .nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav__links li {
    margin: 10px 0;
  }
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: rgba(0, 136, 169, 1);
  border: none;
  border-radius: 50px;
  padding: 9px 25px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #edf0f1;
  transition: all 0.3s ease 0s;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #2c2c2c;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 10px;
}

.dropdown-content a {
  color: #edf0f1;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: rgba(0, 136, 169, 0.8);
}

.alert {
  background-color: #0088a9;
  color: #edf0f1;
  padding: 10px;
  text-align: center;
  margin: 20px 0;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}

/* Add this section for Twitch Thumbnails styling */
.stream-container {
  margin-top: 40px; /* Adds space between news posts and Twitch thumbnails */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centers the thumbnails */
}

.stream-item {
  width: 438.5px; /* Set the width of the thumbnail */
  margin: 10px; /* Adds space around each thumbnail */
  box-sizing: border-box; /* Includes padding and border in the element's width and height */
  text-align: center; /* Centers text inside the thumbnail box */
}

.stream-item img {
  width: 438.5px; /* Exact width of the thumbnail */
  height: 247.14px; /* Exact height of the thumbnail */
  border-radius: 10px;
  transition: transform 0.3s ease; /* Adds a zoom effect on hover */
}

.stream-item img:hover {
  transform: scale(1.05); /* Slightly enlarges the image on hover */
}

.stream-item h2 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #edf0f1; /* Ensures the text color matches the rest of the site */
}

.stream-item p {
  font-size: 20px;
  line-height: 1.5;
  color: #edf0f1; /* Ensures the text color matches the rest of the site */
}

/* Media Query for smaller screens */
@media only screen and (max-width: 600px) {
  .stream-item {
    width: calc(50% - 20px); /* Adjusts to two thumbnails per row on smaller screens */
  }

  .stream-item img {
    width: 100%;
    height: auto; /* Maintains aspect ratio for smaller screens */
  }
}

/* Ensure the body and html take full height */
html, body {
  height: 100%;
  margin: 0;
}

/* Main content wrapper to push the footer down */
.main-content {
  min-height: calc(100vh - 140px); /* Adjust based on footer height */
  padding-bottom: 20px; /* Space for footer */
  box-sizing: border-box;
}

/* Centered Search Bar */
.center-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  position: relative;
}

.center-search input {
  width: 300px;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #00bcd4;
  border-radius: 20px;
  outline: none;
  background-color: #2c2c2c;
  color: #fff;
}

.center-search input::placeholder {
  color: #aaa;
}

#search-results {
  position: absolute;
  top: 45px;
  width: 300px;
  background-color: #2c2c2c;
  border: 1px solid #00bcd4;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.search-result-item {
  padding: 10px;
  border-bottom: 1px solid #444;
  color: #fff;
  transition: background 0.3s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item a {
  color: #fff;
  text-decoration: none;
}

.search-result-item:hover {
  background-color: #00bcd4;
  color: #000;
}


/* Footer Styles */
footer {
  background-color: #2c2c2c;
  color: #ffffff;
  text-align: center;
  padding: 40px 0;
  position: relative;
  width: 100%;
  clear: both;
  box-sizing: border-box;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid #444;
}

.footer-section {
  flex: 1;
  margin: 20px;
  min-width: 250px;
}

.footer-section h2 {
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.footer-section ul {
  list-style-type: none;
  padding: 0;
}

.footer-section ul li {
  margin: 10px 0;
}

.footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffd700;
}

.footer-section .social-icons a img {
  width: 24px;
  margin: 0 10px;
  filter: invert(100%);
  transition: filter 0.3s ease;
}

.footer-section .social-icons a:hover img {
  filter: invert(60%);
}

.footer-bottom {
  background-color: #1a1a1a;
  padding: 10px 0;
  border-top: 1px solid #444;
  font-size: 12px;
  color: #888;
  width: 100%;
}
