html {
  overflow-x: hidden;
}

/* header image */
#header_image {
  background-image: url(../img/shared/banner.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  box-shadow: 0rem 0.188rem 0.438rem #043162;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

/* Page Title in Header */
.title {
  text-align: center;
  margin: 0 auto;
  border-radius: 5rem;
  padding: 1.5rem 4rem;
  font-size: 2.938rem;
  font-weight: 600;
  line-height: 2.1rem;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
  background: linear-gradient(
    90deg,
    rgb(48, 114, 200) 0%,
    rgb(29, 42, 146) 100%
  );
  box-shadow: 0rem 0.188rem 0.438rem #043162;
  min-width: 200px;
  display: inline-block;
  max-width: 95vw;
  width: auto;
  box-sizing: border-box;
}

/* Sub-description for title on index.html */
#header_text_description {
  font-size: 1.563rem;
}

/* Discord button in header */
.discord-header-button {
  display: flex;
  align-items: center;
  background-color: #7b8aec;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  transition: transform 0.2s;
  flex-shrink: 0;
  max-width: 90vw;
  box-sizing: border-box;
}

.discord-header-button:hover {
  transform: scale(1.05);
}

.discord-header-button img {
  width: 40px;
  margin-right: 15px;
}

.discord-button-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.discord-button-text span {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.discord-button-text strong {
  font-size: 1.6rem;
  font-weight: 800;
}

/* Social media icons in header */
.social-links-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  justify-content: center;
}

.social-links-header a {
  text-shadow: none;
}

.social-links-header img {
  width: 50px;
  transition: transform 0.2s;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
}

.social-links-header img:hover {
  transform: scale(1.1);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  #header_image {
    padding: 1.2rem 0.5rem;
    background-position: center 30%;
    min-width: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .title {
    max-width: 98vw;
    min-width: 0;
    padding: 1rem 0.5rem;
    font-size: 1.5rem;
    width: auto;
    display: inline-block;
    box-sizing: border-box;
  }
  .social-links-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .discord-header-button {
    max-width: 98vw;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    box-sizing: border-box;
  }
  .discord-header-button img {
    width: 32px;
    margin-right: 10px;
  }
  .discord-button-text strong {
    font-size: 1.1rem;
  }
  .discord-button-text span {
    font-size: 0.7rem;
  }
  .social-links-header img {
    width: 32px;
  }
}
