body { padding-top: 56px; }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-fsu-primary { background-color: #782f40 !important; }
.bg-fsu-secondary { background-color: #ceb888 !important; }
.bg-hero { background-color: #45b06cff; }

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }
.carousel-item { height: 300px; overflow: hidden; }
.carousel-item img { height: 100%; width: 100%; object-fit: contain; }

.external-carousel-button {
    background-color: #343a40;
}

#carouselpausebtn { margin-left: 80px !important }

.content-header {
  padding: 10px;
  margin-bottom: 0px;
  font-size: 32px;
  font-weight: bold;
}

.content {
  padding: 10px;
  padding-bottom: 40px;
  font-size: 18px;
  overflow-y: auto;
  background-color: var(--text-main);
  color: var(--bg);
}

.sub-content {
  padding: 10px;
  padding-bottom: 40px;
  padding-left: 40px;
  font-size: 18px;
  overflow-y: auto;
  background-color: var(--text-main);
  color: var(--bg);
}

.sidebar {
  align-self: flex-start;
  height: fit-content;
  padding: 15px;
  padding-right: 0;
  padding-left: 0;
  border-radius: 10px;
  position: sticky;
  top: 20%;
  
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Basic styling for the button */
.back-to-top-btn {
    position: fixed;
    bottom: 24px; /* Adjust as needed */
    right: 24px; /* Adjust as needed */
    background-color: #007bff; /* Example color */
    color: white;
    border: none;
    border-radius: 50%; /* Make it round */
    width: 48px; /* Minimum tap target size */
    height: 48px; /* Minimum tap target size */
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

.modal-body img {
  max-height: 300px;
}

.fixed-top { position: absolute !important; }

/* 
* For screen readers only 
*
.sr-only { 
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
*/

.sidebar a { text-decoration: none !important; color:#343a40 !important }
.sidebar a:hover { text-decoration: underline !important; }

.sub-content-header a { font-size: 24px; }

/* HP TIMELINE CSS */
.timeline-container {
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 200vh; /* Ensure enough scrollable content for the timeline effect */
    position: relative; /* For absolute positioning of the line */
    scroll-timeline: --timeline-progress y; /* Define a named scroll timeline */
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%; /* Line spans the entire height of the body */
    background-color: #000000; /* Light gray line */
    z-index: -1; /* Puts the line behind content */
    transform-origin: center top; /* Scale from the top */

    /* Apply scroll-driven animation for width */
    animation: widenLine linear forwards;
    animation-timeline: --timeline-progress;
    width: 2px; /* Starting width */
}

/* Keyframes for the line widening animation */
@keyframes widenLine {
    from {
        width: 2px; /* Start thin */
    }
    to {
        width: 8px; /* Get wider as you scroll down */
    }
}

/* Styles for the circular image events */
.timeline-event-circle {
    width: 140px; /* Size of the circle */
    height: 140px;
    border: 4px solid #3b82f6; /* Blue border */
    background-color: #eff6ff; /* Light blue background */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1e40af;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    position: relative;
    z-index: 1; /* Ensure it's above the line */
    border-radius: 50%; /* Make it perfectly circular */
}

.timeline-event-circle a {
  width: 180px;
  height: 180px;
}

.timeline-event-circle img {
  width: 180px;
  height: 180px;
}

/* Styles for the date boxes */
.timeline-date-box {
    padding: 8px 20px;
    background-color: #10b981; /* Green background */
    color: white;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.timeline-content-container .carousel-item {
  min-height: fit-content;
}

.carousel-item .carousel-header { text-align: center; }
.carousel-item .carousel-profile { text-align: center; }
.read-more-btn { align-items: center; justify-content: center; }
.carousel-control-next-icon { background-color:#343a40 !important; }
.carousel-control-prev-icon { background-color:#343a40 !important; }
.sticky-carousel-container { 
  position: sticky;
  top: 10%;
}


.timeline-content-container .carousel-item img {
  width: 180px;
  height: 180px;
  margin: 0 auto;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 640px) { /* Bootstrap's 'sm' breakpoint is 576px, this is slightly larger */
    .timeline-event-circle {
        width: 60px;
        height: 60px;
        font-size: 0.875rem; /* text-sm equivalent */
    }
    .timeline-date-box {
        padding: 6px 16px;
        font-size: 0.875rem; /* text-sm equivalent */
    }
}

/* MOBLILE RESPONSIVE SECTION; mainly for sidebar */

@media (max-width: 768px) {
  .fixed-top { position: fixed !important; }

  .sidebar {
    position: static;
    top: auto;
    width: 100%;
    height: auto;
    padding: 15px;
    margin-bottom: 20px
  }
}