/* General styling */
body {
    font-family: 'IBM Plex Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

/* Container for the vertical line and stations */
.line-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Vertical line styling */
.line {
    position: relative;
    width: 8px; /* Thickness of the line */
    background-color: #71C21B;
    min-height: 500px; /* Increased height for more spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* Increased space between stations */
    padding: 20px 0;
}

/* Each station container */
.station-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon, dot, and label group */
    white-space: nowrap; /* Prevent line breaks in the entire station container */
}

/* Icon styling (station code to the left of the dot) */
.icon {
    font-size: 10px;
    color: #020001;
    padding: 3px;
    border-radius: 5px;
    background-color: #FFF;
    border: 1px solid #71C21B;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap; /* Prevent line breaks in icon */
}

/* Dot styling with fixed dimensions */
.dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 50%; /* Ensures circular shape */
    cursor: pointer;
    transition: transform 0.3s ease;
    box-sizing: content-box; /* Prevents padding/border from affecting size */
}

/* Grouping label and kanji to the right of the dot */
.label-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align labels to the left */
    text-align: left;
    white-space: nowrap; /* Prevent line breaks in the label group */
}

/* English label styling */
.label {
    font-size: 12px;
    color: #333;
    white-space: nowrap; /* Prevent line breaks in label */
}

/* Kanji label below the English label */
.kanji {
    font-size: 12px;
    color: #666;
    white-space: nowrap; /* Prevent line breaks in kanji */
}

/* Default styling for project info container */
.project-info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 300px; /* Maximum width for desktop or larger screens */
}

/* Logo styling */
.logo {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
}

/* Description text styling */
.description {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* Mobile styling */
@media (max-width: 600px) {
    .project-info {
        max-width: 150px; /* Smaller width on mobile */
        left: 10px;
        bottom: 10px;
    }

    .description {
        font-size: 12px;
        line-height: 1.3;
    }

    .logo {
        width: 20px; /* Smaller logo size */
        margin-bottom: 5px;
    }
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 5px;
}

.description {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    text-align: left; /* Ensures the text aligns to the left */
}

.description2 {
    font-size: 10px;
    font-style: italic;
    color: #666;
    line-height: 1;
    margin-bottom: 10px;
    text-align: left; /* Ensures the text aligns to the left */
}

.footnote {
    font-size: 10px;
    font-style: italic;
    color: #D9534F;
    line-height: 1;
    margin-bottom: 10px;
    text-align: left; /* Ensures the text aligns to the left */
}

/* Pulse animation for the dot when playing */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.dot.playing {
    animation: pulse 1s infinite;
    animation-timing-function: ease-in-out;
}