* {
    box-sizing: border-box;
}

/* Apply Google Font */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
}

/* Styling for the header */
header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Navbar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo styling */
.logo {
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
    color: #333;
}

/* Navigation Menu */
nav {
    position: relative;
}

/* This makes the menu checkbox invisible */
.menu-toggle {
    display: none;
}

/* Hamburger Icon for mobile */
.hamburger {
    font-size: 1.5em;
    display: none;
    cursor: pointer;
}

/* Navigation links */
#nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Styling for the links */
#nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

#nav-links a:hover {
    color: #a78766;
}

/* Styling to show the active link in the footer (bold + underlined). This reminds users what page they're on so they know to select other pages. This prevents a common user error. */
.active {
    color: #a78766;
    font-weight: 700;
    border-bottom: 2px solid #a78766;
    padding-bottom: 5px;
}


/* Media query for mobile devices - this makes sure that when the viewport is equal to or narrower than 768 pixels it will show the hamburger icon in lieu of the full navigation bar */
@media (max-width: 768px) {
    /* activates hamburger icon for mobile */
    .hamburger {
        display: block;
    }

/* Makes the navlinks hidden by default */
    #nav-links {
        display: none;
        position: absolute;
        top: 50px;
        right: 20px;
        background-color: #fff;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* This shows the links when clicked (toggled open) */
    .menu-toggle:checked + .hamburger + #nav-links {
        display: flex;
    }
}

/* Start of Footer styling */
.footer {
    background-color: #2a2a2a;
    color: #f2f2f2;
    padding: 40px 20px;
    font-family: 'Lato', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #e6e6e6;
}

.footer a {
    color: #f2f2f2;
    text-decoration: none;
}

.footer a:hover {
    color: #0073e6;
    text-decoration: underline;
}

.footer-contact,
.footer-links {
    flex: 1;
}

.footer-contact p,
.footer-links ul {
    margin: 0;
    line-height: 1.8;
}

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

.footer-links ul li {
    margin: 5px 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #bfbfbf;
    border-top: 1px solid #4d4d4d;
    padding-top: 10px;
}

/* Mobile footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-contact,
    .footer-links {
        text-align: center;
    }
    .footer-contact a,
    .footer-links a {
        display: inline-block;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 10px;
    }
    .footer h4 {
        font-size: 1.1em;
    }
    .footer-bottom {
        font-size: 0.8em;
    }
}

/* End of Footer styling */

/* Start of Homepage hero image styling */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
/* End of Homepage hero image styling */

/* Start of Welcome section (image cards) */
.welcome-section {
    padding: 0px 10px;
    text-align: center;
  }
  
  .welcome-text h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }
  
  .welcome-text p {
    font-size: 1.2em;
    margin-bottom: 40px;
  }
 
  .card-container {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    padding: 0 20px;
    margin-bottom: 60px;
  }
  
  .card {
    display: block;
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
  }
  
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .card .card-description {
    text-align: center;
    padding: 10px;
    background: #a78766;
    color: white;
    font-size: 1.2em;
  }
  
  .card:hover {
    transform: scale(1.05);
  }
  
  /* Here are my media queries for responsive layout of the clickable image cards. I wrote these media queries because I wanted the cards to be two rows of two or one column of four for smaller screens. */
  
  /* 2 cards in a row for tablets*/
  @media (max-width: 1024px) {
    .card-container {
      grid-template-columns: repeat(2, 1fr);
      column-gap: 10px;
      row-gap: 30px;
    }
    .card {
      max-width: 90%;
    }
  }
  
  /* 1 card per row for mobile */
  @media (max-width: 600px) {
    .card-container {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .card {
      max-width: 100%;
    }
  }
/* End of Welcome section (image cards) */


/* Start of About Page "Through the Years" Section */
main {
    padding: 20px;
  }
  
  .through-the-years {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .text-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 5px;
    text-align: center;
  }
  
  .text-overlay h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .text-overlay p {
    font-size: 1.2rem;
  }
  
  /* Smaller screens */
  @media (max-width: 1024px) {
    .text-overlay h2 {
      font-size: 1.8rem;
    }
  
    .text-overlay p {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 768px) {
    .text-overlay h2 {
      font-size: 1.6rem;
    }
  
    .text-overlay p {
      font-size: 0.9rem;
    }
  
    .image-container {
      height: 300px;
    }
  }
  
  @media (max-width: 480px) {
    .text-overlay h2 {
      font-size: 1.4rem;
    }
  
    .text-overlay p {
      font-size: 0.9rem;
    }
  
    .image-container {
      height: 250px;
    }
  }
  
/* End of About Page "Through the Years" Section */

/* Start of Activities section */
.activities {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .activity {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .activity-image {
    flex: 1;
    max-width: 50%;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .activity-text {
    flex: 1;
    max-width: 50%;
  }
  
  .activity-text h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .activity-text p {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
/* Media queries for smaller screens */
  @media (max-width: 768px) {
    .activity {
      flex-direction: column;
      align-items: center;
    }
  
    .activity-image,
    .activity-text {
      max-width: 100%;
      width: 100%;
    }
  
    .activity-image {
      margin-bottom: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .activity-text h2 {
      font-size: 1.4rem;
    }
  
    .activity-text p {
      font-size: 1rem;
    }
  }
/* End of Activities Section */

/* Start of safety info section */
.safety-section {
    margin: 0 auto;
  }
  
  .safety-section h2 {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .safety-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
  }
  
  .feature-icon img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .feature-info h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #333;
    text-align: left;
  }
  
  .feature-info p {
    margin: 0;
    color: #555;
    text-align: left
  }
  
  @media (max-width: 768px) {
    .safety-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
  
    .feature-icon img {
        width: 100px;
        height: 100px;
    }
  }
/* End of safety info section */

/* Start of Amenities section */
  .amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
  }
  
  .amenity-card {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
  }
  
  .amenity-image {
    flex: 1;
    height: 100%;
    overflow: hidden;
  }
  
  .amenity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .amenity-text {
    flex: 2;
    padding: 20px;
  }
  
  .amenity-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .amenity-info {
    font-size: 1rem;
    color: #666;
  }
  
  @media (max-width: 768px) {
    .amenities {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .amenity-name {
      font-size: 1.2rem;
    }
  
    .amenity-info {
      font-size: 0.9rem;
    }
  }
/* End of Amenities section */

/* Start of Transport options section */
.transport-section {
    display: grid;
    gap: 20px;
    padding: 0px;
    grid-template-columns: 1fr 1fr;
  }
  
  .card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .card-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
  }
  
  .button {
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .popup-toggle {
    display: none;
  }
  
  .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
  }
  
  .popup-toggle:checked + .popup {
    opacity: 1;
    visibility: visible;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: black;
  }
  
  .popup-content p {
    font-size: 1.2em;
    color: #333;
  }
  
  @media (max-width: 768px) {
    .transport-section {
      grid-template-columns: 1fr;
    }
  }
/* End of Transport options section */

/* Start of map styling */
.map-container {
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
  }
  
  .map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 15px;
  }

  @media (max-width: 768px) {
    .map-container iframe {
        width: 100%;
        height: 300px;
    }
  }
/* End of map styling */

/* Start of Community page styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
}

.community-section {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

  
  h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  
  .post, .create-post {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #fdfdfd;
  }
  
  .post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  .post-content {
    margin-top: 10px;
  }
  
  .comments {
    margin-top: 10px;
  }
  
  .comment {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #555;
  }
  
  .comment-input, .text-input, .file-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
  }
  
  .comment-btn, .post-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    background-color: #a78766;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
  }

/* Here I put a slightly darker brown so the user knows when they are hovering over the button */
  .comment-btn:hover, .post-btn:hover {
    background-color: #5a462e;
  }
  
  .create-post h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
  }
  
  .name-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .name-input {
    flex: 1;
  }
  
  @media (max-width: 768px) {
    .community-section {
        padding: 15px;
        margin: 10px auto;
    }
  
    .post, .create-post {
        padding: 10px;
    }
  
    h1 {
        font-size: 1.5em;
    }
  
    .create-post h2 {
        font-size: 1.1em;
    }
  
    .name-fields {
      flex-direction: column;
  }
  
  }
/* End of Community page styling */

/* Start Contact styling */
.contact-section {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  input, textarea {
    padding: 10px;
    font-size: 16px;
  }
  
  button {
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
/* End Contact styling */