@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: rgba(17, 19, 23, 0.8); /* Semi-transparent primary color */
  --primary-color-light: rgba(31, 33, 37, 0.8); /* Semi-transparent light primary color */
  --primary-color-extra-light: rgba(53, 55, 59, 0.8); /* Semi-transparent extra light primary color */
  --secondary-color: rgba(249, 172, 84, 0.8); /* Semi-transparent secondary color */
  --secondary-color-dark: rgba(215, 148, 71, 0.8); /* Semi-transparent dark secondary color */
  --text-light: #d1d5db;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  background: url('images/picture 5.jpeg') no-repeat center center/cover; /* Add background image */
  color: var(--text-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: var(--primary-color-light);
  color: var(--white);
  background: #333;
  text-align: center;
}

header h1 {
  margin: 0;
}

header h2 {
  margin: 0;
}

header .logo {
  max-width: 50px;
  height: auto;
  margin-right: 20px;
}

nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

nav a {
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  margin: 0 10px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: var(--secondary-color-dark);
  background: #555;
}

nav a.active {
  background-color: #1c2c5b; /* Dark blue */
  color: rgb(247, 246, 246);
}

.sidebar {
  background-color: var(--primary-color-light);
  color: var(--white);
  padding: 20px;
  position: fixed;
  top: 0;
  left: -250px;
  height: 100vh;
  width: 250px;
  transition: 0.5s;
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar li {
  width: 100%;
}

.sidebar a {
  width: 100%;
}

.hero {
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 36px;
  margin: 0;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
}

.sponsor {
  margin-top: 20px;
  text-align: center;
}

.sponsor-logo {
  max-width: 50px; /* Same size as the team logo */
  height: auto;
  margin-top: 10px;
}

main {
  margin-top: 20px;
  padding: 20px;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--white);
}

.section__subheader {
  max-width: 600px;
  margin: auto;
  text-align: center;
  color: var(--text-light);
}

.content {
  padding: 20px;
  background-color: var(--primary-color-light); /* Semi-transparent background */
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery {
  padding: 20px;
  background-color: var(--primary-color-light); /* Semi-transparent background */
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-item {
  flex: 1 1 calc(25% - 20px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 200px; /* Set a fixed height */
  object-fit: cover; /* Ensure the image covers the area while maintaining aspect ratio */
  display: block;
}

.gallery-item p {
  text-align: center;
  padding: 10px;
  background-color: var(--primary-color-extra-light); /* Semi-transparent background */
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table, th, td {
  border: 1px solid var(--white);
}

th, td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

th {
  background: #f4f4f4;
}

tr:nth-child(even) {
  background-color: var(--primary-color-extra-light); /* Semi-transparent background */
}

button {
  background-color: var(--secondary-color); /* Semi-transparent background */
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--secondary-color-dark); /* Semi-transparent background */
}

footer {
  background-color: var(--primary-color-light); /* Semi-transparent background */
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  background: #333;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  bottom: 0;
}

footer a {
  color: var(--white);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 4px 0;
  transition: 0.4s;
}

.menu-icon {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

.menu-links {
  display: flex;
  gap: 15px;
}

/* Dropdown Menu Styles */
.dropdown-toggle {
  display: none;
  cursor: pointer;
  padding: 10px;
  background-color: var(--primary-color-light);
  color: var(--white);
  border: none;
  border-radius: 5px;
  margin: 10px 0;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  background-color: var(--primary-color-light);
  border-radius: 5px;
  overflow: hidden;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-menu a {
  padding: 10px;
  border-top: 1px solid var(--secondary-color-dark);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: center;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .content, .gallery {
    padding: 15px;
    margin: 10px 0;
  }

  .gallery-grid {
    flex-direction: column;
  }

  .gallery-item {
    flex: 1 1 100%;
  }

  table, th, td {
    font-size: 14px;
  }

  button {
    width: 100%;
    text-align: center;
  }

  footer {
    padding: 15px 0;
  }

  table, th, td {
    font-size: 14px;
  }

  button {
    width: 100%;
    text-align: center;
  }

  .gallery-grid {
    flex-direction: column;
  }

  .gallery-item {
    flex: 1 1 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color-light);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    padding: 15px;
    border-top: 1px solid var(--secondary-color-dark);
  }

  .dropdown-toggle {
    display: block;
  }

  .menu-links {
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .menu-links.active {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  nav ul.sidebar {
    display: none;
  }
}

@media (max-width: 480px) {
  header h1, header h2 {
    font-size: 1.2em;
  }

  nav a {
    padding: 10px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .content, .gallery {
    padding: 10px;
    margin: 5px 0;
  }

  th, td {
    padding: 8px;
  }

  table, th, td {
    font-size: 12px;
  }

  button {
    padding: 8px 10px;
  }

  footer {
    padding: 10px 0;
  }

  th, td {
    padding: 8px;
  }

  table, th, td {
    font-size: 12px;
  }

  button {
    padding: 8px 10px;
  }

  header h1, header h2 {
    font-size: 1.2em;
  }

  nav a {
    padding: 10px;
  }
}

@media (min-width: 1200px) {
  .gallery-item {
    flex: 1 1 calc(20% - 20px); /* Adjust the size for larger screens */
  }

  .hero h1 {
    font-size: 48px; /* Increase font size for larger screens */
  }

  .hero p {
    font-size: 24px; /* Increase font size for larger screens */
  }

  table, th, td {
    font-size: 18px; /* Increase font size for larger screens */
  }

  button {
    padding: 15px 30px; /* Increase padding for larger screens */
  }
}

