body {
    font-family: 'Libre Baskerville', serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    background-image: url('images/treasure_background.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    background-color: #000000;
    
    scroll-behavior: smooth;
  }

  /* Styling the header itself*/
  .header {
    position: sticky;
    background-color: transparent;
    top: 0; /* Aligns to the top of the viewport */
    width: 100%; /* Full width */
    display: flex; /* Align items in a row */
    justify-content: space-around; /* Equal spacing between links */
    padding: 20px 0px 20px 0px; /* top right bottom left */
  }

  /* When scrolled, header background turns black */
  .header.scrolled {
    background-color: rgba(0, 0, 0, 0.7);; /* or solid black */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }

  /* Styling the links */
  .header a {
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Adjust text size */
    font-weight: bold; /* Optional: Bold text */
    padding: 5px 10px; /* Add spacing inside the clickable area */
    border-radius: 4px; /* Optional: Rounded edges */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
  }

  /* Hover effect for links */
  .header a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light background on hover */
    color: #f0f0f0; /* Optional: Slightly dim the text on hover */
  }

  /* Add spacing between sections to prevent overlap */
  .section {
    padding-top: 80px; /* Matches or exceeds the header height to prevent overlap */
    margin-top: -80px; /* Counteracts padding to keep sections aligned */
  }

  /* Hero section */
  .content {
    width: 60%;
    padding-top: 200px;
    text-align: center;
  }

  .content p {
    font-size: 18px;
    color: #333;
  }
  .content h1 {
    font-size: 60px;
    color: #ffffff;
  }

  .content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
  }
  .image-container {
    display: flex;
    justify-content: center;  /* Horizontally centers the image */
    align-items: center;      /* Vertically centers the image */
    min-height: 50vh;         /* Adjusts the height to 50% of the viewport */
  }

  .resized-image {
    width: 50%;   /* Makes the image 50% of its original size */
    height: auto; /* Keeps the aspect ratio */
  }


  /* countdown timer */
  .countdown {
    margin-top: 0px;
    width: min(90%, 500px); /* width that fits the longest time */
    padding: 0px 20px 40px 40px;
    /* background: linear-gradient(
      to bottom,
      rgba(40, 30, 15, 0.9),
      rgba(15, 10, 5, 0.9)
    ); */
    /* border: 2px solid #cba27b; */
    /* border-radius: 8px; */
    /* box-shadow:
      inset 0 0 10px rgba(0, 0, 0, 0.6),
      0 8px 20px rgba(0, 0, 0, 0.7); */
  }
  #date {
    margin: 0;
    padding: 0;
    color: #dbbd8e;
    font-size: 200%;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.06em;
    text-align: center;
  }
  #timer {
    margin: 0;
    padding: 0;
    font-family: 'Cinzel', serif;
    font-size: 150%;
    font-weight: bold;
    letter-spacing: 0.06em;
    color: #dbbd8e;
    text-align: center;
    text-shadow:    /* glow affect */
    0 0 8px rgba(203, 162, 123, 0.5),
    0 0 16px rgba(203, 162, 123, 0.3);
  }



  /* What's WECEHacks 2026? */
  .intro-section {
    width: 70%;
    margin-top: 140px;
    padding: 20px;
    background: linear-gradient(
      to bottom,
      rgba(40, 30, 15, 0.9),
      rgba(15, 10, 5, 0.9)
    );
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  #registration-button {
    padding: 10px 20px; 
    font-size: 180%;
    font-family: 'Libre Baskerville', serif;
    background-color: #000000; 
    color: white; 
    border: 2px solid #dbbd8e;
    border-radius: 200px; 
    cursor: pointer;
  }
  .intro-section h1 {
    font-size: 50px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.06em;
    color: #ebe5dc;
    text-align: center;
  }
  .intro-section p {
    font-size: 23px;
    color: #dcc9a7;
    line-height: 1.6;
  }
  .intro-section img {
    flex: 1;
    max-width: 40%;
    height: auto;
    border-radius: 5px;
  }

  /* sponsors section */
  .sponsors-section {
    width: 70%;
    padding: 30px;
    background: linear-gradient(
      to bottom,
      rgba(40, 30, 15, 0.9),
      rgba(15, 10, 5, 0.9)
    );
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 100px; /* Added space between sections */
    margin-bottom: 100px;
    text-align: center;
  }
  .sponsors-section h1 {
    font-size: 50px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.06em;
    color: #ebe5dc;
    text-align: center;
  }
  .sponsors-section p {
    flex: 1;
    font-size: 23px;
    color: #dcc9a7;
    line-height: 1.6;
  }
  .sponsor-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Spacing between images */
    flex-wrap: wrap; /* Ensures wrapping on smaller screens */
  }
  .sponsor-images img {
    max-width: 100px; /* Adjust size as needed */
    height: auto;
    display: block;
  }




/*  Left below stuff here for reference, not used on home page */

  .faq-section {
    width: 80.5%;
    margin-top: 60px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .faq-section h2 {
    font-size: 30px;
    color: #333;
    text-align: center;
  }

  .faq-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .faq-section .faq-item {
    margin-bottom: 20px;
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .faq-section .faq-item strong {
    color: #333;
  }

  .schedule-section {
    width: 80%;
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .tools-resources-section {
    width: 79%;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 50px; /* Added space between sections */
  }

  .tools-resources-section h2 {
    font-size: 30px;
    color: #333;
    text-align: center;
  }

  .tools-resources-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
  }

  /* title of the main WECE hacks logo */
  #title {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  }
