/* Global Styles */
.img-logo {
    width: 150px;
    height: auto;
     padding-left: 20px; 
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; /* Standard background for the site */
    overflow-x: auto; /* Allow horizontal scrolling */
    width: 100%;
    min-height: 100%; /* Ensure body spans full viewport height */
    box-sizing: border-box; /* Include padding in width/height calculations */
    height: 100%;
}

html {
    overflow-x: auto;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    height: 100%;
}

h1, h2, h3 {
    margin: 20px 0;
    color: #E53935; /* Main accent color */
}

a {
    color: #E53935;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header-Nav Container */
.header-nav-container {
    display: flex;
    flex-direction: column; /* Stack header and nav vertically */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Header Styles */
header {
    background-color: #212121;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 5px 0 0;
    font-size: 1.2rem;
}

/* Navigation Bar Styles */
nav {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    width: 100%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

nav a:hover {
    text-decoration: underline;
}

/* Main Content Styles */
main {
    margin-top: 220px; /* Reclaimed 25% of the vertical space below nav */
    height: 100%;
        padding: 0 20px; /* Add some horizontal padding for smaller screens */

}

/* Timeline-specific Styles */
.timeline-container {
    position: relative;
    z-index: 1;
    margin-top: 30px; /* Reduced vertical padding */
    padding: 2rem 0; /* Reduced padding above and below the timeline */
    overflow-x: scroll;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    bottom: 0; /* Align scrollbar to the bottom */
    height: 100%;
}

.timeline {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px; /* Reduced padding for closer alignment */
    padding-bottom: 120px; /* Reduced padding for a cleaner fit */
    width: max-content;
    margin: 0 auto;
    height: 100%;
}

.timeline-line {
    position: absolute;
    top: 50%; /* Keep the line centered vertically */
    left: 0;
    height: 4px;
    background: #E53935;
    width: 100%;
    z-index: 1;
}

.timeline-event {
    position: relative;
    width: auto; /* Allow flexible width */
    margin: 0 40px;
    text-align: center;
    flex-shrink: 0;
    z-index: 2; /* Ensure events are above the line */
    display: flex;
    flex-direction: column; /* Ensure content aligns nicely */
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Include padding in dimensions */
}

.timeline-event.left {
    top: -100px; /* Adjusted distance above the timeline */
}

.timeline-event.right {
    top: 100px; /* Adjusted distance below the timeline */
}

.timeline-event .box {
    background: white;
    border: 2px solid #E53935;
    border-radius: 8px;
    padding: 10px;
    color: black;
    max-width: 240px; /* Constrain horizontal expansion */
    min-height: 120px; /* Uniform vertical height */
    overflow-wrap: break-word; /* Prevent text from spilling */
    word-wrap: break-word; /* Force long words to wrap */
    white-space: normal; /* Allow text wrapping */
    line-height: 1.4; /* Improve readability */
    text-align: center; /* Center-align text */
    box-sizing: border-box; /* Include padding in dimensions */
}

.timeline-event .line {
    width: 2px;
    border-left: 2px dotted #212121;
    position: absolute;
    left: 50%;
    z-index: 1;
    height: 32px; /* Slightly shorter dotted line to ensure arrows touch */
}

.timeline-event.left .line {
    top: 98%; /* Adjusted to position arrow tip just on the solid blue line */
}

.timeline-event.right .line {
    top: -32px; /* Adjusted to position arrow tip just on the solid blue line */
}

.timeline-event h3 {
    font-size: 16px;
    margin: 5px 0;
}

.timeline-event p {
    font-size: 12px;
}

/* Add arrowheads at the end of the dotted lines */
.timeline-event .line::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translateX(-50%);
}

.timeline-event.left .line::after {
    top: 100%;
    border-width: 12px 8px 0 8px;
    border-color: #212121 transparent transparent transparent;
}

.timeline-event.right .line::after {
    bottom: 100%;
    border-width: 0 8px 12px 8px;
    border-color: transparent transparent #212121 transparent;
}

/* Footer-specific styles */
footer {
    position: fixed; /* Changed from fixed to avoid scrollbar issue */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    background-color: #212121;
    color: #333;
    line-height: 50px;
    text-align: center;
    padding: 10px;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.2);
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 25px; /* Adds spacing between links */
    align-items: center;
}


/* Responsive Design Adjustments */
@media (max-width: 768px) {
    main {
        margin-top: 240px; /* Adjusted spacing for smaller screens */
    }

    nav {
        flex-wrap: wrap;
    }
}

    .content-wrapper::-webkit-scrollbar {
      width: 8px;
      position: absolute;
      bottom: 50px; /* Position scrollbar right above footer */
    }

    .content-wrapper::-webkit-scrollbar-thumb {
      background-color: #888;
      border-radius: 4px;
    }

    .content-wrapper::-webkit-scrollbar-thumb:hover {
      background-color: #555;
    }
    
    /* Discord Page Content Container */
.discord-content-container {
    display: flex;
    justify-content: space-between; /* Space out text and iframe */
    align-items: flex-start; /* Align items to the top */
    margin: 0 auto;
    max-width: 1200px; /* Limit total width for better readability */
    padding: 20px;
}

/* Left Column (Text) */
.discord-text-column {
    flex: 0 0 40%; /* Occupy 40% of the container width */
    max-width: 40%; /* Ensure it doesn't exceed this limit */
    margin-right: 20px; /* Add spacing between text and iframe */
    text-align: left;
}

/* Right Column (Iframe) */
.discord-iframe-column {
    flex: 0 0 auto; /* Maintain natural size of the iframe */
    text-align: right;
}

