/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #121212;
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background-color: #1e1e1e;
  padding: 20px 40px;
  border-bottom: 1px solid #2c2c2c;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #ff4d4d;
}

.logo img.logo-img {
  height: 60px;
  width: auto;
  display: block;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a,
.dropbtn {
  font-size: 16px;
  font-weight: 500;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.2s;
}

.nav-links a:hover,
.dropbtn:hover {
  color: #ff4d4d;
}

.dropdown {
  position: relative;
}

/* Make dropdown align left under Account button if needed */
#accountDropdown .dropdown-content {
  right: -25px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 30px;
  right: -45px;
  background-color: #1f1f1f;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 10;
  min-width: 200px;
  max-height: 90vh;
  overflow-y: auto;
}

.dropdown-content a {
  padding: 12px 20px;
  display: block;
  font-size: 15px;
}

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

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 10px;
  color: #ff4d4d;
}

.hero p {
  font-size: 20px;
  color: #ccc;
}

/* Features section */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #ff4d4d;
}

.card h2 {
  margin-bottom: 15px;
  font-size: 24px;
  color: #fff;
}

.card p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #aaa;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff4d4d;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #e04343;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #2c2c2c;
  margin-top: 60px;
}

/* ---------- Mobile / iPhone Responsive Tweaks ---------- */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  .navbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .logo {
    flex: 0 1 auto;
  }

  .nav-links {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links a,
  .dropbtn {
    font-size: 16px;
    padding: 10px 12px;
    border-bottom: none;
    width: auto;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding-left: 15px;
  }

  .dropdown-content a {
    font-size: 16px;
    padding: 8px 0;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown .dropbtn::after {
    float: right;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}

.league-section {
  background-color: #1a1a1a;
  border-top: 2px solid #1e3a8a;
  padding: 50px 20px;
  text-align: center;
  margin-top: 80px;
}

.league-container h2 {
  color: #3b82f6;
  font-size: 28px;
  margin-bottom: 10px;
}

.league-container p {
  color: #ccc;
  font-size: 16px;
  margin-bottom: 20px;
}

.league-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1e3a8a;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.25s;
}

.league-button:hover {
  background-color: #3b82f6;
}
