/* General Styles */

:root {
    /* colors */
    --header-color: #344648;
    --header-font-color: #ffffff;
    /* --body-color: #7d8e95; */
    --body-color: #344648;
    --page-content-color: #a9bec1;
    --headline-color: #202020;

    /* fonts */
    --main-font: 'Red Hat Display', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: var(--main-font);
    margin: 0;
    padding: 0;
    background-color: var(--body-color);
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack elements vertically */
    min-height: 100vh; /* Ensure the body takes up the full viewport height */
    overflow-x: hidden;
}

/* Header */
header {
    background-color: var(--header-color);
    padding: 20px;
    text-align: center;
    color: var(--header-font-color);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease-in-out; /* Smooth transition for hiding logo */
    font-family: 'Aboreto', normal;
}

.external-link-icon {
    width: 10px; /* Adjust to your desired size */
    height: auto; /* Maintain the aspect ratio */
    margin-left: 5px; /* Add some space between the text and the icon */
    vertical-align: middle; /* Align the icon with the text */
}

header h1 {
    color: #f4f4f4;
    font-size: 2.5em;
    margin: 0;
}

header h2, header h3 {
    margin: 0;
}

nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-color);
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

nav ul p {
    color: var(--header-font-color); /* Replace 'red' with your desired color */
    column-gap: 40px;
    padding-top: 10px;
    padding-bottom: 10px;

}

/* Navigation Menu */
nav ul {
    width: 100%;
    overflow-x: auto;
    list-style-type: none;
    /* padding: 10px 0; */
    margin: 0;
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: center; /* Center all links */
    flex-wrap: nowrap; /* Prevent wrapping of the entire navigation bar */
    /* gap: 20px; Add consistent spacing between links */
    padding-inline-start: 0;
}

nav ul li {
    flex-shrink: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--header-font-color);
    font-weight: normal; /* Default font-weight */
    display: flex; /* Flexbox for consistent alignment */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    text-align: center; /* Center-align the text itself */
    /* white-space: normal; Allow text wrapping */
    width: 130px; /* Fixed width to force wrapping sooner */
    min-height: 50px; /* Ensure a consistent minimum height */
    padding: 10px; /* Add padding for clickable area */
    box-sizing: border-box; /* Include padding and borders in dimensions */
    line-height: 1.5; /* Adjust spacing between lines for readability */
    word-wrap: break-word; /* Ensure long words break onto the next line */
    overflow-wrap: anywhere; /* Break long words even without spaces */
    margin: 10px;
}

nav ul li a.active {
    color: var(--page-content-color); /* Highlight active link */
    font-weight: bold; /* Bold for active link */
}

p a {
    text-decoration: none;
    color: inherit; /* Use the same color as the surrounding text */
}

p a:hover {
    text-decoration: underline; /* Optional hover effect */
}

/* Hero Section */
.hero {
    font-family: 'Helvetica';
    background-color: #E3C79E;
    padding: 50px;
    text-align: center;
    font-size: 1.5em;
    color: #5C4D3D;
    border-radius: 3px; /* Match container's rounded corners */
    margin-bottom: 10px;
}

/* Welcome Section */
.welcome {
    padding: 30px;
    background-color: #fff;
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
}

.welcome h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.welcome p {
    font-size: 1.2em;
    line-height: 1.5;
}

.image-slider {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 300px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    position: relative;
}

.image-slider .slides {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 100%;
    height: 100%; /* Ensure the slides container fills the height */
}

.image-slider img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover; /* Ensures full coverage without distortion */
    object-position: center; /* Centers the image to prevent cut-off */
}

/* Keyframes for sliding animation */
@keyframes slide {
    0% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}

h2[data-toggle="collapse"] {
    display: inline-flex; /* Use inline-flex for tighter alignment */
    align-items: center; /* Align arrow vertically with text */
    font-weight: bold; /* Keep the text bold as needed */
    cursor: pointer; /* Add pointer cursor for better UX */
    gap: 10px; /* Adjust gap between text and arrow */
    position: relative; /* Enable positioning of the arrow */
}

.arrow-icon {
    width: 12px; /* Slightly smaller than the text */
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease; /* Smooth transition for rotation */
    margin-left: 10px; /* Space between arrow and text */
    flex-shrink: 0; /* Prevent arrow from resizing */
    position: static; /* Ensure arrow does not inherit absolute positioning */
}

.arrow-icon.collapsed {
    transform: rotate(0deg); /* Default: pointing to the right */
}

.arrow-icon.expanded {
    transform: rotate(90deg); /* Expanded: pointing down */
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.open {
    max-height: 500px; /* Set to a high enough value to accommodate your content */
    overflow: visible;
}

.notes {
    padding-top: 10px;
}

/* Footer */
footer {
    background-color: var(--header-color);
    color: var(--header-font-color);
    text-align: center;
    padding: 20px;
    width: 100%;
    margin-top: 10px;
}

footer p {
    margin: 5px 0;
}

footer p a {
    text-decoration: none;
    color: inherit;
}

.external-link-icon {
    align-items: center; /* Vertically center images */
    margin-left: 5;
}

/* Page Content Section */
.page-content {
    padding: 20px;
    padding-top: 40px;
    max-width: 800px;
    margin: 20px auto 10px auto;
    text-align: left;
    background-color: var(--page-content-color);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex: 1; /* Allow the content to grow and fill the available space */
    img {
        display: block;
        margin: 0 auto;
      }
}

.page-content h1 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--headline-color);
}

.page-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.page-content ul {
    list-style: disc;
    margin: 15px 0 15px 20px;
    color: #555;
    font-size: 1.2em;
    line-height: 1.6;
}

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

.logo {
    padding-bottom: 20px; /* Adjust the value as needed */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transitions */
}

.logo.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logo img {
    width: 3.5%; /* Reduce the width of the logo to 50% of its container */
}


/* Mobile Styles */
@media (max-width: 800px) {
    .logo img {
        width: 10%; /* Reduce the width of the logo to 50% of its container */
        height: auto; /* Maintain the aspect ratio */
        margin: 0 auto; /* Center the logo horizontally if needed */
        display: block; /* Ensure the image behaves as a block-level element */
    }

    nav {
        padding: 0px;
    }

    nav ul {
        flex-direction: row; /* Keep the links in a single row */
        overflow-x: auto; /* Allow horizontal scrolling */
        padding: 5px; /* Add padding for better touch experience */
        gap: 10px; /* Space between items */
        display: flex;
        align-items: center; /* Vertically centers the <ul> */
        justify-content: center; /* Horizontally centers the <ul>, if needed */   
    }

    nav ul::-webkit-scrollbar {
        display: none; /* Hide scrollbar on WebKit browsers */
    }

    nav ul li {
        flex-shrink: 0; /* Prevent items from shrinking */
    }

    nav ul li a {
        width: 100%; /* Adjust width to content */
        /* padding: 10px 15px; Add spacing for touch-friendly design */
        margin: 0px;
        text-align: center; /* Center text */
        border-radius: 5px; /* Optional: rounded corners for aesthetic */
        background-color: rgba(255, 255, 255, 0.2); /* Optional: subtle background */
    }

    .hero {
        font-size: 1.2em;
        padding: 30px;
    }

    .image-slider {
        height: 200px; /* Reduce height for smaller screens */
    }

    .page-content {
        padding: 15px;
        max-width: 100%; /* Use the full width of the screen */
        margin: 4px;
    }

    h2[data-toggle="collapse"] {
        font-size: 1.2em; /* Adjust header size for smaller screens */
        gap: 5px; /* Reduce spacing */
    }

    .collapsible-content {
        padding: 8px; /* Reduce padding for mobile view */
    }

    footer {
        padding: 10px;
    }

    footer p {
        font-size: 0.9em;
    }
}

