body {
    font-family: Arial, sans-serif;
    background-color: #F1F5F9;
    margin: 1%;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(136, 136, 136, 0.3); 
    border-radius: 0.625em; 
    border: 6px solid transparent; 
    background-clip: padding-box; 
}

/* Шкала времени */

#timeline-scroll-container {
    margin-top: 4%;
    width: 100%;
    height: 45vh;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

#timeline-container {
    position: relative;
    width: 99%; 
    max-width: none; 
    height: 40vh;
    margin: 0 auto;
    overflow: visible;
}

#timeline {
    margin-top: 9.5%;
    position: absolute;
    bottom: 4vh;
    left: 0;
    width: 100%;
    height: 0.25vw; 
    z-index: 1;
    transform: translateY(-50%);
}

#timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0.25vw; 
    background-color: #1A3E4E; 
    overflow: visible;
    z-index: 1;
    transform: translateY(-50%);
}

/* Маркеры */

.event-marker {
    position: absolute;
    top: 50%;
    width: 0.6vw;
    height: 0.6vw; 
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 4;
}

.circle {
    position: absolute;
    max-width: 0.6vw; 
    max-height: 0.6vw;
    border-radius: 50%;
    z-index: 100;
}

.long {
    position: absolute;
    width: auto; 
    height: 0.6vw; 
    border-radius: 5px;
    z-index: 3;
}

.year-marker {
    position: absolute;
    top: 50%;
    width: 1.4vw; 
    height: 1.4vw; 
    border-radius: 50%;
    background-color: #FFF; 
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.5vw; 
    font-family: 'Impact', fantasy;
    color: #000;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.month-marker {
    position: absolute;
    top: calc(50%);
    width: 0.05vw;
    height: 1.2vw; 
    background-color: #000; 
    transform: translate(-50%, -50%);
    z-index: 2; 
}

.season-marker {
    position: absolute;
    top: -4.15vw; 
    font-size: 1.5vw;
    transform: translate(-50%, -50%);
    font-family: 'Impact', fantasy;
    white-space: nowrap;
}

.seasonStart-marker {
    position: absolute;
    top: calc(50%);
    width: 0.1vw;
    height: 6vw; 
    background-color: transparent; 
    border-left: 0.1vw dashed gray;
    transform: translateY(-50%);
    z-index: 3;
}

/* Информационное окно */

.event-info {
    position: absolute;
    display: none;
    background-color: rgba(0, 0, 0, 0);
    padding: 1%;
    z-index: 1000;
    width: 35vw;
    max-height: 15vw;
    transform: translateX(-50%);
}

.event-info.active {
    display: block;
}

.event-info-content {
    display: flex;
    flex-direction: row;
    text-align: center;
    font-size: 0.8vw;
}

.event-info-left {
    flex: 2;
    margin-right: 4%;
    margin-left: 4%;
    align-self: center;
    text-align: center; 
    font-style: italic;
    font-size: 0.8vw; 
    color: gray;
}
}

.event-info-right {
    flex: 1;
    text-align: center;
}

.event-info-right img {
    max-width: 100%;
    border-radius: 50%;
    width: 10vw; 
    height: 10vw; 
}

/* Заголовки */

#gheader {
    text-align: center;
    font-size: 2.4vw;
    margin-bottom: 3%; 
    font-family: 'Impact', fantasy;
}

/* Кнопки масштабирования */

#controls {
    position: fixed;
    right: 2vw;
    z-index: 1000;
    transform-origin: right bottom;
    margin-top: -1%;

button {
    width: 2vw; 
    height: 2vw;
    padding: 0.5vw 1vw;
    background-color: rgba(0, 0, 0, 0); 
    cursor: pointer;
}

/* Стилизация кнопок zoom-out и zoom-in */
#zoom-out, #zoom-in {
    background-size: 100%; 
    background-position: center; 
    text-indent: -9999px; 
    overflow: hidden;
    border: none;
}

#zoom-out {
    background-image: url('images/minus.png'); 
}

#zoom-in {
    background-image: url('images/plus.png'); 
}