.rmUIabout {
    display: flex;
    flex-direction: column;
}

.rmUIabout__content {
    display: flex;
    flex-direction: column;
    padding: 0px 25px;
    margin-bottom: 100px;
}

.rmUItitle__about {
    text-align: left;
    margin-bottom: -5px;
}

.rmUIabout__text {
    white-space: pre-line;
}


/* HISTORY */
.rmUIhistory {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto;
    background: url(../img/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 80px;
}

.rmUIhistory__content {
    display: flex;
    flex-direction: column;
    padding: 25px;
    width: 100%;
}

.rmUIhistory--titles__block {
    gap: 8px;
}

/* SLIDES CONTAINER */
.rmUIhistory__slider {
    position: relative;
    overflow: hidden;
    max-height: 550px;
    transition: height 0.5s ease;
}

.rmUIhistory__slide {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 25px 20px;
    background-color: #fff;
    position: absolute;
    width: 100%;
    opacity: 0;
    border-radius: 25px;
    pointer-events: none;
    transform: translateX(50px);
    transition: transform 0.6s ease, opacity 0.6s ease;

    box-sizing: border-box;
}

.rmUIhistory--slide__content--date {
    font-family: 'MontserratAlternates', sans-serif;
    font-weight: 500;
    color: #666;
    font-size: 19px;
    margin-bottom: 1px;
}

.rmUIhistory--slide__content--title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1b51a0;
    font-size: 45px;
    margin-bottom: -5px;
}

.rmUIhistory--slide__content--text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #666;
    font-size: 18px;
    white-space: pre-line;
}

/* ACTIVE SLIDE */
.rmUIhistory__slide_active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    overflow-y: auto;
}

.rmUIhistory__slide_left {
    transform: translateX(-60px);
}

.rmUIhistory__slide_right {
    transform: translateX(60px);
}

/* NAVIGATION */
.rmUIhistory__nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 7px;
    user-select: none;
}

.rmUIhistory__nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity .3s ease;
    height: 30px;
    width: 30px;
    flex-shrink: 0;
}

.rmUIhistory__nav-arrow svg {
    height: 30px;
    width: 30px;
    flex-shrink: 0;
}

.rmUIhistory__nav-arrow:hover {
    opacity: 0.5;
}

/* DOTS */
.rmUIhistory__nav-items {
    display: flex;
    gap: 12px;
}

.rmUIhistory__nav-item {
    background: #000;
    color: transparent;
    border-radius: 11px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;


    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        padding .35s ease,
        opacity .3s ease,
        color .25s ease;
}

/* active dot shows text */
.rmUIhistory__nav-item_active {
    opacity: 1;
    padding: 6px 35px;
}

/* hide text when inactive */
.rmUIhistory__nav-item:not(.rmUIhistory__nav-item_active) {
    color: transparent;
}

.rmUIhistory__nav-item_active {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #fff;
    font-size: 17px;
    width: auto;
    height: 32px;
    opacity: 1;
    padding: 0 35px;
}

