/* General Styles */

/* Make the logo (H1) clickable and add hover effect */
nav .logo a {
    color: #fff;
    text-decoration: none;
}

nav .logo a:hover {
    color: #ff6347;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Navigation Bar */
nav {
    background: #333;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}

nav .logo {
    float: left;
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
}

nav .nav-links {
    float: right;
    list-style: none;
    margin: 0;
}

nav .nav-links li {
    display: inline;
    margin: 0 10px;
}

nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

nav .nav-links a:hover {
    color: #ff6347;
}

/* Hero Section */
header.hero {
    background: url('hero-image.jpg') no-repeat center center/cover;
    color: #000; /* Change text color to black */
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

header.hero h2 {
    font-size: 48px;
    margin: 0;
}

header.hero p {
    font-size: 24px;
    margin: 10px 0 20px;
}

header.hero .btn {
    background: #ff6347;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 10px; /* Add margin to separate the buttons */
}

header.hero .btn:hover {
    background: #e55342;
}

/* Sections */
section {
    padding: 60px 0;
    text-align: center;
}

section h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

section p {
    font-size: 18px;
    margin-bottom: 20px;
}

.feature-item,
.challenge-item,
.leaderboard-item {
    margin-bottom: 30px;
}

.feature-item h4,
.challenge-item h4,
.leaderboard-item h4 {
    font-size: 24px;
    color: #ff6347;
    margin-bottom: 10px;
}

.btn {
    background: #ff6347;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    display: inline-block;
}

.btn:hover {
    background: #e55342;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

footer .social-links {
    list-style: none;
    padding: 0;
}

footer .social-links li {
    display: inline;
    margin: 0 10px;
}

footer .social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

footer .social-links a:hover {
    color: #ff6347;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Other styles... */

/* Dropdown Icon Styles */
.toggle-icon {
    margin-left: 5px;
}


.dropdown.expanded .toggle-icon::before {
    content: "-"; /* Minus sign when expanded */
}


/* Responsive Design */
@media (max-width: 768px) {
    /* Adjust the container width */
    .container {
      width: 95%;
    }
  
    /* Change the nav links to a vertical list */
    nav .nav-links {
      float: none;
      text-align: center;
    }
  
    nav .nav-links li {
      display: block;
      margin: 10px 0;
    }
  
    /* Adjust the hero section */
    header.hero {
      height: 50vh;
    }
  
    header.hero h2 {
      font-size: 36px;
    }
  
    header.hero p {
      font-size: 20px;
    }
  
    /* Adjust the section headings */
    section h3 {
      font-size: 30px;
    }
  
    /* Adjust the section paragraphs */
    section p {
      font-size: 16px;
    }
  
    /* Adjust the feature item headings */
    .feature-item h4,
    .challenge-item h4,
    .leaderboard-item h4 {
      font-size: 20px;
    }
  
    /* Adjust the button styles */
    .btn {
      padding: 8px 16px;
      font-size: 16px;
    }
  
    /* Adjust the social links */
    footer .social-links li {
      display: block;
      margin: 5px 0;
    }
  }