/* styles.css */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #101010;
  color: #f5f5f5;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 101; /* Above background, below header */
  pointer-events: none;
  width: 500px;   /* Decreased from 700px to 500px */
  height: 500px;  /* Decreased from 700px to 500px */
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(60px);
}

body::before {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, #ff2a2a 0%, transparent 70%);
}

body::after {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, #ff2a2a 0%, transparent 70%);
}

@font-face {
  font-family: 'Akira Expanded';
  src: url('fonts/Akira.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Brunson';
  src: url('fonts/brunson.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Steelfish';
  src: url('fonts/steelfish rg.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Steelfish Bold';
  src: url('fonts/steelfish bd.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

.navbar,
.navbar * {
  font-family: 'Steelfish Bold', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.25rem; /* Slightly bigger header font */
}

.navbar {
  background: #101010;
  /* border-bottom: 1px solid #222; */ /* Remove this line */
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-content {
  max-width: 1200px;
  margin: 0 auto; /* Center header and footer horizontally */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem; /* Increased top/bottom padding for lower header */
}
.logo {
  width: 60px;
  height: 60px;
  /* Optionally, add margin-top for finer control */
  margin-top: 0.5rem;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}
.nav-links a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #f5f5f5;
  font-weight: bold;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2rem; /* space between links */
}

.nav-arrow {
  font-size: 1.1em;
  vertical-align: middle;
  margin-left: 0.3em;
  color: #f5f5f5;
}

.nav-item {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #222;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 200;
  padding: 0.5rem 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.dropdown-menu a {
  display: block;
  color: #aaa;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s, background 0.2s;
}

.dropdown-menu a:hover {
  color: #fff;
  background: #333;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}
.banner-img {
  max-width: 1200px;
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 32px; /* Makes the image rounded */
}

.teams-section {
  max-width: 1200px;
  margin: 2rem auto;
  text-align: left; /* Aligns the Teams section text to the left */
}

.teams-section h2 {
  font-family: 'Brunson', Arial, sans-serif;
  font-size: 2.8rem; /* Slightly bigger */
  font-weight: normal;
  margin-bottom: 1rem;
  color: #f5f5f5;
}

.team-img {
  width: 320px;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s;
  display: inline-block;
}

.team-img:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.team-img.valorant {
  transition: filter 0.2s;
  position: relative;
  opacity: 1;
  filter: none;
}

.teams-images {
  display: flex;
  gap: 2rem; /* Space between team images */
  align-items: center;
}

.teams-images a.valorant-link {
  position: relative;
  display: inline-block;
}

.teams-images a.valorant-link:hover .team-img.valorant {
  filter: grayscale(80%) brightness(0.6);
}

.teams-images a.valorant-link::after {
  content: "COMING SOON";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(16,16,16,0.85);
  border-radius: 24px;
  padding: 1rem 2rem;
  font-family: 'Brunson', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.teams-images a.valorant-link:hover::after {
  opacity: 1;
}

.teams-images a.minecraft-link {
  position: relative;
  display: inline-block;
}

.teams-images a.minecraft-link:hover .team-img.minecraft {
  filter: grayscale(80%) brightness(0.6);
  transition: filter 0.2s;
}

.teams-images a.minecraft-link::after {
  content: "EPICLAN46 HUNGER GAMES";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(16,16,16,0.85);
  border-radius: 24px;
  padding: 1rem 2rem;
  font-family: 'Brunson', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.teams-images a.minecraft-link:hover::after {
  opacity: 1;
}

.match-section {
  max-width: 1200px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
}

.match-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.match-box {
  background: #181818;
  border-radius: 18px;
  padding: 1.4rem 1.7rem; /* Slightly increased padding */
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 240px;    /* Slightly increased width */
  min-height: 120px;    /* Slightly increased height */
}

.match-logos {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 1.1rem;         /* Slightly increased gap */
  min-width: 230px;    /* Slightly increased width */
}

.logo-spot {
  width: 85px;         /* Slightly increased logo spot size */
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  border-radius: 12px;
}

.match-logo {
  max-width: 65px;     /* Slightly increased logo size */
  max-height: 65px;
  border-radius: 8px;
  background: transparent;
}

.vs-text {
  font-family: 'Steelfish Bold', Arial, sans-serif;
  font-size: 1.25rem;  /* Slightly increased VS text size */
  color: #ff2a2a;
  margin: 0 0.6rem;
  align-self: center;
}

.match-results {
  min-width: 500px;    /* Slightly increased width */
}

.results-title {
  font-family: 'Brunson', Arial, sans-serif;
  font-size: 1.8rem;   /* Keep text size reasonable */
  color: #f5f5f5;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0 0;
  width: 100%;
}

.results-list li {
  font-family: 'Steelfish Bold', Arial, sans-serif;
  font-size: 1.6rem;  /* Slightly increased result text size */
  color: #fff;
  margin-bottom: 0.3rem;
  display: grid;                /* Use grid for layout */
  grid-template-columns: 1fr auto 1fr; /* Left, score, right */
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.result-team-left {
  text-align: left;
  justify-self: start;
}

.result-score {
  text-align: center;
  justify-self: center;
}

.result-score-win {
  color: #2ecc40; /* green */
}

.result-score-loss {
  color: #ff2a2a; /* red */
}

.result-team-right {
  text-align: right;
  justify-self: end;
}

.section-separator,
.section-separator-white {
  max-width: 1200px;
  width: 1200px;
  margin: 2rem auto;
  border: none;
  border-top: 1px solid #fff; /* Thinner line */
  opacity: 0.7;
  border-radius: 1px;
}

.footer {
  text-align: left;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer,
.footer * {
  font-family: 'Steelfish Bold', Arial, sans-serif;
  font-size: 1.25rem; /* Slightly smaller footer font size */
}

.footer-sections {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-info {
  display: flex;
  gap: 4rem;
}

.footer-logo {
  display: flex;
  align-items: flex-end;
}

.footer-img {
  width: 120px;
  height: 120px;
}

.footer-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #f5f5f5;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.footer-section a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-copyright a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-copyright a:hover {
  color: #fff;
  text-decoration: underline;
}

.match-title {
  font-family: 'Brunson', Arial, sans-serif; /* Match RECENT RESULTS font */
  font-size: 2rem;
  color: #f5f5f5;
  letter-spacing: 2px;
  text-align: center;
}

.site-message {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #222;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 1rem 2.5rem 1rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  font-family: 'Brunson', Arial, sans-serif;
  font-size: 1.1rem;
  animation: slideInMessage 0.5s;
}

.site-message-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  margin-left: 1.2rem;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}
.site-message-close:hover {
  color: #ff2a2a;
}

@keyframes slideInMessage {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@media (max-width: 900px) {
  .match-section,
  .section-separator,
  .teams-section,
  .footer-sections {
    max-width: 100vw;
    width: 100%;
    margin: 1rem auto;
  }

  .match-container {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }

  .match-box {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 1.2rem 0.7rem;
  }

  .match-results {
    min-width: 0;
    width: 100%;
  }

  .teams-images {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }

  .team-img,
  .team-img.valorant,
  .team-img.minecraft {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .footer-sections,
  .nav-content {
    max-width: 100vw;
    width: 100%;
    margin: 1rem auto;
  }

  .footer-info {
    flex-direction: row; /* Stack horizontally */
    gap: 1rem;
    align-items: flex-start;
    width: auto;
  }

  .footer-section {
    width: auto;
    text-align: left;
    margin-bottom: 0;
  }

  .footer-logo {
    justify-content: flex-end;
    margin: 0 0 0 1rem;
    width: auto;
    display: flex;
    align-items: flex-end;
  }

  .footer-img {
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .footer-sections {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .footer-info {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
    margin-top: 1rem;
  }

  .footer-img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 600px) {
  /* Header horizontal stacking */
  .nav-content,
  .nav-links {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0;
  }
  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 0.5rem;
  }
  .logo {
    margin: 0 0.5rem 0 0;
    display: block;
  }

  /* Footer horizontal stacking */
  .footer-sections {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .footer-info {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    width: auto;
  }
  .footer-section {
    width: auto;
    text-align: left;
    margin-bottom: 0;
  }
  .footer-logo {
    justify-content: flex-end;
    margin: 0 0 0 1rem;
    width: auto;
    display: flex;
    align-items: flex-end;
  }
  .footer-img {
    width: 60px;
    height: 60px;
    margin: 0;
  }
  .footer-copyright {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    text-align: center;
    width: 100%;
  }

  .site-message {
    right: 8px;
    left: 8px;
    bottom: 8px;
    font-size: 0.95rem;
    padding: 0.8rem 2rem 0.8rem 1rem;
  }

  .center-message {
    font-size: 1.2rem;
    padding: 1rem 1.2rem;
    margin: 4rem auto 4rem auto;
  }
}

.team-label {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-family: 'Brunson', Arial, sans-serif;
  font-size: 1.1rem;
  color: #f5f5f5;
  letter-spacing: 1px;
}

@media (max-width: 400px) {
  .team-label {
    font-size: 1rem;
  }

  .match-title {
    font-size: 1.8rem;
  }

  .results-title {
    font-size: 1.6rem;
  }

  .results-list li {
    font-size: 1.4rem;
  }

  .vs-text {
    font-size: 1.1rem;
  }

  .match-logo {
    max-width: 55px;
    max-height: 55px;
  }

  .logo-spot {
    width: 75px;
    height: 75px;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section li {
    font-size: 0.85rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
  }

  .site-message {
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
  }
}

.center-message {
  color: #f5f5f5;
  font-family: 'Brunson', Arial, sans-serif;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 1px;
  background: rgba(24,24,24,0.85);
  padding: 2rem 2.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  max-width: 600px;
  margin: 8rem auto 8rem 2rem; /* Moves box slightly left */
  position: relative;
}

@media (max-width: 600px) {
  .center-message {
    font-size: 1.2rem;
    padding: 1rem 1.2rem;
    margin: 4rem auto 4rem 1rem; /* Also shift left on mobile */
  }
}