/* Hide scrollbar in people-container */
#people-container {
    scrollbar-width: none; /* Firefox */
}
#people-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Responsive Timeline for Mobile */
@media (max-width: 900px) {
  #timeline-content {
    flex-direction: column;
    gap: 16px;
  }
  #timeline-content #map {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: 220px !important;
    border-radius: 10px;
    margin-bottom: 12px;
    flex: none;
  }
  #timeline-list {
    border: none !important;
    padding-left: 0;
    padding-top: 10px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    width: 100vw;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 #e0e0e0;
    background: transparent;
    box-shadow: none;
  }
  #timeline-list::-webkit-scrollbar {
    height: 8px;
  }
  .timeline-item {
    min-width: 260px;
    max-width: 80vw;
    min-height: 120px;
    margin-bottom: 0;
    margin-right: 8px;
    padding: 18px 15px 18px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #fff;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .timeline-item.highlighted p {
    max-height: 1000px !important;
    overflow: visible !important;
  }
  .timeline-item.highlighted p::after {
    opacity: 0 !important;
  }
  .timeline-item.highlighted {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    box-shadow: 0 6px 24px 0 rgba(74,144,226,0.13), 0 2px 8px rgba(0,0,0,0.10);
    border: 2px solid #4a90e2;
    transform: scale(1.04);
    z-index: 2;
    padding: 22px 16px 22px 16px;
  }
  .timeline-item.highlighted h3 {
    color: #0056b3;
    font-size: 1.1em;
    margin-bottom: 8px;
  }
  .timeline-item.highlighted .date {
    color: #357abd;
    font-weight: bold;
    margin-bottom: 8px;
  }
  .timeline-item.highlighted p {
    color: #222;
    font-size: 1em;
    line-height: 1.5;
    background: rgba(255,255,255,0.85);
    border-radius: 6px;
    padding: 8px 6px;
    box-shadow: 0 1px 4px rgba(74,144,226,0.07);
  }
  .timeline-item::before {
    left: 50%;
    top: -28px;
    transform: translateX(-50%);
    border-left: none;
    border-top: 4px solid #4a90e2;
    width: 20px;



@media (max-width: 900px) {
  :root {
    --font-size-header: 2rem;
    --font-size-subheader: 1.1rem;
    --font-size-section-title: 1.2rem;
    --font-size-card-title: 1rem;
    --font-size-card-content: 0.97rem;
    --font-size-button: 0.97rem;
    --font-size-input: 0.97rem;
  }
}

@media (max-width: 600px) {
  :root {
    --font-size-header: 1.5rem;
    --font-size-subheader: 1rem;
    --font-size-section-title: 1.05rem;
    --font-size-card-title: 0.97rem;
    --font-size-card-content: 0.95rem;
    --font-size-button: 0.95rem;
    --font-size-input: 0.95rem;
  }
}
    height: 20px;
  }
}

@media (max-width: 600px) {
  .timeline-header h2 {
    display: none !important;
  }
  .timeline-header {
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 8px !important;
  }
  #play-timeline-animation {
    margin-left: auto !important;
    font-size: 1.2rem !important;
    padding: 8px 16px !important;
  }
  #timeline-list {
    padding: 0 !important;
  }
  .timeline-item::before {
    display: none !important;
  }
  #timeline-content #map {

header h1 {
    font-family: 'Pacifico', cursive;
    margin: 0;
    font-size: var(--font-size-header);
    animation: fadeInDown 1s;
    line-height: 1.1;
}

    height: 160px !important;
  }
  .timeline-item {
    min-width: 200px;
    max-width: 90vw;
    padding: 10px;

header p {
    margin: 0;
    font-size: var(--font-size-subheader);
    animation: fadeInUp 1s;
    font-weight: 700;
    line-height: 1.2;
}
  }
}

/* Responsive sticky footer */
#site-footer {

h2 {
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Pacifico', cursive;
    font-size: var(--font-size-section-title);
    line-height: 1.15;
}
  width: 100vw;
  min-width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  text-align: center;
  font-size: 1rem;
  padding: 18px 0 14px 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 -2px 12px 0 rgba(74,144,226,0.08);

.section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: var(--font-size-section-title);
    color: #ffffff;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    line-height: 1.15;
}
}
@media (max-width: 600px) {
  #site-footer {
    font-size: 0.95rem;
    padding: 14px 0 10px 0;
  }
}

/* People card base style */

.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    animation: popIn 0.5s ease-out;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: var(--font-size-card-content);
}
.people-card {
    background: rgba(255,255,255,0.78); /* semi-transparent white */
    border-radius: 8px;

.card h3 {
    margin-top: 0;
    font-size: var(--font-size-card-title);
    line-height: 1.15;
}
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding: 1rem;
    margin: 10px;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative;
    cursor: pointer;
    z-index: 1;

.card-content {
    padding: 15px;
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s;
    font-size: var(--font-size-card-content);
    line-height: 1.4;
}
}
.people-card.highlighted {
    box-shadow: 0 8px 24px rgba(74,144,226,0.18), 0 2px 8px rgba(0,0,0,0.10);
    transform: scale(1.04);
    z-index: 2;
}
.people-card.highlighted.girlfriend {
    background-image: url('https://i.pinimg.com/originals/f9/44/21/f944219ccacef9494025f491f93c06ce.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.people-card.highlighted.friend {
    background-image: url('https://cdn.dribbble.com/userupload/22138070/file/original-a0ff5c1d2dbc57004836d3e24214b887.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.people-card.highlighted.family,
.people-card.highlighted.relation {
    background-image: url('https://i.pinimg.com/originals/2b/54/2f/2b542fb210eed84b23386a473c70b253.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* filepath: d:\automations\around-the-globe\style.css */
/* Font Sizes */
:root {
    --font-size-header: 3rem;
    --font-size-subheader: 1.2rem;
    --font-size-section-title: 1.5rem;
    --font-size-card-title: 1.2rem;
    --font-size-card-content: 1rem;
    --font-size-button: 1rem;
    --font-size-input: 1rem;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: #333;
    font-size: var(--font-size-card-content);
    /* The background properties will be moved to the new themes */
}

/* Remove the old keyframes */
/* @keyframes bg-pan { ... } */

#weather-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: background 1s ease-in-out;
}

/* Day Theme: Bright Sky with a Sun */
.day-theme #weather-animation {
    background: linear-gradient(to bottom, #87CEEB, #f0f8ff);
}

.day-theme #weather-animation::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -50px;
    width: 100px;
    height: 100px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    animation: sun-move 30s linear infinite;
}

@keyframes sun-move {
    0% {
        transform: translateX(0) translateY(0) scale(1);
    }
    50% {
        transform: translateX(calc(100vw + 50px)) translateY(100px) scale(1.2);
    }
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Particle Effect */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float-up 20s infinite linear;
    bottom: -20px; /* Start below the screen */
}

@keyframes float-up {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* Day theme particles */
.day-theme .particle {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Night theme particles */
.night-theme .particle {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Night Theme: Dark Sky with Twinkling Stars */
.night-theme #weather-animation {
    background: linear-gradient(to bottom, #000033, #1a1a4a);
}

.night-theme #weather-animation::before,
.night-theme #weather-animation::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

.night-theme #weather-animation::before {
    box-shadow: 10vw 20vh 0 0 white, 80vw 10vh 0 0 white, 50vw 50vh 0 0 white, 20vw 90vh 0 0 white, 90vw 70vh 0 0 white;
}

.night-theme #weather-animation::after {
    box-shadow: 5vw 80vh 0 0 white, 95vw 30vh 0 0 white, 30vw 40vh 0 0 white, 70vw 60vh 0 0 white, 40vw 5vh 0 0 white;
    animation-delay: 2.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}


@keyframes bg-pan {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header {
    color: white;
    text-align: center;
    padding: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header h1 {
    font-family: 'Pacifico', cursive;
    margin: 0;
    font-size: var(--font-size-header);
    animation: fadeInDown 1s;
}

header p {
    margin: 0;
    font-size: var(--font-size-subheader);
    animation: fadeInUp 1s;
    font-weight: 700;
}

#map {
    height: 600px;
    width: 80%;
    margin: 20px auto; 
    animation: zoomIn 1s;
    border: 2px solid rgba(51, 51, 51, 0.8);
    border-radius: 10px;
}

.container {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Search Bar Styling */
.search-container {
    margin: 10px 0 20px;
}

.search-container input[type="text"] {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.search-container input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container input[type="text"]:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: #4d90fe;
    outline: none;
    box-shadow: 0 0 8px rgba(77, 144, 254, 0.5);
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: var(--font-size-input);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Roboto', sans-serif;
}

.search-container input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

section {
    margin-bottom: 30px;
}

h2 {
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Pacifico', cursive;
}

.container section {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* For Safari */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px; /* Add some space between sections */
    padding: 10px;
}

.container section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: var(--font-size-section-title);
    color: #ffffff;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.section-title i.fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s;
}

.section-title i:not(.fa-chevron-down) {
    margin-right: 10px;
}

.card-container {
    display: grid;
    /* New properties for horizontal scrolling grid */
    grid-auto-flow: column;
    grid-auto-columns: 260px; /* Width of each card column */
    grid-template-rows: repeat(2, auto); /* Create 2 rows */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Hide vertical scrollbar */
    gap: 20px;
    padding: 20px 10px; /* Add some padding for aesthetics and scrollbar */
    height: 650px; /* Set a fixed height for 2 rows of cards */
    transition: max-height 0.7s ease-in-out;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #4a90e2 #e0e0e0; /* For Firefox */
}

/* Style the scrollbar for Webkit browsers (Chrome, Safari) */
.card-container::-webkit-scrollbar {
    height: 8px;
}

.card-container::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.card-container::-webkit-scrollbar-thumb {
    background-color: #4a90e2;
    border-radius: 4px;
}

.card-container.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    animation: popIn 0.5s ease-out;
    cursor: pointer;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 10; /* Lift the card above others on hover */
}

/* Add these new styles */
.card-content {
    padding: 15px;
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s;
}

.card-content.expanded {
    max-height: 1000px;
    overflow: visible;
}

.card-content::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
    pointer-events: none;
    transition: opacity 0.3s;
}
.card-content.expanded::after {
    opacity: 0;
}

.show-more-btn {
    display: block;
    margin: 0 auto 0.5em auto;
    background: none;
    border: none;
    color: #4a90e2;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    transition: color 0.2s;
}
.show-more-btn:hover {
    color: #357abd;
}

.itinerary-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.itinerary-btn:hover {
    background-color: #357abd;
}

.card h3 {
    margin-top: 0;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a4a; /* A dark background matching the night theme */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Pacifico', cursive;
}

.pulsating-marker {
    width: 30px;
    height: 30px;
    background-color: #4a90e2;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    animation: pulse 1.5s infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(74, 144, 226, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

.plane-container {
    width: 200px;
    height: 200px;
    position: relative;
    animation: fly 4s ease-in-out infinite;
}

.plane {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    margin-top: 20px;
    animation: blink 1.5s infinite;
}

@keyframes fly {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.person-marker {
    font-size: 16px;
    text-align: center;
    line-height: 24px;
    background-color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    border: 2px solid;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Help Section Styles */
#help-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #4a90e2;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.2s ease;
}

#help-button:hover {
    transform: scale(1.1);
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Dark overlay */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

.memory-modal-content {
    max-width: 480px;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    box-shadow: 0 8px 32px 0 rgba(74,144,226,0.18);
    border-radius: 18px;
    padding: 32px 24px 24px 24px;
    text-align: center;
    position: relative;
}
.memory-modal-content img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px 0 rgba(74,144,226,0.10);
}
.memory-modal-content h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: #2d3a4a;
    margin: 0 0 12px 0;
}
.memory-modal-content p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 18px;
    white-space: pre-line;
}
.memory-modal-content a {
    display: inline-block;
    background: #4a90e2;
    color: #fff;
    padding: 10px 22px;
    border-radius: 22px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s;
}
.memory-modal-content a:hover {
    background: #357abd;
}
.close-memory-modal {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #4a90e2;
    cursor: pointer;
    font-weight: bold;
    z-index: 2;
    transition: color 0.2s;
}
.close-memory-modal:hover {
    color: #357abd;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0 }
    to { transform: translateY(0); opacity: 1 }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content ul {
    list-style-type: none;
    padding-left: 0;
}

.modal-content li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}


/* Navigation Tabs */
.nav-tabs {
    text-align: center;
    margin: 20px 0;
}

.nav-tab {
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #4a90e2;
    background-color: transparent;
    color: #4a90e2;
    border-radius: 25px;
    margin: 0 10px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-tab:hover, .nav-tab.active {
    background-color: #4a90e2;
    color: white;
}

/* Timeline View */
#timeline-view-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px); /* Adjust height based on header/tabs */
    max-width: 95%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    border: 1.5px solid rgba(74,144,226,0.15);
    gap: 20px;
}

.timeline-header h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #f4f4f5;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(74,144,226,0.08);
}

.timeline-header #play-timeline-animation {
    box-shadow: 0 2px 8px 0 rgba(40,167,69,0.10);
    border-radius: 25px;
    transition: box-shadow 0.2s, background 0.2s;
}
.timeline-header #play-timeline-animation:hover {
    box-shadow: 0 4px 16px 0 rgba(40,167,69,0.18);
}

#timeline-content {
    display: flex;
    flex-grow: 1;
    gap: 20px;
    overflow: hidden; /* Prevent layout issues */
}

#timeline-content #map {
    flex: 3; /* Map takes more space */
    height: 95%;
}

#play-timeline-animation {
    /* Remove margin and display properties to allow flex alignment */
    padding: 10px 20px; /* Reduced padding to make button smaller */
    font-size: 1rem; /* Reduced font size */
    font-weight: bold;
    cursor: pointer;
    border: none;
    background-color: #28a745;
    color: white;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.3s;
}

#play-timeline-animation:hover {
    background-color: #218838;
    transform: scale(1.05);
    transition: background-color 0.3s, transform 0.3s;
}

#play-timeline-animation.stop {
    background-color: #dc3545; /* Red color for stop button */
}

#timeline-list {
    flex: 2; /* List takes less space */
    border-left: 4px solid #4a90e2;
    padding-left: 20px;
    overflow-y: auto; /* Make list scrollable */
    height: 100%;
    scrollbar-width: none; /* Firefox */
}

#timeline-list::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 100px;
    padding-right: 90px; /* Make space for the gif */
}

.timeline-item p {
    max-height: 60px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    transition: max-height 0.3s;
}
.timeline-item p::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
    pointer-events: none;
    transition: opacity 0.3s;
}
.timeline-item.highlighted p {
    max-height: 1000px;
    overflow: visible;
}
.timeline-item.highlighted p::after {
    opacity: 0;
}

.timeline-item.highlighted {    
    background-image: url('https://cliply.co/wp-content/uploads/2019/08/371908390_CALENDAR_400px.gif');
    border-left: 4px solid #0056b3;
    transform: scale(1.02);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 15px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #4a90e2;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item h3 {
    margin-top: 0;
    color: #333;
}

.timeline-item .date {
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 10px;
    display: block;
}