@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=PT+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Schoolbell&display=swap');

/* General Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: 'PT Sans', sans-serif;
}

body {
    background-color: #f7f7f7;
    line-height: 1.6;
}

h1, h2, h3 {
    margin: 0;
    padding: 20px 0;
    font-family: 'Schoolbell', cursive;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Adjusted to include padding on both sides */
    box-sizing: border-box; /* Ensure padding affects container sizing */
    width: 100%; /* Ensure the container takes full width */
    position: relative; /* Ensure that elements respect each other’s positions */
}

.navbar ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #798148;
}

/* Styles for Toggle Button */
.toggle-button {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    left: 20px;
    padding: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.toggle-button .bar {
    height: 2px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: transform 0.3s, opacity 0.3s; /* Smooth transition for transformation */
}

/* Transform to "X" */
.toggle-button.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.toggle-button.active .bar:nth-child(2) {
    transform: rotate(-45deg);
}

.toggle-button.active .bar:nth-child(3) {
    opacity: 0; /* Hide the third bar */
}

/* Responsive Styles for Navbar */
@media (max-width: 768px) {
    .toggle-button {
        display: flex;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-right: 10px;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul li {
        width: 100%;
        padding: 1rem 0;
    }
}

/* Full Screen Section for Landing Page */
.full-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.full-screen img.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Adjust background position on smaller screens */
@media (max-width: 768px) {
    .full-screen img.background {
        object-position: 78% center; /* Adjust as needed to focus on the right-hand side */
    }
}

/* Rest of the styles */
.overlay {
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.overlay .logo {
    max-width: 300px;
    margin-bottom: -5px;
}

.expedition-date {
    font-size: 1.25rem; /* Adjust font size as necessary */
    color: white; /* Adjust color as desired */
    text-align: center; /* Centers text horizontally */
    margin: 2px 0; /* Adjust spacing */
    font-family: 'Schoolbell', cursive;
}

.overlay .expedition-stats {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 20px; /* Ensure some spacing between the stats */
}

.overlay .expedition-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.overlay .expedition-stats .stat img {
    width: 40px; /* Smaller icon size */
    height: 40px; /* Smaller icon size */
}

/* Font size for specific texts */
.overlay .expedition-stats .stat span {
    font-size: 0.9em; /* Adjust this value as necessary for larger screens */
}

/* Adjust icon and box size on smaller screens */
@media (max-width: 768px) {
    .overlay .expedition-stats .stat {
        padding: 5px; /* Smaller padding */
    }

    .overlay .expedition-stats .stat img {
        width: 20px; /* Smaller icon size */
        height: 20px; /* Smaller icon size */
    }

    .overlay .expedition-stats .stat span {
        font-size: 0.8em; /* Smaller font size */
    }
}

/* Expedition Link */
.overlay .expedition-link {
    color: white;
    text-decoration: underline;
    margin-top: 35px;
    display: inline-block;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.overlay .expedition-link:hover {
    color: #798148;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px; /* Add margin to maintain some space above */
    gap: 25px; /* Adjust the spacing between icons if necessary */
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 30px; /* Reduced size for the container */
    max-width: 30px;
}

.social-icons a img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

/* Specific Rule for BackaBuddy Icon */
.social-icons a.backabuddy {
    max-height: none;
    max-width: none;
}

.social-icons a.backabuddy img {
    height: 30px; /* Smaller size to match other icons */
    width: auto;
    object-fit: contain;
}

#landing .salomon-logo {
    position: absolute;
    bottom: 20px; /* Adjust the distance from the bottom as needed */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#landing .salomon-logo img {
    max-width: 150px; /* Adjust the size as needed */
    width: 100%; /* Make sure image maintains its aspect ratio */
    height: auto;
}

/** Updates Section */

#updates .loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

#updates .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    animation: spin 2s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#updates h1 {
    font-size: 2.5em; /* Ensure the font size is consistent */
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 10px;
}

#updates .update-card {
    flex: 1;
    position: relative;
    min-width: 350px;
    max-width: 550px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    color: #333;
}

#updates .update-author {
    color: #666;
}

#updates #updates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#updates .update-message {
    white-space: pre-wrap;
    text-align: start;
    line-height: 1.8;
    font-size: 18px;
}



/* About the Expedition Section */
#expedition {
    background-color: #fafafa;
    color: #333;
    padding: 60px 20px; /* Reduced padding */
    text-align: center;
}

#expedition h1 {
    font-size: 2.5em; /* Ensure the font size is consistent */
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 10px;
}

#expedition p {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.8;
    font-size: 18px;
}

#expedition p span {
    font-weight: bold;
}

#expedition p strong {
    color: #111;
}

#expedition .expedition-image-container {
    flex: 0 0 25%;
    max-width: 30%;
    text-align: center;
}

#expedition .expedition-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#expedition .expedition-image-description {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
    text-align: center;
}

#expedition .expedition-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #expedition .expedition-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    #expedition .expedition-image-container,
    #expedition p {
        max-width: 100%;
    }

    #expedition p {
        max-width: 90%;
    }
}

/* Who We Are Section */
#who {
    background-color: #f2f7f4;
    color: #333;
    padding: 60px 20px; /* Reduced padding */
    text-align: center;
}

#who h2 {
    color: #333;
    font-family: 'Schoolbell', cursive;
    font-size: 2.5em; /* Ensuring font size is consistent */
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 10px;
}

#who .bio-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: calc(50% - 40px);
    max-width: 500px;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
}

.portrait {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.profile p {
    font-size: 1.1em;
    line-height: 1.6;
}

.profile p:not(:last-child) {
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .profile {
        width: 90%;
        margin: 20px auto;
    }

    .portrait {
        width: 200px;
        height: 200px;
    }
}

.profile .profile-section {
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Why We Are Doing It Section */
#why {
    background-color: #fafafa;
    color: #333;
    padding: 60px 20px; /* Reduced padding */
    text-align: center;
}

#why h2 {
    color: #333;
    font-family: 'Schoolbell', cursive;
    font-size: 2.5em; /* Ensuring font size is consistent */
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 10px;
}

#why p {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.8;
    font-size: 18px;
}

#why p span {
    font-weight: bold;
}

#why p strong {
    color: #111;
}

#why .expedition-image-container {
    flex: 0 0 25%;
    max-width: 40%;
    text-align: center;
}

#why .expedition-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#why .expedition-image-description {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
    text-align: center;
}

#why .expedition-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    #why .expedition-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    #why .expedition-image-container,
    #why p {
        max-width: 100%;
    }

    #why p {
        max-width: 90%;
    }
}

/* Support Our Expedition Section */
#support-us {
    background-color: #f2f7f4;
    color: #333;
    padding: 60px 20px; /* Reduced padding */
    text-align: center;
}

#support-us h2 {
    color: #333;
    font-family: 'Schoolbell', cursive;
    font-size: 2.5em; /* Ensuring font size is consistent */
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 10px;
}

#support-us .container {
    max-width: 1300px;
    margin: 0 auto;
}

#support-us .expedition-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    text-align: left;
}

#support-us .expedition-text {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    flex: 1;
}

#support-us .expedition-text ul {
    list-style-type: none;
    padding: 0;
}

#support-us .expedition-text ul li {
    margin: 10px 0;
}

#support-us .expedition-text a:hover {
    color: #798148;
}

#support-us .expedition-text strong {
    color: #111;
}

#support-us .expedition-image-container {
    max-width: 500px;
    flex: 1;
    text-align: center;
}

#support-us .expedition-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#support-us .expedition-image-description {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
    text-align: center;
}

@media (max-width: 768px) {
    #support-us .expedition-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    #support-us .expedition-text,
    #support-us .expedition-image-container {
        max-width: 100%;
    }
}

/* Live Tracking Section */
#live-tracking {
    background-color: #f2f7f4;
    color: #333;
    padding: 60px 20px; /* Reduced padding */
    text-align: center;
}

#live-tracking h2 {
    color: #333;
    font-family: 'Schoolbell', cursive;
    font-size: 2.5em; /* Ensuring font size is consistent */
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 10px;
}

#live-tracking p {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.8;
    font-size: 18px;
}

/* Other Sections */
section {
    padding: 60px 20px; /* Reduced padding */
    text-align: center;
    position: relative;
}

#follow-us, #social-media, #gallery {
    background-color: white;
    color: #333;
}

.bio-section .profiles {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile {
    text-align: center;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.portrait {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

#support-us h2, #gallery h2 {
    color: #444;
}

#support-us p {
    color: #444;
}

#follow-us h2 {
    color: #333;
}

#follow-us iframe {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#social-media {
    color: #333;
}

#gallery {
    color: #444;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Our Route Section */
#route {
    background-color: #fafafa;
    color: #333;
    padding: 60px 20px;
    text-align: center;
}

#route h2 {
    color: #333;
    font-family: 'Schoolbell', cursive;
    font-size: 2.5em;
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 10px;
}

#route p {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.8;
    font-size: 18px;
}

.route-container {
    display: flex;
    flex-direction: column;
}

.side-menu {
    background-color: #f1f1f1;
    color: #333;
    overflow-y: auto;
    padding-top: 20px;
}

.side-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.side-menu ul li {
    padding: 10px 15px;
    cursor: pointer;
}

.side-menu ul li:hover,
.side-menu ul li.active {
    background-color: #e0e0e0;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.content iframe {
    width: 100%;
    border: none;
}

/* Custom Scrollbar Styling */

/* Firefox */
.side-menu {
    scrollbar-width: thin;
    scrollbar-color: #b0b0b0 #f1f1f1;
}

/* Webkit browsers (Chrome, Safari, etc.) */
.side-menu::-webkit-scrollbar {
    width: 8px;
}

.side-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.side-menu::-webkit-scrollbar-thumb {
    background-color: #b0b0b0;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

/* Scrollbar styling for the content section */
.content {
    scrollbar-width: thin;
    scrollbar-color: #b0b0b0 #f1f1f1;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.content::-webkit-scrollbar-thumb {
    background-color: #b0b0b0;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

/* Responsive Adjustments */
@media (min-width: 769px) {
    .route-container {
        flex-direction: row;
    }

    .side-menu {
        width: 250px;
        height: 600px;
    }

    .content iframe {
        height: 600px;
    }
}

/* Adjustments for Mobile View */
@media (max-width: 768px) {
    .side-menu {
        max-height: 20vh;
    }

    .content iframe {
        height: 60vh;
    }
}

#sponsors h2 {
    color: #333;
    font-family: 'Schoolbell', cursive;
    font-size: 2.5em;
    margin-bottom: 40px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 10px;
}

#sponsors p {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.8;
    font-size: 18px;
}

#sponsors {
    position: relative;
    padding-bottom: 200px; /* Ensure space for the absolutely positioned logos */
    background-color: #fafafa;
    color: #333;
}

#sponsors .logos {
    position: absolute;
    bottom: 50px; /* Distance from the bottom */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    align-items: center; /* Align logos vertically */
    gap: 50px; /* Adjust the gap between the logos */
}

#sponsors .logos .logo-container img {
    width: 100%;
    height: auto;
}

/* Specific logo styles */
#sponsors .logos .salomon-logo-black img {
    max-width: 200px; /* Size of the Salomon logo */
}

#sponsors .logos .foreverfresh-logo {
    margin-top: 20px; /* Move the Forever Fresh logo down */
}

#sponsors .logos .foreverfresh-logo img {
    max-width: 100px; /* Scale down the Forever Fresh logo */
}

#sponsors .logos .gegrond-logo {
    margin-top: 1px;
}

#sponsors .logos .gegrond-logo img {
    max-width: 120px;
}

#sponsors .logos .garmin-logo img {
    max-width: 200px; /* Adjust the size for the Garmin logo */
}

#sponsors .logos .mcsa-logo img {
    max-width: 100px; /* Adjust the size for the MCSA logo */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sponsors {
        padding-bottom: 50px; /* Adjust space for the logos */
    }

    #sponsors .logos {
        display: flex;
        flex-direction: column; /* Stack logos vertically */
        align-items: center; /* Center the logos */
        gap: 20px; /* Increase the gap between logos */
        margin-top: 20px; /* Add some space above the logos */
        position: static; /* Ensure it's in the normal document flow */
        transform: none; /* Remove any transform effects */
    }

    #sponsors .logos .logo-container {
        width: auto; /* Allow logos to adjust their width */
        margin: 0 auto; /* Center the individual logo containers */
    }

    #sponsors .logos .logo-container img {
        max-width: 150px; /* Adjust max-width for smaller screens */
        height: auto; /* Maintain aspect ratio */
    }

    #sponsors .logos .salomon-logo-black {
        padding-top: 20px; /* Add padding above the Salomon logo */
    }

    #sponsors .logos .salomon-logo-black img,
    #sponsors .logos .garmin-logo img,
    #sponsors .logos .mcsa-logo img {
        max-width: 120px; /* Consistent max-width for these logos */
    }

    #sponsors .logos .foreverfresh-logo img,
    #sponsors .logos .gegrond-logo img {
        max-width: 100px; /* Consistent max-width for these logos */
    }
}
