/* Global styles */

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

h2 {
  margin-top: 50px;
}

a:visited {
  color: #ffffff;              /* Same color as the default link color */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
  }
  
  header, nav ul, footer {
    background-color: #00457c;
    color: #fff;
    text-align: center;
    padding: 1rem;
  }
  
  nav ul {
    list-style-type: none;
  }
  
  nav ul li {
    display: inline;
    margin: 0 10px;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  
  main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
  }
  
  footer {
    font-size: 0.8em;
  }

  header, body {
    margin: 0;
    padding: 0;
  }

  /* Layout */
.content-wrapper {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  gap: 20px;
}

/* Main content area */
main {
  flex: 1;
  padding: 20px;
}

/* Sidebar styling */
.sidebar {
  width: 200px;               /* Adjust width as needed */
  padding: 15px;
  background-color: #f3f3f3;  /* Light background for contrast */
  border-left: 1px solid #ccc; /* Border on the left for separation */
  /*flex:1;*/
  /*left: 20%;*/ /* Adjust this percentage to move it closer to the center */
  /*width: 20%;*/ /* Adjust width if necessary */
}

.sidebar h2 {
  font-size: 1.2em;
  color: #00457c;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: #00457c;
  text-decoration: none;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}

nav ul li a {
  /*color: #00457c; /* Default link color */
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transition */
}

nav ul li a:hover {
  color: #1a73e8; /* Highlight color */
  /*text-decoration: underline; /* Underline effect */
}

/* Logo styles */
#organized-by {
  /*text-align: center; /* Center the logos */
  margin-top: 50px; /* Space above the logos */
}

#scope {
  margin-top: 50px; /* Space above scope */
}

#organized-by img {
  max-width: 150px; /* Set maximum width for logos */
  height: auto; /* Maintain aspect ratio */
  margin: 0 10px; /* Add margin between logos */
}

#sponsors {
  /*text-align: center; /* Center the logos */
  margin-top: 20px; /* Space above the logos */
}

.banner {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.banner img {
  display: block;          /* Removes extra bottom space */
  width: 100%;
  max-height: 400px;       /* Adjust as needed */
  object-fit: cover;       /* Ensures the image fills the area without stretching */
  margin: 0;
  padding: 0;
}


.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7); /* Optional: add background for readability */
  padding: 10px 15px;
  border-radius: 5px;
  width: 90%; /* Keeps the text within the bounds on smaller screens */
}

.banner-text h2 {
  white-space: nowrap;
  font-size: 2em;
  margin: 0;
}

.banner-text p {
  font-size: 1.2em;
  margin: 0;
}

@media(max-width: 999px) {
  body {
      margin-left: 10px;
      margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
      flex-direction: column;
  }

  .banner-text h2 {
    font-size: 1.2em; /* Smaller font size for mobile */
    white-space: normal; /* Allow text to wrap on smaller screens */
  }

  .banner-text p {
      font-size: 1em;
  }

  .banner-text {
      padding: 8px 10px;
      width: 95%;
  }
  .sidebar {
      order: 2; /* Move sidebar below the main content */
      margin-top: 20px;
      width: 100%;               /* Make sidebar full width on mobile */
      padding: 0;                /* Remove extra padding */
      background-color: transparent;  /* Remove background color */
      border-left: none;         /* Remove border */
      border-top: none; /* Optional: Add a top border for separation */
  }

  .sidebar h2 {
      font-size: 1.5;   
      color: #000;         /* Set color to black */               /* Match heading color */
      padding-top: 10px;         /* Add some space above heading */
  }

  .sidebar ul {
      padding-left: 20px;        /* Align list items nicely */
  }

  .sidebar li {
      margin-bottom: 8px;
      font-weight: bold;         /* Make items look like subheadings */
  }
  nav a {
    font-size: 0.5em;   /* Slightly smaller font size for mobile */
    padding: 8px 10px;
}
}

@media(max-width: 620px) {
  header > h1 {
      padding-top: 0.3em;
  }
}

/* Small Screen (phones) */
@media (max-width: 480px) {
  .banner-text {
      font-size: 1em;
      padding: 8px;
  }

  .content-wrapper {
      padding: 10px;
  }

  /* Further reduce font sizes for small screens */
  body {
      font-size: 14px;
  }

  h1 {
      padding-top: 100px; /* Increase this value as needed */ 
      font-size: 1.5em;
  }

  h2 {
      font-size: 1.2em;
  }
  .banner-text h2 {
    font-size: 1em;
  }
}

.black_link {
  color: black; /* Color for the specific link */
}

.black_link:visited {
  color: black; /* Ensure it remains the same after being clicked */
}